diff options
author | Jan Huwald <jh@sotun.de> | 2012-05-07 19:53:27 (GMT) |
---|---|---|
committer | Jan Huwald <jh@sotun.de> | 2012-05-07 19:53:27 (GMT) |
commit | 00b209240138660db1ded3ef3870023964ce6e4e (patch) | |
tree | 8ffaec780b060bdc478929aa714b8af2ee760671 /code/trainer/Makefile |
Diffstat (limited to 'code/trainer/Makefile')
-rw-r--r-- | code/trainer/Makefile | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/code/trainer/Makefile b/code/trainer/Makefile new file mode 100644 index 0000000..1fc48d1 --- /dev/null +++ b/code/trainer/Makefile @@ -0,0 +1,29 @@ +# HINT: the paradigm is not to create object files to allow all otpimizations +# take place even though the code is scattered across many files + +CC=g++ +CCFLAGS=-O3 -ggdb +LDFLAGS=-lpthread -lm +INCLUDE=-I/home/huwald/src/boost -I../core + +BASE_SRC_FILES=../core/model_switch.h ../core/fileutils.h ../core/fileutils.cpp + +.PHONY: all clean wordcount + +all: reinforce_synapse check_stdp_freq-dep + +clean: + rm -f *~ trainer massif.*.* reinforce_synapse-* check_stdp_freq-dep-* + +.PHONY: reinforce_synapse +reinforce_synapse: reinforce_synapse-dalif +reinforce_synapse-%: reinforce_synapse.cpp reinforce_synapse.h ../core/models/%.h $(BASE_SRC_FILES) + $(CC) -o $@ $(CCFLAGS) reinforce_synapse.cpp $(INCLUDE) $(LDFLAGS) -DMODEL_`echo $* | tr '[:lower:]' '[:upper:]'` + +.PHONY: check_stdp_freq-dep +check_stdp_freq-dep: check_stdp_freq-dep-dalif +check_stdp_freq-dep-%: check_stdp_freq-dep.cpp check_stdp_freq-dep.h ../core/models/%.h $(BASE_SRC_FILES) + $(CC) -o $@ $(CCFLAGS) check_stdp_freq-dep.cpp $(INCLUDE) $(LDFLAGS) -DMODEL_`echo $* | tr '[:lower:]' '[:upper:]'` + +wordcount: + wc *h *cpp Makefile |