blob: 94d3212cd844147c0c9024b01e7cf1dc9bedf368 (
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
|
prefix=../../..
EXTERNALS = $(shell ls ../src)
all: $(EXTERNALS:.c=.dll)
.SUFFIXES: .dll
CFLAGS = -DPD -DMSW -DNT -Wall -W -Wshadow -Wstrict-prototypes \
-Wno-unused -Wno-parentheses -Wno-switch
INCLUDE = -I. -I.. -I../include -I/usr/local/include
%.dll: ../src/%.c
$(CC) $(CFLAGS) $(INCLUDE) -o "$*.o" -c "../src/$*.c"
gcc -shared -o "$*.dll" "$*.o" $(prefix)/bin/pd.dll \
`test -f $*.libs && cat $*.libs` -L/usr/local/lib
clean:
-rm *.a *.def *.dll *.o
install-doc:
@test -d $(prefix)/doc/5.reference || mkdir -p $(prefix)/doc/5.reference
cp -r ../doc/* $(prefix)/doc/5.reference
install: install-doc
@test -d $(prefix)/extra || mkdir -p $(prefix)/extra
install *.dll $(prefix)/extra
|