Browse Source

Fix makefiles

tags/sdlbomber-1.0.5
Stefan Bühler 10 years ago
parent
commit
69a7bcafc7
3 changed files with 13 additions and 12 deletions
  1. +2
    -2
      Makefile
  2. +9
    -8
      Makefile.osx
  3. +2
    -2
      Makefile.sdldemoswin32

+ 2
- 2
Makefile 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


+ 9
- 8
Makefile.osx 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
test: all
./sdlbomber




+ 2
- 2
Makefile.sdldemoswin32 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

Loading…
Cancel
Save