adding Mahmut's task
[u/mrichter/AliRoot.git] / PWGDQ / 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 ($(PWGDQbase_INCLUDE),)
18 ALICEINC += -I../$(PWGDQbase_INCLUDE)
19endif
20
21ifneq ($(PWGDQdielectron_INCLUDE),)
22 ALICEINC += -I../$(PWGDQdielectron_INCLUDE)
23endif
24
25# only if no par file was loaded before
26#ifeq ($(ALICEINC),-I.)
27 ifneq ($(ALICE_ROOT),)
28 ALICEINC += -I$(ALICE_ROOT)/include
29 endif
30#endif
31
32
33
34
35CXXFLAGS += $(ALICEINC) -g
36
37SRCS += G__$(PACKAGE).cxx
38OBJS = $(SRCS:.cxx=.o)
39
40lib$(PACKAGE).so: $(OBJS)
41 @echo "Linking" $@ ...
42 @/bin/rm -f $@
43 $(LD) $(SOFLAGS) $(LDFLAGS) $^ $(OutPutOpt) $@ $(EXPLLINKLIBS)
44 @chmod a+x $@
45 @echo "done"
46
47%.o: %.cxx %.h
48 $(CXX) $(PACKCXXFLAGS) -c $< -o $@
49
50clean:
51 @rm -f $(OBJS) *.so G__$(PACKAGE).*
52
53G__$(PACKAGE).cxx G__$(PACKAGE).h: $(HDRS) $(DHDR)
54 @echo "Generating dictionaries ..." $(ALICEINC)
55 rootcint -f $@ -c $(CINTFLAGS) $(ALICEINC) $^
56