Correct use of ROOT_INCLUDE_DIR
[u/mrichter/AliRoot.git] / TPC / Makefile.Calib
CommitLineData
062a1403 1PACKAGE = TPCcalib
2
3include Makefile.arch
4include lib$(PACKAGE).pkg
5
6ifndef PACKCXXFLAGS
7PACKCXXFLAGS = $(CXXFLAGS)
8endif
9
10SRCS += G__$(PACKAGE).cxx
11OBJS = $(SRCS:.cxx=.o)
12
13lib$(PACKAGE).so: $(OBJS)
14 @echo "Linking" $@ ...
15 @/bin/rm -f $@
16ifeq ($(PLATFORM),macosx)
17 @$(LD) -bundle -undefined $(UNDEFOPT) $(LDFLAGS) $^ -o $@
18else
19 @$(LD) $(SOFLAGS) $(LDFLAGS) $^ -o $@
20endif
21 @chmod a+x $@
22 @echo "done"
23
24%.o: %.cxx %.h
77ed0033 25 $(CXX) $(PACKCXXFLAGS) -I$(ALICE_ROOT)/TPC -I$(ALICE_ROOT)/STEER -I$(ALICE_ROOT)/ANALYSIS -c $< -o $@
062a1403 26
27clean:
28 @rm -f $(OBJS) *.so G__$(PACKAGE).*
29
30G__$(PACKAGE).cxx G__$(PACKAGE).h: $(HDRS) $(DHDR)
31 @echo "Generating dictionary ..."
32 rootcint -f $@ -c $(CINTFLAGS) $(ALICEINC) $^
33