2 # this is a makefile for mawk under DOS
7 # for a unix style command line add
8 # -DREARV=your_reargv_file without the extension
10 # e.g. -DREARGV=argvmks
12 #$Log: makefile.tcc,v $
13 # Revision 1.1 1995/08/20 17:44:37 mike
14 # minor fixes to msc and lower case makefile names
16 # Revision 1.3 1995/01/08 22:56:34 mike
19 # Revision 1.2 1995/01/07 21:16:03 mike
26 # change here or override from command line e.g. -DCC=bcc
35 LIBDIR =c:\lib # where are your Borland C libraries ?
39 FLOATLIB=emu # or fp87 if you have fp87 hardware
43 WILDCARD=$(LIBDIR)\wildargs.obj
47 # -G optimize for speed
48 # -d merge duplicate strings
49 # -v- symbolic debugging off
52 CFLAGS = -ml -c -d -v- -O -G
54 LFLAGS = /c #case sensitive linking
56 # how to delete a file
61 # how to rename a file
70 ##############################
71 # end of user settable
76 CFLAGS=-m$(MODEL) $(CFLAGS)
79 CFLAGS=$(CFLAGS) -DHAVE_REARGV=1
113 OBS = $(OBS) $(REARGV).obj
116 REXP_OBS = rexp.obj \
122 LIBS = $(LIBDIR)\$(FLOATLIB) \
123 $(LIBDIR)\math$(MODEL) $(LIBDIR)\c$(MODEL)
125 $(TARGET).exe : $(OBS) $(REXP_OBS)
127 $(LIBDIR)\c0$(MODEL) $(WILDCARD) $(OBS) $(REXP_OBS)
133 $(CC) $(CFLAGS) {$*.c }
136 config.h : msdos\tcc.h
137 $(COPY) msdos\tcc.h config.h
139 dosexec.c : msdos\dosexec.c
140 $(COPY) msdos\dosexec.c dosexec.c
142 #scancode.c : makescan.c scan.h
144 # makescan.exe > scancode.c
149 ###################################################
150 # parse.c is provided
151 # so you don't need to make it.
153 # But if you do: here's how:
154 # To make it with bison under msdos
158 # $(RENAME) y_tab.h parse.h
159 # $(RENAME) y_tab.c parse.c
160 ########################################
168 $(RM) config.h dosexec.c
173 rexp.obj : rexp\rexp.c rexp\rexp.h
174 $(CC) $(CFLAGS) $(RFLAGS) rexp\rexp.c
176 rexp0.obj : rexp\rexp0.c rexp\rexp.h
177 $(CC) $(CFLAGS) $(RFLAGS) rexp\rexp0.c
179 rexp1.obj : rexp\rexp1.c rexp\rexp.h
180 $(CC) $(CFLAGS) $(RFLAGS) rexp\rexp1.c
182 rexp2.obj : rexp\rexp2.c rexp\rexp.h
183 $(CC) $(CFLAGS) $(RFLAGS) rexp\rexp2.c
185 rexp3.obj : rexp\rexp3.c rexp\rexp.h
186 $(CC) $(CFLAGS) $(RFLAGS) rexp\rexp3.c
189 # dependencies of .objs on .h
190 array.obj : config.h field.h bi_vars.h mawk.h symtype.h nstd.h memory.h zmalloc.h types.h sizes.h
191 bi_funct.obj : config.h field.h bi_vars.h mawk.h init.h regexp.h symtype.h nstd.h repl.h memory.h bi_funct.h files.h zmalloc.h fin.h types.h sizes.h
192 bi_vars.obj : config.h field.h bi_vars.h mawk.h init.h symtype.h nstd.h memory.h zmalloc.h types.h sizes.h
193 cast.obj : config.h field.h mawk.h parse.h symtype.h nstd.h memory.h repl.h scan.h zmalloc.h types.h sizes.h
194 code.obj : config.h field.h code.h mawk.h init.h symtype.h nstd.h memory.h jmp.h zmalloc.h types.h sizes.h
195 da.obj : config.h field.h code.h mawk.h symtype.h nstd.h memory.h repl.h bi_funct.h zmalloc.h types.h sizes.h
196 error.obj : config.h bi_vars.h mawk.h parse.h vargs.h symtype.h nstd.h scan.h types.h sizes.h
197 execute.obj : config.h field.h bi_vars.h code.h mawk.h regexp.h symtype.h nstd.h memory.h repl.h bi_funct.h zmalloc.h types.h fin.h sizes.h
198 fcall.obj : config.h code.h mawk.h symtype.h nstd.h memory.h zmalloc.h types.h sizes.h
199 field.obj : config.h field.h bi_vars.h mawk.h init.h parse.h regexp.h symtype.h nstd.h memory.h repl.h scan.h zmalloc.h types.h sizes.h
200 files.obj : config.h mawk.h nstd.h memory.h files.h zmalloc.h types.h fin.h sizes.h
201 fin.obj : config.h field.h bi_vars.h mawk.h parse.h symtype.h nstd.h memory.h scan.h zmalloc.h types.h fin.h sizes.h
202 hash.obj : config.h mawk.h symtype.h nstd.h memory.h zmalloc.h types.h sizes.h
203 init.obj : config.h field.h bi_vars.h code.h mawk.h init.h symtype.h nstd.h memory.h zmalloc.h types.h sizes.h
204 jmp.obj : config.h code.h mawk.h init.h symtype.h nstd.h memory.h jmp.h zmalloc.h types.h sizes.h
205 kw.obj : config.h mawk.h init.h parse.h symtype.h nstd.h types.h sizes.h
206 main.obj : config.h field.h bi_vars.h code.h mawk.h init.h symtype.h nstd.h memory.h files.h zmalloc.h types.h fin.h sizes.h
207 makescan.obj : parse.h symtype.h scan.h
208 matherr.obj : config.h mawk.h nstd.h types.h sizes.h
209 memory.obj : config.h mawk.h nstd.h memory.h zmalloc.h types.h sizes.h
210 missing.obj : config.h nstd.h
211 parse.obj : config.h field.h bi_vars.h code.h mawk.h symtype.h nstd.h memory.h bi_funct.h files.h zmalloc.h jmp.h types.h sizes.h
212 print.obj : config.h field.h bi_vars.h mawk.h parse.h symtype.h nstd.h memory.h scan.h bi_funct.h files.h zmalloc.h types.h sizes.h
213 re_cmpl.obj : config.h mawk.h parse.h regexp.h symtype.h nstd.h memory.h repl.h scan.h zmalloc.h types.h sizes.h
214 scan.obj : config.h field.h code.h mawk.h init.h parse.h symtype.h nstd.h memory.h repl.h scan.h files.h zmalloc.h types.h fin.h sizes.h
215 split.obj : config.h field.h bi_vars.h mawk.h parse.h regexp.h symtype.h nstd.h memory.h scan.h bi_funct.h zmalloc.h types.h sizes.h
216 version.obj : config.h mawk.h patchlev.h nstd.h types.h sizes.h
217 zmalloc.obj : config.h mawk.h nstd.h zmalloc.h types.h sizes.h