1 # Top level Makefile.inc for ALICE's AMORE
2 # Author: Filimon Roukoutakis
4 include $(shell root-config --prefix)/test/Makefile.arch
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))
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
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
29 CPPFLAGS := $(ROOT_CPPFLAGS) $(DATE_CPPFLAGS) $(DATE_RCPROXYCFLAGS) $(ALIROOT_CPPFLAGS) $(MYSQL_CPPFLAGS) $(AMORE_CPPFLAGS)
31 CFLAGS := $(ROOT_CFLAGS) $(DATE_CFLAGS) $(ALIROOT_CFLAGS) $(MYSQL_CFLAGS) $(AMORE_CFLAGS)
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)
41 #%.$(ObjSuf):%.$(SrcSuf)
42 # $(CXX) $(CPPFLAGS) $(CXXFLAGS) $<
45 # $(CC) $(CPPFLAGS) $(CFLAGS) $<
47 # $(LD) $(LDFLAGS) $(LIBS) $^
49 TOP_DIR = ${AMORE_SITE}
50 SRC_DIR = $(TOP_DIR)/src
51 BIN_DIR = $(TOP_DIR)/bin
52 LIB_DIR = $(TOP_DIR)/lib
54 AllSources := $(wildcard *.$(SrcSuf))
56 AllHeaders := $(wildcard *.$(HdrSuf))
57 AllObjects := $(patsubst %.$(SrcSuf),%.$(ObjSuf),$(wildcard *.$(SrcSuf)))