1 # This is the ZTC DOS configuration file for DMAKE
2 # It simply modifies the values of SRC, and checks to see if
3 # OSENVIRONMENT is defined. If so it includes the appropriate
6 # It also sets the values of .SOURCE.c and .SOURCE.h to include the local
9 osrdir
:= $(OS
)$(DIRSEPSTR
)$(OSRELEASE
)
14 # Definition of macros for library, and C startup code.
15 # Swapping for DOS versions is enabled by default. ZTC will automatically
16 # perform swapping to XMS, EMS or disk by including _swapl.obj at link time.
17 # To be most effective, _swapl.obj should be the first file linked so we
18 # assign it to CSTARTUP if needed.
23 # The following sources are required for ZTC
24 # The tempnam supplied with ZTC doesn't handle a NULL dir.
25 OSR_SRC
= tempnam.c environ.c
26 .SETDIR
=$(osrdir
) : $(OSR_SRC
)
31 # Local configuration modifications for CFLAGS
32 # If you have a 286, you can use -2 or appropriate to get better code,
33 # in that case uncomment the line below. (You can also simply set
34 # it in the CL environment variable.)
36 ASFLAGS
+= -t
-mx
$(S_
$(MODEL
))
38 # Redefine this, it isn't needed!
48 CFLAGS
+= -I
$(osrdir
) $(C_
$(MODEL
))
49 CFLAGS
+= -DM_I86
=1 -DMSDOS
50 CFLAGS
+= -b
# use large compiler
51 #CFLAGS += -w # no warnings
52 CFLAGS
+= -mi
# integer only
53 CFLAGS
+= -p
# no auto-prototyping
57 # Redefine rule for making our objects, we don't need mv
58 %$O : %.c
;% $(CC
) -c
$(CFLAGS
) -o
$@
$<
60 # See if we modify anything in the lower levels.
61 .IF
$(OSENVIRONMENT
) != $(NULL
)
62 .INCLUDE .IGNORE
: $(osrdir
)$(DIRSEPSTR
)$(OSENVIRONMENT
)$(DIRSEPSTR
)config.mk