blob: 4717ba647d393dae2e5e44bfa055e77ef4152030 (
plain)
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
30
31
32
33
34
35
36
37
38
|
--- Makefile.orig Sat Sep 23 23:51:57 2006
+++ Makefile Sat Sep 23 23:54:39 2006
@@ -1,8 +1,8 @@
-CXX=g++
-CXXOPTFLAGS=-Wall -O3 -fsigned-char -fomit-frame-pointer
-CXXFLAGS=$(CXXOPTFLAGS) -I../enet/include `sdl-config --cflags`
+CXX?=g++
+CXXOPTFLAGS=-Wall
+CXXFLAGS+=$(CXXOPTFLAGS) -I$(LOCALBASE)/include `$(SDL_CONFIG) --cflags`
-CLIENT_LIBS=-L../enet -lenet `sdl-config --libs` -lSDL_image -lSDL_mixer -lz -lGL -lGLU
+CLIENT_LIBS=-L$(LOCALBASE)/lib -lenet `$(SDL_CONFIG) --libs` -lSDL_image -lSDL_mixer -lz -lGL -lGLU
CLIENT_OBJS= \
client.o \
clientextras.o \
@@ -37,7 +37,7 @@
worldocull.o \
worldrender.o
-SERVER_LIBS=-L../enet -lenet
+SERVER_LIBS=-L$(LOCALBASE)/lib -lenet
SERVER_OBJS= \
standalone.o \
serverms.o \
@@ -49,11 +49,11 @@
all: enet client server
enet:
- -make -C ../enet all
+ -$(MAKE) -C ../enet all
clean:
-rm -f $(SERVER_OBJS) $(CLIENT_OBJS) cube_server cube_client
- -make -C ../enet/ clean
+ -$(MAKE) -C ../enet/ clean
standalone.o:
$(CXX) $(CXXFLAGS) -DSTANDALONE -o standalone.o -c serverutil.cpp
|