gba-trycatch

view Makefile.sdl @ 8:fb0a0d6a8b52

sortof works
author John Tsiombikas <nuclear@member.fsf.org>
date Thu, 19 Jun 2014 05:53:46 +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)