Fix makefiles
This commit is contained in:
parent
9928297edf
commit
69a7bcafc7
4
Makefile
4
Makefile
@ -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
|
||||
|
||||
|
15
Makefile.osx
15
Makefile.osx
@ -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
|
||||
|
||||
|
||||
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user