khanat-code-old/code/ryzom/client/src/Makefile

80 lines
1.9 KiB
Makefile
Raw Normal View History

2010-05-06 00:08:41 +00:00
#############################################################################
# Simple make file for compiling Ryzom client
#############################################################################
# Setting up the compiler settings...
# Global variables
include ../../Variables.mk
WWWFLAGS = $(shell libwww-config --cflags)
WWWLDFLAGS = $(shell libwww-config --libs)
2010-05-11 16:07:00 +00:00
LUAFLAGS = $(shell pkg-config lua5.1 --cflags)
LUALDFLAGS = $(shell pkg-config lua5.1 --libs)
2010-05-06 00:08:41 +00:00
# The flags for the C++ compiler
CXXFLAGS = $(WWWFLAGS) $(LUAFLAGS) \
$(FLAGS_CMN) $(FLAGS_DBG_$(DBG)) \
-I/usr/include/libxml2 \
-I$(RYZOM_PATH)/../../code/luabind \
2010-05-11 16:07:00 +00:00
-I$(NEL_INCLUDE) \
2010-05-06 00:08:41 +00:00
-I$(RYZOM_PATH)/common/src \
-I$(RYZOM_PATH)/client/src/seven_zip \
-I.. \
-I.
LDFLAGS = $(WWWLDFLAGS) $(LUALDFLAGS) $(LD_FLAGS_CMN) \
-L$(NEL_PATH)/lib \
-L$(RYZOM_PATH)/common/src/game_share \
-L$(RYZOM_PATH)/client/src/client_sheets \
-L$(RYZOM_PATH)/client/src/seven_zip \
2010-05-11 16:07:00 +00:00
-lclient_sheets \
-lseven_zip \
2010-05-06 00:08:41 +00:00
-lgame_share \
-Wl,--start-group -lnel_drv_opengl -lnel3d -Wl,--end-group \
-Wl,--start-group -lnel_drv_openal -lnelsnd -Wl,--end-group \
2010-05-06 00:08:41 +00:00
-lnelpacs \
-lnelligo \
-lnelgeorges \
-lnelnet \
-lnelmisc \
2010-05-11 16:07:00 +00:00
-lfreetype \
2010-05-06 00:08:41 +00:00
-lxml2 \
-ljpeg \
-lpng \
-lrt \
-ldl \
-lluabind \
-lopenal \
2010-05-06 00:08:41 +00:00
-lcurl \
-lGL \
2010-05-06 00:08:41 +00:00
-lX11
#############################################################################
# The bit that changes each time we cut paste and hack this file :o)
# The list of targets to build
TARGETS = client
DSP_TARGET = $(TARGETS).vcproj
# The default build rule
all: client_sheets seven_zip exe
exe: check-deps $(TARGETS)
$(TARGETS): $(OBJS)
$(CXX) -o $@ $(OBJS) $(LDFLAGS)
cp -a $(TARGETS) $(TARGETS)_debug
strip $(TARGETS)
client_sheets:
2010-05-11 16:07:00 +00:00
make $(MAKE_ALL_ARGS) -C client_sheets all
2010-05-06 00:08:41 +00:00
seven_zip:
2010-05-11 16:07:00 +00:00
make $(MAKE_ALL_ARGS) -C seven_zip all
2010-05-06 00:08:41 +00:00
#############################################################################
# Rules
include ../../Rules.mk