gba-trycatch

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