aboutsummaryrefslogtreecommitdiff
path: root/adaptive/src/makefile_mingw
blob: 4f9d617d16567f154e174fb6187934d37ac7c189 (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
45
46
current: all

.SUFFIXES: .dll

PDPATH = "c:/pd"

INCLUDE = -I. -I$(PDPATH)/src

LDFLAGS = --export-dynamic -shared

#select either the DBG and OPT compiler flags below:

CFLAGS = -DPD -DNT -W -Wno-unused -mms-bitfields\
	-Wno-parentheses -Wno-switch -O6 -funroll-loops -fomit-frame-pointer

SYSTEM = $(shell uname -m)

# the sources:

SRC = adaptive.c lms~.c lms2~.c nlms~.c nlms2~.c nlms3~.c

TARGET = adaptive.dll


OBJ = $(SRC:.c=.o)


#  ------------------ targets ------------------------------------


clean:
	rm -f *.a *.def *.o *.dll

all: $(OBJ)
	@echo :: $(OBJ)
	g++ $(LDFLAGS) -o $(TARGET) $(OBJ) $(PDPATH)/bin/pd.dll -libc
	strip --strip-unneeded $(TARGET)
	chmod 755 $(TARGET)

$(OBJ) : %.o : %.c
	touch $*.c
	gcc $(CFLAGS) $(INCLUDE) -c -o $*.o $*.c

install:
	cp $(TARGET) $(PDPATH)/externs
	cp ../doc/help-*.pd $(PDPATH)/doc/5.reference