o fix problems in ITS pid when using probabilities (combined pid) - Benjamin, Stefano
[u/mrichter/AliRoot.git] / STEER / Makefile
CommitLineData
ce917c76 1PACKAGE = invalid-only-for-proof
2
41f671ab 3include Makefile.arch
84d4333f 4
958d9d26 5SRCS = $(wildcard *.cxx)
6HDRS = $(SRCS:.cxx=.h)
7DHDR = $(PACKAGE)LinkDef.h
84d4333f 8
ce917c76 9
f426470e 10ifndef PACKCXXFLAGS
659feb65 11 PACKCXXFLAGS = $(CXXFLAGS)
f426470e 12endif
13
659feb65 14ALICEINC = -I.
475023e7 15ALICEINC += -I./$(PACKAGE)/
659feb65 16
1b6a1002 17ifneq ($(ESD_INCLUDE),)
659feb65 18 ALICEINC += -I../$(ESD_INCLUDE)
19endif
20
21ifneq ($(AOD_INCLUDE),)
22 ALICEINC += -I../$(AOD_INCLUDE)
1b6a1002 23endif
659feb65 24
25ifneq ($(STEERBase_INCLUDE),)
26 ALICEINC += -I../$(STEERBase_INCLUDE)
27endif
28
f3e0c4a4 29# only if no par file was loaded before
41f671ab 30#ifeq ($(ALICEINC),-I.)
f3e0c4a4 31 ifneq ($(ALICE_ROOT),)
32 ALICEINC += -I$(ALICE_ROOT)/include
33 endif
41f671ab 34#endif
f3e0c4a4 35
8bfe3849 36ifeq ($(PLATFORM),macosx)
37ROOTLIBDIR := $(shell $(RC) --libdir)
38ifeq ($(PACKAGE),STEERBase)
39 PACKLDFLAGS = -L$(ROOTLIBDIR) -lVMC -lMinuit -lEG -lGeom
40endif
41ifeq ($(PACKAGE),ESD)
42 PACKLDFLAGS = $(STEERBase_LIBS) -L$(ROOTLIBDIR) -lVMC -lEG -lGeom
43endif
44ifeq ($(PACKAGE),AOD)
45 PACKLDFLAGS = $(STEERBase_LIBS) -L$(ROOTLIBDIR) -lEG -lGeom
46endif
47ifeq ($(PACKAGE),CDB)
48 PACKLDFLAGS = $(STEERBase_LIBS) -L$(ROOTLIBDIR) -lMinuit -lTree -lXMLParser
49endif
50endif
f3e0c4a4 51
52
659feb65 53CXXFLAGS += $(ALICEINC) -g
54
7e995b61 55SRCS += G__$(PACKAGE).cxx
ce917c76 56OBJS = $(SRCS:.cxx=.o)
57
58lib$(PACKAGE).so: $(OBJS)
59 @echo "Linking" $@ ...
60 @/bin/rm -f $@
8bfe3849 61ifeq ($(PLATFORM),macosx)
62 $(LD) $(SOFLAGS)$@ $(LDFLAGS) $^ $(OutPutOpt) $@ $(PACKLDFLAGS) $(EXPLLINKLIBS)
63else
64 $(LD) $(SOFLAGS) $(LDFLAGS) $^ $(OutPutOpt) $@ $(PACKLDFLAGS) $(EXPLLINKLIBS)
65endif
ce917c76 66 @chmod a+x $@
67 @echo "done"
68
69%.o: %.cxx %.h
f426470e 70 $(CXX) $(PACKCXXFLAGS) -c $< -o $@
ce917c76 71
72clean:
7e995b61 73 @rm -f $(OBJS) *.so G__$(PACKAGE).*
ce917c76 74
7e995b61 75G__$(PACKAGE).cxx G__$(PACKAGE).h: $(HDRS) $(DHDR)
659feb65 76 @echo "Generating dictionaries ..." $(ALICEINC)
f426470e 77 rootcint -f $@ -c $(CINTFLAGS) $(ALICEINC) $^
ce917c76 78