Created
December 11, 2011 06:49
-
-
Save letoh/1458937 to your computer and use it in GitHub Desktop.
accept optional CFLAGS variable
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/configure b/configure | |
index d6dc075..4f3e715 100755 | |
--- a/configure | |
+++ b/configure | |
@@ -233,7 +233,8 @@ if [ $USE_ANTHY = 'Y' ] || [ $USE_CHEWING = 'Y' ]; then | |
BUILD_MODULE='Y' | |
fi | |
-OPTFLAGS="-O" | |
+OPTFLAGS=${CFLAGS:--O} | |
+HIME_DEBUG=${HIME_DEBUG:-0} | |
if [ -z $CC ]; then | |
CC=gcc | |
@@ -289,7 +290,7 @@ echo "BUILD_MODULE=$BUILD_MODULE" >> config.mak | |
if [ $prefix = /usr/local ]; then | |
echo "hime_ld_run_path=$PWD:\$(himelibdir)" >> config.mak | |
- echo "HIME_DEBUG=0" >> config.mak | |
+ echo "HIME_DEBUG=${HIME_DEBUG}" >> config.mak | |
else | |
echo "hime_ld_run_path=\$(himelibdir)" >> config.mak | |
fi | |
diff --git a/suffixes-rule b/suffixes-rule | |
index 7ac6493..b4e10eb 100644 | |
--- a/suffixes-rule | |
+++ b/suffixes-rule | |
@@ -12,7 +12,7 @@ | |
$(CCX) $(CFLAGS) -E -o $@ $< | |
-CFLAGS= -DUNIX=1 $(WALL) $(OPTFLAGS) $(GTKINC) -I./IMdkit/include -I./im-client -DDEBUG="0$(HIME_DEBUG)" \ | |
+CFLAGS= -DUNIX=1 $(WALL) $(OPTFLAGS) $(GTKINC) -I./IMdkit/include -I./im-client \ | |
-DHIME_TABLE_DIR=\"$(HIME_TABLE_DIR)\" \ | |
-DHIME_OGG_DIR=\"$(HIME_OGG_DIR)\" \ | |
-DDOC_DIR=\"$(DOC_DIR)\" \ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment