aboutsummaryrefslogtreecommitdiff
path: root/pix_recNN/Makefile
blob: ab880e8ee7d181879bee419f24b431829a97d237 (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
PD-PATH=/usr/lib/pd
PD-SCR=/usr/include

# location of the GEM sources and Gem.pd_linux:
GEM-SCR=/home/Georg/pd-cvs/gem/Gem/src
GEM-LIB=$(PD-PATH)/extra/Gem.pd_linux


CC = g++
LD = g++
INCLUDE=-I$(PD-SCR) -I$(GEM-SCR) -I./src
LIB=-lc -lm -L$(GEM-LIB)
CC_FLAGS = -c -Wall -g -g -O2 -mmmx -fno-builtin -O3 -funroll-loops -ffast-math
LD_FLAGS = --export-dynamic -shared -o


TARGET=pix_recNN.pd_linux
OBJ=RecurrentNeuron.o Neuron.o pix_recNN.o
#--------------------------------------------------------

all: pd_linux

pd_linux: $(TARGET)

$(TARGET): $(OBJ)
	$(LD) $(LD_FLAGS) $(TARGET) $(OBJ) $(LIB)
	strip --strip-unneeded $(TARGET)
	chmod 755 $(TARGET)

pix_recNN.o: RecurrentNeuron.o pix_recNN.h pix_recNN.cpp NNet.h NNException.h
	$(CC) $(CC_FLAGS) $(INCLUDE) pix_recNN.cpp


RecurrentNeuron.o: RecurrentNeuron.cpp RecurrentNeuron.h Neuron.o NNActivation.h

Neuron.o: Neuron.cpp Neuron.h NNActivation.h

#--------------------------------------------------------

clean:
	rm -f $(OBJ) $(TARGET)
	

install:
	cp -f $(TARGET) $(PD-PATH)/externs
	cp -f *.pd $(PD-PATH)/doc/5.reference