ALICEINC += -I../$(ANALYSISalice_INCLUDE)
else
ifneq ($(ALICE_ROOT),)
- ALICEINC += -I$(ALICE_ROOT)/include
+ ALICEINC += -I$(ALICE_ROOT)/include -I$(ALICE_ROOT)/PWG2
endif
endif
ifneq ($(PWG2femtoscopy_INCLUDE),)
ALICEINC += -I../$(PWG2femtoscopy_INCLUDE)
+ else
+ ifneq ($(ALICE_ROOT),)
+ ALICEINC += -I$(ALICE_ROOT)/PWG2/AOD
+ endif
endif
ifneq ($(PWG2femtoscopyUser_INCLUDE),)
ALICEINC += -I../$(PWG2femtoscopyUser_INCLUDE)
+ else
+ ifneq ($(ALICE_ROOT),)
+ ALICEINC += -I$(ALICE_ROOT)/PWG2/AOD -I$(ALICE_ROOT)/PWG2/FEMTOSCOPY/AliFemto
+ endif
endif
ifneq ($(PWG2flowCommon_INCLUDE),)
ifneq ($(PWG2flowTasks_INCLUDE),)
ALICEINC += -I../$(PWG2flowTasks_INCLUDE)
+ else
+ ifneq ($(ALICE_ROOT),)
+ ALICEINC += -I$(ALICE_ROOT)/PWG2/FLOW/AliFlowCommon
+ endif
endif
ifneq ($(PWG2resonances_INCLUDE),)
ALICEINC += -I../$(PWG2resonances_INCLUDE)
+ else
+ ifneq ($(ALICE_ROOT),)
+ ALICEINC += -I$(ALICE_ROOT)/PWG2/RESONANCES
+ endif
endif
ifneq ($(PWG2unicor_INCLUDE),)
ALICEINC += -I../$(PWG2kink_INCLUDE)
endif
+ifneq ($(PWG2forward_INCLUDE),)
+ ALICEINC += -I../$(PWG2forward_INCLUDE)
+ else
+ ifneq ($(ALICE_ROOT),)
+ ALICEINC += -I$(ALICE_ROOT)/FMD
+ endif
+endif
+
# only if no par file was loaded before
ifeq ($(ALICEINC),-I.)
ifneq ($(ALICE_ROOT),)
# ALICEINC += -I../$(PWG0base_INCLUDE)
#endif
+#ALICEINC += -IFEMTOSCOPY/AliFemto -IANALYSIS -IFEMTOSCOPY/AliFemtoUser
+
+# include lib$(PACKAGE).pkg
+
+ifneq ($(EINCLUDE),)
+ ALICEINC += $(EINCLUDE:%=-I$(ALICE_ROOT)/%)
+endif
+
CXXFLAGS += $(ALICEINC) -g
F77FLAGS += $(ALICEINC) -g -fPIC
-#ALICEINC += -IFEMTOSCOPY/AliFemto -IANALYSIS -IFEMTOSCOPY/AliFemtoUser
-
-include lib$(PACKAGE).pkg
+DHDR =
+HDRS =
+SRCS =
+FSRCS =
DHDR_PWG2 := $(DHDR)
HDRS_PWG2 := $(HDRS)
lib$(PACKAGE).so: $(OBJS_PWG2)
@echo "Linking" $@ ...
@/bin/rm -f $@
-ifeq ($(ARCH),macosx)
- @$(LD) -bundle -undefined $(UNDEFOPT) $(LDFLAGS) $^ -o $@
+ifeq ($(PLATFORM),macosx)
+# We need to make both the .dylib and the .so
+ $(LD) $(SOFLAGS)$@ $(LDFLAGS) $^ $(OutPutOpt) $@
+ifneq ($(subst $(MACOSX_MINOR),,1234),1234)
+ifeq ($(MACOSX_MINOR),4)
+ ln -sf $@ $(subst .$(DllSuf),.so,$@)
else
- @$(LD) $(SOFLAGS) $(LDFLAGS) $^ -o $@
+ $(LD) -bundle -undefined $(UNDEFOPT) $(LDFLAGS) $^ \
+ $(OutPutOpt) $(subst .$(DllSuf),.so,$@)
+endif
+endif
+else
+ifeq ($(PLATFORM),win32)
+ bindexplib $* $^ > $*.def
+ lib -nologo -MACHINE:IX86 $^ -def:$*.def \
+ $(OutPutOpt)$(EVENTLIB)
+ $(LD) $(SOFLAGS) $(LDFLAGS) $^ $*.exp $(LIBS) \
+ $(OutPutOpt)$@
+else
+ $(LD) $(SOFLAGS) $(LDFLAGS) $^ $(OutPutOpt) $@ $(EXPLLINKLIBS)
+endif
endif
@chmod a+x $@
@echo "done"
%.o: %.F
$(F77) $(F77FLAGS) -c $< -o $@
-G__$(PACKAGE).cxx G__$(PACKAGE).h: $(HDRS_PWG2) $(DHDR_PWG2)
+G__$(PACKAGE).h:G__$(PACKAGE).cxx
+ @if test -f $@ ; then : ; else rm -f $< ; $(MAKE) $@ ; fi
+
+G__$(PACKAGE).cxx: $(HDRS_PWG2) $(DHDR_PWG2)
@echo "Generating dictionary ..."
rootcint -f $@ -c $(CINTFLAGS) $(ALICEINC) $^