2009-08-06 16:44:28 +00:00
|
|
|
#DBG = -g
|
|
|
|
CC = gcc
|
2009-08-07 12:15:42 +00:00
|
|
|
WARNFLAGS = -Wall -Wmissing-declarations -Wdeclaration-after-statement -Wcast-align -Winline -Wsign-compare -Wnested-externs -Wpointer-arith -Wformat-security
|
|
|
|
CFLAGS = -g -D_REENTRANT -O2 -Wall $(shell sdl-config --cflags) $(DBG) $(WARNFLAGS)
|
2009-08-06 16:44:28 +00:00
|
|
|
|
2009-08-07 12:15:42 +00:00
|
|
|
.PHONY: all clean
|
|
|
|
all: bomber
|
2009-08-06 16:44:28 +00:00
|
|
|
|
2009-08-07 12:15:42 +00:00
|
|
|
bomber: bomber.o gfx.o sound.o announce.o matcher
|
|
|
|
gcc -o bomber bomber.o gfx.o sound.o announce.o $(shell sdl-config --libs) -lavahi-common -lavahi-client $(DBG)
|
2009-08-06 16:44:28 +00:00
|
|
|
|
|
|
|
matcher: matcher.c
|
|
|
|
|
2009-08-07 12:15:42 +00:00
|
|
|
bomber.o: bomber.c bomber.h gfx.h announce.h
|
2009-08-06 16:44:28 +00:00
|
|
|
|
2009-08-07 12:15:42 +00:00
|
|
|
gfx.o: gfx.c gfx.h bomber.h
|
2009-08-06 16:44:28 +00:00
|
|
|
|
2009-08-07 12:15:42 +00:00
|
|
|
sound.o: sound.c
|
|
|
|
|
|
|
|
announce.o: announce.c announce.h
|
2009-08-06 16:44:28 +00:00
|
|
|
|
|
|
|
clean:
|
|
|
|
rm -f *.o matcher bomber
|