blob: e6d3c70659a9d120e09e52ecb1cfbd1de189bc31 (
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 -DWINDOWS -Wall -W -Wshadow -Wstrict-prototypes \
-Wno-unused -Wno-parentheses -Wno-switch
INCLUDE = -I. -I.. -I../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`
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
|