-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
54 lines (37 loc) · 1.61 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
# $Id: Makefile 8018 2012-10-12 09:32:58Z munger $
USER_SRCS := $(wildcard *.cpp)
EXE := $(patsubst %.cc,%, $(USER_SRCS))
.PHONY: all depend clean
ifdef SHINEOFFLINEROOT
SHINEOFFLINECONFIG := $(SHINEOFFLINEROOT)/bin/shine-offline-config
else
SHINEOFFLINECONFIG := shine-offline-config
endif
CPPFLAGS := $(shell $(SHINEOFFLINECONFIG) --cppflags) -g
CXXFLAGS := $(shell $(SHINEOFFLINECONFIG) --cxxflags) -g
LDFLAGS := $(shell $(SHINEOFFLINECONFIG) --ldflags) -g
CONFIGFILES := $(shell $(SHINEOFFLINECONFIG) --config)
DBFILES := $(shell $(SHINEOFFLINECONFIG) --db-path)
TESTFILE := ../../../doc/SampleEvents/run-009917x054_shoe.root
all: $(EXE) NA61_LRC_2
%: %.in
@echo -n "Generating $@ file..."
@ sed -e 's!@''CONFIGDIR@!$(CONFIGFILES)!g;s!@''SHINEDBDIR@!$(DBFILES)!g' $< >$@
@echo "done"
run: $(EXE)
$(SHELL) runAll.sh $(TESTFILE) $@
clean:
- rm -f run core $(EXE)
# part for LRC 2014-08-20
NA61_LRC_2: NA61_LRC_2.cpp
$(CXX) $(CPPFLAGS) $(LDFLAGS) $(USER_SRCS) -o $@
#NA61_LRC_2: NA61LRC.cpp HandlersList.o
# $(CXX) $(CPPFLAGS) $(LDFLAGS) HandlersList.o NA61LRC.cpp -#o $@
#HandlersList.o: NA61LRCHandlerList.cpp Handlers.o CutList.o #Cut.o NA61LRCHandlerList.h
# $(CXX) $(CPPFLAGS) $(LDFLAGS) CutList.o Handlers.o Cut.o #NA61LRCHandlerList.cpp -c -o $@
#CutList.o: NA61LRCCutList.cpp NA61LRCCutList.h Cut.o
# $(CXX) $(CPPFLAGS) $(LDFLAGS) NA61LRCCutList.cpp Cut.o -#c -o $@
#Cut.o: NA61LRCcuts.cpp NA61LRCcuts.h NA61LRCconst.h
# $(CXX) $(CPPFLAGS) $(LDFLAGS) NA61LRCcuts.cpp -c -o $@
#Handlers.o: NA61LRChandlers.cpp NA61LRChandlers.h #NA61LRCconst.h
# $(CXX) $(CPPFLAGS) $(LDFLAGS) NA61LRChandlers.cpp -c -o $@