From: rpolzer Date: Tue, 16 Sep 2008 16:17:16 +0000 (+0000) Subject: add an example makefile.conf for cross compiling X-Git-Tag: svn-r421~355 X-Git-Url: https://de.git.xonotic.org/?p=xonotic%2Fnetradiant.git;a=commitdiff_plain;h=57a896dd96d885b0a91e04823925a9c3f8e39d8c add an example makefile.conf for cross compiling git-svn-id: svn://svn.icculus.org/netradiant/trunk@65 61c419a2-8eb2-4b30-bcec-8cead039b335 --- diff --git a/cross-Makefile.conf b/cross-Makefile.conf new file mode 100644 index 00000000..af371dc4 --- /dev/null +++ b/cross-Makefile.conf @@ -0,0 +1,27 @@ +# Usage: +# copy this file to Makefile.conf +# edit the paths in here + +# how to call the mingw tools +MINGW_EXEC_PREFIX = i586-mingw32msvc- + +# where the dependencies package is extracted +RADIANT_DEPENDENCIES_PREFIX = $(HOME)/radiantdeps/ + +# run the prefix fixing tool +$(shell cd $(RADIANT_DEPENDENCIES_PREFIX) && ./fixprefix.sh) + +# set the environment for make +OS = Win32 +CFLAGS += +CXXFLAGS += +CPPFLAGS += -I$(RADIANT_DEPENDENCIES_PREFIX)/radiantdeps/include +LDFLAGS += -L$(RADIANT_DEPENDENCIES_PREFIX)/radiantdeps/lib +PKG_CONFIG_PATH := $(RADIANT_DEPENDENCIES_PREFIX)/gtk/lib/pkgconfig:$(RADIANT_DEPENDENCIES_PREFIX)/radiantdeps/lib/pkgconfig:$(PKG_CONFIG_PATH) +WHICHDLL = $(RADIANT_DEPENDENCIES_PREFIX)/whichdll.sh + +CC = $(MINGW_EXEC_PREFIX)gcc +CXX = $(MINGW_EXEC_PREFIX)g++ +LDD = +RANLIB = $(MINGW_EXEC_PREFIX)ranlib +AR = $(MINGW_EXEC_PREFIX)ar