sdlbomber/Makefile.osx

27 lines
475 B
Makefile
Raw Permalink Normal View History

2009-08-06 16:44:28 +00:00
#DBG += -g
#DBG += -pg
CC = gcc
CFLAGS = -O2 -Wall -I/Library/Frameworks/SDL.framework/Headers $(DBG)
2009-08-07 13:39:51 +00:00
LDFLAGS += -framework SDL -framework Cocoa -o $@ -lavahi-client
2009-08-06 16:44:28 +00:00
2009-08-07 13:39:51 +00:00
all: sdlbomber
sdlbomber: gfx.o bomber.o sound.o SDLMain.o announce.o
2009-08-06 16:44:28 +00:00
SDLMain.o: SDLmain.m
2009-08-07 13:39:51 +00:00
bomber.o: bomber.c bomber.h gfx.h sound.h announce.h
2009-08-06 16:44:28 +00:00
gfx.o: gfx.c bomber.h gfx.h
2009-08-07 13:39:51 +00:00
sound.o: sound.c bomber.h sound.h
announce.o: announce.c announce.h
2009-08-06 16:44:28 +00:00
clean:
2009-08-07 13:39:51 +00:00
rm -f *.o sdlbomber matcher
2009-08-06 16:44:28 +00:00
2009-08-07 13:39:51 +00:00
test: all
./sdlbomber
2009-08-06 16:44:28 +00:00