1 src = $(wildcard src/*.c) $(wildcard src/parts/*.c) $(wildcard src/sdl/*.c)
2 obj = $(src:.c=.o) $(asmsrc:.asm=.o)
6 inc = -I/usr/local/include -Isrc -Isrc/sdl -Ilibs/imago/src -Ilibs/mikmod/include
7 warn = -pedantic -Wall -Wno-unused-variable -Wno-unused-function
9 CFLAGS = $(warn) -g $(inc) `sdl-config --cflags`
10 LDFLAGS = -Llibs/imago -Llibs/mikmod -limago -lmikmod `sdl-config --libs` -lm
12 $(bin): $(obj) imago mikmod
13 $(CC) -o $@ $(obj) $(LDFLAGS)
21 @$(CPP) $(CFLAGS) $< -MM -MT $(@:.d=.o) >$@
29 $(MAKE) -C libs/mikmod
33 $(MAKE) -C libs/imago clean
34 $(MAKE) -C libs/mikmod clean