summaryrefslogtreecommitdiff
path: root/games/egoboo/files/patch-game-Makefile.unix
blob: 400bf93a0f08e5785513875d57b267f59bb66eea (plain) (blame)
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
--- Makefile.unix.orig	2008-01-02 00:35:35.000000000 +0300
+++ Makefile.unix	2008-02-07 04:07:36.000000000 +0300
@@ -1,5 +1,4 @@
 # note if you change the prefix also update egoboo.sh
-PREFIX   := /usr
 EGO_SRC  := camera.c char.c Client.c Clock.c common-file.c configfile.c \
 					  egoboostrutil.c enchant.c Font.c game.c gltexture.c graphicfan.c \
 					  graphicmad.c graphic.c graphicprt.c id_normals.c input.c \
@@ -12,15 +11,15 @@
 						../enet/unix.c
 ENET_OBJ := ${ENET_SRC:.c=.o}
 
-SDL_CONF  := sdl-config
+SDL_CONF  := ${SDL_CONFIG}
 SDLCONF_I := $(shell ${SDL_CONF} --cflags)
 SDLCONF_L := $(shell ${SDL_CONF} --libs)
 
-CC      := gcc
+CC      ?= gcc
 OPT     := -Os
-INC     := -I. -I.. ${SDLCONF_I}
-CFLAGS  := ${OPT} ${INC}
-LDFLAGS := ${SDLCONF_L} -lSDL_ttf -lSDL_mixer -lSDL_image -lGL -lGLU
+INC     := -I. -I.. ${SDLCONF_I} -I${LOCALBASE}/include
+CFLAGS  += ${INC}
+LDFLAGS := ${SDLCONF_L} -L${LOCALBASE}/lib -lSDL_ttf -lSDL_mixer -lSDL_image -lGL -lGLU
 
 EGO_BIN := egoboo