@@ -33,7 +33,7 @@ RUNPERL = $(PERL) $(PERLFLAGS)
3333
3434RM_F = -del /f
3535LN_S = copy
36- EMPTY = copy nul:
36+ EMPTY = %create
3737SIDE = %null Created by side effect
3838
3939MAKENSIS = makensis
@@ -74,6 +74,7 @@ PROGS = nasm$(X) ndisasm$(X)
7474# Files dependent on extracted warnings
7575WARNOBJ = asm\warnings.obj
7676WARNFILES = asm\warnings_c.h include\warnings.h doc\warnings.src
77+ WARNTIMES = asm\warnings_c.h.time include\warnings.h.time doc\warnings.src.time
7778
7879OUTPUTOBJ = &
7980 output\outform.obj output\outlib.obj &
@@ -213,8 +214,7 @@ ndisasm.lib: $(LIBOBJ_DIS)
213214
214215# These are specific to certain Makefile syntaxes (what are they
215216# actually supposed to look like for wmake?)
216- WARNTIMES = $(WARNFILES:=.time )
217- WARNSRCS = $(LIBOBJ_NW:.obj=.c )
217+ WARNSRCS = $(ALLOBJ_W:.obj=.c )
218218
219219# -- Begin Generated File Rules --#
220220# Edit in Makefile.in, not here!
@@ -357,6 +357,34 @@ editors: $(EDITORS)
357357
358358# -- End Generated File Rules --#
359359
360+ warnings : .SYMBOLIC
361+ $(RM_F) $(WARNFILES) $(WARNTIMES) asm\warnings.time
362+ %make asm\warnings.time
363+
364+ asm\warnings.time : $(WARNTIMES ) asm\warnings.pl $(WARNSRCS )
365+ $(EMPTY) asm\warnings.time
366+
367+ asm\warnings_c.h.time : asm\warnings_c.h
368+ $(EMPTY) asm\warnings_c.h.time
369+
370+ asm\warnings_c.h : asm\warnings.pl $(WARNSRCS )
371+ $(RUNPERL) $(srcdir)\asm\warnings.pl c asm\warnings_c.h &
372+ $(srcdir) $(WARNSRCS)
373+
374+ include\warnings.h.time : include\warnings.h
375+ $(EMPTY) include\warnings.h.time
376+
377+ include\warnings.h : asm\warnings.pl $(WARNSRCS )
378+ $(RUNPERL) $(srcdir)\asm\warnings.pl h include\warnings.h &
379+ $(srcdir) $(WARNSRCS)
380+
381+ doc\warnings.src.time : doc\warnings.src
382+ $(EMPTY) doc\warnings.src.time
383+
384+ doc\warnings.src : asm\warnings.pl $(WARNSRCS )
385+ $(RUNPERL) $(srcdir)\asm\warnings.pl doc doc\warnings.src &
386+ $(srcdir) $(WARNSRCS)
387+
360388perlreq : $(PERLREQ ) .SYMBOLIC
361389
362390# -- Begin NSIS Rules --#
0 commit comments