summaryrefslogtreecommitdiff
path: root/Makerules
diff options
context:
space:
mode:
authorTor Andersson <tor@ghostscript.com>2010-07-23 20:30:43 +0000
committerTor Andersson <tor@ghostscript.com>2010-07-23 20:30:43 +0000
commitca9f39b1ea1a274fe1d9c86439daba4a2464490d (patch)
tree6ed47b7ea74bcf335883f6950a6449c6239bc826 /Makerules
parent231e3938974ea89047a10b3c4eeb605be87fc45d (diff)
downloadmupdf-ca9f39b1ea1a274fe1d9c86439daba4a2464490d.tar.xz
Allow some makefile variables to be overridden on the command line to ease cross compilation.
Diffstat (limited to 'Makerules')
-rw-r--r--Makerules4
1 files changed, 2 insertions, 2 deletions
diff --git a/Makerules b/Makerules
index 5ad90c4d..df40c9a7 100644
--- a/Makerules
+++ b/Makerules
@@ -1,6 +1,6 @@
# Configuration for the Makefile
-OS := $(shell uname)
+OS ?= $(shell uname)
OS := $(OS:MINGW%=MINGW)
CC ?= cc
@@ -49,7 +49,7 @@ endif
# MinGW build depends on thirdparty libs
ifeq "$(OS)" "MINGW"
-CC := gcc
+WINDRES ?= windres
W32LIBS := -lgdi32 -lcomdlg32 -luser32 -ladvapi32 -lshell32 -mwindows
PDFVIEW_EXE = $(WINVIEW_EXE)
endif