Corrected protection.
[u/mrichter/AliRoot.git] / STEER / Makefile
CommitLineData
ce917c76 1PACKAGE = invalid-only-for-proof
2
3include $(ROOTSYS)/test/Makefile.arch
4include lib$(PACKAGE).pkg
5
f426470e 6ifndef PACKCXXFLAGS
659feb65 7 PACKCXXFLAGS = $(CXXFLAGS)
f426470e 8endif
9
659feb65 10ALICEINC = -I.
11
1b6a1002 12ifneq ($(ESD_INCLUDE),)
659feb65 13 ALICEINC += -I../$(ESD_INCLUDE)
14endif
15
16ifneq ($(AOD_INCLUDE),)
17 ALICEINC += -I../$(AOD_INCLUDE)
1b6a1002 18endif
659feb65 19
20ifneq ($(STEERBase_INCLUDE),)
21 ALICEINC += -I../$(STEERBase_INCLUDE)
22endif
23
f3e0c4a4 24# only if no par file was loaded before
25ifeq ($(ALICEINC),-I.)
26 ifneq ($(ALICE_ROOT),)
27 ALICEINC += -I$(ALICE_ROOT)/include
28 endif
29endif
30
31
32
33
659feb65 34CXXFLAGS += $(ALICEINC) -g
35
7e995b61 36SRCS += G__$(PACKAGE).cxx
ce917c76 37OBJS = $(SRCS:.cxx=.o)
38
39lib$(PACKAGE).so: $(OBJS)
40 @echo "Linking" $@ ...
41 @/bin/rm -f $@
10dc066e 42ifeq ($(ARCH),macosx)
ce917c76 43 @$(LD) -bundle -undefined $(UNDEFOPT) $(LDFLAGS) $^ -o $@
44else
7e995b61 45 @$(LD) $(SOFLAGS) $(LDFLAGS) $^ -o $@
ce917c76 46endif
47 @chmod a+x $@
48 @echo "done"
49
50%.o: %.cxx %.h
f426470e 51 $(CXX) $(PACKCXXFLAGS) -c $< -o $@
ce917c76 52
53clean:
7e995b61 54 @rm -f $(OBJS) *.so G__$(PACKAGE).*
ce917c76 55
7e995b61 56G__$(PACKAGE).cxx G__$(PACKAGE).h: $(HDRS) $(DHDR)
659feb65 57 @echo "Generating dictionaries ..." $(ALICEINC)
f426470e 58 rootcint -f $@ -c $(CINTFLAGS) $(ALICEINC) $^
ce917c76 59