mirror of
https://github.com/Shpoike/Quakespasm.git
synced 2024-11-10 07:21:58 +00:00
Makefiles: replace '$^' with '$<' in build rules. add dependency list for image.o.
git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@1469 af15c1b1-3010-417e-b628-4374ebc0bcbd
This commit is contained in:
parent
1e728fa2ad
commit
9bf21b932f
4 changed files with 16 additions and 8 deletions
|
@ -193,7 +193,7 @@ DEFAULT_TARGET := quakespasm
|
|||
# ---------------------------
|
||||
|
||||
%.o: %.c
|
||||
$(CC) $(DFLAGS) -c $(CFLAGS) $(SDL_CFLAGS) -o $@ $^
|
||||
$(CC) $(DFLAGS) -c $(CFLAGS) $(SDL_CFLAGS) -o $@ $<
|
||||
|
||||
# ----------------------------------------------------------------------------
|
||||
# objects
|
||||
|
@ -290,6 +290,8 @@ quakespasm: $(OBJS)
|
|||
$(LINKER) $(OBJS) $(LDFLAGS) $(LIBS) $(SDL_LIBS) -o $@
|
||||
$(call do_strip,$@)
|
||||
|
||||
image.o: lodepng.c lodepng.h stb_image_write.h
|
||||
|
||||
release: quakespasm
|
||||
debug:
|
||||
$(error Use "make DEBUG=1")
|
||||
|
|
|
@ -215,11 +215,11 @@ DEFAULT_TARGET := quakespasm
|
|||
# ---------------------------
|
||||
|
||||
%.o: %.c
|
||||
$(CC) $(DFLAGS) -c $(CFLAGS) $(SDL_CFLAGS) -o $@ $^
|
||||
$(CC) $(DFLAGS) -c $(CFLAGS) $(SDL_CFLAGS) -o $@ $<
|
||||
%.o: %.m
|
||||
$(CC) $(DFLAGS) -c $(CFLAGS) $(SDL_CFLAGS) -o $@ $^
|
||||
$(CC) $(DFLAGS) -c $(CFLAGS) $(SDL_CFLAGS) -o $@ $<
|
||||
%.o: ../MacOSX/%.m
|
||||
$(CC) $(DFLAGS) -c -I../MacOSX $(CFLAGS) $(SDL_CFLAGS) -o $@ $^
|
||||
$(CC) $(DFLAGS) -c -I../MacOSX $(CFLAGS) $(SDL_CFLAGS) -o $@ $<
|
||||
|
||||
# ----------------------------------------------------------------------------
|
||||
# objects
|
||||
|
@ -316,6 +316,8 @@ quakespasm: $(OBJS)
|
|||
$(LINKER) $(OBJS) $(LDFLAGS) $(LIBS) $(SDL_LIBS) -o $@
|
||||
$(call do_strip,$@)
|
||||
|
||||
image.o: lodepng.c lodepng.h stb_image_write.h
|
||||
|
||||
release: quakespasm
|
||||
debug:
|
||||
$(error Use "make DEBUG=1")
|
||||
|
|
|
@ -181,9 +181,9 @@ DEFAULT_TARGET := quakespasm.exe
|
|||
# ---------------------------
|
||||
|
||||
%.o: %.c
|
||||
$(CC) $(DFLAGS) -c $(CFLAGS) $(SDL_CFLAGS) -o $@ $^
|
||||
$(CC) $(DFLAGS) -c $(CFLAGS) $(SDL_CFLAGS) -o $@ $<
|
||||
%.res: ../Windows/%.rc
|
||||
$(WINDRES) -I../Windows --output-format=coff --target=pe-i386 -o $@ $^
|
||||
$(WINDRES) -I../Windows --output-format=coff --target=pe-i386 -o $@ $<
|
||||
|
||||
# ----------------------------------------------------------------------------
|
||||
# objects
|
||||
|
@ -280,6 +280,8 @@ quakespasm.exe: $(OBJS)
|
|||
$(LINKER) $(OBJS) $(LDFLAGS) $(LIBS) $(SDL_LIBS) -o $@
|
||||
$(call do_strip,$@)
|
||||
|
||||
image.o: lodepng.c lodepng.h stb_image_write.h
|
||||
|
||||
release: quakespasm.exe
|
||||
debug:
|
||||
$(error Use "make DEBUG=1")
|
||||
|
|
|
@ -179,9 +179,9 @@ DEFAULT_TARGET := quakespasm.exe
|
|||
# ---------------------------
|
||||
|
||||
%.o: %.c
|
||||
$(CC) $(DFLAGS) -c $(CFLAGS) $(SDL_CFLAGS) -o $@ $^
|
||||
$(CC) $(DFLAGS) -c $(CFLAGS) $(SDL_CFLAGS) -o $@ $<
|
||||
%.res: ../Windows/%.rc
|
||||
$(WINDRES) -I../Windows --output-format=coff --target=pe-x86-64 -o $@ $^
|
||||
$(WINDRES) -I../Windows --output-format=coff --target=pe-x86-64 -o $@ $<
|
||||
|
||||
# ----------------------------------------------------------------------------
|
||||
# objects
|
||||
|
@ -278,6 +278,8 @@ quakespasm.exe: $(OBJS)
|
|||
$(LINKER) $(OBJS) $(LDFLAGS) $(LIBS) $(SDL_LIBS) -o $@
|
||||
$(call do_strip,$@)
|
||||
|
||||
image.o: lodepng.c lodepng.h stb_image_write.h
|
||||
|
||||
release: quakespasm.exe
|
||||
debug:
|
||||
$(error Use "make DEBUG=1")
|
||||
|
|
Loading…
Reference in a new issue