-
Notifications
You must be signed in to change notification settings - Fork 38
/
config.std
63 lines (52 loc) · 1.86 KB
/
config.std
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
58
59
60
61
62
63
# defaults for DOS; can be overridden in compiler makefiles
DIRSEP = \ #a backslash
RMFILES = ..\scripts\rmfiles
RMFILES2 = ..\..\scripts\rmfiles
ECHOTO0 = echoto
ECHOTO = $(TOP)\scripts\echoto
CP = copy
CLO =
## Where the pre-compiled SUPPL files are located
## See DOCS\SUPPL.TXT for more information about this library
SUPPL_INC_PATH = ..$(DIRSEP)suppl
SUPPL_LIB_PATH = $(SUPPL_INC_PATH)
## Memory model of FreeCOM
!if $(DEBUG)0 == 10
SHELL_MMODEL=m
DEBUG=-DDEBUG
!else
SHELL_MMODEL=s
DEBUG=-UDEBUG -DNDEBUG
!endif
SHELL_MMODEL_COMP=$(SHELL_MMODEL)
## Memory model of fixstrs, requires far data pointers, so uses compact memory model by default
FIXSTRS_MMODEL=-mc
## Add -DDEBUG=1 below to enable debug support for assembly files
NASMFLAGS = -I$(TOP)/include
!include "$(TOP)/mkfiles/$(COMPILER).mak"
INCLUDEPATH = $(INCLUDEPATH) -I$(SUPPL_INC_PATH)
## Which programs to use
NASM = $(XNASM)
## Add -DDEBUG=1 below to enable FreeCOM-debug support for C files
## Add -DNDEBUG=1 below to disable any debug (even assert)
!if $(XMS_SWAP)0 == 10
__XMS_SWAP = -DXMS_SWAP
!endif
# Default configuration
# added strings.h here because $(CFG) is included everywhere already
## Add -D_NO__DOS_DATE if your compiler does not have no dosdate_t (*)
## Add -D_NO__DOS_TIME if your compiler does not have no dostime_t (*)
## Add -D_NO_FMEMCHR if your compiler does not have no _fmemchr() (*)
## Add -D_NO_FMEMCMP if your compiler does not have no _fmemcmp() (*)
##
## (*) Note: Should be detected by CONFIG.H automatically for Turbo C
## and Borland C compilers.
$(CFG): $(CFG_DEPENDENCIES) $(TOP)/config.mak
$(RMFILES) $(CFG)
$(ECHOTO) $(CFG) $(CFLAGS1)
$(ECHOTO) $(CFG) $(INCLUDEPATH)
$(ECHOTO) $(CFG) -m$(SHELL_MMODEL_COMP) $(MMODEL)
$(ECHOTO) $(CFG) $(DEBUG) $(__XMS_SWAP)
# *Implicit Rules*
.asm.obj:
$(NASM) -f obj $(NASMFLAGS) -DMODEL=$(SHELL_MMODEL) -DCOMPILER=$(COMPILER) $(__XMS_SWAP) $<