Building src objects via Makefile.utl

<Someone> noticed that if one builds something in util and the required .o
files aren't already built in src, the .o gets placed in the wrong place.
Added the missing '-o $@' to the compilation command.
This commit is contained in:
cohrs
2003-03-02 06:21:29 +00:00
parent b6da412ef1
commit f60f576727
3 changed files with 8 additions and 6 deletions

View File

@@ -8,6 +8,7 @@ avoid panic when secondary weapon is cursed while generating bones level
Platform- and/or Interface-Specific Fixes
-----------------------------------------
Gnome: compilation problems on Redhat 7.2 and 8.0
unix: Makefile.utl would put OBJDIR objects in the wrong directory
General New Features

View File

@@ -9,6 +9,7 @@ avoid panic when secondary weapon is cursed while generating bones level
Platform- and/or Interface-Specific Fixes
-----------------------------------------
Gnome: compilation problems on Redhat 7.2 and 8.0
unix: Makefile.utl would put OBJDIR objects in the wrong directory
General New Features

View File

@@ -364,17 +364,17 @@ tile2beos.o: ../win/BeOS/tile2beos.cpp $(HACK_H) ../include/tile.h
# make sure object files from src are available when needed
#
$(OBJDIR)/alloc.o: ../src/alloc.c $(CONFIG_H)
$(CC) $(CFLAGS) -c ../src/alloc.c
$(CC) $(CFLAGS) -c ../src/alloc.c -o $@
$(OBJDIR)/drawing.o: ../src/drawing.c $(CONFIG_H)
$(CC) $(CFLAGS) -c ../src/drawing.c
$(CC) $(CFLAGS) -c ../src/drawing.c -o $@
$(OBJDIR)/decl.o: ../src/decl.c $(CONFIG_H)
$(CC) $(CFLAGS) -c ../src/decl.c
$(CC) $(CFLAGS) -c ../src/decl.c -o $@
$(OBJDIR)/monst.o: ../src/monst.c $(CONFIG_H)
$(CC) $(CFLAGS) -c ../src/monst.c
$(CC) $(CFLAGS) -c ../src/monst.c -o $@
$(OBJDIR)/objects.o: ../src/objects.c $(CONFIG_H)
$(CC) $(CFLAGS) -c ../src/objects.c
$(CC) $(CFLAGS) -c ../src/objects.c -o $@
$(OBJDIR)/dlb.o: ../src/dlb.c $(HACK_H) ../include/dlb.h
$(CC) $(CFLAGS) -c ../src/dlb.c
$(CC) $(CFLAGS) -c ../src/dlb.c -o $@
# make sure hack.h dependencies get transitive information
$(HACK_H): $(CONFIG_H)