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
9 # Memory model to compile for
10 # set to s - small, m - medium, c - compact, l - large
11 # Use only large model now.
14 STARTUPFILE
= $(OS
)/startup.mk
17 LDOBJS
= $(CSTARTUP
) $(OBJDIR
)/{$(<:f
)}
18 LDARGS
= $(LDHEAD
) @
$(LDTMPOBJ
),$(TARGET
),NUL.MAP
,,$(LDTAIL
)
19 LDTAIL
= $(_libs
)$(LDFLAGS
:s
/ //)
20 _libs
= $(!null
,$(LDLIBS
) ,@
$(LDTMPLIB
))
21 LDTMPOBJ
= $(mktmp
,,$(DIVFILE
) $(LDOBJS
:s
,/,\\,:t
"+\n")\n)
22 LDTMPLIB
= $(mktmp
,,$(DIVFILE
) $(LDLIBS
)\n)
34 # Local configuration modifications for CFLAGS.
37 # OS2 does not have a swap version. The operating system will
38 # handle all swapping.
39 # To save copying unchanged files in from elsewhere, I shall use them in situ.
40 OS_SRC
+= ruletab.c dchdir.c switchar.c
41 DOS_SRC
+= dirbrk.c arlib.c dstrlwr.c runargv.c rmprq.c
43 SRC
+= $(OS_SRC
) $(DOS_SRC
)
44 .SETDIR
=$(OS
) : $(ASRC
) $(OS_SRC
)
45 .SETDIR
=msdos
: $(DOS_SRC
)
47 # Set source dirs so that we can find files named in this
51 # See if we modify anything in the lower levels.
52 .IF
$(OSRELEASE
) != $(NULL
)
53 .INCLUDE .IGNORE
: $(OS
)$(DIRSEPSTR
)$(OSRELEASE
)$(DIRSEPSTR
)config.mk