-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathGNUmakefile
More file actions
41 lines (26 loc) · 1.05 KB
/
GNUmakefile
File metadata and controls
41 lines (26 loc) · 1.05 KB
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
37
38
39
40
41
OBJS = readFrameRootMain.C DictOutput.cxx
EXE = readFrameRootMain
ROOTCFLAGS = $(shell root-config --cflags)
ROOTLIBS = $(shell root-config --libs)
ROOTGLIBS = $(shell root-config --glibs)
DICTHEADERS = edm4hep/MCParticleData.h edm4hep/SimCalorimeterHitData.h edm4hep/CaloHitContributionData.h
INCFLAGS = -I${ROOTSYS}/include -I${ROOTSYS}/include/root/
LDFLAGS = -L${ROOTSYS}/lib -L${ROOTSYS}/lib/root -lpodio -ledm4hep -ledm4hepDict -ledm4eic -ledm4eicDict -lpodioRootIO -lpodioDict -lpodioRootIODict -lfmt
# -shared -fPIC
#rootcling -f DictOutput.cxx -c edm4hep/MCParticleData.h edm4hep/SimCalorimeterHitData.h edm4hep/CaloHitContributionData.h LinkDef.h
#-L${PODIO}/lib
#CXX = g++ -m32 -std=c++20
CXX = g++ -std=c++20
FLAGS = -Wall -g -fPIC $(INCFLAGS) $(LDFLAGS)
COMPILE = $(CXX) $(FLAGS) -c
all: $(EXE)
#$(EXE): $(OBJS)
# $(CXX) -o $(EXE) $(OBJS) $(ROOTFLAGS) $(ROOTLIBS)
$(EXE): $(OBJS)
$(CXX) -o $(EXE) $(OBJS) $(ROOTFLAGS) $(ROOTLIBS) $(FLAGS)
DictOutput.cxx :
rootcint -f $@ -c $(DICTHEADERS)
#%.o: %.C
$(COMPILE) $<
clean:
rm $(EXE)