|
Lines 1-63
Link Here
|
| 1 |
--- Makefile.bsdg Sun Aug 19 19:21:10 2007 |
|
|
| 2 |
+++ Makefile.bsdg Sun Aug 19 19:21:36 2007 |
| 3 |
@@ -1,7 +1,7 @@ |
| 4 |
.PHONY: clean release docs |
| 5 |
|
| 6 |
# tune these for your setup & compile options |
| 7 |
-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 |
| 8 |
+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 -DCOUNTERS |
| 9 |
|
| 10 |
#-DX86_64 |
| 11 |
#-DTIMER_CHECK |
| 12 |
@@ -25,20 +25,19 @@ |
| 13 |
#-DAFK_FIX # fixes afk messages to count only PM's, and store and count local messages if the option is selected |
| 14 |
#-DFONTS_FIX # dynamically loads all fonts with the filename in the format font*.bmp, and makes them accessable in the options |
| 15 |
|
| 16 |
-PLATFORM=-march=i686 |
| 17 |
-XDIR=-L/usr/X11R6/lib |
| 18 |
+XDIR=-L$(LOCALBASE)/lib |
| 19 |
CWARN= |
| 20 |
#-Wdeclaration-after-statement -Wall -Werror |
| 21 |
CPPWARN= |
| 22 |
#-Wall -Werror |
| 23 |
|
| 24 |
# basic compiling and linking - rarely changed |
| 25 |
-CFLAGS=$(PLATFORM) $(CWARN) -g -ggdb -pipe $(OPTIONS) $(shell sdl11-config --cflags) $(shell xml2-config --cflags) -I/usr/X11R6/include/ |
| 26 |
-_CFLAGS=$(PLATFORM) -O3 -fomit-frame-pointer -ffast-math -pipe $(OPTIONS) $(shell sdl11-config --cflags) $(shell xml2-config --cflags) |
| 27 |
-CXXFLAGS=$(PLATFORM) $(CPPWARN) -O -ggdb -pipe -I/usr/local/include $(OPTIONS) |
| 28 |
-_CXXFLAGS=$(PLATFORM) -O3 -fomit-frame-pointer -ffast-math -pipe $(OPTIONS) |
| 29 |
+CFLAGS+=$(OPTIONS) $(shell sdl-config --cflags) $(shell xml2-config --cflags) -I/usr/X11R6/include/ |
| 30 |
+_CFLAGS=$(CFLAGS) $(OPTIONS) $(shell sdl-config --cflags) $(shell xml2-config --cflags) |
| 31 |
+CXXFLAGS+=-I$(LOCALBASE)/include $(OPTIONS) |
| 32 |
+_CXXFLAGS=$(CXXFLAGS) -fomit-frame-pointer -ffast-math -pipe $(OPTIONS) |
| 33 |
|
| 34 |
-LDFLAGS=$(shell sdl11-config --libs) $(shell xml2-config --libs) -lSDL_net -lSDL_image -lopenal $(XDIR) -lGL -lGLU -lvorbis -lvorbisfile -lcal3d -lm -lpng |
| 35 |
+LDFLAGS=$(shell sdl-config --libs) $(shell xml2-config --libs) -lSDL_net -lSDL_image -lopenal $(XDIR) -lalut -lGL -lGLU -lvorbis -lvorbisfile -lcal3d -lm -lpng |
| 36 |
_LDFLAGS=$(XDIR) -lGL -lpthread -lz |
| 37 |
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 |
| 38 |
|
| 39 |
@@ -54,7 +53,7 @@ |
| 40 |
ignore.o init.o interface.o items.o \ |
| 41 |
keys.o knowledge.o lights.o list.o loading_win.o loginwin.o \ |
| 42 |
main.o manufacture.o map_io.o mapwin.o \ |
| 43 |
- md2loader.o md5.o misc.o multiplayer.o \ |
| 44 |
+ md5.o misc.o multiplayer.o \ |
| 45 |
new_actors.o new_character.o notepad.o \ |
| 46 |
openingwin.o \ |
| 47 |
particles.o paste.o pathfinder.o pm_log.o \ |
| 48 |
@@ -78,11 +77,11 @@ |
| 49 |
|
| 50 |
OBJS=$(COBJS) $(CXXOBJS) |
| 51 |
|
| 52 |
-EXE=el.x86.bsd.bin |
| 53 |
+EXE=el.x86 |
| 54 |
|
| 55 |
-CC=gcc |
| 56 |
-CXX=g++ |
| 57 |
-LINK=gcc |
| 58 |
+CC?=gcc |
| 59 |
+CXX?=g++ |
| 60 |
+LINK?=gcc |
| 61 |
|
| 62 |
# the compile targets |
| 63 |
$(EXE): $(OBJS) |