329a9a2ff8
- Support CFLAGS properly - Utilize USE_SDL PR: 56038 Submitted by: Ports Fury
25 lines
671 B
Text
25 lines
671 B
Text
--- Makefile.orig Sun Apr 14 09:51:14 2002
|
|
+++ Makefile Wed Aug 27 22:16:03 2003
|
|
@@ -9,19 +9,18 @@
|
|
# November 30, 2001 - April 13, 2002
|
|
|
|
|
|
-PREFIX=/usr/local
|
|
MAN_PREFIX=$(PREFIX)
|
|
BIN_PREFIX=$(PREFIX)/bin
|
|
DATA_PREFIX=$(PREFIX)/share/vectoroids/
|
|
JOY=YES
|
|
TARGET_DEF=LINUX
|
|
-SDL_LIB=$(shell sdl-config --libs) $(MIXER) -lSDL_image
|
|
+SDL_LIB=$(shell $(SDL_CONFIG) --libs) $(MIXER) -lSDL_image
|
|
|
|
NOSOUNDFLAG=__SOUND
|
|
MIXER=-lSDL_mixer
|
|
|
|
-CFLAGS=-Wall -Wno-long-long -pedantic -ansi -O2 \
|
|
- $(shell sdl-config --cflags) -D$(NOSOUNDFLAG) \
|
|
+CFLAGS+= \
|
|
+ $(shell $(SDL_CONFIG) --cflags) -D$(NOSOUNDFLAG) \
|
|
-DDATA_PREFIX=\"$(DATA_PREFIX)\" -DJOY_$(JOY) -D$(TARGET_DEF)
|
|
|
|
|