File: 01_makefile.patch

package info (click to toggle)
rrootage 0.23a-15
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 5,636 kB
  • sloc: cpp: 11,562; ansic: 3,444; xml: 2,032; makefile: 127; yacc: 124; sh: 52
file content (37 lines) | stat: -rw-r--r-- 1,315 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
# Copyright (C) 2005  Miriam Ruiz <little_miry@yahoo.es>
# Copyright (C) 2005  Dafydd Harries <daf@debian.org>
# Distributed under the same license as the game. See debian/copyright.

--- a/src/makefile.lin
+++ b/src/makefile.lin
@@ -7,15 +7,16 @@
 CC     = gcc
 CXX    = g++
 
-PROG   = $(NAME)
+PROG   = rrootage
 
 DEFAULT_CFLAGS = `sdl-config --cflags`
-LDFLAGS        = `sdl-config --libs` -L. -lglut -lbulletml -lSDL_mixer -mwindows -lstdc++
+#LDFLAGS        = `sdl-config --libs` -L. -lGLU -lGL -lbulletml -lSDL_mixer -mwindows
+LDFLAGS        = `sdl-config --libs` -L. -lGLU -lGL bulletml/libbulletml.a -lSDL_mixer
 #-lglu32 -lopengl32 -lmingw32 -lmingwex
-MORE_CFLAGS = -DLINUX -O3 -Wall
+MORE_CFLAGS = -O2 -Wall
 
-CFLAGS   = $(DEFAULT_CFLAGS) $(MORE_CFLAGS)
-CPPFLAGS = $(DEFAULT_CFLAGS) $(MORE_CFLAGS) -I./bulletml/
+CFLAGS   = $(DEFAULT_CFLAGS) $(MORE_CFLAGS) -DLINUX
+CPPFLAGS = $(DEFAULT_CFLAGS) $(MORE_CFLAGS) -DLINUX -I./bulletml/
 
 OBJS =	$(NAME).$(O) \
 	foe.$(O) foecommand.$(O) barragemanager.$(O) boss.$(O) ship.$(O) laser.$(O) \
@@ -26,7 +27,7 @@
 	#$(NAME)_res.$(O)
 
 $(PROG): $(OBJS)
-	$(CC) $(CFLAGS) -o $(PROG) $(OBJS) $(LDFLAGS)
+	$(CXX) $(CPPFLAGS) -o $(PROG) $(OBJS) $(LDFLAGS)
 
 #$(NAME)_res.o: $(NAME).rc
 #	windres -i $(NAME).rc -o $(NAME)_res.o