home *** CD-ROM | disk | FTP | other *** search
/ Maximum CD 2007 September / maximum-cd-2007-09.iso / Assets / data / AssaultCube_v0.93.exe / source / src / Makefile < prev    next >
Encoding:
Makefile  |  2007-06-01  |  1.7 KB  |  83 lines

  1. CXXOPTFLAGS=-O3 -fomit-frame-pointer
  2. INCLUDES=-I/usr/X11R6/include -I../enet/include `sdl-config --cflags`
  3. CXXFLAGS=$(CXXOPTFLAGS) $(INCLUDES) -fsigned-char -Wall -Wno-deprecated
  4.  
  5. PLATFORM_PREFIX=native
  6. CLIENT_LIBS=-L/usr/X11R6/lib -L../enet -lenet `sdl-config --libs` -lSDL_image -lSDL_mixer -lz -lGL -lGLU 
  7. CLIENT_OBJS= \
  8.     client.o \
  9.     clientgame.o \
  10.     clients2c.o \
  11.     command.o \
  12.     console.o \
  13.     docs.o \
  14.     editing.o \
  15.     entities.o \
  16.     hudgun.o \
  17.     main.o \
  18.     menus.o \
  19.     physics.o \
  20.     protocol.o \
  21.     rendercubes.o \
  22.     rendergl.o \
  23.     renderhud.o \
  24.     rendermodel.o \
  25.     renderparticles.o \
  26.     rendertext.o \
  27.     rndmap.o \
  28.     savegamedemo.o \
  29.     scoreboard.o \
  30.     server.o \
  31.     serverbrowser.o \
  32.     serverms.o \
  33.     sound.o \
  34.     texture.o \
  35.     tools.o \
  36.     weapon.o \
  37.     world.o \
  38.     worldio.o \
  39.     worldlight.o \
  40.     worldocull.o \
  41.     worldrender.o \
  42.     bot/bot.o \
  43.     bot/botmanager.o \
  44.     bot/bot_ai.o \
  45.     bot/bot_util.o \
  46.     bot/bot_waypoint.o \
  47.     bot/ac_bot.o \
  48.     bot/ac_bot_ai.o 
  49.  
  50.  
  51. SERVER_LIBS=-L../enet -lenet
  52. SERVER_FILES= \
  53.     serverms.cpp \
  54.     server.cpp \
  55.     protocol.cpp \
  56.     tools.cpp
  57.  
  58. default: all
  59.  
  60. all: libenet client server
  61.  
  62. ../enet/Makefile:
  63.     cd ../enet; ./configure
  64.  
  65. libenet: ../enet/Makefile
  66.     -$(MAKE) -C ../enet all
  67.  
  68. clean:
  69.     -$(RM) -f $(SERVER_OBJS) $(CLIENT_OBJS) ac_server ac_client
  70. #    -$(MAKE) -C ../enet/ clean
  71.  
  72. client: $(CLIENT_OBJS)
  73.     $(CXX) $(CXXFLAGS) -o ac_client $(CLIENT_OBJS) $(CLIENT_LIBS)
  74.  
  75. server: $(SERVER_FILES)
  76.     $(CXX) $(CXXFLAGS) -o ac_server -DSTANDALONE $(SERVER_FILES) $(SERVER_LIBS)
  77.  
  78. install: all
  79.     cp ac_client ../../bin_unix/$(PLATFORM_PREFIX)_client
  80.     cp ac_server ../../bin_unix/$(PLATFORM_PREFIX)_server
  81.     strip ../../bin_unix/$(PLATFORM_PREFIX)_client
  82.     strip ../../bin_unix/$(PLATFORM_PREFIX)_server
  83.