-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
executable file
·51 lines (37 loc) · 931 Bytes
/
Makefile
File metadata and controls
executable file
·51 lines (37 loc) · 931 Bytes
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
CXX = $(shell root-config --cxx)
LD = $(shell root-config --ld)
INC = $(shell pwd)ls
CPPFLAGS := $(shell root-config --cflags) -I$(INC)/include
LDFLAGS := $(shell root-config --glibs) $(STDLIBDIR) -lMathMore
CPPFLAGS += -g
TARGET1 = multipleDRS4
SRC1 = multipleDRS4.cc
OBJ1 = $(SRC1:.cc=.o)
TARGET2 = singleDRS4
SRC2 = singleDRS4.cc
OBJ2 = $(SRC2:.cc=.o)
TARGET3 = dat2rootCP
SRC3 = dat2root-13.cc src/Aux.cc
OBJ3 = $(SRC:.cc=.o)
all : $(TARGET1) $(TARGET2) $(TARGET3)
$(TARGET1) : $(OBJ1)
$(LD) $(CPPFLAGS) -o $(TARGET1) $(OBJ1) $(LDFLAGS)
@echo $@
@echo $<
@echo $^
$(TARGET2) : $(OBJ2)
$(LD) $(CPPFLAGS) -o $(TARGET2) $(OBJ2) $(LDFLAGS)
@echo $@
@echo $<
@echo $^
$(TARGET1) : $(OBJ3)
$(LD) $(CPPFLAGS) -o $(TARGET3) $(OBJ3) $(LDFLAGS)
@echo $@
@echo $<
@echo $^
%.o : %.cc
$(CXX) $(CPPFLAGS) -o $@ -c $<
@echo $@
@echo $<
clean :
rm -f *.o src/*.o $(TARGET1) $(TARGET2) $(TARGET3) $(TARGET4) *~