Skip to content

Commit fc56538

Browse files
author
H. Peter Anvin (Intel)
committed
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) <[email protected]>
1 parent efe066e commit fc56538

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

Makefile.in

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,7 @@ ZLIBOBJ = \
224224

225225
LIBOBJ = $(LIBOBJ_W) $(LIBOBJ_NW) $(ZLIB)
226226
ALLOBJ_W = $(NASM) $(LIBOBJ_W)
227-
ALLOBJ = $(PROGOBJ) $(LIBOBJ)
227+
ALLOBJ = $(PROGOBJ) $(LIBOBJ) $(LIBOBJ_DIS)
228228
SUBDIRS = stdlib nasmlib include config output asm disasm x86 \
229229
common zlib macros misc
230230
XSUBDIRS = nsis win test doc editors
@@ -262,7 +262,7 @@ ndisasm$(X): $(NDISASM) $(MANIFEST) $(DISLIB) $(NASMLIB)
262262
$(DISLIB) $(NASMLIB) $(LIBS)
263263

264264
# Make sure we have subdirectories set up...
265-
$(LIBOBJ) $(LIBOBJ_DIS): $(DIRS)
265+
$(ALLOBJ): $(DIRS)
266266

267267
#-- Begin Generated File Rules --#
268268

Mkfiles/msvc.mak

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ ZLIBOBJ = \
175175

176176
LIBOBJ = $(LIBOBJ_W) $(LIBOBJ_NW) $(ZLIB)
177177
ALLOBJ_W = $(NASM) $(LIBOBJ_W)
178-
ALLOBJ = $(PROGOBJ) $(LIBOBJ)
178+
ALLOBJ = $(PROGOBJ) $(LIBOBJ) $(LIBOBJ_DIS)
179179
SUBDIRS = stdlib nasmlib include config output asm disasm x86 \
180180
common zlib macros misc
181181
XSUBDIRS = nsis win test doc editors

Mkfiles/openwcom.mak

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ ZLIBOBJ = &
161161

162162
LIBOBJ = $(LIBOBJ_W) $(LIBOBJ_NW) $(ZLIB)
163163
ALLOBJ_W = $(NASM) $(LIBOBJ_W)
164-
ALLOBJ = $(PROGOBJ) $(LIBOBJ)
164+
ALLOBJ = $(PROGOBJ) $(LIBOBJ) $(LIBOBJ_DIS)
165165
SUBDIRS = stdlib nasmlib include config output asm disasm x86 &
166166
common zlib macros misc
167167
XSUBDIRS = nsis win test doc editors

0 commit comments

Comments
 (0)