trigger class added (M.Ivanov)
[u/mrichter/AliRoot.git] / PWGPP / Makefile
1 PACKAGE = invalid-only-for-proof
2
3 include Makefile.arch
4
5 SRCS     = $(wildcard *.cxx)
6 HDRS     = $(SRCS:.cxx=.h)
7 DHDR     = $(PACKAGE)LinkDef.h
8
9
10 ifndef PACKCXXFLAGS
11    PACKCXXFLAGS = $(CXXFLAGS)
12 endif
13
14 ALICEINC = -I.
15 ALICEINC += -I./$(PACKAGE)/
16
17 ifneq ($(PWGPPevchar_INCLUDE),)
18    ALICEINC += -I../$(PWGPPevchar_INCLUDE) 
19 endif
20
21 # only if no par file was loaded before
22 #ifeq ($(ALICEINC),-I.)
23   ifneq ($(ALICE_ROOT),)
24     ALICEINC += -I$(ALICE_ROOT)/include -I$(ALICE_ROOT)/ITS
25   endif
26 #endif
27
28 ifneq ($(EINCLUDE),)
29   ALICEINC += $(EINCLUDE:%=-I$(ALICE_ROOT)/%)
30 endif
31
32
33 CXXFLAGS += $(ALICEINC) -g
34
35 SRCS         += G__$(PACKAGE).cxx
36 OBJS          = $(SRCS:.cxx=.o)
37
38 lib$(PACKAGE).so: $(OBJS)
39         @echo "Linking" $@ ...
40         @/bin/rm -f $@
41         $(LD) $(SOFLAGS) $(LDFLAGS) $^ $(OutPutOpt) $@ $(EXPLLINKLIBS)
42         @chmod a+x $@
43         @echo "done"
44
45 %.o:    %.cxx %.h
46         $(CXX) $(PACKCXXFLAGS) -c $< -o $@
47
48 clean:
49         @rm -f $(OBJS) *.so G__$(PACKAGE).*
50
51 G__$(PACKAGE).cxx G__$(PACKAGE).h: $(HDRS) $(DHDR)
52         @echo "Generating dictionaries ..." $(ALICEINC)
53         rootcint -f $@ -c $(CINTFLAGS) $(ALICEINC) $^
54