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