1 PACKAGE = invalid-only-for-proof
5 SRCS = $(wildcard *.cxx)
7 DHDR = $(PACKAGE)LinkDef.h
11 PACKCXXFLAGS = $(CXXFLAGS)
14 # For local includes in the PWGUDbase and PWGUDbase/base dirs (G.Ganis, July 2012)
18 ifneq ($(STEERBase_INCLUDE),)
19 ALICEINC += -I../$(STEERBase_INCLUDE)
21 ifneq ($(ESD_INCLUDE),)
22 ALICEINC += -I../$(ESD_INCLUDE)
24 ifneq ($(AOD_INCLUDE),)
25 ALICEINC += -I../$(AOD_INCLUDE)
27 ifneq ($(ANALYSIS_INCLUDE),)
28 ALICEINC += -I../$(ANALYSIS_INCLUDE)
30 ifneq ($(ANALYSISalice_INCLUDE),)
31 ALICEINC += -I../$(ANALYSISalice_INCLUDE)
33 ifneq ($(PWGUDdep_INCLUDE),)
34 ALICEINC += -I../$(PWGUDdep_INCLUDE)
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
44 ifeq ($(PLATFORM),macosx)
45 ROOTLIBDIR := $(shell $(RC) --libdir)
46 ifeq ($(PACKAGE),PWGUDbase)
47 PACKLDFLAGS = $(STEERBase_LIBS) $(ESD_LIBS) $(AOD_LIBS) $(ANALYSIS_LIBS) $(OADB_LIBS) $(ANALYSISalice_LIBS) -L$(ROOTLIBDIR) -lEG
51 CXXFLAGS += $(ALICEINC) -g
53 SRCS += G__$(PACKAGE).cxx
54 OBJS = $(SRCS:.cxx=.o)
56 lib$(PACKAGE).so: $(OBJS)
57 @echo "Linking" $@ ...
59 ifeq ($(PLATFORM),macosx)
60 $(LD) $(SOFLAGS)$@ $(LDFLAGS) $^ $(OutPutOpt) $@ $(PACKLDFLAGS) $(EXPLLINKLIBS)
62 $(LD) $(SOFLAGS) $(LDFLAGS) $^ $(OutPutOpt) $@ $(PACKLDFLAGS) $(EXPLLINKLIBS)
68 $(CXX) $(PACKCXXFLAGS) -c $< -o $@
71 @rm -f $(OBJS) *.so G__$(PACKAGE).*
73 G__$(PACKAGE).cxx G__$(PACKAGE).h: $(HDRS) $(DHDR)
74 @echo "Generating dictionaries ..." $(ALICEINC)
75 rootcint -f $@ -c $(CINTFLAGS) $(ALICEINC) $^