Coding violations corrected.
[u/mrichter/AliRoot.git] / JETAN / Makefile
1 PACKAGE = invalid-only-for-proof
2
3 include $(ROOTSYS)/test/Makefile.arch
4 include lib$(PACKAGE).pkg
5
6
7 ALICEINC      = -I.
8
9 ### define include dir for local case and par case
10 ifneq ($(ESD_INCLUDE),)
11    ALICEINC += -I../$(ESD_INCLUDE)
12    ALICEINC += -I../$(AOD_INCLUDE)
13    ALICEINC += -I../$(STEERBase_INCLUDE)
14    ALICEINC += -I../$(ANALYSIS_INCLUDE)
15    ALICEINC += -I../$(ANALYSISalice_INCLUDE)
16    ifneq ($(JETAN_INCLUDE),)    
17      ALICEINC += -I../$(JETAN_INCLUDE)
18    endif
19  else
20     ifneq ($(ALICE_ROOT),)
21        ALICEINC += -I$(ALICE_ROOT)/include
22      endif
23 endif
24
25 CXXFLAGS     += $(ALICEINC) -g
26
27
28 SRCS         += G__$(PACKAGE).cxx
29 OBJS          = $(SRCS:.cxx=.o)
30
31 lib$(PACKAGE).so: $(OBJS)
32         @echo "Linking" $@ ...
33         @/bin/rm -f $@
34 ifeq ($(ARCH),macosx)
35         @$(LD) -bundle -undefined $(UNDEFOPT) $(LDFLAGS) $^ -o $@
36 else
37         @$(LD) $(SOFLAGS) $(LDFLAGS) $^ -o $@
38 endif
39         @chmod a+x $@
40         @echo "done"
41
42 %.o:    %.cxx %.h
43         $(CXX) $(CXXFLAGS) -c $< -o $@
44
45 clean:
46         @rm -f $(OBJS) *.so G__$(PACKAGE).*
47
48 G__$(PACKAGE).cxx G__$(PACKAGE).h: $(HDRS) $(DHDR)
49         @echo "Generating dictionary ..."
50         rootcint -f $@ -c $(CINTFLAGS) $(ALICEINC) $^
51