system.mk

changeset 51
2d95d77aa954
parent 38
5e59489313a0
child 54
2795b5fb21df
equal deleted inserted replaced
50:855953c2f413 51:2d95d77aa954
5 5
6 ## 6 ##
7 ## Installation paths 7 ## Installation paths
8 ## 8 ##
9 9
10 PREFIX=/usr/local 10 PREFIX=/usr/local/
11 11
12 # No need to modify these usually 12 # No need to modify these usually
13 BINDIR=$(PREFIX)/bin 13 BINDIR=$(PREFIX)/bin
14 ETCDIR=$(PREFIX)/etc 14 ETCDIR=$(PREFIX)/etc
15 MANDIR=$(PREFIX)/man 15 MANDIR=$(PREFIX)/man
16 DOCDIR=$(PREFIX)/doc 16 DOCDIR=$(PREFIX)/doc
17 # Not used 17 LIBDIR=$(PREFIX)/lib
18 INCDIR=$(PREFIX)/include 18 INCDIR=$(PREFIX)/include
19 LIBDIR=$(PREFIX)/lib
20 19
21 20
22 ## 21 ##
23 ## Modules 22 ## Modules
24 ## 23 ##
25 24
26 #MODULE_SUPPORT=-DCF_NO_MODULE_SUPPORT 25 MODULE_LIST=ionws floatws query
26
27 # For dynamically loaded modules
27 MODULE_SUPPORT_LDFLAGS=-export-dynamic -ldl 28 MODULE_SUPPORT_LDFLAGS=-export-dynamic -ldl
29 MODULE_LDFLAGS=-shared
30 MODULE_CFLAGS=-shared
31
32 # Some strangely behaving OSes (NetBSD, OpenBSD, ...) might need this.
33 #MODULE_SUPPORT_CFLAGS=-DCF_UNDERSCORED_MODULE_SYMBOLS
34 MODULE_SUPPORT_CFLAGS=
35
36 # Statically loaded modules
37 #STATIC_MODULES=1
38 #MODULE_SUPPORT_CFLAGS=
39 #MODULE_SUPPORT_LDFLAGS=
40 #MODULE_LDFLAGS=
41 #MODULE_CFLAGS=
42
43 ##
44 ## Lua
45 ##
46
47 # If you have Lua 5.0 in /usr/lib, the following should do:
48 #LUA_LIBS = -llua -llualib
49 #LUA_INCLUDES =
50
51 # If you, for example, have lua 4.0 in /usr/lib and 5.0 somewhere else,
52 # the following settings might be what you need. Lame ld.so on my system
53 # searches /usr/lib before /usr/local/lib or anything in ld.so.conf so
54 # the -Xlinker -rpath $(LUA_PATH) option is used to force sane library
55 # lookup order instead of having the user set LD_LIBRARY_PATH. If you're
56 # linking to static libraries, this option is not needed.
57 LUA_PATH=/usr/local/lib
58 LUA_LIBS = -L$(LUA_PATH) -Xlinker -rpath $(LUA_PATH) -llua -llualib
59 LUA_INCLUDES = -I$(LUA_PATH)/include
28 60
29 61
30 ## 62 ##
31 ## X libraries, includes and options 63 ## X libraries, includes and options
32 ## 64 ##
33 65
34 X11_PREFIX=/usr/X11R6 66 X11_PREFIX=/usr/X11R6
35
36 # SunOS/Solaris 67 # SunOS/Solaris
37 #X11_PREFIX=/usr/openwin 68 #X11_PREFIX=/usr/openwin
38 69
39 X11_LIBS=-L$(X11_PREFIX)/lib 70 X11_LIBS=-L$(X11_PREFIX)/lib -lX11 -lXext
40 X11_INCLUDES=-I$(X11_PREFIX)/include 71 X11_INCLUDES=-I$(X11_PREFIX)/include
41 X11_DEFINES=
42 72
43 #EXTRA_INCLUDES = -I$(PREFIX)/include 73 # Change commenting to disable Xinerama support
44 #EXTRA_LIBS = -L$(PREFIX)/lib 74 XINERAMA_LIBS=-lXinerama
75 #DEFINES += -DCF_NO_XINERAMA
45 76
77 # Uncomment to enable Xft (anti-aliased fonts) support
78 #DEFINES += -DCF_XFT
79 #X11_INCLUDES += `xft-config --cflags`
80 #X11_LIBS += `xft-config --libs`
81
82 # Uncomment to enable UTF8 support. You must have XFree86 (4.x?) and C99
83 # wide char support available (either libc directly or maybe libutf8+libiconv).
84 # Although iconv (that is needed to convert to wchar_t -- which is not
85 # necessarily ucs-4 -- to test character properties) is a standardised
86 # function, encoding names unfortunately aren't and thus these also have to
87 # specified here.
88
89 # GNU/Linux and other glibc-2.2 based systems.
90 #DEFINES += -DCF_UTF8 -DCF_ICONV_TARGET=\"WCHAR_T\" -DCF_ICONV_SOURCE=\"UTF-8\"
91
92 # Systems that depend on libutf8 and libiconv might want these.
93 #DEFINES += -DCF_UTF8 -DCF_LIBUTF8 -DCF_ICONV_TARGET=\"C99\" -DCF_ICONV_SOURCE=\"UTF-8\"
94 #EXTRA_LIBS += -liconv -lutf8 -L/usr/local/lib
95 #EXTRA_INCLUDES -I/usr/local/include
46 96
47 ## 97 ##
48 ## libc 98 ## libc
49 ## 99 ##
50 100
51 # You may uncomment this if you know your system has 101 # You may uncomment this if you know your system has
52 # asprintf and vasprintf in the c library. (gnu libc has.) 102 # asprintf and vasprintf in the c library. (gnu libc has.)
53 # If HAS_SYSTEM_ASPRINTF is not defined, an implementation 103 # If HAS_SYSTEM_ASPRINTF is not defined, an implementation
54 # in libtu/sprintf_2.2/ is used. 104 # in sprintf_2.2/ is used.
55 #HAS_SYSTEM_ASPRINTF=1 105 #HAS_SYSTEM_ASPRINTF=1
56 106
57 107
58 ## 108 ##
59 ## C compiler 109 ## C compiler
77 # Most systems 127 # Most systems
78 #XOPEN_SOURCE=-ansi -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED 128 #XOPEN_SOURCE=-ansi -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED
79 # sunos, (irix) 129 # sunos, (irix)
80 #XOPEN_SOURCE=-ansi -D__EXTENSIONS__ 130 #XOPEN_SOURCE=-ansi -D__EXTENSIONS__
81 131
82 # Same as '-Wall -pedantic-errors' without '-Wunused' as callbacks often 132 # Same as '-Wall -pedantic' without '-Wunused' as callbacks often
83 # have unused variables. 133 # have unused variables.
84 WARN= -W -Wimplicit -Wreturn-type -Wswitch -Wcomment \ 134 WARN= -W -Wimplicit -Wreturn-type -Wswitch -Wcomment \
85 -Wtrigraphs -Wformat -Wchar-subscripts \ 135 -Wtrigraphs -Wformat -Wchar-subscripts \
86 -Wparentheses -pedantic-errors -Wuninitialized 136 -Wparentheses -pedantic -Wuninitialized
87 137
88 138
89 CFLAGS=-g -O2 $(WARN) $(DEFINES) $(INCLUDES) $(EXTRA_INCLUDES) 139 CFLAGS=-g -O2 $(WARN) $(DEFINES) $(INCLUDES) $(EXTRA_INCLUDES)
90 LDFLAGS=-g $(LIBS) $(EXTRA_LIBS) 140 LDFLAGS=-g $(LIBS) $(EXTRA_LIBS)
91 141
120 170
121 BIN_MODE=755 171 BIN_MODE=755
122 DATA_MODE=664 172 DATA_MODE=664
123 173
124 STRIP=strip 174 STRIP=strip
175
176 ##
177 ## Perl (mkexports.pl)
178 ##
179
180 PERL=perl
181

mercurial