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 \
|
2010-05-11 14:02:53 +00:00
|
|
|
-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 \
|
|
|
|
-lnel3d \
|
|
|
|
-lnelpacs \
|
|
|
|
-lnelsnd \
|
|
|
|
-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 \
|
|
|
|
-lcurl \
|
|
|
|
-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
|