-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMakefile
More file actions
32 lines (25 loc) · 746 Bytes
/
Makefile
File metadata and controls
32 lines (25 loc) · 746 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
CXX = $(shell root-config --cxx)
LD = $(shell root-config --ld)
INC = $(shell pwd)
CPPFLAGS := $(shell root-config --cflags) -I$(INC)/include
LDFLAGS := $(shell root-config --glibs) $(STDLIBDIR) -lRooFit -lRooFitCore
CPPFLAGS += -g -std=c++14 -I$(INC)/include
TARGET = analyzeBTL
TARGET1 = analyzeETL
SRC = app/analyzeBTL.cc src/pulse.cc
SRC1 = app/analyzeETL.cc src/pulse.cc
OBJ = $(SRC:.cc=.o)
OBJ1 = $(SRC1:.cc=.o)
TARGETS = $(TARGET) $(TARGET1)
all : $(TARGETS)
$(TARGET) : $(OBJ)
@echo $@
$(LD) $(CPPFLAGS) -o $(TARGET) $(OBJ) $(LDFLAGS)
$(TARGET1) : $(OBJ1)
@echo $@
$(LD) $(CPPFLAGS) -o $(TARGET1) $(OBJ1) $(LDFLAGS)
%.o : %.cc
@echo $@
$(CXX) $(CPPFLAGS) -o $@ -c $<
clean :
rm -rf *.o app/*.o src/*.o $(TARGET) *~ *.dSYM