PWGPP-3, ATO-19 - Reduce size of the space points for alignment (Laser calibration...
[u/mrichter/AliRoot.git] / PWGPP / Makefile
CommitLineData
f4545ac7 1PACKAGE = invalid-only-for-proof
2
3include Makefile.arch
4
5SRCS = $(wildcard *.cxx)
6HDRS = $(SRCS:.cxx=.h)
7DHDR = $(PACKAGE)LinkDef.h
8
9
10ifndef PACKCXXFLAGS
11 PACKCXXFLAGS = $(CXXFLAGS)
12endif
13
14ALICEINC = -I.
15ALICEINC += -I./$(PACKAGE)/
16
17ifneq ($(PWGPPevchar_INCLUDE),)
18 ALICEINC += -I../$(PWGPPevchar_INCLUDE)
19endif
20
e57005e8 21ifneq ($(PWGPPpid_INCLUDE),)
22 ALICEINC += -I../$(PWGPPpid_INCLUDE)
23endif
24
f4545ac7 25# only if no par file was loaded before
26#ifeq ($(ALICEINC),-I.)
27 ifneq ($(ALICE_ROOT),)
28 ALICEINC += -I$(ALICE_ROOT)/include -I$(ALICE_ROOT)/ITS
29 endif
30#endif
31
32ifneq ($(EINCLUDE),)
33 ALICEINC += $(EINCLUDE:%=-I$(ALICE_ROOT)/%)
34endif
35
36
37CXXFLAGS += $(ALICEINC) -g
38
39SRCS += G__$(PACKAGE).cxx
40OBJS = $(SRCS:.cxx=.o)
41
42lib$(PACKAGE).so: $(OBJS)
43 @echo "Linking" $@ ...
44 @/bin/rm -f $@
45 $(LD) $(SOFLAGS) $(LDFLAGS) $^ $(OutPutOpt) $@ $(EXPLLINKLIBS)
46 @chmod a+x $@
47 @echo "done"
48
49%.o: %.cxx %.h
50 $(CXX) $(PACKCXXFLAGS) -c $< -o $@
51
52clean:
53 @rm -f $(OBJS) *.so G__$(PACKAGE).*
54
55G__$(PACKAGE).cxx G__$(PACKAGE).h: $(HDRS) $(DHDR)
56 @echo "Generating dictionaries ..." $(ALICEINC)
57 rootcint -f $@ -c $(CINTFLAGS) $(ALICEINC) $^
58