-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
41 lines (33 loc) · 1.08 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
#Makefile for Liquid N2 fitting
#Simon Michalke, (c) 2016
CC=g++
#CFLAGS=-pthread -std=c++11 -fPIC -c -O3 #optimized
CFLAGS=-pthread -std=c++11 -fPIC -c -Wall -g #debugging
LDFLAGS=-pthread -std=c++11
INCLDIR=
all: main
cleanall: clean
clean:
@touch temp/dummy
rm temp/*
main: temp/main.o temp/vector.o temp/simulation.o temp/fit.o
$(CC) -g -o liquid_n2_fitting \
temp/main.o temp/vector.o temp/simulation.o temp/fit.o \
$(LDFLAGS)
#all source files:
temp/main.o: src/main.cpp src/define.h src/simulation.h src/fit.h temp
$(CC) $(CFLAGS) $(INCLDIR) src/main.cpp -o temp/main.o
temp/vector.o: src/vector.cpp src/vector.h temp
$(CC) $(CFLAGS) $(INCLDIR) src/vector.cpp -o temp/vector.o
temp/simulation.o: src/simulation.cpp src/simulation.h temp
$(CC) $(CFLAGS) $(INCLDIR) src/simulation.cpp -o temp/simulation.o
temp/fit.o: src/fit.cpp src/fit.h temp
$(CC) $(CFLAGS) $(INCLDIR) src/fit.cpp -o temp/fit.o
#header files:
src/define.h:
src/vector.h: src/define.h
src/simulation.h: src/define.h src/vector.h
src/fit.h: src/simulation.h
#@touch temp/dummy
temp:
@mkdir -p temp