Files
assaultcube-/source/src/Makefile
T
Lee Salzman 31ab7f4553 shadow rendering optimizations
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@2581 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2008-09-14 06:56:34 +00:00

85 lines
1.7 KiB
Makefile

CXXOPTFLAGS=-O3 -fomit-frame-pointer
INCLUDES=-I/usr/X11R6/include -I../enet/include -I../src `sdl-config --cflags`
CXXFLAGS=$(CXXOPTFLAGS) $(INCLUDES) -fsigned-char -Wall -Wno-deprecated
PLATFORM_PREFIX=native
CLIENT_LIBS=-L/usr/X11R6/lib -L../enet -lenet `sdl-config --libs` -lSDL_image -lz -lGL -lGLU -lopenal -lvorbisfile
CLIENT_OBJS= \
client.o \
log.o \
clientgame.o \
clients2c.o \
command.o \
console.o \
docs.o \
editing.o \
entities.o \
main.o \
menus.o \
physics.o \
protocol.o \
rendercubes.o \
rendergl.o \
renderhud.o \
rendermodel.o \
renderparticles.o \
rendertext.o \
rndmap.o \
scoreboard.o \
server.o \
serverbrowser.o \
serverms.o \
shadow.o \
sound.o \
texture.o \
tools.o \
water.o \
weapon.o \
world.o \
worldio.o \
worldlight.o \
worldocull.o \
worldrender.o \
bot/bot.o \
bot/botmanager.o \
bot/bot_ai.o \
bot/bot_util.o \
bot/bot_waypoint.o \
bot/ac_bot.o \
bot/ac_bot_ai.o
SERVER_LIBS=-L../enet -lenet -lz
SERVER_FILES= \
log.cpp \
serverms.cpp \
server.cpp \
protocol.cpp \
tools.cpp
default: all
all: libenet client server
../enet/Makefile:
cd ../enet; ./configure
libenet: ../enet/Makefile
-$(MAKE) -C ../enet all
clean:
-$(RM) -f $(SERVER_OBJS) $(CLIENT_OBJS) ac_server ac_client
# -$(MAKE) -C ../enet/ clean
client: $(CLIENT_OBJS)
$(CXX) $(CXXFLAGS) -o ac_client $(CLIENT_OBJS) $(CLIENT_LIBS)
server: $(SERVER_FILES)
$(CXX) $(CXXFLAGS) -o ac_server -DSTANDALONE $(SERVER_FILES) $(SERVER_LIBS)
install: all
cp ac_client ../../bin_unix/$(PLATFORM_PREFIX)_client
cp ac_server ../../bin_unix/$(PLATFORM_PREFIX)_server
strip ../../bin_unix/$(PLATFORM_PREFIX)_client
strip ../../bin_unix/$(PLATFORM_PREFIX)_server