aboutsummaryrefslogtreecommitdiff
path: root/src/Makefile.nt
blob: 8e2fa6fc13c1ebef943ff982e35a67a43f062c82 (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
47
48
49
50
51
52
53
# ----------------------- NT -----------------------
LIBNAME    =zexy


PREFIX     =C:\Programme\pd



current: $(LIBNAME)



EXT = dll

CC = cl
LD = link


DEFS =  /D__WIN32__ /DPD
IFLAGS = /I. /I$(PREFIX)\src

AFLAGS = 
LFLAGS = /dll /export:$(LIBNAME)_setup
WFLAGS = /W3 /WX /nologo

.SUFFIXES: .$(EXT)

PDCFLAGS = /O2 $(DEFS) $(IFLAGS) $(WFLAGS) $(LFLAGS) $(AFLAGS)
CFLAGS = /O2 $(DEFS) $(IFLAGS) $(WFLAGS)

LIBS = libc.lib oldnames.lib kernel32.lib $(PREFIX)\bin\pd.lib


include Make.source

## for LinePrinter-support: (if you don't want it, comment it out)
SOURCES += winNT_portio.c
DEFS += /DZ_WANT_LPT
LIBS += 


TARGETS = $(SOURCES:.c=.o)

$(LIBNAME): $(TARGETS)
	$(LD) $(LFLAGS) /out:..\$(LIBNAME).$(EXT) *.obj $(LIBS)


clean:
	-del -f *.$(EXT) *.obj ..\$(LIBNAME).lib ..\$(LIBNAME).exp *.lib *.exp

cleaner: clean
	-del -f *~ _* config.* ..\$(LIBNAME).$(EXT)