-
Notifications
You must be signed in to change notification settings - Fork 4
/
Makefile
42 lines (30 loc) · 849 Bytes
/
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
CXX = $(shell root-config --cxx)
LD = $(shell root-config --ld)
INC = $(shell pwd)
Repo = $(shell git rev-parse --show-toplevel)
CPPFLAGS := $(shell root-config --cflags)
LDFLAGS := $(shell root-config --glibs) $(STDLIBDIR) -lRooFit -lRooFitCore
CPPFLAGS += -g -std=c++11
TARGET = Dat2RootV5
TARGET1 = ConvertDat2Root_AndTimingAnalysis
SRC = ConvertDat2Root_v5.cc
SRC1 = ConvertDat2Root_AndTimingAnalysis.cc
OBJ = $(SRC:.cc=.o)
OBJ1 = $(SRC1:.cc=.o)
all : $(TARGET) $(TARGET1)
$(TARGET) : $(OBJ)
$(LD) $(CPPFLAGS) -o $(TARGET) $(OBJ) $(LDFLAGS)
@echo $@
@echo $<
@echo $^
$(TARGET1) : $(OBJ1)
$(LD) $(CPPFLAGS) -o $(TARGET1) $(OBJ1) $(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)