forked from CMS-MTD/TimingDAQ
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
28 lines (22 loc) · 836 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
CXX = $(shell root-config --cxx)
LD = $(shell root-config --ld)
INC = $(shell pwd)
LDFLAGS := $(shell root-config --glibs)
CPPFLAGS := $(shell root-config --cflags) -I$(INC)/include
#CPPFLAGS += -g -std=c++14
CPPFLAGS += -g
#CPPFLAGS += -g -fsanitize=address -Wall -Wextra -Wno-sign-compare
ifeq ($(shell uname), Darwin)
CPPFLAGS += -rpath $(shell root-config --prefix)/lib
endif
TARGETS = VMEDat2Root DRSDat2Root DRSclDat2Root NetScopeDat2Root NetScopeStandaloneDat2Root ETL_ASIC_Dat2Root DT5742Dat2Root
SRC = src/Configuration.cc src/Interpolator.cc src/DatAnalyzer.cc
all : $(TARGETS)
$(TARGETS) : %Dat2Root : $(SRC:.cc=.o) src/%Analyzer.o app/%Dat2Root.cc
@echo Building $@
$(LD) $(CPPFLAGS) -o $@ $^ $(LDFLAGS)
%.o : %.cc
@echo $@
$(CXX) $(CPPFLAGS) -o $@ -c $<
clean :
rm -rf *.o app/*.o src/*.o $(TARGETS) *~ *.dSYM