mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-16 07:58:04 +00:00
a55d779517
Reported by: kris
55 lines
2.5 KiB
Plaintext
55 lines
2.5 KiB
Plaintext
--- Makefile.bsdg Fri Nov 24 13:42:55 2006
|
|
+++ Makefile.bsdg Fri Nov 24 14:05:16 2006
|
|
@@ -1,7 +1,7 @@
|
|
.PHONY: clean release docs
|
|
|
|
# tune these for your setup & compile options
|
|
-OPTIONS=-DLINUX -DELC -DPNG_SCREENSHOT -DUSE_FRAMEBUFFER -DNEW_FRUSTUM -DBUG_FIX_3D_OBJECTS_MIN_MAX -DNEW_TEX -DOPTIONS_I18N -DATI_9200_FIX -DNEW_ACTOR_ANIMATION -DAUTO_UPDATE -DCOUNTERS
|
|
+OPTIONS=-DFREEBSD -DELC -DPNG_SCREENSHOT -DUSE_FRAMEBUFFER -DNEW_FRUSTUM -DBUG_FIX_3D_OBJECTS_MIN_MAX -DNEW_TEX -DOPTIONS_I18N -DATI_9200_FIX -DNEW_ACTOR_ANIMATION -DAUTO_UPDATE -DCOUNTERS
|
|
|
|
#-DX86_64
|
|
#-DTIMER_CHECK
|
|
@@ -25,20 +25,19 @@
|
|
#-DAFK_FIX # fixes afk messages to count only PM's, and store and count local messages if the option is selected
|
|
#-DFONTS_FIX # dynamically loads all fonts with the filename in the format font*.bmp, and makes them accessable in the options
|
|
|
|
-PLATFORM=-march=i686
|
|
-XDIR=-L/usr/X11R6/lib
|
|
+XDIR=-L$(X11BASE)/lib -L$(LOCALBASE)/lib
|
|
CWARN=
|
|
#-Wdeclaration-after-statement -Wall -Werror
|
|
CPPWARN=
|
|
#-Wall -Werror
|
|
|
|
# basic compiling and linking - rarely changed
|
|
-CFLAGS=$(PLATFORM) $(CWARN) -g -ggdb -pipe $(OPTIONS) $(shell sdl11-config --cflags) $(shell xml2-config --cflags) -I/usr/X11R6/include/
|
|
-_CFLAGS=$(PLATFORM) -O3 -fomit-frame-pointer -ffast-math -pipe $(OPTIONS) $(shell sdl11-config --cflags) $(shell xml2-config --cflags)
|
|
-CXXFLAGS=$(PLATFORM) $(CPPWARN) -O -ggdb -pipe -I/usr/local/include $(OPTIONS)
|
|
-_CXXFLAGS=$(PLATFORM) -O3 -fomit-frame-pointer -ffast-math -pipe $(OPTIONS)
|
|
+CFLAGS+=$(OPTIONS) $(shell sdl-config --cflags) $(shell xml2-config --cflags) -I$(X11BASE)/include/ -I$(LOCALBASE)/include
|
|
+_CFLAGS=$(CFLAGS) -fomit-frame-pointer -ffast-math -pipe $(OPTIONS) $(shell sdl-config --cflags) $(shell xml2-config --cflags)
|
|
+CXXFLAGS+=-I$(LOCALBASE)/include -I$(X11BASE)/include $(OPTIONS)
|
|
+_CXXFLAGS=$(CXXFLAGS) -fomit-frame-pointer -ffast-math $(OPTIONS)
|
|
|
|
-LDFLAGS=$(shell sdl11-config --libs) $(shell xml2-config --libs) -lSDL_net -lopenal $(XDIR) -lGL -lGLU -lvorbis -lvorbisfile -lcal3d -lm -lpng
|
|
+LDFLAGS+=$(shell sdl-config --libs) $(shell xml2-config --libs) -lSDL_net -lopenal $(XDIR) -lalut -lGL -lGLU -lvorbis -lvorbisfile -lcal3d -lm -lpng
|
|
_LDFLAGS=$(XDIR) -lGL -lpthread -lz
|
|
STATICLIBS=libs/libSDL_net.a libs/libSDL.a libs/libopenal.a libs/libvorbisfile.a libs/libvorbis.a libs/libogg.a libs/libxml2.a libs/libcal3d.a
|
|
|
|
@@ -68,11 +67,11 @@
|
|
|
|
OBJS=$(COBJS) $(CXXOBJS)
|
|
|
|
-EXE=el.x86.bsd.bin
|
|
+EXE=el.x86
|
|
|
|
-CC=gcc
|
|
-CXX=g++
|
|
-LINK=gcc
|
|
+CC?=gcc
|
|
+CXX?=g++
|
|
+LINK?=gcc
|
|
|
|
# the compile targets
|
|
$(EXE): $(OBJS)
|