aboutsummaryrefslogtreecommitdiff
path: root/games/moonlander/files/patch-Makefile
diff options
context:
space:
mode:
authorKris Kennaway <kris@FreeBSD.org>2003-06-27 08:37:10 +0000
committerKris Kennaway <kris@FreeBSD.org>2003-06-27 08:37:10 +0000
commit8927235a48d341a00b39faf5ea677de3bdc739cc (patch)
tree17f8e8723b1849bf5904a0963bcc1f20b9dfb748 /games/moonlander/files/patch-Makefile
parent955cfd277e02b04c2395c515c709cb58aeee961f (diff)
downloadports-8927235a48d341a00b39faf5ea677de3bdc739cc.tar.gz
ports-8927235a48d341a00b39faf5ea677de3bdc739cc.zip
Notes
Diffstat (limited to 'games/moonlander/files/patch-Makefile')
-rw-r--r--games/moonlander/files/patch-Makefile36
1 files changed, 36 insertions, 0 deletions
diff --git a/games/moonlander/files/patch-Makefile b/games/moonlander/files/patch-Makefile
new file mode 100644
index 000000000000..be81ec3162e7
--- /dev/null
+++ b/games/moonlander/files/patch-Makefile
@@ -0,0 +1,36 @@
+--- Makefile.orig Tue Aug 14 16:28:49 2001
++++ Makefile Thu Jun 26 22:07:33 2003
+@@ -1,26 +1,20 @@
+ # Makefile for test program for game_libs - lunar lander
+-CFLAGS=-Wall `sdl-config --libs --cflags`
+-CC=gcc
++CFLAGS+=`sdl11-config --cflags`
++#CC=gcc
+
+-LIBS=SDL_image
++LIBS=`sdl11-config --libs` -lSDL_image -lSDL_mixer
+
+ C_FILES=moon_lander.c game_lib.c DT_drawtext.c
+ OBJ_FILES=moon_lander.o game_lib.o DT_drawtext.o
+-OUT_FILE=moon-lander.bin
++OUT_FILE=moonlander
+
+ all: game_lib
+
+ game_lib: $(OBJ_FILES)
+- $(CC) $(CFLAGS) -o $(OUT_FILE) $(OBJ_FILES) -l$(LIBS) -lSDL_mixer
++ $(CC) $(CFLAGS) -o $(OUT_FILE) $(OBJ_FILES) $(LIBS)
+
+-moon_lander.o: moon_lander.c
+- $(CC) $(CFLAGS) -c -o $@ $^
+-
+-game_lib.o: game_lib.c
+- $(CC) $(CFLAGS) -c -o $@ $^
+-
+-DT_drawtext.o: DT_drawtext.c
+- $(CC) $(CFLAGS) -c -o $@ $^
++.c.o:
++ $(CC) $(CFLAGS) -c $< -o $@
+
+ clean:
+ rm -f *.o core