gba-x3dtest

annotate 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
rev   line source
nuclear@5 1 # vi:set filetype=make:
nuclear@5 2 src = $(filter-out src/main.c,$(wildcard src/*.c)) $(wildcard src/sdlsys/*.c)
nuclear@5 3 obj = $(src:.c=.x86.o)
nuclear@5 4 dep = $(obj:.o=.d)
nuclear@5 5 bin = trycatch
nuclear@5 6
nuclear@5 7 CFLAGS = -pedantic -Wall -g `pkg-config sdl --cflags` -Isrc -Isrc/sdlsys
nuclear@5 8 LDFLAGS = `pkg-config sdl --libs` -lm
nuclear@5 9
nuclear@5 10 $(bin): $(obj)
nuclear@5 11 $(CC) -o $@ $(obj) $(LDFLAGS)
nuclear@5 12
nuclear@5 13 %.x86.o: %.c
nuclear@5 14 $(CC) $(CFLAGS) -o $@ -c $<
nuclear@5 15
nuclear@5 16 .PHONY: clean
nuclear@5 17 clean:
nuclear@5 18 rm -f $(obj) $(bin)