gba-x3dtest
annotate Makefile.sdl @ 19:62390f9cc93e
texture cache optimization failed
author | John Tsiombikas <nuclear@member.fsf.org> |
---|---|
date | Mon, 30 Jun 2014 09:07:41 +0300 |
parents | 02cf4011f566 |
children |
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@17 | 3 imgfiles = $(wildcard *.png) |
nuclear@17 | 4 obj = $(src:.c=.x86.o) $(imgfiles:.png=.img.x86.o) |
nuclear@5 | 5 dep = $(obj:.o=.d) |
nuclear@16 | 6 bin = x3dtest |
nuclear@5 | 7 |
nuclear@9 | 8 warn = -Wall -Wno-unused-function |
nuclear@9 | 9 |
nuclear@17 | 10 CFLAGS = -pedantic $(warn) -g `pkg-config sdl --cflags` -I. -Isrc -Isrc/sdlsys |
nuclear@5 | 11 LDFLAGS = `pkg-config sdl --libs` -lm |
nuclear@5 | 12 |
nuclear@5 | 13 $(bin): $(obj) |
nuclear@5 | 14 $(CC) -o $@ $(obj) $(LDFLAGS) |
nuclear@5 | 15 |
nuclear@5 | 16 %.x86.o: %.c |
nuclear@5 | 17 $(CC) $(CFLAGS) -o $@ -c $< |
nuclear@5 | 18 |
nuclear@9 | 19 -include $(dep) |
nuclear@9 | 20 |
nuclear@9 | 21 %.x86.d: %.c |
nuclear@9 | 22 @$(CPP) $(CFLAGS) $< -MM -MT $(@:.d=.o) >$@ |
nuclear@9 | 23 |
nuclear@17 | 24 %.img.c: %.png |
nuclear@17 | 25 img2gba $< |
nuclear@17 | 26 |
nuclear@5 | 27 .PHONY: clean |
nuclear@5 | 28 clean: |
nuclear@5 | 29 rm -f $(obj) $(bin) |