summaryrefslogtreecommitdiff
path: root/code/trainer/Makefile
blob: 1fc48d18c4cde885d60e37f25242254403ba0db8 (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
# 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
contact: Jan Huwald // Impressum