aboutsummaryrefslogtreecommitdiff
path: root/tracker/makefile
blob: 101484548c710a5c104cc9b5ae0348f787e958cd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
all: tracker.pd_linux
tracker.pd_linux: tracker.c tracker.h tracker.tk2c

STRIP = strip
CFLAGS = -DPD -DUNIX -O2 -funroll-loops -fomit-frame-pointer \
    -Wall -W -Wno-shadow -Wstrict-prototypes \
    -Wno-unused -Wno-parentheses -Wno-switch \
	-I/usr/include -I../pd/src

.SUFFIXES: .pd_linux .tk .tk2c

.tk.tk2c:
	./tk2c.bash < $*.tk > $*.tk2c
.c.pd_linux:
	$(CC) $(CFLAGS) -o $*.o -c $*.c
	$(LD) -export_dynamic  -shared -o $*.pd_linux $*.o -lc -lm
	$(STRIP) --strip-unneeded $*.pd_linux
clean:
	$(RM) -f *.o *.pd_* so_locations *.tk2c