blob: df0dd284b4c6ce76ee16496553d27589b5b0b365 (
plain)
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
49
50
51
52
53
54
55
56
57
|
# HINT: the paradigma is not to create object files to allow all otpimizations
# take place even though the code is scattere across many files
CC=g++
CCFLAGS=-O3 -ggdb
LDFLAGS=
INCLUDE=-I/home/huwald/src/boost
# flags to test
# -ffast-math -fno-finite-math-only
# debug options
# normal program:
#DEBUGOPTS=
# verbose status line for every (!) spike:
DEBUGOPTS=-DDEBUG_STATUSLINE
# enale profiling:
#DEBUGOPTS=-pg
# list of files every build depends on
#BASE_SRC_FILES=neuron.cpp simulate.cpp synapse.cpp
BASE_SRC_FILES=\
model_switch.h \
reward.h \
reward.cpp \
event.h \
event.cpp \
interface.h \
interface.cpp \
min.h \
max.h \
neuron.cpp \
neuron.h \
simulate.cpp \
simulate.h \
synapse.cpp \
synapse.h \
tracepoints.h \
tracepoints.cpp \
fileutils.cpp
.PHONY: all clean wordcount
all: sim print_defaults
clean:
rm -f *~ massif.*.* sim print_defaults
sim: $(BASE_SRC_FILES) Makefile
$(CC) -o $@ $(CCFLAGS) simulate.cpp $(INCLUDE) $(LDFLAGS) $(DEBUGOPTS) -DMODEL_`echo $* | tr '[:lower:]' '[:upper:]'`
print_defaults: $(BASE_SRC_FILES) print_defaults.cpp
$(CC) -o $@ $(CCFLAGS) print_defaults.cpp $(LDFLAGS) $(DEBUGOPTS) -DMODEL_`echo $* | tr '[:lower:]' '[:upper:]'`
wordcount:
wc *h *cpp Makefile
|