summaryrefslogtreecommitdiffstatshomepage
path: root/Makefile
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2011-05-19 15:48:58 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2011-05-19 15:48:58 +0000
commit0008cc060a28b9a61118020527d85bb229e288f7 (patch)
treeb068290fa1bd3bc2dbf9014c15513de237355767 /Makefile
parentdd0cac76b8c2d4067ba6cb936ca1f43f6bebeadb (diff)
downloadmandoc-0008cc060a28b9a61118020527d85bb229e288f7.tar.gz
mandoc-0008cc060a28b9a61118020527d85bb229e288f7.tar.zst
mandoc-0008cc060a28b9a61118020527d85bb229e288f7.zip
It seems that __STDC_ISO_10646__ isn't defined even where it can be
defined, so remove the check for it and leave it up to people compiling the software (DOWNSTREAM) to take care of this. This will eventually need to be fixed up with a proper non-10646 converter and so on, but this is a simple start. While here, strengthen then language in the Makefile to this effect.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile8
1 files changed, 5 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index a0d7d14c..efc89875 100644
--- a/Makefile
+++ b/Makefile
@@ -13,9 +13,11 @@
VERSION = 1.11.2
VDATE = 12 May 2011
-# If your system doesn't support multi-byte functions (specifically
-# setlocale(), wcwidth(), putwchar()), then remove -DUSE_WCHAR. You'll
-# still be able to use -Tlocale, but it becomes a synonym for -Tascii.
+# IFF your system supports multi-byte functions (setlocale(), wcwidth(),
+# putwchar()) AND has __STDC_ISO_10646__ (that is, wchar_t is simply a
+# UCS-4 value) should you define USE_WCHAR. If you define it and your
+# system DOESN'T support this, -Tlocale will produce garbage.
+# If you don't define it, -Tlocale is a synonym for -Tacsii.
CFLAGS += -g -DUSE_WCHAR -DHAVE_CONFIG_H -DVERSION="\"$(VERSION)\""
CFLAGS += -W -Wall -Wstrict-prototypes -Wno-unused-parameter -Wwrite-strings
PREFIX = /usr/local