54ad1c3f36ff56104b5653da7db0a0f1b8d961d3
[dosdemo] / libs / mikmod / GNUmakefile
1 src = $(wildcard drivers/*.c) \
2           $(wildcard loaders/*.c) \
3           $(wildcard mmio/*.c) \
4           $(wildcard deackers/*.c) \
5           $(wildcard posix/*.c) \
6           $(wildcard playercode/*.c)
7 obj = $(src:.c=.o)
8 alib = libmikmod.a
9
10 def = -DHAVE_CONFIG_H -DMIKMOD_BUILD
11 inc = -I. -Iinclude
12 CFLAGS = -pedantic -Wall -g $(def) $(inc) `pkg-config --cflags sdl`
13
14 $(alib): $(obj)
15         $(AR) rcs $@ $(obj)
16
17 .PHONY: clean
18 clean:
19         rm -f $(obj) $(bin)