Fix regular expression at doc/rdsrc.pl
[platform/upstream/nasm.git] / Mkfiles / openwcom.mak
1 # -*- makefile -*-
2 #
3 # Makefile for building NASM using OpenWatcom
4 # cross-compile on a DOS/Win32/OS2/Linux platform host
5 #
6
7 top_srcdir  = .
8 srcdir      = .
9 VPATH       = .;$(srcdir)/output;$(srcdir)/lib
10 prefix      = C:\Program Files\NASM
11 exec_prefix = $(prefix)
12 bindir      = $(prefix)\bin
13 mandir      = $(prefix)\man
14
15 CC      = *wcl386
16 DEBUG       =
17 CFLAGS      = -zq -6 -ox -wx -ze -fpi $(DEBUG)
18 BUILD_CFLAGS    = $(CFLAGS) $(%TARGET_CFLAGS)
19 INTERNAL_CFLAGS = -I$(srcdir) -I. -DHAVE_CONFIG_H
20 ALL_CFLAGS  = $(BUILD_CFLAGS) $(INTERNAL_CFLAGS)
21 LD      = *wlink
22 LDEBUG      =
23 LDFLAGS     = op quiet $(%TARGET_LFLAGS) $(LDEBUG)
24 LIBS        =
25 PERL        = perl -I$(srcdir)/perllib
26
27 STRIP       = wstrip
28
29 # Binary suffixes
30 O               = obj
31 X               = .exe
32
33 # WMAKE errors out if a suffix is declared more than once, including
34 # its own built-in declarations.  Thus, we need to explicitly clear the list
35 # first.  Also, WMAKE only allows implicit rules that point "to the left"
36 # in this list!
37 .SUFFIXES:
38 .SUFFIXES: .man .1 .$(O) .i .c
39
40 # Needed to find C files anywhere but in the current directory
41 .c : $(VPATH)
42
43 .c.$(O):
44     @set INCLUDE=
45     $(CC) -c $(ALL_CFLAGS) -fo=$^@ $[@
46
47 #-- Begin File Lists --#
48 # Edit in Makefile.in, not here!
49 NASM =  nasm.$(O) nasmlib.$(O) ver.$(O) &
50         raa.$(O) saa.$(O) rbtree.$(O) &
51         float.$(O) insnsa.$(O) insnsb.$(O) &
52         directiv.$(O) &
53         assemble.$(O) labels.$(O) hashtbl.$(O) crc64.$(O) parser.$(O) &
54         output/outform.$(O) output/outlib.$(O) output/nulldbg.$(O) &
55         output/nullout.$(O) &
56         output/outbin.$(O) output/outaout.$(O) output/outcoff.$(O) &
57         output/outelf.$(O) output/outelf32.$(O) output/outelf64.$(O) &
58         output/outelfx32.$(O) &
59         output/outobj.$(O) output/outas86.$(O) output/outrdf2.$(O) &
60         output/outdbg.$(O) output/outieee.$(O) output/outmac32.$(O) &
61         output/outmac64.$(O) preproc.$(O) quote.$(O) pptok.$(O) &
62         macros.$(O) listing.$(O) eval.$(O) exprlib.$(O) stdscan.$(O) &
63         strfunc.$(O) tokhash.$(O) regvals.$(O) regflags.$(O) &
64         ilog2.$(O) &
65         lib/strlcpy.$(O) &
66         preproc-nop.$(O) &
67         disp8.$(O) &
68         iflag.$(O)
69
70 NDISASM = ndisasm.$(O) disasm.$(O) sync.$(O) nasmlib.$(O) ver.$(O) &
71         insnsd.$(O) insnsb.$(O) insnsn.$(O) regs.$(O) regdis.$(O) &
72         disp8.$(O) iflag.$(O)
73 #-- End File Lists --#
74
75 what:   .SYMBOLIC
76     @echo Please build "dos", "win32", "os2" or "linux386"
77
78 dos:    .SYMBOLIC
79     @set TARGET_CFLAGS=-bt=DOS -I"$(%WATCOM)/h"
80     @set TARGET_LFLAGS=sys causeway
81     @%make all
82
83 win32:  .SYMBOLIC
84     @set TARGET_CFLAGS=-bt=NT -I"$(%WATCOM)/h" -I"$(%WATCOM)/h/nt"
85     @set TARGET_LFLAGS=sys nt
86     @%make all
87
88 os2:    .SYMBOLIC
89     @set TARGET_CFLAGS=-bt=OS2 -I"$(%WATCOM)/h" -I"$(%WATCOM)/h/os2"
90     @set TARGET_LFLAGS=sys os2v2
91     @%make all
92
93 linux386:   .SYMBOLIC
94     @set TARGET_CFLAGS=-bt=LINUX -I"$(%WATCOM)/lh"
95     @set TARGET_LFLAGS=sys linux
96     @%make all
97
98 all: config.h perlreq nasm$(X) ndisasm$(X) .SYMBOLIC
99 #   cd rdoff && $(MAKE) all
100
101 nasm$(X): $(NASM)
102     $(LD) $(LDFLAGS) name nasm$(X) file {$(NASM)} $(LIBS)
103
104 ndisasm$(X): $(NDISASM)
105     $(LD) $(LDFLAGS) name ndisasm$(X) file {$(NDISASM)} $(LIBS)
106
107 # These source files are automagically generated from a single
108 # instruction-table file by a Perl script. They're distributed,
109 # though, so it isn't necessary to have Perl just to recompile NASM
110 # from the distribution.
111
112 insns.pl: insns-iflags.pl
113
114 iflag.c iflag.h: insns.dat insns.pl
115     $(PERL) $(srcdir)/insns.pl -t $(srcdir)/insns.dat
116 insnsb.c: insns.dat insns.pl
117     $(PERL) $(srcdir)/insns.pl -b $(srcdir)/insns.dat
118 insnsa.c: insns.dat insns.pl
119     $(PERL) $(srcdir)/insns.pl -a $(srcdir)/insns.dat
120 insnsd.c: insns.dat insns.pl
121     $(PERL) $(srcdir)/insns.pl -d $(srcdir)/insns.dat
122 insnsi.h: insns.dat insns.pl
123     $(PERL) $(srcdir)/insns.pl -i $(srcdir)/insns.dat
124 insnsn.c: insns.dat insns.pl
125     $(PERL) $(srcdir)/insns.pl -n $(srcdir)/insns.dat
126
127 # These files contains all the standard macros that are derived from
128 # the version number.
129 version.h: version version.pl
130     $(PERL) $(srcdir)/version.pl h < $(srcdir)/version > version.h
131
132 version.mac: version version.pl
133     $(PERL) $(srcdir)/version.pl mac < $(srcdir)/version > version.mac
134
135 # This source file is generated from the standard macros file
136 # `standard.mac' by another Perl script. Again, it's part of the
137 # standard distribution.
138
139 macros.c: macros.pl standard.mac version.mac macros/*.mac output/*.mac
140     $(PERL) $<
141
142 # These source files are generated from regs.dat by yet another
143 # perl script.
144 regs.c: regs.dat regs.pl
145     $(PERL) $(srcdir)/regs.pl c $(srcdir)/regs.dat > regs.c
146 regflags.c: regs.dat regs.pl
147     $(PERL) $(srcdir)/regs.pl fc $(srcdir)/regs.dat > regflags.c
148 regdis.c: regs.dat regs.pl
149     $(PERL) $(srcdir)/regs.pl dc $(srcdir)/regs.dat > regdis.c
150 regdis.h: regs.dat regs.pl
151     $(PERL) $(srcdir)/regs.pl dh $(srcdir)/regs.dat > regdis.h
152 regvals.c: regs.dat regs.pl
153     $(PERL) $(srcdir)/regs.pl vc $(srcdir)/regs.dat > regvals.c
154 regs.h: regs.dat regs.pl
155     $(PERL) $(srcdir)/regs.pl h $(srcdir)/regs.dat > regs.h
156
157 # Assembler token hash
158 tokhash.c: insns.dat regs.dat tokens.dat tokhash.pl perllib/phash.ph
159     $(PERL) $(srcdir)/tokhash.pl c $(srcdir)/insns.dat $(srcdir)/regs.dat &
160         $(srcdir)/tokens.dat > tokhash.c
161
162 # Assembler token metadata
163 tokens.h: insns.dat regs.dat tokens.dat tokhash.pl perllib/phash.ph
164     $(PERL) $(srcdir)/tokhash.pl h $(srcdir)/insns.dat $(srcdir)/regs.dat &
165         $(srcdir)/tokens.dat > tokens.h
166
167 # Preprocessor token hash
168 pptok.h: pptok.dat pptok.pl perllib/phash.ph
169     $(PERL) $(srcdir)/pptok.pl h $(srcdir)/pptok.dat pptok.h
170 pptok.c: pptok.dat pptok.pl perllib/phash.ph
171     $(PERL) $(srcdir)/pptok.pl c $(srcdir)/pptok.dat pptok.c
172 pptok.ph: pptok.dat pptok.pl perllib/phash.ph
173     $(PERL) $(srcdir)/pptok.pl ph $(srcdir)/pptok.dat pptok.ph
174
175 # Directives hash
176 directiv.h: directiv.dat directiv.pl perllib/phash.ph
177     $(PERL) $(srcdir)/directiv.pl h $(srcdir)/directiv.dat directiv.h
178 directiv.c: directiv.dat directiv.pl perllib/phash.ph
179     $(PERL) $(srcdir)/directiv.pl c $(srcdir)/directiv.dat directiv.c
180
181 # This target generates all files that require perl.
182 # This allows easier generation of distribution (see dist target).
183 PERLREQ = pptok.ph macros.c insnsb.c insnsa.c insnsd.c insnsi.h insnsn.c &
184       regs.c regs.h regflags.c regdis.c regdis.h regvals.c &
185       tokhash.c tokens.h pptok.h pptok.c &
186       directiv.c directiv.h &
187       version.h version.mac &
188       iflag.c iflag.h
189 perlreq: $(PERLREQ) .SYMBOLIC
190
191 clean: .SYMBOLIC
192     rm -f *.$(O) *.s *.i
193     rm -f lib/*.$(O) lib/*.s lib/*.i
194     rm -f output/*.$(O) output/*.s output/*.i
195     rm -f config.h config.log config.status
196     rm -f nasm$(X) ndisasm$(X)
197 #   cd rdoff && $(MAKE) clean
198
199 distclean: clean .SYMBOLIC
200     rm -f config.h config.log config.status
201     rm -f Makefile *~ *.bak *.lst *.bin
202     rm -f output/*~ output/*.bak
203     rm -f test/*.lst test/*.bin test/*.$(O) test/*.bin
204 #   -del /s autom4te*.cache
205 #   cd rdoff && $(MAKE) distclean
206
207 cleaner: clean .SYMBOLIC
208     rm -f $(PERLREQ)
209     rm -f *.man
210     rm -f nasm.spec
211 #   cd doc && $(MAKE) clean
212
213 spotless: distclean cleaner .SYMBOLIC
214     rm -f doc/Makefile doc/*~ doc/*.bak
215
216 strip: .SYMBOLIC
217     $(STRIP) *.exe
218
219 rdf:
220 #   cd rdoff && $(MAKE)
221
222 doc:
223 #   cd doc && $(MAKE) all
224
225 everything: all doc rdf
226
227 config.h: Mkfiles/openwcom.mak
228     @echo Creating $@
229     @%create $@
230     @%append $@ $#define HAVE_DECL_STRCASECMP 1
231     @%append $@ $#define HAVE_DECL_STRICMP 1
232     @%append $@ $#define HAVE_DECL_STRLCPY 1
233     @%append $@ $#define HAVE_DECL_STRNCASECMP 1
234     @%append $@ $#define HAVE_DECL_STRNICMP 1
235     @%append $@ $#define HAVE_INTTYPES_H 1
236     @%append $@ $#define HAVE_LIMITS_H 1
237     @%append $@ $#define HAVE_MEMORY_H 1
238     @%append $@ $#define HAVE_SNPRINTF 1
239     @%append $@ $#define HAVE_STDBOOL_H 1
240     @%append $@ $#define HAVE_STDINT_H 1
241     @%append $@ $#define HAVE_STDLIB_H 1
242     @%append $@ $#define HAVE_STRCASECMP 1
243     @%append $@ $#define HAVE_STRCSPN 1
244     @%append $@ $#define HAVE_STRICMP 1
245     @%append $@ $#define HAVE_STRINGS_H 1
246     @%append $@ $#define HAVE_STRING_H 1
247     @%append $@ $#define HAVE_STRLCPY 1
248     @%append $@ $#define HAVE_STRNCASECMP 1
249     @%append $@ $#define HAVE_STRNICMP 1
250     @%append $@ $#define HAVE_STRSPN 1
251     @%append $@ $#define HAVE_SYS_STAT_H 1
252     @%append $@ $#define HAVE_SYS_TYPES_H 1
253     @%append $@ $#define HAVE_UNISTD_H 1
254     @%append $@ $#define HAVE_VSNPRINTF 1
255     @%append $@ $#define STDC_HEADERS 1
256
257 #
258 # This build dependencies in *ALL* makefiles.  Partially for that reason,
259 # it's expected to be invoked manually.
260 #
261 alldeps: perlreq .SYMBOLIC
262     $(PERL) syncfiles.pl Makefile.in Mkfiles/openwcom.mak
263     $(PERL) mkdep.pl -M Makefile.in Mkfiles/openwcom.mak -- . output lib
264
265 #-- Magic hints to mkdep.pl --#
266 # @object-ending: ".$(O)"
267 # @path-separator: "/"
268 # @exclude: ""
269 # @continuation: "&"
270 #-- Everything below is generated by mkdep.pl - do not edit --#
271 assemble.$(O): assemble.c assemble.h compiler.h config.h directiv.h disp8.h &
272  iflag.h iflaggen.h insns.h insnsi.h nasm.h nasmlib.h opflags.h pptok.h &
273  preproc.h regs.h tables.h tokens.h
274 crc64.$(O): crc64.c compiler.h config.h nasmlib.h
275 directiv.$(O): directiv.c compiler.h config.h directiv.h hashtbl.h insnsi.h &
276  nasm.h nasmlib.h opflags.h pptok.h preproc.h regs.h tables.h
277 disasm.$(O): disasm.c compiler.h config.h directiv.h disasm.h disp8.h &
278  iflag.h iflaggen.h insns.h insnsi.h nasm.h nasmlib.h opflags.h pptok.h &
279  preproc.h regdis.h regs.h sync.h tables.h tokens.h
280 disp8.$(O): disp8.c compiler.h config.h directiv.h disp8.h insnsi.h nasm.h &
281  nasmlib.h opflags.h pptok.h preproc.h regs.h tables.h
282 eval.$(O): eval.c compiler.h config.h directiv.h eval.h float.h insnsi.h &
283  labels.h nasm.h nasmlib.h opflags.h pptok.h preproc.h regs.h tables.h
284 exprlib.$(O): exprlib.c compiler.h config.h directiv.h insnsi.h nasm.h &
285  nasmlib.h opflags.h pptok.h preproc.h regs.h tables.h
286 float.$(O): float.c compiler.h config.h directiv.h float.h insnsi.h nasm.h &
287  nasmlib.h opflags.h pptok.h preproc.h regs.h tables.h
288 hashtbl.$(O): hashtbl.c compiler.h config.h directiv.h hashtbl.h insnsi.h &
289  nasm.h nasmlib.h opflags.h pptok.h preproc.h regs.h tables.h
290 iflag.$(O): iflag.c compiler.h config.h iflag.h iflaggen.h
291 ilog2.$(O): ilog2.c compiler.h config.h nasmlib.h
292 insnsa.$(O): insnsa.c compiler.h config.h directiv.h iflag.h iflaggen.h &
293  insns.h insnsi.h nasm.h nasmlib.h opflags.h pptok.h preproc.h regs.h &
294  tables.h tokens.h
295 insnsb.$(O): insnsb.c compiler.h config.h directiv.h iflag.h iflaggen.h &
296  insns.h insnsi.h nasm.h nasmlib.h opflags.h pptok.h preproc.h regs.h &
297  tables.h tokens.h
298 insnsd.$(O): insnsd.c compiler.h config.h directiv.h iflag.h iflaggen.h &
299  insns.h insnsi.h nasm.h nasmlib.h opflags.h pptok.h preproc.h regs.h &
300  tables.h tokens.h
301 insnsn.$(O): insnsn.c compiler.h config.h insnsi.h tables.h
302 labels.$(O): labels.c compiler.h config.h directiv.h hashtbl.h insnsi.h &
303  nasm.h nasmlib.h opflags.h pptok.h preproc.h regs.h tables.h
304 lib/snprintf.$(O): lib/snprintf.c compiler.h config.h nasmlib.h
305 lib/strlcpy.$(O): lib/strlcpy.c compiler.h config.h
306 lib/vsnprintf.$(O): lib/vsnprintf.c compiler.h config.h nasmlib.h
307 listing.$(O): listing.c compiler.h config.h directiv.h insnsi.h listing.h &
308  nasm.h nasmlib.h opflags.h pptok.h preproc.h regs.h tables.h
309 macros.$(O): macros.c compiler.h config.h directiv.h hashtbl.h insnsi.h &
310  nasm.h nasmlib.h opflags.h output/outform.h pptok.h preproc.h regs.h &
311  tables.h
312 nasm.$(O): nasm.c assemble.h compiler.h config.h directiv.h eval.h float.h &
313  iflag.h iflaggen.h insns.h insnsi.h labels.h listing.h nasm.h nasmlib.h &
314  opflags.h output/outform.h parser.h pptok.h preproc.h raa.h regs.h saa.h &
315  stdscan.h tables.h tokens.h
316 nasmlib.$(O): nasmlib.c compiler.h config.h directiv.h iflag.h iflaggen.h &
317  insns.h insnsi.h nasm.h nasmlib.h opflags.h pptok.h preproc.h regs.h &
318  tables.h tokens.h
319 ndisasm.$(O): ndisasm.c compiler.h config.h directiv.h disasm.h iflag.h &
320  iflaggen.h insns.h insnsi.h nasm.h nasmlib.h opflags.h pptok.h preproc.h &
321  regs.h sync.h tables.h tokens.h
322 output/nulldbg.$(O): output/nulldbg.c compiler.h config.h directiv.h &
323  insnsi.h nasm.h nasmlib.h opflags.h pptok.h preproc.h regs.h tables.h
324 output/nullout.$(O): output/nullout.c compiler.h config.h directiv.h &
325  insnsi.h nasm.h nasmlib.h opflags.h output/outlib.h pptok.h preproc.h &
326  regs.h tables.h
327 output/outaout.$(O): output/outaout.c compiler.h config.h directiv.h eval.h &
328  insnsi.h nasm.h nasmlib.h opflags.h output/outform.h output/outlib.h &
329  pptok.h preproc.h raa.h regs.h saa.h stdscan.h tables.h
330 output/outas86.$(O): output/outas86.c compiler.h config.h directiv.h &
331  insnsi.h nasm.h nasmlib.h opflags.h output/outform.h output/outlib.h &
332  pptok.h preproc.h raa.h regs.h saa.h tables.h
333 output/outbin.$(O): output/outbin.c compiler.h config.h directiv.h eval.h &
334  insnsi.h labels.h nasm.h nasmlib.h opflags.h output/outform.h &
335  output/outlib.h pptok.h preproc.h regs.h saa.h stdscan.h tables.h
336 output/outcoff.$(O): output/outcoff.c compiler.h config.h directiv.h eval.h &
337  insnsi.h nasm.h nasmlib.h opflags.h output/outform.h output/outlib.h &
338  output/pecoff.h pptok.h preproc.h raa.h regs.h saa.h tables.h
339 output/outdbg.$(O): output/outdbg.c compiler.h config.h directiv.h insnsi.h &
340  nasm.h nasmlib.h opflags.h output/outform.h pptok.h preproc.h regs.h &
341  tables.h
342 output/outelf.$(O): output/outelf.c compiler.h config.h directiv.h insnsi.h &
343  nasm.h nasmlib.h opflags.h output/dwarf.h output/elf.h output/outelf.h &
344  output/outform.h pptok.h preproc.h regs.h tables.h
345 output/outelf32.$(O): output/outelf32.c compiler.h config.h directiv.h &
346  eval.h insnsi.h nasm.h nasmlib.h opflags.h output/dwarf.h output/elf.h &
347  output/outelf.h output/outform.h output/outlib.h output/stabs.h pptok.h &
348  preproc.h raa.h rbtree.h regs.h saa.h stdscan.h tables.h
349 output/outelf64.$(O): output/outelf64.c compiler.h config.h directiv.h &
350  eval.h insnsi.h nasm.h nasmlib.h opflags.h output/dwarf.h output/elf.h &
351  output/outelf.h output/outform.h output/outlib.h output/stabs.h pptok.h &
352  preproc.h raa.h rbtree.h regs.h saa.h stdscan.h tables.h
353 output/outelfx32.$(O): output/outelfx32.c compiler.h config.h directiv.h &
354  eval.h insnsi.h nasm.h nasmlib.h opflags.h output/dwarf.h output/elf.h &
355  output/outelf.h output/outform.h output/outlib.h output/stabs.h pptok.h &
356  preproc.h raa.h rbtree.h regs.h saa.h stdscan.h tables.h
357 output/outform.$(O): output/outform.c compiler.h config.h directiv.h &
358  insnsi.h nasm.h nasmlib.h opflags.h output/outform.h pptok.h preproc.h &
359  regs.h tables.h
360 output/outieee.$(O): output/outieee.c compiler.h config.h directiv.h &
361  insnsi.h nasm.h nasmlib.h opflags.h output/outform.h output/outlib.h &
362  pptok.h preproc.h regs.h tables.h
363 output/outlib.$(O): output/outlib.c compiler.h config.h directiv.h insnsi.h &
364  nasm.h nasmlib.h opflags.h output/outlib.h pptok.h preproc.h regs.h &
365  tables.h
366 output/outmac32.$(O): output/outmac32.c compiler.h config.h directiv.h &
367  eval.h insnsi.h nasm.h nasmlib.h opflags.h output/outform.h output/outlib.h &
368  pptok.h preproc.h raa.h regs.h saa.h tables.h
369 output/outmac64.$(O): output/outmac64.c compiler.h config.h directiv.h &
370  insnsi.h nasm.h nasmlib.h opflags.h output/outform.h output/outlib.h &
371  pptok.h preproc.h raa.h regs.h saa.h tables.h
372 output/outobj.$(O): output/outobj.c compiler.h config.h directiv.h eval.h &
373  insnsi.h nasm.h nasmlib.h opflags.h output/outform.h output/outlib.h &
374  pptok.h preproc.h regs.h stdscan.h tables.h
375 output/outrdf2.$(O): output/outrdf2.c compiler.h config.h directiv.h &
376  insnsi.h nasm.h nasmlib.h opflags.h output/outform.h output/outlib.h &
377  pptok.h preproc.h rdoff/rdoff.h regs.h saa.h tables.h
378 parser.$(O): parser.c compiler.h config.h directiv.h eval.h float.h iflag.h &
379  iflaggen.h insns.h insnsi.h nasm.h nasmlib.h opflags.h parser.h pptok.h &
380  preproc.h regs.h stdscan.h tables.h tokens.h
381 pptok.$(O): pptok.c compiler.h config.h hashtbl.h nasmlib.h pptok.h &
382  preproc.h
383 preproc-nop.$(O): preproc-nop.c compiler.h config.h directiv.h insnsi.h &
384  nasm.h nasmlib.h opflags.h pptok.h preproc.h regs.h tables.h
385 preproc.$(O): preproc.c compiler.h config.h directiv.h eval.h hashtbl.h &
386  insnsi.h nasm.h nasmlib.h opflags.h pptok.h preproc.h quote.h regs.h &
387  stdscan.h tables.h tokens.h
388 quote.$(O): quote.c compiler.h config.h nasmlib.h quote.h
389 raa.$(O): raa.c compiler.h config.h nasmlib.h raa.h
390 rbtree.$(O): rbtree.c compiler.h config.h rbtree.h
391 regdis.$(O): regdis.c regdis.h regs.h
392 regflags.$(O): regflags.c compiler.h config.h directiv.h insnsi.h nasm.h &
393  nasmlib.h opflags.h pptok.h preproc.h regs.h tables.h
394 regs.$(O): regs.c compiler.h config.h insnsi.h tables.h
395 regvals.$(O): regvals.c compiler.h config.h insnsi.h tables.h
396 saa.$(O): saa.c compiler.h config.h nasmlib.h saa.h
397 stdscan.$(O): stdscan.c compiler.h config.h directiv.h iflag.h iflaggen.h &
398  insns.h insnsi.h nasm.h nasmlib.h opflags.h pptok.h preproc.h quote.h &
399  regs.h stdscan.h tables.h tokens.h
400 strfunc.$(O): strfunc.c compiler.h config.h directiv.h insnsi.h nasm.h &
401  nasmlib.h opflags.h pptok.h preproc.h regs.h tables.h
402 sync.$(O): sync.c compiler.h config.h nasmlib.h sync.h
403 tokhash.$(O): tokhash.c compiler.h config.h directiv.h hashtbl.h iflag.h &
404  iflaggen.h insns.h insnsi.h nasm.h nasmlib.h opflags.h pptok.h preproc.h &
405  regs.h tables.h tokens.h
406 ver.$(O): ver.c compiler.h config.h directiv.h insnsi.h nasm.h nasmlib.h &
407  opflags.h pptok.h preproc.h regs.h tables.h version.h