aboutsummaryrefslogtreecommitdiff
path: root/src/Makefile
blob: b9e35ea2cb01c74b0332517c7d8b97c93d112ad8 (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
default: argument getdollarzero breakpoints~ phasorshot~ streamMinMax iterate param crossfade~ path onlyone openHelp folderpanel common~ increment listUnfold arguments breakpoints menubutton

current:
	echo make class

clean: 
	rm -f *.pd_linux *.o

# ----------------------- LINUX i386 -----------------------

#paramL:  param.pd_linux

#patchArguments: patchArguments.pd_linux

.SUFFIXES: .pd_linux

PDPATH = ../../../pd

TOFPATH = ../src

LINUXCFLAGS = -DPD -O2 -funroll-loops -fomit-frame-pointer \
    -Wall -W -Wshadow -Wstrict-prototypes  \
    -Wno-unused -Wno-parentheses -Wno-switch

LINUXINCLUDE =  -I$(PDPATH)/src

#.pd_linux: .c

.c:
	cc $(LINUXCFLAGS) $(LINUXINCLUDE) -I $(TOFPATH) -o $*.o -c $*.c
	ld --export-dynamic  -shared -o $*.pd_linux $*.o -lc -lm
	strip --strip-unneeded $*.pd_linux
	rm $*.o
	mv $*.pd_linux ~/pd-externals/tof