forked from libxmp/libxmp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile.w32
57 lines (51 loc) · 1.47 KB
/
Makefile.w32
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
54
55
56
57
# Makefile for Win32 using Watcom compiler.
#
# wmake -f Makefile.w32
# - builds libxmp.dll and its import lib (libxmp.lib)
#
# wmake -f Makefile.w32 target=static
# - builds the static library xmp_static.lib
#
# To disable module depacker functionality:
# wmake -f Makefile.w32 USE_DEPACKERS=0
#
# To disable ProWizard functionality:
# wmake -f Makefile.w32 USE_PROWIZARD=0
#
# To build the lite version of the library:
# wmake -f Makefile.w32 lite
!ifndef target
target = dll
!endif
USE_PROWIZARD = 1
USE_DEPACKERS = 1
CC = wcc386
SYSTEM = nt
CFLAGS = -zq -bt=nt -bm -fp5 -fpi87 -mf -oeatxh -w4 -ei -zp8
# newer OpenWatcom versions enable W303 by default.
CFLAGS += -wcd=303
# -5s : Pentium stack calling conventions.
# -5r : Pentium register calling conventions.
CFLAGS += -5s
CFLAGS += -I"$(%WATCOM)/h/nt" -I"$(%WATCOM)/h"
!include watcom.mif
$(LNKFILE):
@echo * Creating linker file: $@
@%create $@
@%append $@ SYSTEM nt_dll INITINSTANCE TERMINSTANCE
@%append $@ NAME $(DLLNAME)
@for %i in ($(ALL_OBJS)) do @%append $@ FILE %i
@%append $@ OPTION QUIET
@%append $@ OPTION IMPF=$(EXPNAME)
@%append $@ OPTION MAP=$(MAPNAME)
@%append $@ OPTION SHOWDEAD
$(LNKLITE):
@echo * Creating linker file: $@
@%create $@
@%append $@ SYSTEM nt_dll INITINSTANCE TERMINSTANCE
@%append $@ NAME $(DLLNAME_LITE)
@for %i in ($(LITE_OBJS)) do @%append $@ FILE %i
@%append $@ OPTION QUIET
@%append $@ OPTION IMPF=$(EXPNAME_LITE)
@%append $@ OPTION MAP=$(MAPNAME_LITE)
@%append $@ OPTION SHOWDEAD