-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathmakefile
More file actions
29 lines (19 loc) · 829 Bytes
/
makefile
File metadata and controls
29 lines (19 loc) · 829 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
# define compile command
CC = g++
CFLAGS = -g -Wno-deprecated
#CFLAGS = -O3 -Wno-deprecated -funroll-loops
LDFLAGS = -L/usr/local/lib
LDFLAGS+=-L/usr/lib
SRC = DoubleColumn.cpp ROC.cpp DataFlow.cpp Module.cpp Event.cpp EventReader.cpp TBM.cpp
OBJ = DoubleColumn.o ROC.o DataFlow.o Module.o Event.o EventReader.o TBM.o
HEAD = DoubleColumn.h CommonDefs.h ROC.h Module.h Statistics.h DataFlow.h Event.h EventReader.h TBM.h
ROOTCFLAGS =$(shell $(ROOTSYS)/bin/root-config --cflags)
ROOTLIBS =$(shell $(ROOTSYS)/bin/root-config --libs)
ROOTGLIBS =$(shell $(ROOTSYS)/bin/root-config --glibs)
CFLAGS += $(ROOTCFLAGS)
all: $(OBJ) makefile
$(CC) $(OBJ) $(LDFLAGS) $(ROOTGLIBS) $(ROOTLIBS) -o DataFlow
%.o: %.cpp %.h
$(CC) $(ROOTCFLAGS) $(CFLAGS) -c -o $@ $<
clean:
rm -f *.o DataFlow *~ Analyse