2 files changed +35
-35
lines changed Original file line number Diff line number Diff line change
1
+ # Makefile
2
+ #
3
+ # Author: Luigi Pertoldi - pertoldi@pd.infn.it
4
+ # Created: Mon 6 May 2019
5
+
6
+ FLAGS = -Wall -Wextra -pedantic -Wshadow -std=c++11 -g -O3 -I build \
7
+ $$(bat-config --cflags )
8
+ LIBS = $$(bat-config --libs )
9
+ OBJ = build/HMixFit.o build/hmixfit.o build/json.gch build/utils.gch
10
+
11
+ all : dirs | build/hmixfit $(OBJ )
12
+
13
+ build/hmixfit : $(OBJ )
14
+ $(CXX ) $(FLAGS ) -o $@ build/HMixFit.o build/hmixfit.o $(LIBS )
15
+
16
+ build/hmixfit.o : src/hmixfit.cc src/json.hpp
17
+ $(CXX ) $(FLAGS ) -c -o $@ $< $(LIBS )
18
+
19
+ build/HMixFit.o : src/HMixFit.cc src/HMixFit.hh src/utils.hpp src/json.hpp
20
+ $(CXX ) $(FLAGS ) -c -o $@ $< $(LIBS )
21
+
22
+ build/% .gch : src/% .hpp
23
+ $(CXX ) $(FLAGS ) -c -o $@ $^ $(LIBS )
24
+
25
+ dirs :
26
+ mkdir -p build
27
+
28
+ .PHONY : install clean dirs
29
+
30
+ clean :
31
+ -rm -rf build
32
+
33
+ install : dirs | build/hmixfit
34
+ install -d $(PREFIX ) /bin
35
+ install $< $(PREFIX ) /bin
Load Diff This file was deleted.
0 commit comments