summaryrefslogtreecommitdiff
path: root/dmake/winnt/config.mk
blob: 2abcb8ad66c6167458aa7b3bfa18f7c908860829 (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
# This is an OS specific configuration file
#	It assumes that OBJDIR, TARGET and DEBUG are previously defined.
#	It defines	CFLAGS, LDARGS, CPPFLAGS, STARTUPFILE, LDOBJS
#	It augments	SRC, OBJDIR, TARGET, CFLAGS, LDLIBS
#

# Memory model to compile for
# set to s - small, m - medium, c - compact, l - large
# Need large model now, dmake has grown up :-)
MODEL = l

STARTUPFILE	= startup/startup.mk

CPPFLAGS 	= $(CFLAGS)

# Debug flags
DB_CFLAGS	= -DDBUG
DB_LDFLAGS	=
DB_LDLIBS	=

# NO Debug flags
NDB_CFLAGS	=
NDB_LDFLAGS	=
NDB_LDLIBS	=

# Local configuration modifications for CFLAGS.
CFLAGS += -I$(OS)

# Common Win32 source files.
OS_SRC  += dchdir.c

# Imported Win95 files.
WIN95SRC += switchar.c

# Imported MSDOS Files.
DOSSRC  += dstrlwr.c arlib.c dirbrk.c

SRC += $(OS_SRC) $(UNIXSRC) $(DOSSRC)

# Provide our own %$O : %$S rule.
%$O : %$S
    +$(AS) $(ASFLAGS) \
    $(<:s,\,${__.DIVSEP-sh-${USESHELL}},:s,/,${__.DIVSEP-sh-${USESHELL}},);
    mv $(@:f) $(OBJDIR)

# Set source dirs so that we can find files named in this
# config file.
.SOURCE.h : $(OS)

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

.SETDIR=msdos : $(DOSSRC)
.SETDIR=win95 : $(WIN95SRC)
.SETDIR=$(OS) : $(ASRC) $(OS_SRC)