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 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190
|
#
# Master MAKE.INI file for NDMAKE
#
# jim nutt
# 'the computer handyman'
#
.SUFFIXES : .doc .exe .prf .obj .cpp .c .a86 .asm .com .a86
#
# generate response files for these as well as lib and link
#
.RESPONSE_LINK: tlink blink ztcmap
.RESPONSE_LIB: tlib zorlib
VPATH = .;c:\include;
MAKE_TMP= $(TMP)
#
# some defaults
#
project =
obj =
cc = ztc
mcflags = $p $s $w
cflags =
#
# zortech c settings
#
ztclib = c:\lib\$(cc) # where are the libraries
ztcinclude = c:\include\$(cc)
ztclibrary = $(lib)\zl$(model)
ztccompile = $(cc) -c -m$(options)
ztcoptions = $(model) $(mcflags) -I$(include) -ic:\include
ztcstartup =
ztcwild =
ztcscheck = -s
ztcpcheck =
ztcalign = -a
ztcunsigned= -J
ztccodeview= -g
ztcmaxwarnings= -p -r
ztcinline = -f
ztcoptimize= -o+all -o+loop
ztcmodel = -m
ztcdefine = -d
ztcstdc = -A
#
# quick c settings
#
qcllib = c:\lib\msc
qclinclude = c:\include\msc
qcllibrary = $(lib)\$(model)libcr $(lib)\libh
qclcompile = qcl /c /X /Zl /A$(options) /D__MSC__=1
qcloptions = $(model) $(mcflags) /I$(include)
qclstartup =
qclwild =
qclscheck =
qclpcheck = /Zr
qclalign = /Zp
qclunsigned=
qclcodeview= /Zi
qclmaxwarnings = /W3
qclinline = /FPi87
qcloptimize= /Ox
qclmodel = /A
qcldefine = /D
qclstdc = /Za
#
# msc 5.1 settings
#
msclib = c:\lib\msc
mscinclude = c:\include\$(cc)
msclibrary = $(lib)\$(model)libcr $(lib)\libh
msccompile = cl /c /X /Zl /A$(options) /D__MSC__=1
mscoptions = $(model) $(mcflags) /I$(include) /Ic:\include
mscstartup =
mscwild =
mscscheck =
mscpcheck =
mscalign = /Zp
mscunsigned=
msccodeview= /Zi
mscmaxwarnings = /W3
mscinline = /FPi87
mscoptimize= /Owilt
mscmodel = /A
mscdefine = /D
mscstdc = /Za
#
# turbo c settings
#
tcclib = c:\lib\$(cc) # where are the libraries
tccinclude = c:\include\$(cc)
tcclibrary = $(lib)\c$(model)
tcccompile = $(cc) -c -m$(options)
tccoptions = $(model) $(mcflags) -I$(include)
tccstartup = $(lib)\c0$(model)
tccwild =
tccscheck = -N
tccpcheck =
tccalign = -a-
tccunsigned= -K
tcccodeview= -y
tccmaxwarnings = -w -w-stv
tccinline = -f87
tccmodel = -m
tccdefine = -D
tccoptimize= -O -G -r
tccstdc = -A
lib = $($(cc)lib)
include = $($(cc)include)
library = $($(cc)library)
cxl = $(lib)\cxl$(model)
options = $($(cc)options)
compile = $($(cc)compile) $(cflags)
startup = $($(cc)startup)
wild = $($(cc)wild)
libs = $(library)
# compiler options
a = $($(cc)align) # byte align structures
c = $($(cc)codeview) # codeview debugging (if avail, else symdeb)
d = $($(cc)define) # command line #define
i = $($(cc)inline) # inline 8087 code generation
m = $($(cc)model) # memory model selection
p = $($(cc)pcheck) # pointer checking (if available)
s = $($(cc)scheck) # turn on stack checking
u = $($(cc)unsigned) # chars are unsigned
o = $($(cc)optimize) # do max optimizations
w = $($(cc)maxwarnings) # give maximum warnings
stdc = $($(cc)stdc) # use ANSI standard keywords only
model = S
# the linker
linkopt = /noi
linker = link
# an easy linking macros
linklst = $($(project)obj),$(project),$(project),$(libs) $(linkopt);
link = $(linker) $(wild) $(startup) $(linklst)
# default rules
markfile :
calltree -z markfile *.c
.c.exe :
.c.obj
$(linker) $(wild) $(startup) $*, $* ,$* ,$(libs) $(linkopt);
.obj.exe :
$(link)
.c.obj :
$(compile) $*.c
.cpp.obj :
$(cc) $*
.asm.obj :
masm $*;
.a86.obj :
a86 +o +s $*.a86 $*.obj
.a86.com :
a86 $*.a86
.a86.exe :
a86 +o +s $*.a86
link $*;
.prf.doc :
proff $*.prf $*.doc
|