gba-x3dtest

diff Makefile.sdl @ 5:850be43b3135

sdl version
author John Tsiombikas <nuclear@member.fsf.org>
date Mon, 16 Jun 2014 22:01:45 +0300
parents
children b0ed38f13261
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/Makefile.sdl	Mon Jun 16 22:01:45 2014 +0300
     1.3 @@ -0,0 +1,18 @@
     1.4 +# vi:set filetype=make:
     1.5 +src = $(filter-out src/main.c,$(wildcard src/*.c)) $(wildcard src/sdlsys/*.c)
     1.6 +obj = $(src:.c=.x86.o)
     1.7 +dep = $(obj:.o=.d)
     1.8 +bin = trycatch
     1.9 +
    1.10 +CFLAGS = -pedantic -Wall -g `pkg-config sdl --cflags` -Isrc -Isrc/sdlsys
    1.11 +LDFLAGS = `pkg-config sdl --libs` -lm
    1.12 +
    1.13 +$(bin): $(obj)
    1.14 +	$(CC) -o $@ $(obj) $(LDFLAGS)
    1.15 +
    1.16 +%.x86.o: %.c
    1.17 +	$(CC) $(CFLAGS) -o $@ -c $<
    1.18 +
    1.19 +.PHONY: clean
    1.20 +clean:
    1.21 +	rm -f $(obj) $(bin)