blob: 16571540d0bf2b0758ce631ccd58f5e5181bdc39 (
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
|
# Adapt the PDPATH if your pd is not installed in the standard place
PDPATH="$(PROGRAMFILES)/pd"
EXTERNALS = $(shell ls *.c)
all: $(EXTERNALS:.c=.dll)
.SUFFIXES: .dll
DEFINES = -DPD -DNT
CFLAGS = -Wall -W -Wshadow -Wstrict-prototypes \
-Wno-unused -Wno-parentheses -Wno-switch
INCLUDE = -I.. -I. -I$(PDPATH)/src
LIBS = -lwsock32
%.dll: %.c
$(CC) -mms-bitfields $(CFLAGS) $(DEFINES) $(INCLUDE) -o "$*.o" -c "$*.c"
gcc -shared -o "$*.dll" "$*.o" $(PDPATH)/bin/pd.dll $(LIBS)
rm "$*.o"
clean:
-rm *.a *.def *.dll *.o
|