summaryrefslogtreecommitdiff
path: root/dmake/msdos/microsft/config.mk
blob: cd049cd471afaae239feccbe67cf628deedb0de1 (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
54
55
56
57
58
59
# This is the MSC 4.0 and higher DOS configuration file for DMAKE
#	It simply modifies the values of SRC, and checks to see if
#	OSENVIRONMENT is defined.  If so it includes the appropriate
#	config.mk file.
#
# It also sets the values of .SOURCE.c and .SOURCE.h to include the local
# directory.
#
osrdir := $(OS)$(DIRSEPSTR)$(OSRELEASE)

TMPDIR :=
.EXPORT : TMPDIR

# Definition of macros for library, and C startup code.

# The following sources are required for MSC
OSR_SRC = tempnam.c
.SETDIR=$(osrdir) : $(OSR_SRC)

SRC += $(OSR_SRC)
.SOURCE.h : $(osrdir)

SET_STACK = -stack:4096
NDB_LDFLAGS += $(SET_STACK)

ASFLAGS += -t -mx $(S_$(MODEL))

# Microsoft C doesn't need tail but needs head
LDTAIL = ;
LDHEAD =

# Debugging libraries
DB_LDFLAGS += -co -li -map $(SET_STACK)
DB_LDLIBS  +=

# NO Debug MSC flags:
# Set the environment variable MSC_VER to be one of 5.1, 6.0, 8.0 (for VC++4.0)
# to get these by default when you make dmake using 'dmake'.
#
# Setting MSC_VER to one of the above sets the variable _MSC_VER appropriately
# and sets the flags appropriately.

CFLAGS    += -I$(osrdir) $(C_$(MODEL)) -nologo
DB_CFLAGS += -Zi

# See if we modify anything in the lower levels.
.IF $(OSENVIRONMENT) != $(NULL)
   .INCLUDE .IGNORE : $(osrdir)$(DIRSEPSTR)$(OSENVIRONMENT)$(DIRSEPSTR)config.mk
.END

C_s =
C_m = -AM
C_c = -AC
C_l = -AL

S_s = -Dmsmall
S_m = -Dmmedium
S_c = -Dmcompact
S_l = -Dmlarge