]> git.uio.no Git - u/mrichter/AliRoot.git/blame - STEER/Makefile
Wrong versiion was committed before, this is the correct one
[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.
15
1b6a1002 16ifneq ($(ESD_INCLUDE),)
659feb65 17 ALICEINC += -I../$(ESD_INCLUDE)
18endif
19
20ifneq ($(AOD_INCLUDE),)
21 ALICEINC += -I../$(AOD_INCLUDE)
1b6a1002 22endif
659feb65 23
24ifneq ($(STEERBase_INCLUDE),)
25 ALICEINC += -I../$(STEERBase_INCLUDE)
26endif
27
f3e0c4a4 28# only if no par file was loaded before
29ifeq ($(ALICEINC),-I.)
30 ifneq ($(ALICE_ROOT),)
31 ALICEINC += -I$(ALICE_ROOT)/include
32 endif
33endif
34
35
36
37
659feb65 38CXXFLAGS += $(ALICEINC) -g
39
7e995b61 40SRCS += G__$(PACKAGE).cxx
ce917c76 41OBJS = $(SRCS:.cxx=.o)
42
43lib$(PACKAGE).so: $(OBJS)
44 @echo "Linking" $@ ...
45 @/bin/rm -f $@
d86acb69 46ifeq ($(PLATFORM),macosx)
47# We need to make both the .dylib and the .so
48 $(LD) $(SOFLAGS)$@ $(LDFLAGS) $^ $(OutPutOpt) $@
49ifneq ($(subst $(MACOSX_MINOR),,1234),1234)
50ifeq ($(MACOSX_MINOR),4)
51 ln -sf $@ $(subst .$(DllSuf),.so,$@)
ce917c76 52else
d86acb69 53 $(LD) -bundle -undefined $(UNDEFOPT) $(LDFLAGS) $^ \
54 $(OutPutOpt) $(subst .$(DllSuf),.so,$@)
55endif
56endif
57else
58ifeq ($(PLATFORM),win32)
59 bindexplib $* $^ > $*.def
60 lib -nologo -MACHINE:IX86 $^ -def:$*.def \
61 $(OutPutOpt)$(EVENTLIB)
62 $(LD) $(SOFLAGS) $(LDFLAGS) $^ $*.exp $(LIBS) \
63 $(OutPutOpt)$@
64else
65 $(LD) $(SOFLAGS) $(LDFLAGS) $^ $(OutPutOpt) $@ $(EXPLLINKLIBS)
66endif
ce917c76 67endif
68 @chmod a+x $@
69 @echo "done"
70
71%.o: %.cxx %.h
f426470e 72 $(CXX) $(PACKCXXFLAGS) -c $< -o $@
ce917c76 73
74clean:
7e995b61 75 @rm -f $(OBJS) *.so G__$(PACKAGE).*
ce917c76 76
7e995b61 77G__$(PACKAGE).cxx G__$(PACKAGE).h: $(HDRS) $(DHDR)
659feb65 78 @echo "Generating dictionaries ..." $(ALICEINC)
f426470e 79 rootcint -f $@ -c $(CINTFLAGS) $(ALICEINC) $^
ce917c76 80