forked from jealie/BCBG-model
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
47 lines (34 loc) · 1.03 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
CC = g++
CFLAGS = -O3
#CFLAGS = -g
LDFLAGS =
all: single_run clean
single_run: single_run.o bcbg2.o run_sim.o cells.o helper_fct.o multichannelsnucleus.o singlechannelnucleus.o
@echo " [BUILD] $@"
$(CC) -o $@ $^ $(LDFLAGS)
single_run.o: single_run.cpp helper_fct.hpp constants.hpp bcbg2.hpp run_sim.hpp
@echo " [BUILD] $@"
$(CC) -c $(CFLAGS) $<
bcbg2.o: bcbg2.cpp constants.hpp bcbg2.hpp
@echo " [BUILD] $@"
$(CC) -c $(CFLAGS) $<
run_sim.o: run_sim.cpp constants.hpp bcbg2.hpp run_sim.hpp
@echo " [BUILD] $@"
$(CC) -c $(CFLAGS) $<
cells.o: cells.cpp constants.hpp bcbg2.hpp
@echo " [BUILD] $@"
$(CC) -c $(CFLAGS) $<
helper_ftc.o: run_sim.o helper_ftc.cpp helper_fct.hpp constants.hpp bcbg2.hpp run_sim.hpp
@echo " [BUILD] $@"
$(CC) -c $(CFLAGS) $<
singlechannelnucleus.o: singlechannelnucleus.cpp bcbg2.hpp
@echo " [BUILD] $@"
$(CC) -c $(CFLAGS) $<
multichannelsnucleus.o: multichannelsnucleus.cpp bcbg2.hpp
@echo " [BUILD] $@"
$(CC) -c $(CFLAGS) $<
.PHONY: clean cleanest
clean:
rm *.o
cleanest: clean
rm bcbg2