-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile
54 lines (43 loc) · 1.2 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
54
CXX = $(shell root-config --cxx)
LD = $(shell root-config --ld)
INC = $(shell pwd)
Repo = $(shell git rev-parse --show-toplevel)
Aux = $(Repo)/Aux
HggRazor = $(Repo)/HggRazor
CommonTools = $(HggRazor)/CommonTools
CPPFLAGS := $(shell root-config --cflags) -I$(INC)/include -I$(CommonTools)/include -I$(Aux)/include
#LDFLAGS := $(shell root-config --glibs) $(STDLIBDIR) -lRooFit -lRooFitCore
LDFLAGS := $(shell root-config --glibs) $(STDLIBDIR)
CPPFLAGS += -g -std=c++11
#CPPFLAGS += -g
TARGET = dat2rootCP
TARGET1 = makeAmp
TARGET2 = makeSigma
SRC = dat2root.cc src/Aux.cc
SRC1 = src/makeAmplitude.cc
SRC2 = analysis/SiliconPad/makeSigmaT.cc
OBJ = $(SRC:.cc=.o)
OBJ1 = $(SRC1:.cc=.o)
OBJ2 = $(SRC2:.cc=.o)
all : $(TARGET) $(TARGET1) $(TARGET2)
$(TARGET) : $(OBJ)
$(LD) $(CPPFLAGS) -o $(TARGET) $(OBJ) $(LDFLAGS)
@echo $@
@echo $<
@echo $^
$(TARGET1) : $(OBJ1)
$(LD) $(CPPFLAGS) -o $(TARGET1) $(OBJ1) $(LDFLAGS)
@echo $@
@echo $<
@echo $^
$(TARGET2) : $(OBJ2)
$(LD) $(CPPFLAGS) -o $(TARGET2) $(OBJ2) $(LDFLAGS)
@echo $@
@echo $<
@echo $^
%.o : %.cc
$(CXX) $(CPPFLAGS) -o $@ -c $<
@echo $@
@echo $<
clean :
rm -f *.o app/*.o src/*.o $(CommonTools)/src/*.o $(Aux)/src/*.o $(TARGET) $(TARGET1) $(TARGET2) *~