1 csrc = $(wildcard src/*.c) $(wildcard src/sdl/*.c) $(wildcard src/3dgfx/*.c)
2 asmsrc = $(wildcard src/*.asm)
4 obj = $(csrc:.c=.o) $(asmsrc:.asm=.o)
9 inc = -Isrc -Isrc/sdl -Isrc/3dgfx -Ilibs/imago/src
10 warn = -pedantic -Wall
12 CFLAGS = $(arch) $(warn) -g -MMD $(def) $(inc) `sdl-config --cflags`
13 LDFLAGS = $(arch) -Llibs/imago -limago $(sdl_ldflags) -lm
15 ifneq ($(shell uname -m), i386)
17 sdl_ldflags = -L/usr/lib/i386-linux-gnu -lSDL-1.2
19 sdl_ldflags = `sdl-config --libs`
26 $(CC) -o $@ $(obj) $(LDFLAGS)