blob: d16cb2842e4fae5042eb37ed0a3b93f7245e1f59 (
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
|
LIBNAME = iemmatrix
EXT = dll
PDPATH=/tmp/pd
CC = i586-mingw32msvc-gcc
LD = i586-mingw32msvc-ld
STRIP = i586-mingw32msvc-strip
DEFS = -DPD
IFLAGS = -I. -I$(PDPATH)/src
AFLAGS =
LFLAGS = -export_dynamic -shared
WFLAGS =
.SUFFIXES: .$(EXT)
CFLAGS = -g -O2 $(DEFS) $(IFLAGS) $(WFLAGS) -mms-bitfields
LIBS = -L$(PDPATH)/bin/ -lpd -lcrtdll -lm
include Make.source
TARGETS = $(SOURCES:.c=.o)
all: $(LIBNAME)
cp $(LIBNAME).$(EXT) ..
$(LIBNAME): $(TARGETS)
$(LD) $(LFLAGS) *.o $(LIBS) -o $(LIBNAME).$(EXT)
$(STRIP) --strip-unneeded $(LIBNAME).$(EXT)
clean:
-rm -f *.$(EXT) *.o
cleaner: clean
-rm -f *~ _* config.*
source:
echo "SOURCES = \\"> Make.source
echo `ls mtx_*.c $(LIBNAME).c` >> Make.source
echo >> Make.source
|