blob: 48484e1a60f6ad0bd9d150de2d82f910a27e9353 (
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
|
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.
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_linNN.pd_linux
OBJ=LinNeuralNet.o pix_linNN.o
#--------------------------------------------------------
all: pd_linux
pd_linux: $(TARGET)
$(TARGET): $(OBJ)
$(LD) $(LD_FLAGS) $(TARGET) $(OBJ) $(LIB)
strip --strip-unneeded $(TARGET)
chmod 755 $(TARGET)
pix_linNN.o: LinNeuralNet.o pix_linNN.h pix_linNN.cpp
$(CC) $(CC_FLAGS) $(INCLUDE) pix_linNN.cpp
LinNeuralNet.o: LinNeuralNet.cpp LinNeuralNet.h
$(CC) $(CC_FLAGS) $(INCLUDE) LinNeuralNet.cpp
#--------------------------------------------------------
clean:
rm -f $(OBJ) $(TARGET)
install:
cp -f $(TARGET) $(PD-PATH)/externs
cp -f help/*.pd $(PD-PATH)/doc/5.reference
|