summaryrefslogtreecommitdiff
path: root/games/annelid/files/patch-Makefile
blob: 6bb19c125393a1b290156816b3f332367c2a2398 (plain)
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
--- Makefile.orig	Thu Jun 17 23:58:24 2004
+++ Makefile	Sun Jul 24 14:38:41 2005
@@ -4,7 +4,6 @@
 # For more information, please visit http://www.garthgillespie.com/annelid/ .
 
 # Comment the next line for non-windows.  This is not well tested.
-WINDOWS=1
 
 ifdef WINDOWS
 NAME=annelid.exe
@@ -14,16 +13,16 @@
 
 OBJS=main.o mixer.o highscore.o texture.o centeredtexture.o fonttexture.o scrolltexture.o targa.o worm.o apple.o powerup.o visual.o
 
-CC=gcc
-CCC=g++
-CFLAGS=-I. `sdl-config --cflags` -c -Wall -ggdb -fomit-frame-pointer -O3
+CCC=$(CXX)
+CFLAGS=%%CFLAGS%% -I. -I%%LOCALBASE%%/include `sdl-config --cflags` -c -Wall $(OPT)
+OPT = -fomit-frame-pointer -O3
 
-LD=g++
+LD=$(CXX)
 
 ifdef WINDOWS
 LIBS=-lopengl32 `sdl-config --libs`
 else
-LIBS=-L/usr/X11R6/lib -lGL `sdl-config --libs`
+LIBS=-L%%LOCALBASE%%/lib -lGL `sdl-config --libs`
 endif
 
 all: $(NAME)