Revert "we no longer need fixprefix", because we do need it. On cross compiling....
[divverent/netradiant.git] / mingw-Makefile.inc
1 # how to call the mingw tools
2 MINGW_EXEC_PREFIX ?=
3
4 # where the dependencies package is extracted
5 RADIANT_DEPENDENCIES_PREFIX = $(HOME)/radiant-deps-mingw32/
6
7 # run the prefix fixing tool
8 IGNORETHIS := $(shell cd $(RADIANT_DEPENDENCIES_PREFIX) && ./fixprefix.sh)
9
10 # set the environment for make
11 OS = Win32
12 CFLAGS +=
13 CXXFLAGS +=
14 CPPFLAGS += -I$(RADIANT_DEPENDENCIES_PREFIX)/radiantdeps/include
15 LDFLAGS += -L$(RADIANT_DEPENDENCIES_PREFIX)/radiantdeps/lib
16 CPPFLAGS += -I$(RADIANT_DEPENDENCIES_PREFIX)/gtk/include
17 LDFLAGS += -L$(RADIANT_DEPENDENCIES_PREFIX)/gtk/lib
18 PKG_CONFIG_PATH := $(RADIANT_DEPENDENCIES_PREFIX)/gtk/lib/pkgconfig:$(RADIANT_DEPENDENCIES_PREFIX)/radiantdeps/lib/pkgconfig:$(PKG_CONFIG_PATH)
19 WHICHDLL = $(RADIANT_DEPENDENCIES_PREFIX)/whichdll.sh
20
21 #CPPFLAGS_XML =
22 #LIBS_XML = -lxml2
23
24 CC = $(MINGW_EXEC_PREFIX)gcc
25 CXX = $(MINGW_EXEC_PREFIX)g++
26 LDD =
27 RANLIB = $(MINGW_EXEC_PREFIX)ranlib
28 AR = $(MINGW_EXEC_PREFIX)ar
29 WINDRES = $(MINGW_EXEC_PREFIX)windres