Skip to content

Commit ee34545

Browse files
committed
fix build make files
1 parent 55ac25d commit ee34545

File tree

2 files changed

+59
-2
lines changed

2 files changed

+59
-2
lines changed

Mkfiles/msvc.mak

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -333,6 +333,34 @@ asm\directbl.c: asm\directiv.dat nasmlib\perfhash.pl perllib\phash.ph
333333
$(RUNPERL) $(srcdir)\nasmlib\perfhash.pl c \
334334
$(srcdir)\asm\directiv.dat asm\directbl.c
335335

336+
warnings: .SYMBOLIC
337+
$(RM_F) $(WARNFILES) $(WARNTIMES) asm\warnings.time
338+
%make asm\warnings.time
339+
340+
asm\warnings.time: $(WARNTIMES) asm\warnings.pl $(WARNSRCS)
341+
$(EMPTY) asm\warnings.time
342+
343+
asm\warnings_c.h.time: asm\warnings_c.h
344+
$(EMPTY) asm\warnings_c.h.time
345+
346+
asm\warnings_c.h: asm\warnings.pl $(WARNSRCS)
347+
$(RUNPERL) $(srcdir)\asm\warnings.pl c asm\warnings_c.h &
348+
$(srcdir) $(WARNSRCS)
349+
350+
include\warnings.h.time: include\warnings.h
351+
$(EMPTY) include\warnings.h.time
352+
353+
include\warnings.h: asm\warnings.pl $(WARNSRCS)
354+
$(RUNPERL) $(srcdir)\asm\warnings.pl h include\warnings.h &
355+
$(srcdir) $(WARNSRCS)
356+
357+
doc\warnings.src.time: doc\warnings.src
358+
$(EMPTY) doc\warnings.src.time
359+
360+
doc\warnings.src : asm\warnings.pl $(WARNSRCS)
361+
$(RUNPERL) $(srcdir)\asm\warnings.pl doc doc\warnings.src &
362+
$(srcdir) $(WARNSRCS)
363+
336364
# Editor token files
337365
editors\nasmtok.el: editors\nasmtok.pl asm\tokhash.c asm\pptok.c \
338366
asm\directiv.dat macros\macros.c editors\builtin.mac \

Mkfiles/openwcom.mak

Lines changed: 31 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ RUNPERL = $(PERL) $(PERLFLAGS)
3333

3434
RM_F = -del /f
3535
LN_S = copy
36-
EMPTY = copy nul:
36+
EMPTY = %create
3737
SIDE = %null Created by side effect
3838

3939
MAKENSIS = makensis
@@ -74,6 +74,7 @@ PROGS = nasm$(X) ndisasm$(X)
7474
# Files dependent on extracted warnings
7575
WARNOBJ = asm\warnings.obj
7676
WARNFILES = 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

7879
OUTPUTOBJ = &
7980
output\outform.obj output\outlib.obj &
@@ -214,7 +215,7 @@ ndisasm.lib: $(LIBOBJ_DIS)
214215
# These are specific to certain Makefile syntaxes (what are they
215216
# actually supposed to look like for wmake?)
216217
WARNTIMES = $(WARNFILES:=.time)
217-
WARNSRCS = $(LIBOBJ_NW:.obj=.c)
218+
WARNSRCS = $(ALLOBJ_W:.obj=.c)
218219

219220
#-- Begin Generated File Rules --#
220221
# Edit in Makefile.in, not here!
@@ -357,6 +358,34 @@ editors: $(EDITORS)
357358

358359
#-- End Generated File Rules --#
359360

361+
warnings: .SYMBOLIC
362+
$(RM_F) $(WARNFILES) $(WARNTIMES) asm\warnings.time
363+
%make asm\warnings.time
364+
365+
asm\warnings.time: $(WARNTIMES) asm\warnings.pl $(WARNSRCS)
366+
$(EMPTY) asm\warnings.time
367+
368+
asm\warnings_c.h.time: asm\warnings_c.h
369+
$(EMPTY) asm\warnings_c.h.time
370+
371+
asm\warnings_c.h: asm\warnings.pl $(WARNSRCS)
372+
$(RUNPERL) $(srcdir)\asm\warnings.pl c asm\warnings_c.h &
373+
$(srcdir) $(WARNSRCS)
374+
375+
include\warnings.h.time: include\warnings.h
376+
$(EMPTY) include\warnings.h.time
377+
378+
include\warnings.h: asm\warnings.pl $(WARNSRCS)
379+
$(RUNPERL) $(srcdir)\asm\warnings.pl h include\warnings.h &
380+
$(srcdir) $(WARNSRCS)
381+
382+
doc\warnings.src.time: doc\warnings.src
383+
$(EMPTY) doc\warnings.src.time
384+
385+
doc\warnings.src : asm\warnings.pl $(WARNSRCS)
386+
$(RUNPERL) $(srcdir)\asm\warnings.pl doc doc\warnings.src &
387+
$(srcdir) $(WARNSRCS)
388+
360389
perlreq: $(PERLREQ) .SYMBOLIC
361390

362391
#-- Begin NSIS Rules --#

0 commit comments

Comments
 (0)