]> git.uio.no Git - u/mrichter/AliRoot.git/blob - TPC/amoreTPC-QA/src/Makefile.inc
0b217353cfbff4b31441cfeea664c37d79284a36
[u/mrichter/AliRoot.git] / TPC / amoreTPC-QA / src / Makefile.inc
1 # Top level Makefile.inc for ALICE's AMORE
2 # Author: Filimon Roukoutakis
3
4 include $(shell root-config --prefix)/test/Makefile.arch
5
6 ROOT_CFLAGS     := $(filter-out -I% -D%, $(shell root-config --cflags))
7 ROOT_CPPFLAGS   := $(filter-out $(ROOT_CFLAGS), $(shell root-config --cflags))
8 ROOT_LDFLAGS    := $(filter-out -l%, $(shell root-config --libs))
9 ROOT_LIBS       := $(filter -l%, $(shell root-config --libs))
10 DATE_CFLAGS     := 
11 DATE_RCPROXYCFLAGS      := $(shell date-config --rcproxycflags)
12 DATE_CPPFLAGS   := $(patsubst -Dlong64="long long",,$(shell date-config --cflags))
13 DATE_LDFLAGS    := $(filter-out -l%,$(shell date-config --monitorlibs))
14 DATE_LIBS       := $(filter -l%, $(shell date-config --monitorlibs))
15 DATE_RCPROXYLIBS        := $(shell date-config --rcproxylibs)
16 #ALIROOT_CPPFLAGS:= -I$(ALICE_ROOT)/include -I${ALICE_ROOT}/RAW
17 #ALIROOT_CFLAGS := 
18 #ALIROOT_LDFLAGS        := -L$(ALICE_ROOT)/lib/tgt_$(ALICE_TARGET)
19 #ALIROOT_LIBS   := -lSTEER -lESD -lRAWDatabase
20 MYSQL_CFLAGS    := $(shell mysql_config --cflags)
21 MYSQL_CPPFLAGS  := $(shell mysql_config --include)
22 MYSQL_LIBS      := $(shell mysql_config --libs)
23 AMORE_CPPFLAGS  := $(shell amore-config --includes)
24 AMORE_CFLAGS    := $(shell amore-config --cflags) #-pg #-pedantic
25 AMORE_LDFLAGS   := $(shell amore-config --ldflags) #-pg
26 AMORE_LIBS      := $(shell amore-config --libs) -lAmoreDA
27
28 CPP             := g++ -E 
29 CPPFLAGS        := $(ROOT_CPPFLAGS) $(DATE_CPPFLAGS) $(DATE_RCPROXYCFLAGS) $(ALIROOT_CPPFLAGS) $(MYSQL_CPPFLAGS) $(AMORE_CPPFLAGS)
30 CC              := gcc -c 
31 CFLAGS          := $(ROOT_CFLAGS) $(DATE_CFLAGS) $(ALIROOT_CFLAGS) $(MYSQL_CFLAGS) $(AMORE_CFLAGS)
32 CXX             := g++ -c 
33 CXXFLAGS        := $(CFLAGS)
34 LD              := g++ 
35 LDFLAGS         := $(SOFLAGS) $(ROOT_LDFLAGS) $(DATE_LDFLAGS) $(ALIROOT_LDFLAGS) $(AMORE_LDFLAGS)
36 LIBS            := $(ROOT_LIBS) $(DATE_LIBS) $(DATE_RCPROXYLIBS) $(ALIROOT_LIBS) $(MYSQL_LIBS) $(AMORE_LIBS)
37
38 HdrSuf = h
39 #SrcSuf = cpp
40
41 #%.$(ObjSuf):%.$(SrcSuf)
42 #       $(CXX) $(CPPFLAGS) $(CXXFLAGS) $< 
43
44 #%.$(ObjSuf):%.c
45 #       $(CC) $(CPPFLAGS) $(CFLAGS) $<
46 #%:%.$(ObjSuf)
47 #       $(LD) $(LDFLAGS) $(LIBS) $^
48
49 TOP_DIR = ${AMORE_SITE}
50 SRC_DIR = $(TOP_DIR)/src
51 BIN_DIR = $(TOP_DIR)/bin
52 LIB_DIR = $(TOP_DIR)/lib
53
54 AllSources := $(wildcard *.$(SrcSuf))
55 HdrSuf      = h
56 AllHeaders := $(wildcard *.$(HdrSuf))
57 AllObjects := $(patsubst %.$(SrcSuf),%.$(ObjSuf),$(wildcard *.$(SrcSuf)))