updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / ion-3-xft / system.mk
blobd1580d54f0809b1d2795e6b499418c3b0738e292
1 ##
2 ## System settings
3 ##
5 ##
6 ## Installation paths
7 ##
9 # Installation path prefix. Unless you know what you're doing, the default
10 # of /usr/local is likely the correct choice.
11 PREFIX=/usr
13 # Unless you are creating a package conforming to some OS's standards, you
14 # probably do not want to modify the following directories:
16 # Main binaries
17 BINDIR=$(PREFIX)/bin
18 # Configuration .lua files
19 ETCDIR=/etc/ion3
20 # Some .lua files and ion-* shell scripts
21 SHAREDIR=$(PREFIX)/share/ion3
22 # Manual pages
23 MANDIR=$(PREFIX)/share/man
24 # Some documents
25 DOCDIR=$(PREFIX)/share/doc/ion3
26 # Nothing at the moment
27 INCDIR=$(PREFIX)/include/ion3
28 # Nothing at the moment
29 LIBDIR=$(PREFIX)/lib
30 # Modules
31 MODULEDIR=$(LIBDIR)/ion3/mod
32 # Compiled Lua source code
33 LCDIR=$(LIBDIR)/ion3/lc
34 # ion-completefile (does not belong in SHAREDIR being a binary file)
35 EXTRABINDIR=$(LIBDIR)/ion3/bin
36 # For ion-completeman system-wide cache
37 VARDIR=/var/cache/ion3
38 # Message catalogs
39 LOCALEDIR=$(PREFIX)/share/locale
41 # Executable suffix (for Cygwin).
42 #BIN_SUFFIX = .exe
46 ## Modules
49 # Set PRELOAD_MODULES=1 if your system does not support dynamically loaded
50 # modules through 'libdl' or has non-standard naming conventions.
51 # You will likely need this option on e.g. Cygwin and Mac OS X.
52 #PRELOAD_MODULES=1
54 # Flags to link with libdl. Even if PRELOAD_MODULES=1, you may need this
55 # setting (for e.g. Lua, when not instructed by pkg-config).
56 DL_LIBS=-ldl
60 ## Lua
63 # If you have installed Lua 5.1 from the official tarball without changing
64 # paths, this should do it.
65 LUA_DIR=/usr
66 LUA_LIBS = -L$(LUA_DIR)/lib -llua
67 LUA_INCLUDES = -I$(LUA_DIR)/include
68 LUA=$(LUA_DIR)/bin/lua
69 LUAC=$(LUA_DIR)/bin/luac
71 # If you are using the Debian packages, the following settings should be
72 # what you want.
73 #LUA_LIBS=`pkg-config --libs lua5.1`
74 #LUA_INCLUDES=`pkg-config --cflags lua5.1`
75 #LUA=/usr/bin/lua5.1
76 #LUAC=/usr/bin/luac5.1
80 ## X libraries, includes and options
83 # Paths
84 X11_PREFIX=/usr/X11R6
85 # SunOS/Solaris
86 #X11_PREFIX=/usr/openwin
88 X11_LIBS=-L$(X11_PREFIX)/lib -lX11 -lXext
89 X11_INCLUDES=-I$(X11_PREFIX)/include
91 # XFree86 libraries up to 4.3.0 have a bug that can cause a segfault.
92 # The following setting should work around that situation.
93 DEFINES += -DCF_XFREE86_TEXTPROP_BUG_WORKAROUND
95 # Use the Xutf8 routines (XFree86 extension) instead of the Xmb routines
96 # in an UTF-8 locale. (No, you don't need this in UTF-8 locales, and
97 # most likely don't even want. It's only there because both Xmb and
98 # Xutf8 routines are broken, in different ways.)
99 #DEFINES += -DCF_DE_USE_XUTF8
101 # Remap F11 key to SunF36 and F12 to SunF37? You may want to set this
102 # on SunOS.
103 #DEFINES += -DCF_SUN_F1X_REMAP
107 ## Localisation
110 # If you're on an archaic system (such as relatively recent *BSD releases)
111 # without even dummy multibyte/widechar and localisation support, you may
112 # have to uncomment the following line:
113 #DEFINES += -DCF_NO_LOCALE -DCF_NO_GETTEXT
115 # On some other systems you may need to explicitly link against libintl.
116 #EXTRA_LIBS += -lintl
117 # You may also need to give the location of its headers. The following
118 # should work on Mac OS X (which needs the above option as well) with
119 # macports.
120 #EXTRA_INCLUDES += -I/opt/local/include
123 ## Xft support
126 USE_XFT=1
128 ifeq ($(USE_XFT),1)
129 EXTRA_INCLUDES += `xft-config --cflags` -DXFT
130 EXTRA_LIBS += `xft-config --libs`
131 endif
134 ## libc
137 # You may uncomment this if you know that your system C libary provides
138 # asprintf and vasprintf. (GNU libc does.) If HAS_SYSTEM_ASPRINTF is not
139 # defined, an implementation provided in libtu/sprintf_2.2/ is used.
140 #HAS_SYSTEM_ASPRINTF=1
142 # The following setting is needed with GNU libc for clock_gettime and the
143 # monotonic clock. Other systems may not need it, or may not provide a
144 # monotonic clock at all (which Ion can live with, and usually detect).
145 EXTRA_LIBS += -lrt
147 # Cygwin needs this.
148 #DEFINES += -DCF_NO_GETLOADAVG
152 # If you're using/have gcc, it is unlikely that you need to modify
153 # any of the settings below this line.
155 #####################################################################
159 ## C compiler.
162 CC=gcc
164 # Same as '-Wall -pedantic' without '-Wunused' as callbacks often
165 # have unused variables.
166 WARN= -W -Wimplicit -Wreturn-type -Wswitch -Wcomment \
167 -Wtrigraphs -Wformat -Wchar-subscripts \
168 -Wparentheses -pedantic -Wuninitialized
170 CFLAGS=-Os $(WARN) $(DEFINES) $(INCLUDES) $(EXTRA_INCLUDES)
171 LDFLAGS=$(LIBS) $(EXTRA_LIBS)
172 EXPORT_DYNAMIC=-Xlinker --export-dynamic
174 # The following options are mainly for development use and can be used
175 # to check that the code seems to conform to some standards. Depending
176 # on the version and vendor of you libc, the options may or may not have
177 # expected results. If you define one of C99_SOURCE or XOPEN_SOURCE, you
178 # may also have to define the other.
180 #C89_SOURCE=-ansi
182 #POSIX_SOURCE=-D_POSIX_C_SOURCE=200112L
184 # Most systems
185 #XOPEN_SOURCE=-D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED
186 # SunOS, (Irix)
187 #XOPEN_SOURCE=-D__EXTENSIONS__
189 #C99_SOURCE=-std=c99 -DCF_HAS_VA_COPY
191 # The -DCF_HAS_VA_COPY option should allow for some optimisations, and
192 # in some cases simply defining
193 #C99_SOURCE=-DCF_HAS_VA_COPY
194 # might allow for those optimisations to be taken without any special
195 # libc or compiler options.
199 ## make depend
202 DEPEND_FILE=.depend
203 DO_MAKE_DEPEND=$(CC) -MM $(DEFINES) $(INCLUDES) $(EXTRA_INCLUDES)
204 MAKE_DEPEND=$(DO_MAKE_DEPEND) $(SOURCES) > $(DEPEND_FILE)
208 ## AR
211 AR=ar
212 ARFLAGS=cr
213 RANLIB=ranlib
217 ## Install & strip
220 INSTALL=sh $(TOPDIR)/install-sh -c
221 INSTALL_STRIP=-s
222 INSTALLDIR=mkdir -p
224 BIN_MODE=755
225 DATA_MODE=644
227 RM=rm
231 ## Debugging
234 #INSTALL_STRIP =
235 #CFLAGS += -g