system.mk

changeset 51
2d95d77aa954
parent 38
5e59489313a0
child 54
2795b5fb21df
--- a/system.mk	Sat Apr 05 22:24:03 2003 +0200
+++ b/system.mk	Sat Apr 05 22:32:55 2003 +0200
@@ -7,24 +7,56 @@
 ## Installation paths
 ##
 
-PREFIX=/usr/local
+PREFIX=/usr/local/
 
 # No need to modify these usually
 BINDIR=$(PREFIX)/bin
 ETCDIR=$(PREFIX)/etc
 MANDIR=$(PREFIX)/man
 DOCDIR=$(PREFIX)/doc
-# Not used
+LIBDIR=$(PREFIX)/lib
 INCDIR=$(PREFIX)/include
-LIBDIR=$(PREFIX)/lib
 
 
 ##
 ## Modules
 ##
 
-#MODULE_SUPPORT=-DCF_NO_MODULE_SUPPORT
+MODULE_LIST=ionws floatws query
+
+# For dynamically loaded modules
 MODULE_SUPPORT_LDFLAGS=-export-dynamic -ldl
+MODULE_LDFLAGS=-shared
+MODULE_CFLAGS=-shared
+
+# Some strangely behaving OSes (NetBSD, OpenBSD, ...) might need this.
+#MODULE_SUPPORT_CFLAGS=-DCF_UNDERSCORED_MODULE_SYMBOLS
+MODULE_SUPPORT_CFLAGS=
+
+# Statically loaded modules
+#STATIC_MODULES=1
+#MODULE_SUPPORT_CFLAGS=
+#MODULE_SUPPORT_LDFLAGS=
+#MODULE_LDFLAGS=
+#MODULE_CFLAGS=
+
+##
+## Lua
+##
+
+# If you have Lua 5.0 in /usr/lib, the following should do:
+#LUA_LIBS = -llua -llualib
+#LUA_INCLUDES =
+
+# If you, for example, have lua 4.0 in /usr/lib and 5.0 somewhere else,
+# the following settings might be what you need. Lame ld.so on my system
+# searches /usr/lib before /usr/local/lib or anything in ld.so.conf so
+# the -Xlinker -rpath $(LUA_PATH) option is used to force sane library
+# lookup order instead of having the user set LD_LIBRARY_PATH. If you're
+# linking to static libraries, this option is not needed.
+LUA_PATH=/usr/local/lib
+LUA_LIBS = -L$(LUA_PATH) -Xlinker -rpath $(LUA_PATH) -llua -llualib
+LUA_INCLUDES = -I$(LUA_PATH)/include
 
 
 ##
@@ -32,17 +64,35 @@
 ##
 
 X11_PREFIX=/usr/X11R6
-
 # SunOS/Solaris
 #X11_PREFIX=/usr/openwin
 
-X11_LIBS=-L$(X11_PREFIX)/lib
+X11_LIBS=-L$(X11_PREFIX)/lib -lX11 -lXext
 X11_INCLUDES=-I$(X11_PREFIX)/include
-X11_DEFINES=
+
+# Change commenting to disable Xinerama support
+XINERAMA_LIBS=-lXinerama
+#DEFINES += -DCF_NO_XINERAMA
+
+# Uncomment to enable Xft (anti-aliased fonts) support
+#DEFINES += -DCF_XFT
+#X11_INCLUDES += `xft-config --cflags`
+#X11_LIBS += `xft-config --libs`
 
-#EXTRA_INCLUDES = -I$(PREFIX)/include
-#EXTRA_LIBS = -L$(PREFIX)/lib
+# Uncomment to enable UTF8 support. You must have XFree86 (4.x?) and C99
+# wide char support available (either libc directly or maybe libutf8+libiconv).
+# Although iconv (that is needed to convert to wchar_t -- which is not
+# necessarily ucs-4 -- to test character properties) is a standardised
+# function, encoding names unfortunately aren't and thus these also have to
+# specified here.
 
+# GNU/Linux and other glibc-2.2 based systems.
+#DEFINES += -DCF_UTF8 -DCF_ICONV_TARGET=\"WCHAR_T\" -DCF_ICONV_SOURCE=\"UTF-8\"
+
+# Systems that depend on libutf8 and libiconv might want these.
+#DEFINES += -DCF_UTF8 -DCF_LIBUTF8 -DCF_ICONV_TARGET=\"C99\" -DCF_ICONV_SOURCE=\"UTF-8\"
+#EXTRA_LIBS += -liconv -lutf8 -L/usr/local/lib
+#EXTRA_INCLUDES -I/usr/local/include
 
 ##
 ## libc
@@ -51,7 +101,7 @@
 # You may uncomment this if you know your system has
 # asprintf and vasprintf in the c library. (gnu libc has.)
 # If HAS_SYSTEM_ASPRINTF is not defined, an implementation
-# in libtu/sprintf_2.2/ is used.
+# in sprintf_2.2/ is used.
 #HAS_SYSTEM_ASPRINTF=1
 
 
@@ -79,11 +129,11 @@
 # sunos, (irix)
 #XOPEN_SOURCE=-ansi -D__EXTENSIONS__
 
-# Same as '-Wall -pedantic-errors' without '-Wunused' as callbacks often
+# Same as '-Wall -pedantic' without '-Wunused' as callbacks often
 # have unused variables.
 WARN=	-W -Wimplicit -Wreturn-type -Wswitch -Wcomment \
 	-Wtrigraphs -Wformat -Wchar-subscripts \
-	-Wparentheses -pedantic-errors -Wuninitialized
+	-Wparentheses -pedantic -Wuninitialized
 
 
 CFLAGS=-g -O2 $(WARN) $(DEFINES) $(INCLUDES) $(EXTRA_INCLUDES)
@@ -122,3 +172,10 @@
 DATA_MODE=664
 
 STRIP=strip
+
+##
+## Perl (mkexports.pl)
+##
+
+PERL=perl
+

mercurial