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
|
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
|
gfx.o: gfx.c gfx.h bomber.h
|
||||||
|
|
||||||
sound.o: sound.c
|
sound.o: sound.c sound.h
|
||||||
|
|
||||||
announce.o: announce.c announce.h
|
announce.o: announce.c announce.h
|
||||||
|
|
||||||
|
15
Makefile.osx
15
Makefile.osx
@ -3,23 +3,24 @@
|
|||||||
CC = gcc
|
CC = gcc
|
||||||
CFLAGS = -O2 -Wall -I/Library/Frameworks/SDL.framework/Headers $(DBG)
|
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
|
all: sdlbomber
|
||||||
bomber: gfx.o bomber.o sound.o SDLMain.o
|
sdlbomber: gfx.o bomber.o sound.o SDLMain.o announce.o
|
||||||
|
|
||||||
|
|
||||||
SDLMain.o: SDLmain.m
|
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
|
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:
|
clean:
|
||||||
rm -f *.o bomber
|
rm -f *.o sdlbomber matcher
|
||||||
|
|
||||||
test: all
|
test: all
|
||||||
./bomber
|
./sdlbomber
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
@ -1,9 +1,9 @@
|
|||||||
# Makefile for bomber
|
# Makefile for bomber
|
||||||
#
|
#
|
||||||
|
|
||||||
TARGET = bomber
|
TARGET = sdlbomber
|
||||||
USEINET = true
|
USEINET = true
|
||||||
|
|
||||||
include ../GNUmake
|
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