forked from pitzl/tele-scope
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
36 lines (27 loc) · 869 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
# user:
# set path to eudaq and GBL:
# export EUDAQ=/home/YOURID/eudaq
# export GBL=/home/YOURID/GBL/V01-17-00/cpp
ROOTCFLAGS = $(shell $(ROOTSYS)/bin/root-config --cflags)
ROOTLIBS = $(shell $(ROOTSYS)/bin/root-config --libs)
ROOTGLIBS = $(shell $(ROOTSYS)/bin/root-config --glibs)
# -g for gdb
# -pg for gprof
# -std=c++11
CXXFLAGS = -std=c++11 -O2 -Wall -Wextra $(ROOTCFLAGS) -I$(EUDAQ)/main/include
scope: scope.cc
g++ $(CXXFLAGS) -o scope scope.cc \
$(ROOTLIBS) -L$(EUDAQ)/lib -lEUDAQ
@echo 'done: scope'
tele: tele.cc
g++ $(CXXFLAGS) -o tele tele.cc \
$(ROOTLIBS) -L$(EUDAQ)/lib -lEUDAQ
@echo 'done: tele'
quad: quad.cc
g++ $(CXXFLAGS) -I$(GBL)/include -o quad quad.cc \
-L$(GBL)/lib -lGBL $(ROOTLIBS) -L$(EUDAQ)/lib -lEUDAQ
@echo 'done: quad'
evd: evd.cc
g++ $(CXXFLAGS) -o evd evd.cc \
$(ROOTGLIBS) -L$(EUDAQ)/lib -lEUDAQ
@echo 'done: evd'