-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
53 lines (39 loc) · 1.5 KB
/
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
#
# Makefile -- FemtoFitter
#
BUILD_DIR ?= build
.PHONY: all config clean cleanup cleanall
all: $(BUILD_DIR)/Makefile
+make -s -C $(BUILD_DIR)
config: $(BUILD_DIR)/Makefile
ccmake $(BUILD_DIR)
debug:
cmake -S femtofitter -B $(BUILD_DIR) -DCMAKE_BUILD_TYPE=Debug
+make -s -C $(BUILD_DIR)
clean:
+make -s -C $(BUILD_DIR) clean
cleanup: clean
rm -rf $(BUILD_DIR)/CMakeCache.txt $(BUILD_DIR)/CMakeFiles
cleanall:
rm -r $(BUILD_DIR)/*
help:
@echo
@echo " Meta-Make FemtoFitter package"
@echo
@echo "Usage:"
@echo " make all # build with standard settings"
@echo " make config # use ccmake to edit build configuration "
@echo " make clean # clean output"
@echo
@echo 'Example Environment Variables:'
@echo ' BUILD_DIR=$$HOME/.build/femtofitter make # build in specific directory'
@echo ' CPATH=/opt/root/include:/other/path make # add extra include directories'
@echo ' ROOTSYS=/opt/root/include make # set ROOT location'
@echo
$(BUILD_DIR)/Makefile: femtofitter/CMakeLists.txt
cmake -S femtofitter -B $(BUILD_DIR) -DCMAKE_BUILD_TYPE=Release
docs-html:
+make -C docs html
bwalk: macros/BayesianWalk.cpp
#g++ -I. -Ifemtofitter/src $(shell root-config --cflags) -O3 -funroll-loops -ffast-math -march=native -fopenmp -o $@ $< build/libFemtoFitter.so $(shell root-config --libs) -lMinuit
g++ -I. -Ifemtofitter/src $(shell root-config --cflags) -O3 -ffast-math -march=native -fopenmp -o $@ $< build/libFemtoFitter.so -L${ROOTSYS}/lib -lMinuit -lCore -lHist -lRIO -lGpad