Skip to content

Commit 8c44cd9

Browse files
committedAug 10, 2023
Move Makefile to root dir
1 parent ce0b3b2 commit 8c44cd9

File tree

2 files changed

+35
-35
lines changed

2 files changed

+35
-35
lines changed
 

‎Makefile

+35
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
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

‎src/Makefile

-35
This file was deleted.

0 commit comments

Comments
 (0)
Failed to load comments.