forked from schwalger/mesopopdyn_gif
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile_fasthazard
48 lines (27 loc) · 1.5 KB
/
Makefile_fasthazard
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
47
48
#Makefile13
#make -Bf Makefile13 all
VERSION=13
CC=gcc
SOURCESpop.c= glm_popdyn_1.1.c
SOURCESneuron.c= glm_netw_sim_0.8.c
SOURCESmaster.c= glm_mastereq_1.1.c
CFLAGS=-lm -lgsl -lgslcblas -lfftw3 -O3 -Wall -Wextra -Wno-unused-result
.PHONY : clean all
#all: glm_popdyn.so glm_netw_sim.so glm_mastereq.so
all: glm_popdyn.so glm_netw_sim.so
glm_popdyn.so : glm_popdyn.o
$(CC) -shared -Wl,-soname,glm_popdyn_$(VERSION).so -o glm_popdyn_$(VERSION).so glm_popdyn_$(VERSION).o $(CFLAGS)
glm_popdyn.o : $(SOURCESpop.c)
$(CC) -c -fPIC $(SOURCESpop.c) -o glm_popdyn_$(VERSION).o $(CFLAGS)
glm_netw_sim.so : glm_netw_sim.o
$(CC) -shared -Wl,-soname,glm_netw_sim_$(VERSION).so -o glm_netw_sim_$(VERSION).so glm_netw_sim_$(VERSION).o $(CFLAGS)
glm_netw_sim.o : $(SOURCESneuron.c)
$(CC) -c -fPIC $(SOURCESneuron.c) -o glm_netw_sim_$(VERSION).o $(CFLAGS)
glm_mastereq.so : glm_mastereq.o
$(CC) -shared -Wl,-soname,glm_mastereq_$(VERSION).so -o glm_mastereq_$(VERSION).so glm_mastereq_$(VERSION).o $(CFLAGS)
glm_mastereq.o : $(SOURCESpop.c)
$(CC) -c -fPIC $(SOURCESmaster.c) -o glm_mastereq_$(VERSION).o $(CFLAGS)
clean :
rm -vf glm_popdyn_$(VERSION).so glm_popdyn_$(VERSION).o glm_popdyn.pyc glm_netw sim_$(VERSION).so glm netw_sim_$(VERSION).o glm_netw_sim.pyc glm_mastereq_$(VERSION).so glm_mastereq_$(VERSION).o glm_mastereq.pyc
svn : glm_netw_sim.so glm_popdyn.so
svn add --force glm_popdyn_$(VERSION).so glm_netw_sim_$(VERSION).so glm_mastereq_$(VERSION).so $(SOURCESneuron.c) $(SOURCESpop.c) $(SOURCESmaster.c)