aboutsummaryrefslogtreecommitdiff
path: root/makefile
blob: 1ecb81d8ef59b677ea0894ab477148656abad6ad (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

current: linux

.SUFFIXES: .pd_linux
INSTALL_PREFIX = /usr
PD_DIR = $(INSTALL_PREFIX)/lib/pd

VERSION = \"$(shell cat VERSION)\"
#LIBOSC = 	../OSC/perl/libOSC/libOSC.a
LIBOSC = 

TARGETS = binshift ascwave ixprint bangfilt bangfilt2 \
	counter reson prepend microtime ascseq \
	randomix ENV proc mean sigdelta cx

# mean
# serialize 

LINUXOBJECTS = $(TARGETS:%=%.o)

LINCLUDE = -I. -I../pd-0.35-test24/src
# possible defines
# -DPRINTADDRS
DEBUG = -DDEBUG -ggdb
#DEBUG =
CFLAGS =  -O2 -DPD -DVERSION=$(VERSION) $(DEBUG) -fPIC  $(LINCLUDE) 
LIBS = -lc -lm 
linux: $(LINUXOBJECTS)
	ld -export_dynamic  -shared -o cxc.pd_linux *.o $(LIBS) ${LIBOSC}
	strip --strip-unneeded cxc.pd_linux

.c.pd_linux:
	cc $(CFLAGS) -c $*.c ${LIBOSC}

clean:
	rm *.pd_linux *.o *~

install:
	install -d $(PD_DIR)/doc/5.reference/cxc
	install -m664  reference/*.pd $(PD_DIR)/doc/5.reference/cxc
	install -m664 cxc.pd_linux $(PD_DIR)/externs
uninstall:
	rm -rf $(PD_DIR)/doc/5.reference/cxc
	rm -rf $(PD_DIR)/externs/cxc.pd_linux