Correction for bug #77355: Generation of PARs
[u/mrichter/AliRoot.git] / PHOS / Makefile
CommitLineData
f17e1fe1 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
f17e1fe1 8
9ifndef PACKCXXFLAGS
10 PACKCXXFLAGS = $(CXXFLAGS)
11endif
12
13ALICEINC = -I.
14
15### define include dir for local case and par case
16
d8c66d16 17ifneq ($(STEERBase_INCLUDE),)
18 ALICEINC += -I../$(STEERBase_INCLUDE)
19endif
f17e1fe1 20
21# only if no par file was loaded before
22ifeq ($(ALICEINC),-I.)
23 ifneq ($(ALICE_ROOT),)
24 ALICEINC += -I$(ALICE_ROOT)/include
25 endif
26endif
27
28CXXFLAGS += $(ALICEINC) -g
29
30SRCS += G__$(PACKAGE).cxx
31OBJS = $(SRCS:.cxx=.o)
32
33lib$(PACKAGE).so: $(OBJS)
34 @echo "Linking" $@ ...
35 @/bin/rm -f $@
36ifeq ($(ARCH),macosx)
37 @$(LD) -bundle -undefined $(UNDEFOPT) $(LDFLAGS) $^ -o $@
38else
39 @$(LD) $(SOFLAGS) $(LDFLAGS) $^ -o $@
40endif
41 @chmod a+x $@
42 @echo "done"
43
44%.o: %.cxx %.h
45 $(CXX) $(PACKCXXFLAGS) -c $< -o $@
46
47clean:
48 @rm -f $(OBJS) *.so G__$(PACKAGE).*
49
50G__$(PACKAGE).cxx G__$(PACKAGE).h: $(HDRS) $(DHDR)
51 @echo "Generating dictionaries ..." $(ALICEINC)
52 rootcint -f $@ -c $(CINTFLAGS) $(ALICEINC) $^
53