Correction for bug #77355: Generation of PARs
[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 $@
10dc066e 46ifeq ($(ARCH),macosx)
ce917c76 47 @$(LD) -bundle -undefined $(UNDEFOPT) $(LDFLAGS) $^ -o $@
48else
7e995b61 49 @$(LD) $(SOFLAGS) $(LDFLAGS) $^ -o $@
ce917c76 50endif
51 @chmod a+x $@
52 @echo "done"
53
54%.o: %.cxx %.h
f426470e 55 $(CXX) $(PACKCXXFLAGS) -c $< -o $@
ce917c76 56
57clean:
7e995b61 58 @rm -f $(OBJS) *.so G__$(PACKAGE).*
ce917c76 59
7e995b61 60G__$(PACKAGE).cxx G__$(PACKAGE).h: $(HDRS) $(DHDR)
659feb65 61 @echo "Generating dictionaries ..." $(ALICEINC)
f426470e 62 rootcint -f $@ -c $(CINTFLAGS) $(ALICEINC) $^
ce917c76 63