1 csrc = $(wildcard src/*.c) $(wildcard src/sdl/*.c) $(wildcard src/3dgfx/*.c)
7 inc = -Isrc -Isrc/sdl -Isrc/3dgfx -Ilibs/imago/src
9 CFLAGS = $(arch) -pedantic -Wall -g -MMD $(inc) `sdl-config --cflags`
10 LDFLAGS = $(arch) -Llibs/imago -limago $(sdl_ldflags) -lm
12 ifneq ($(shell uname -m), i386)
14 sdl_ldflags = -L/usr/lib/i386-linux-gnu -lSDL-1.2
16 sdl_ldflags = `sdl-config --libs`
21 $(CC) -o $@ $(obj) $(LDFLAGS)