blob: 9a3f09b05db24564674e272f776fc8f8e1f3c4d5 (
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
47
48
|
current: all
.SUFFIXES: .pd_linux
# make sure that the "m_pd.h" is somehow available either by putting it into this
# directory, by adding it's path to the INCLUDE-path or by putting it into an
# already included path, e.g. "/usr/include/"
INCLUDE = -I. -I/usr/include/
PDPATH = /usr/lib/pd
LDFLAGS = -export-dynamic -shared
#select either the DBG and OPT compiler flags below:
CFLAGS = -DPD -DUNIX -W -Wno-unused \
-Wno-parentheses -Wno-switch -O6 -funroll-loops -fomit-frame-pointer
SYSTEM = $(shell uname -m)
# the sources:
SRC = adaptive.c lms~.c lms2~.c nlms~.c nlms2~.c nlms3~.c
TARGET = adaptive.pd_linux
OBJ = $(SRC:.c=.o)
# ------------------ targets ------------------------------------
clean:
rm -f *.o *.pd_linux
all: $(OBJ)
@echo :: $(OBJ)
ld $(LDFLAGS) -o $(TARGET) $(OBJ)
strip --strip-unneeded $(TARGET)
$(OBJ) : %.o : %.c
touch $*.c
cc $(CFLAGS) $(INCLUDE) -c -o $*.o $*.c
install:
cp $(TARGET) $(PDPATH)/externs
cp ../doc/help-*.pd $(PDPATH)/doc/5.reference
|