gba-x3dtest

diff Makefile.sdl @ 9:b0ed38f13261

working on the rasterizer
author John Tsiombikas <nuclear@member.fsf.org>
date Sun, 22 Jun 2014 05:16:10 +0300
parents 850be43b3135
children 02cf4011f566
line diff
     1.1 --- a/Makefile.sdl	Thu Jun 19 05:53:46 2014 +0300
     1.2 +++ b/Makefile.sdl	Sun Jun 22 05:16:10 2014 +0300
     1.3 @@ -4,7 +4,9 @@
     1.4  dep = $(obj:.o=.d)
     1.5  bin = trycatch
     1.6  
     1.7 -CFLAGS = -pedantic -Wall -g `pkg-config sdl --cflags` -Isrc -Isrc/sdlsys
     1.8 +warn = -Wall -Wno-unused-function
     1.9 +
    1.10 +CFLAGS = -pedantic $(warn) -g `pkg-config sdl --cflags` -Isrc -Isrc/sdlsys
    1.11  LDFLAGS = `pkg-config sdl --libs` -lm
    1.12  
    1.13  $(bin): $(obj)
    1.14 @@ -13,6 +15,11 @@
    1.15  %.x86.o: %.c
    1.16  	$(CC) $(CFLAGS) -o $@ -c $<
    1.17  
    1.18 +-include $(dep)
    1.19 +
    1.20 +%.x86.d: %.c
    1.21 +	@$(CPP) $(CFLAGS) $< -MM -MT $(@:.d=.o) >$@
    1.22 +
    1.23  .PHONY: clean
    1.24  clean:
    1.25  	rm -f $(obj) $(bin)