From fc56538bce4273f7d701647db4f81ae0c25004b0 Mon Sep 17 00:00:00 2001 From: "H. Peter Anvin (Intel)" Date: Wed, 15 Oct 2025 20:00:36 -0700 Subject: [PATCH] Makefile: include $(PROGOBJ) in $(DIRS) dependency The $(DIRS) dependency didn't include $(PROGOBJ), which could cause Make to try to build asm/nasm.o or disasm/ndisasm.o before the corresponding object subdirectory had been created. Signed-off-by: H. Peter Anvin (Intel) --- Makefile.in | 4 ++-- Mkfiles/msvc.mak | 2 +- Mkfiles/openwcom.mak | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Makefile.in b/Makefile.in index 64e0cb2d..eb2adcd7 100644 --- a/Makefile.in +++ b/Makefile.in @@ -224,7 +224,7 @@ ZLIBOBJ = \ LIBOBJ = $(LIBOBJ_W) $(LIBOBJ_NW) $(ZLIB) ALLOBJ_W = $(NASM) $(LIBOBJ_W) -ALLOBJ = $(PROGOBJ) $(LIBOBJ) +ALLOBJ = $(PROGOBJ) $(LIBOBJ) $(LIBOBJ_DIS) SUBDIRS = stdlib nasmlib include config output asm disasm x86 \ common zlib macros misc XSUBDIRS = nsis win test doc editors @@ -262,7 +262,7 @@ ndisasm$(X): $(NDISASM) $(MANIFEST) $(DISLIB) $(NASMLIB) $(DISLIB) $(NASMLIB) $(LIBS) # Make sure we have subdirectories set up... -$(LIBOBJ) $(LIBOBJ_DIS): $(DIRS) +$(ALLOBJ): $(DIRS) #-- Begin Generated File Rules --# diff --git a/Mkfiles/msvc.mak b/Mkfiles/msvc.mak index 6d285011..a1e4404b 100644 --- a/Mkfiles/msvc.mak +++ b/Mkfiles/msvc.mak @@ -175,7 +175,7 @@ ZLIBOBJ = \ LIBOBJ = $(LIBOBJ_W) $(LIBOBJ_NW) $(ZLIB) ALLOBJ_W = $(NASM) $(LIBOBJ_W) -ALLOBJ = $(PROGOBJ) $(LIBOBJ) +ALLOBJ = $(PROGOBJ) $(LIBOBJ) $(LIBOBJ_DIS) SUBDIRS = stdlib nasmlib include config output asm disasm x86 \ common zlib macros misc XSUBDIRS = nsis win test doc editors diff --git a/Mkfiles/openwcom.mak b/Mkfiles/openwcom.mak index f8f0069d..d752e24c 100644 --- a/Mkfiles/openwcom.mak +++ b/Mkfiles/openwcom.mak @@ -161,7 +161,7 @@ ZLIBOBJ = & LIBOBJ = $(LIBOBJ_W) $(LIBOBJ_NW) $(ZLIB) ALLOBJ_W = $(NASM) $(LIBOBJ_W) -ALLOBJ = $(PROGOBJ) $(LIBOBJ) +ALLOBJ = $(PROGOBJ) $(LIBOBJ) $(LIBOBJ_DIS) SUBDIRS = stdlib nasmlib include config output asm disasm x86 & common zlib macros misc XSUBDIRS = nsis win test doc editors