summaryrefslogtreecommitdiff
path: root/Makerules
diff options
context:
space:
mode:
authorTor Andersson <tor@ghostscript.com>2011-03-09 11:26:39 +0000
committerTor Andersson <tor@ghostscript.com>2011-03-09 11:26:39 +0000
commit778c4035ac0a99fc83a70ed7057944935e683c49 (patch)
tree632a453337325b268f31e7b481f8d63c95f36d97 /Makerules
parentf000f27ff861f22efe2d5a021ea9611b1d5d16c2 (diff)
downloadmupdf-778c4035ac0a99fc83a70ed7057944935e683c49.tar.xz
Use CFLAGS from the environment if set.
Diffstat (limited to 'Makerules')
-rw-r--r--Makerules8
1 files changed, 5 insertions, 3 deletions
diff --git a/Makerules b/Makerules
index 01c45df0..34bf6ea6 100644
--- a/Makerules
+++ b/Makerules
@@ -3,9 +3,11 @@
OS ?= $(shell uname)
OS := $(OS:MINGW%=MINGW)
-CC ?= cc
-CFLAGS := -Ifitz -Imupdf -Wall
-LDFLAGS :=
+CC ?=
+CFLAGS ?=
+LDFLAGS ?=
+
+CFLAGS += -Ifitz -Imupdf -Wall
ifeq "$(build)" "debug"
CFLAGS += -pipe -g