Fix makefiles

This commit is contained in:
Stefan Bühler 2009-08-07 15:39:51 +02:00
parent 9928297edf
commit 69a7bcafc7
3 changed files with 13 additions and 12 deletions

View File

@ -11,11 +11,11 @@ sdlbomber: bomber.o gfx.o sound.o announce.o
matcher: matcher.c
bomber.o: bomber.c bomber.h gfx.h announce.h
bomber.o: bomber.c bomber.h gfx.h announce.h sound.h
gfx.o: gfx.c gfx.h bomber.h
sound.o: sound.c
sound.o: sound.c sound.h
announce.o: announce.c announce.h

View File

@ -3,23 +3,24 @@
CC = gcc
CFLAGS = -O2 -Wall -I/Library/Frameworks/SDL.framework/Headers $(DBG)
LDFLAGS += -framework SDL -framework Cocoa -o $@
LDFLAGS += -framework SDL -framework Cocoa -o $@ -lavahi-client
all: bomber
bomber: gfx.o bomber.o sound.o SDLMain.o
all: sdlbomber
sdlbomber: gfx.o bomber.o sound.o SDLMain.o announce.o
SDLMain.o: SDLmain.m
bomber.o: bomber.c bomber.h gfx.h
bomber.o: bomber.c bomber.h gfx.h sound.h announce.h
gfx.o: gfx.c bomber.h gfx.h
sound.o: sound.c bomber.h
sound.o: sound.c bomber.h sound.h
announce.o: announce.c announce.h
clean:
rm -f *.o bomber
rm -f *.o sdlbomber matcher
test: all
./bomber
./sdlbomber

View File

@ -1,9 +1,9 @@
# Makefile for bomber
#
TARGET = bomber
TARGET = sdlbomber
USEINET = true
include ../GNUmake
$(TARGET): bomber.o gfx.o sound.o
$(TARGET): bomber.o gfx.o sound.o announce.o