Lines 1-6
Link Here
|
1 |
--- source/src/Makefile.orig 2013-10-29 13:20:58.000000000 +0400 |
1 |
--- source/src/Makefile.orig 2013-10-29 13:20:58.000000000 +0400 |
2 |
+++ source/src/Makefile 2013-10-29 17:00:06.000000000 +0400 |
2 |
+++ source/src/Makefile 2013-10-29 17:00:06.000000000 +0400 |
3 |
@@ -1,9 +1,7 @@ |
3 |
@@ -1,11 +1,9 @@ |
4 |
-CXXFLAGS= -O3 -fomit-frame-pointer |
4 |
-CXXFLAGS= -O3 -fomit-frame-pointer |
5 |
-CXX=clang++ # Use clang++, as g++ optimizations cause crashes... |
5 |
-CXX=clang++ # Use clang++, as g++ optimizations cause crashes... |
6 |
override CXXFLAGS+= -Wall -fsigned-char |
6 |
override CXXFLAGS+= -Wall -fsigned-char |
Lines 9-16
Link Here
|
9 |
-PLATFORM_PREFIX=native |
9 |
-PLATFORM_PREFIX=native |
10 |
+PLATFORM_PREFIX=FreeBSD |
10 |
+PLATFORM_PREFIX=FreeBSD |
11 |
|
11 |
|
12 |
INCLUDES= -I. -Ibot -I../enet/include |
12 |
-INCLUDES= -I. -Ibot -I../enet/include |
|
|
13 |
+INCLUDES= -I. -Ibot -I${LOCALBASE}/include |
13 |
|
14 |
|
|
|
15 |
STRIP= |
16 |
ifeq (,$(findstring -g,$(CXXFLAGS))) |
14 |
@@ -22,8 +20,8 @@ |
17 |
@@ -22,8 +20,8 @@ |
15 |
else |
18 |
else |
16 |
USRLIB=$(shell if [ -e /usr/lib64 ]; then echo "/usr/lib64"; else echo "/usr/lib"; fi) |
19 |
USRLIB=$(shell if [ -e /usr/lib64 ]; then echo "/usr/lib64"; else echo "/usr/lib"; fi) |
Lines 17-35
Link Here
|
17 |
# override CXXFLAGS+= -rdynamic # clang++ doesn't use this... |
20 |
# override CXXFLAGS+= -rdynamic # clang++ doesn't use this... |
18 |
-CLIENT_INCLUDES= $(INCLUDES) -I/usr/include `sdl-config --cflags` -idirafter ../include |
21 |
-CLIENT_INCLUDES= $(INCLUDES) -I/usr/include `sdl-config --cflags` -idirafter ../include |
19 |
-CLIENT_LIBS= -L../enet/.libs -lenet -L$(USRLIB) -lX11 `sdl-config --libs` -lSDL_image -lz -lGL -lopenal -lvorbisfile -lcurl |
22 |
-CLIENT_LIBS= -L../enet/.libs -lenet -L$(USRLIB) -lX11 `sdl-config --libs` -lSDL_image -lz -lGL -lopenal -lvorbisfile -lcurl |
20 |
+CLIENT_INCLUDES= $(INCLUDES) -I${LOCALBASE}/include `${SDL_CONFIG} --cflags` -idirafter ../include |
23 |
+CLIENT_INCLUDES= $(INCLUDES) `${SDL_CONFIG} --cflags` -idirafter ../include |
21 |
+CLIENT_LIBS= -L../enet/.libs -lenet -L${LOCALBASE}/lib -lX11 `${SDL_CONFIG} --libs` -lSDL_image -lz -lGL -lopenal -lvorbisfile -lcurl -lintl |
24 |
+CLIENT_LIBS= -L${LOCALBASE}/lib -lenet -lX11 `${SDL_CONFIG} --libs` -lSDL_image -lz -lGL -lopenal -lvorbisfile -lcurl -lintl |
22 |
endif |
25 |
endif |
23 |
|
26 |
|
24 |
CLIENT_OBJS= \ |
27 |
CLIENT_OBJS= \ |
25 |
@@ -87,8 +85,8 @@ |
28 |
@@ -88,7 +86,7 @@ |
26 |
SERVER_INCLUDES= -DSTANDALONE $(INCLUDES) -I../include |
|
|
27 |
SERVER_LIBS= -L../lib -lzdll -lenet -llibintl -lws2_32 -lwinmm |
29 |
SERVER_LIBS= -L../lib -lzdll -lenet -llibintl -lws2_32 -lwinmm |
28 |
else |
30 |
else |
29 |
-SERVER_INCLUDES= -DSTANDALONE $(INCLUDES) |
31 |
SERVER_INCLUDES= -DSTANDALONE $(INCLUDES) |
30 |
-SERVER_LIBS= -L../enet/.libs -lenet -lz |
32 |
-SERVER_LIBS= -L../enet/.libs -lenet -lz |
31 |
+SERVER_INCLUDES= -DSTANDALONE $(INCLUDES) -I${LOCALBASE}/include |
33 |
+SERVER_LIBS= -L${LOCALBASE}/lib -lenet -lz |
32 |
+SERVER_LIBS= -L../enet/.libs -lenet -lz -L${LOCALBASE}/lib |
|
|
33 |
endif |
34 |
endif |
34 |
|
35 |
|
35 |
SERVER_OBJS= \ |
36 |
SERVER_OBJS= \ |
|
|
37 |
@@ -118,8 +116,7 @@ |
38 |
../enet/Makefile: |
39 |
cd ../enet; ./configure --enable-shared=no --enable-static=yes |
40 |
|
41 |
-libenet: ../enet/Makefile |
42 |
- -$(MAKE) -C ../enet all |
43 |
+libenet: ${LOCALBASE}/lib/libenet.so |
44 |
|
45 |
clean-enet: ../enet/Makefile |
46 |
$(MAKE) -C ../enet/ clean |