#DBG = -g CC = gcc 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) .PHONY: all clean all: bomber 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) matcher: matcher.c bomber.o: bomber.c bomber.h gfx.h announce.h gfx.o: gfx.c gfx.h bomber.h sound.o: sound.c announce.o: announce.c announce.h clean: rm -f *.o matcher bomber