summaryrefslogtreecommitdiff
path: root/code/core/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'code/core/Makefile')
-rw-r--r--code/core/Makefile57
1 files changed, 57 insertions, 0 deletions
diff --git a/code/core/Makefile b/code/core/Makefile
new file mode 100644
index 0000000..df0dd28
--- /dev/null
+++ b/code/core/Makefile
@@ -0,0 +1,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
contact: Jan Huwald // Impressum