1 # This is an OS specific configuration file
2 # It assumes that OBJDIR, TARGET and DEBUG are previously defined.
3 # It defines CFLAGS, LDARGS, CPPFLAGS, STARTUPFILE, LDOBJS
4 # It augments SRC, OBJDIR, TARGET, CFLAGS, LDLIBS
7 # Memory model to compile for
8 # set to s - small, m - medium, c - compact, l - large
9 # Need large model now, dmake has grown up :-)
12 STARTUPFILE
= $(OS
)/startup.mk
15 LDOBJS
= $(CSTARTUP
) $(OBJDIR
)/{$(<:f
)}
16 LDARGS
= $(LDHEAD
) $(LDFLAGS
:s
/ //) @
$(LDTMPOBJ
),$(TARGET
),NUL.MAP
$(LDTAIL
)
18 _libs
= $(!null
,$(LDLIBS
) ,@
$(LDTMPLIB
))
19 LDTMPOBJ
= $(mktmp
,,$(DIVFILE
) $(LDOBJS
:s
,/,\\,:t
"+\n")\n)
20 LDTMPLIB
= $(mktmp
,,$(DIVFILE
) $(LDLIBS
:s
,/,\\,:t
"+\n")\n)
32 # Local configuration modifications for CFLAGS.
35 # Common MSDOS source files.
36 # Define SWAP to anything but 'y' for the swap code to be excluded on making.
37 # Swapping for DOS versions is enabled by default.
38 # Note: swapping is handled specially for ZTC in msdos/zortech/config.mk.
41 .IF
$(OSRELEASE
) != zortech
52 OS_SRC
+= ruletab.c dirbrk.c runargv.c arlib.c dchdir.c switchar.c rmprq.c\
53 $(SWP_SRC
) find.c dirlib.c dstrlwr.c
55 SRC
+= $(OS_SRC
) $(UNIXSRC
)
56 .SETDIR
=$(OS
) : $(ASRC
) $(OS_SRC
)
57 .SETDIR
=unix
: $(UNIXSRC
)
59 # Provide our own %$O : %$S rule.
61 +$(AS
) $(ASFLAGS
) $(<:s
,\
,${__.DIVSEP-sh-
${USESHELL}},:s
,/,${__.DIVSEP-sh-
${USESHELL}},),,,;
64 # Set source dirs so that we can find files named in this
68 # See if we modify anything in the lower levels.
69 .IF
$(OSRELEASE
) != $(NULL
)
70 .INCLUDE
: $(OS
)$(DIRSEPSTR
)$(OSRELEASE
)$(DIRSEPSTR
)config.mk