-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathMakefile
More file actions
32 lines (23 loc) · 920 Bytes
/
Copy pathMakefile
File metadata and controls
32 lines (23 loc) · 920 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
CC=g++
CFLAGS=-c -Wall -std=c++11 -O3 -g
INCLUDES=-I. -I./analysis -I$(shell root-config --incdir)
#(root-config --incdir)
LIBDIRS=-L/usr/lib
LIBS=
LDFLAGS=$(shell root-config --glibs)
SRC=TrackModelPhysical.cxx FitLayer.cxx TrackletConstructor.cxx Tracker.cxx reconstruction.cxx Geo.cxx Cuts.cxx analysis/PolynomFit.cxx DataStructures.cxx
SOURCES=$(SRC) analysis/TrackletFitTest.cxx TrackletProlongation.cxx analysis/TrackletConstructorMC.cxx TrackletCleaner.cxx \
TrackletEfficiency.cxx ReadEvent.cxx TrackletConstructorPrim.cxx analysis/TrackletConstructorPrimMC.cxx \
analysis/AnalyseGeometry.cxx
HEADERS=$(SRC:.cxx=.h) util.h
OBJECTS=$(SOURCES:.cxx=.o)
EXECUTABLE=reco
all: $(SOURCES) $(EXECUTABLE)
$(EXECUTABLE): $(OBJECTS)
$(CC) $(LDFLAGS) $(OBJECTS) $(LIBS) -o $@
%.o: %.cxx $(HEADERS) Makefile
$(CC) $(CFLAGS) $(INCLUDES) $< -o $@
clean:
rm reco $(OBJECTS)
cleanall:
rm reco $(OBJECTS) *.~ *.root