- changes for QA part of standard GG task
[u/mrichter/AliRoot.git] / PWGUD / Makefile
CommitLineData
f4545ac7 1PACKAGE = invalid-only-for-proof
2
3include Makefile.arch
4
5SRCS = $(wildcard *.cxx)
6HDRS = $(SRCS:.cxx=.h)
7DHDR = $(PACKAGE)LinkDef.h
8
9
10ifndef PACKCXXFLAGS
11 PACKCXXFLAGS = $(CXXFLAGS)
12endif
13
8de6c54f 14# For local includes in the PWGUDbase and PWGUDbase/base dirs (G.Ganis, July 2012)
f4545ac7 15ALICEINC = -I.
8de6c54f 16ALICEINC += -Ibase
f4545ac7 17
8bfe3849 18ifneq ($(STEERBase_INCLUDE),)
19 ALICEINC += -I../$(STEERBase_INCLUDE)
20endif
21ifneq ($(ESD_INCLUDE),)
22 ALICEINC += -I../$(ESD_INCLUDE)
23endif
24ifneq ($(AOD_INCLUDE),)
25 ALICEINC += -I../$(AOD_INCLUDE)
26endif
27ifneq ($(ANALYSIS_INCLUDE),)
28 ALICEINC += -I../$(ANALYSIS_INCLUDE)
29endif
30ifneq ($(ANALYSISalice_INCLUDE),)
31 ALICEINC += -I../$(ANALYSISalice_INCLUDE)
32endif
f4545ac7 33ifneq ($(PWGUDdep_INCLUDE),)
34 ALICEINC += -I../$(PWGUDdep_INCLUDE)
35endif
36
37# only if no par file was loaded before
38#ifeq ($(ALICEINC),-I.)
39 ifneq ($(ALICE_ROOT),)
40 ALICEINC += -I$(ALICE_ROOT)/include -I$(ALICE_ROOT)/PWGUD/base
41 endif
42#endif
43
8bfe3849 44ifeq ($(PLATFORM),macosx)
45ROOTLIBDIR := $(shell $(RC) --libdir)
46ifeq ($(PACKAGE),PWGUDbase)
47 PACKLDFLAGS = $(STEERBase_LIBS) $(ESD_LIBS) $(AOD_LIBS) $(ANALYSIS_LIBS) $(OADB_LIBS) $(ANALYSISalice_LIBS) -L$(ROOTLIBDIR) -lEG
48endif
49endif
f4545ac7 50
51CXXFLAGS += $(ALICEINC) -g
52
53SRCS += G__$(PACKAGE).cxx
54OBJS = $(SRCS:.cxx=.o)
55
56lib$(PACKAGE).so: $(OBJS)
57 @echo "Linking" $@ ...
58 @/bin/rm -f $@
8bfe3849 59ifeq ($(PLATFORM),macosx)
60 $(LD) $(SOFLAGS)$@ $(LDFLAGS) $^ $(OutPutOpt) $@ $(PACKLDFLAGS) $(EXPLLINKLIBS)
61else
62 $(LD) $(SOFLAGS) $(LDFLAGS) $^ $(OutPutOpt) $@ $(PACKLDFLAGS) $(EXPLLINKLIBS)
63endif
f4545ac7 64 @chmod a+x $@
65 @echo "done"
66
67%.o: %.cxx %.h
68 $(CXX) $(PACKCXXFLAGS) -c $< -o $@
69
70clean:
71 @rm -f $(OBJS) *.so G__$(PACKAGE).*
72
73G__$(PACKAGE).cxx G__$(PACKAGE).h: $(HDRS) $(DHDR)
74 @echo "Generating dictionaries ..." $(ALICEINC)
75 rootcint -f $@ -c $(CINTFLAGS) $(ALICEINC) $^
76