-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathMakefile
More file actions
33 lines (26 loc) · 862 Bytes
/
Makefile
File metadata and controls
33 lines (26 loc) · 862 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
33
CXX = g++
CPPFLAGS = -std=c++14 -MMD -MP -g
PROTOBUF = `pkg-config --cflags protobuf`
PROTOBUFL = `pkg-config --libs protobuf`
ROOTCONFIG = `root-config --cflags --glibs`
BLASDIR = /Users/sitongan/rootdev/BLAS-3.8.0
BLASFLAG = -L${BLASDIR} -lblas
SRC = ${wildcard [!test]*.cxx}
SOFIEOBEJCT =
SOFIEHEADER =
SOFIE = $(SOFIEOBEJCT) $(SOFIEHEADER)
prototype: ${SRC:%.cxx=%.o}
${CXX} -o prototype $^ ${CPPFLAGS} $(ROOTCONFIG) $(PROTOBUFL)
testinfer: test.cpp
${CXX} -o testinfer test.cpp -std=c++14 -g $(BLASFLAG) -O3 -I ./eigen/
validate: test_old.cpp
${CXX} -o testinfer test_old.cpp -std=c++14 -g $(BLASFLAG) -O3 -I ./eigen/
testRDF: testRDF.cxx
${CXX} -o testRDF testRDF.cxx -std=c++14 $(ROOTCONFIG) $(BLASFLAG) -g
-include $(SRC:%.cxx=%.d)
%.o: %.cxx
${CXX} ${CPPFLAGS} -c $< `root-config --cflags` $(PROTOBUF)
.phony: clean
clean:
-rm *.d
-rm *.o