]> git.uio.no Git - u/mrichter/AliRoot.git/blob - PHOS/Makefile
Allow fill histograms for AODs case, remnat of the ESD/AOD different frame
[u/mrichter/AliRoot.git] / PHOS / Makefile
1 PACKAGE = invalid-only-for-proof
2
3 include $(ROOTSYS)/test/Makefile.arch
4 include lib$(PACKAGE).pkg
5
6 ifndef PACKCXXFLAGS
7    PACKCXXFLAGS = $(CXXFLAGS)
8 endif
9
10 ALICEINC = -I.
11
12 ### define include dir for local case and par case
13
14 ifneq ($(STEERBase_INCLUDE),)
15   ALICEINC += -I../$(STEERBase_INCLUDE)
16 endif
17
18 # only if no par file was loaded before
19 ifeq ($(ALICEINC),-I.)
20   ifneq ($(ALICE_ROOT),)
21     ALICEINC += -I$(ALICE_ROOT)/include
22   endif
23 endif
24
25 CXXFLAGS += $(ALICEINC) -g
26
27 SRCS         += G__$(PACKAGE).cxx
28 OBJS          = $(SRCS:.cxx=.o)
29
30 lib$(PACKAGE).so: $(OBJS)
31         @echo "Linking" $@ ...
32         @/bin/rm -f $@
33 ifeq ($(ARCH),macosx)
34         @$(LD) -bundle -undefined $(UNDEFOPT) $(LDFLAGS) $^ -o $@
35 else
36         @$(LD) $(SOFLAGS) $(LDFLAGS) $^ -o $@
37 endif
38         @chmod a+x $@
39         @echo "done"
40
41 %.o:    %.cxx %.h
42         $(CXX) $(PACKCXXFLAGS) -c $< -o $@
43
44 clean:
45         @rm -f $(OBJS) *.so G__$(PACKAGE).*
46
47 G__$(PACKAGE).cxx G__$(PACKAGE).h: $(HDRS) $(DHDR)
48         @echo "Generating dictionaries ..." $(ALICEINC)
49         rootcint -f $@ -c $(CINTFLAGS) $(ALICEINC) $^
50