Makefile for PHOSUtils.par creation
[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
14
15# only if no par file was loaded before
16ifeq ($(ALICEINC),-I.)
17 ifneq ($(ALICE_ROOT),)
18 ALICEINC += -I$(ALICE_ROOT)/include
19 endif
20endif
21
22CXXFLAGS += $(ALICEINC) -g
23
24SRCS += G__$(PACKAGE).cxx
25OBJS = $(SRCS:.cxx=.o)
26
27lib$(PACKAGE).so: $(OBJS)
28 @echo "Linking" $@ ...
29 @/bin/rm -f $@
30ifeq ($(ARCH),macosx)
31 @$(LD) -bundle -undefined $(UNDEFOPT) $(LDFLAGS) $^ -o $@
32else
33 @$(LD) $(SOFLAGS) $(LDFLAGS) $^ -o $@
34endif
35 @chmod a+x $@
36 @echo "done"
37
38%.o: %.cxx %.h
39 $(CXX) $(PACKCXXFLAGS) -c $< -o $@
40
41clean:
42 @rm -f $(OBJS) *.so G__$(PACKAGE).*
43
44G__$(PACKAGE).cxx G__$(PACKAGE).h: $(HDRS) $(DHDR)
45 @echo "Generating dictionaries ..." $(ALICEINC)
46 rootcint -f $@ -c $(CINTFLAGS) $(ALICEINC) $^
47