1 PACKAGE = invalid-only-for-proof
3 include $(ROOTSYS)/test/Makefile.arch
5 SRCS = $(wildcard *.cxx)
7 DHDR = $(PACKAGE)LinkDef.h
11 PACKCXXFLAGS = $(CXXFLAGS)
15 ALICEINC += -I./$(PACKAGE)/
17 ifneq ($(ESD_INCLUDE),)
18 ALICEINC += -I../$(ESD_INCLUDE)
21 ifneq ($(AOD_INCLUDE),)
22 ALICEINC += -I../$(AOD_INCLUDE)
25 ifneq ($(STEERBase_INCLUDE),)
26 ALICEINC += -I../$(STEERBase_INCLUDE)
29 # only if no par file was loaded before
30 ifeq ($(ALICEINC),-I.)
31 ifneq ($(ALICE_ROOT),)
32 ALICEINC += -I$(ALICE_ROOT)/include
39 CXXFLAGS += $(ALICEINC) -g
41 SRCS += G__$(PACKAGE).cxx
42 OBJS = $(SRCS:.cxx=.o)
44 lib$(PACKAGE).so: $(OBJS)
45 @echo "Linking" $@ ...
47 ifeq ($(PLATFORM),macosx)
48 # We need to make both the .dylib and the .so
49 $(LD) $(SOFLAGS)$@ $(LDFLAGS) $^ $(OutPutOpt) $@
50 ifneq ($(subst $(MACOSX_MINOR),,1234),1234)
51 ifeq ($(MACOSX_MINOR),4)
52 ln -sf $@ $(subst .$(DllSuf),.so,$@)
54 $(LD) -bundle -undefined $(UNDEFOPT) $(LDFLAGS) $^ \
55 $(OutPutOpt) $(subst .$(DllSuf),.so,$@)
59 ifeq ($(PLATFORM),win32)
60 bindexplib $* $^ > $*.def
61 lib -nologo -MACHINE:IX86 $^ -def:$*.def \
62 $(OutPutOpt)$(EVENTLIB)
63 $(LD) $(SOFLAGS) $(LDFLAGS) $^ $*.exp $(LIBS) \
66 $(LD) $(SOFLAGS) $(LDFLAGS) $^ $(OutPutOpt) $@ $(EXPLLINKLIBS)
73 $(CXX) $(PACKCXXFLAGS) -c $< -o $@
76 @rm -f $(OBJS) *.so G__$(PACKAGE).*
78 G__$(PACKAGE).cxx G__$(PACKAGE).h: $(HDRS) $(DHDR)
79 @echo "Generating dictionaries ..." $(ALICEINC)
80 rootcint -f $@ -c $(CINTFLAGS) $(ALICEINC) $^