khanat-opennel-code/code/ryzom/client/src/Makefile
2010-05-06 02:08:41 +02:00

77 lines
1.8 KiB
Makefile

#############################################################################
# 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)
LUAFLAGS = $(shell lua-config --include)
LUALDFLAGS = $(shell lua-config --libs)
# The flags for the C++ compiler
CXXFLAGS = $(WWWFLAGS) $(LUAFLAGS) \
$(FLAGS_CMN) $(FLAGS_DBG_$(DBG)) \
-I/usr/include/libxml2 \
-I$(HOME)/code/luabind \
-I$(HOME)/code/nel/include \
-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 \
-lclient_sheets \
-lseven_zip \
-lgame_share \
-lnel3d \
-lnelpacs \
-lnelsnd \
-lnelligo \
-lnelgeorges \
-lnelnet \
-lnelmisc \
-lxml2 \
-ljpeg \
-lpng \
-lrt \
-ldl \
-llua50 \
-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:
+make $(MAKE_ALL_ARGS) -C client_sheets all
seven_zip:
+make $(MAKE_ALL_ARGS) -C seven_zip all
#############################################################################
# Rules
include ../../Rules.mk