Bug fix in the constructor (thanks to A.Marin)
[u/mrichter/AliRoot.git] / STEER / Makefile
CommitLineData
ce917c76 1PACKAGE = invalid-only-for-proof
2
3include $(ROOTSYS)/test/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
30ifeq ($(ALICEINC),-I.)
31 ifneq ($(ALICE_ROOT),)
32 ALICEINC += -I$(ALICE_ROOT)/include
33 endif
34endif
35
36
37
38
659feb65 39CXXFLAGS += $(ALICEINC) -g
40
7e995b61 41SRCS += G__$(PACKAGE).cxx
ce917c76 42OBJS = $(SRCS:.cxx=.o)
43
44lib$(PACKAGE).so: $(OBJS)
45 @echo "Linking" $@ ...
46 @/bin/rm -f $@
d86acb69 47ifeq ($(PLATFORM),macosx)
48# We need to make both the .dylib and the .so
49 $(LD) $(SOFLAGS)$@ $(LDFLAGS) $^ $(OutPutOpt) $@
50ifneq ($(subst $(MACOSX_MINOR),,1234),1234)
51ifeq ($(MACOSX_MINOR),4)
52 ln -sf $@ $(subst .$(DllSuf),.so,$@)
ce917c76 53else
d86acb69 54 $(LD) -bundle -undefined $(UNDEFOPT) $(LDFLAGS) $^ \
55 $(OutPutOpt) $(subst .$(DllSuf),.so,$@)
56endif
57endif
58else
59ifeq ($(PLATFORM),win32)
60 bindexplib $* $^ > $*.def
61 lib -nologo -MACHINE:IX86 $^ -def:$*.def \
62 $(OutPutOpt)$(EVENTLIB)
63 $(LD) $(SOFLAGS) $(LDFLAGS) $^ $*.exp $(LIBS) \
64 $(OutPutOpt)$@
65else
66 $(LD) $(SOFLAGS) $(LDFLAGS) $^ $(OutPutOpt) $@ $(EXPLLINKLIBS)
67endif
ce917c76 68endif
69 @chmod a+x $@
70 @echo "done"
71
72%.o: %.cxx %.h
f426470e 73 $(CXX) $(PACKCXXFLAGS) -c $< -o $@
ce917c76 74
75clean:
7e995b61 76 @rm -f $(OBJS) *.so G__$(PACKAGE).*
ce917c76 77
7e995b61 78G__$(PACKAGE).cxx G__$(PACKAGE).h: $(HDRS) $(DHDR)
659feb65 79 @echo "Generating dictionaries ..." $(ALICEINC)
f426470e 80 rootcint -f $@ -c $(CINTFLAGS) $(ALICEINC) $^
ce917c76 81