forked from gipert/hmixfit
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
36 lines (26 loc) · 882 Bytes
/
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
# Makefile
#
# Author: Luigi Pertoldi - [email protected]
# Created: Mon 6 May 2019
FLAGS = -Wall -Wextra -pedantic -Wshadow -std=c++11 -g -O3 -I build \
$$(bat-config --cflags)
LIBS = $$(bat-config --libs)
OBJ = build/HMixFit.o build/hmixfit.o build/json.gch build/utils.gch
all : dirs | build/hmixfit $(OBJ)
build/hmixfit : $(OBJ)
$(CXX) $(FLAGS) -o $@ build/HMixFit.o build/hmixfit.o $(LIBS)
build/hmixfit.o : src/hmixfit.cc src/json.hpp
$(CXX) $(FLAGS) -c -o $@ $< $(LIBS)
build/HMixFit.o : src/HMixFit.cc src/HMixFit.hh src/utils.hpp src/json.hpp
$(CXX) $(FLAGS) -c -o $@ $< $(LIBS)
build/%.gch : src/%.hpp
$(CXX) $(FLAGS) -c -o $@ $^ $(LIBS)
dirs :
mkdir -p build
.PHONY : install clean dirs
clean :
-rm -rf build
install : dirs | build/hmixfit
install -d $(PREFIX)/bin
install build/hmixfit $(PREFIX)/bin
install tools/plotspectra $(PREFIX)/bin