12 # Unless you are creating a package conforming to some OS's standards, you
13 # probably do not want to modify the following directories:
17 # Configuration .lua files
18 ETCDIR=$(PREFIX)/etc/ion3
19 # Some .lua files and ion-* shell scripts
20 SHAREDIR=$(PREFIX)/share/ion3
22 MANDIR=$(PREFIX)/share/man
24 DOCDIR=$(PREFIX)/share/doc/ion3
25 # Nothing at the moment
26 INCDIR=$(PREFIX)/include/ion3
27 # Nothing at the moment
30 MODULEDIR=$(LIBDIR)/ion3/mod
31 # Compiled Lua source code
32 LCDIR=$(LIBDIR)/ion3/lc
33 # ion-completefile (does not belong in SHAREDIR being a binary file)
34 EXTRABINDIR=$(LIBDIR)/ion3/bin
35 # For ion-completeman system-wide cache
36 VARDIR=/var/cache/ion3
38 LOCALEDIR=$(PREFIX)/share/locale
45 # Set PRELOAD_MODULES=1 if your system does not support dynamically loaded
46 # modules through 'libdl' or has non-standard naming conventions.
49 # Flags to link with libdl.
57 # If you have installed Lua 5.1 from the official tarball without changing
58 # paths, this should do it.
60 LUA_LIBS = -L$(LUA_DIR)/lib -llua
61 LUA_INCLUDES = -I$(LUA_DIR)/include
62 LUA=$(LUA_DIR)/bin/lua
63 LUAC=$(LUA_DIR)/bin/luac
65 # If you are using the Debian packages, the following settings should be
67 #LUA_LIBS=`pkg-config --libs lua5.1`
68 #LUA_INCLUDES=`pkg-config --cflags lua5.1`
74 ## X libraries, includes and options
79 #X11_PREFIX=/usr/openwin
81 X11_LIBS=-L$(X11_PREFIX)/lib -lX11 -lXext
82 X11_INCLUDES=-I$(X11_PREFIX)/include
84 # Change commenting to disable Xinerama support
85 XINERAMA_LIBS=-lXinerama
86 DEFINES += -DCF_XINERAMA
89 #DEFINES += -DCF_SUN_XINERAMA
91 # XFree86 libraries up to 4.3.0 have a bug that will cause Ion to segfault
92 # if Opera is used when i18n support is enabled. The following setting
93 # should work around that situation.
94 DEFINES += -DCF_XFREE86_TEXTPROP_BUG_WORKAROUND
96 # Use the Xutf8 routines (XFree86 extension) instead of Xmb routines in
98 #DEFINES += -DCF_DE_USE_XUTF8
100 # Remap F11 key to SunF36 and F12 to SunF37? You may want to set this
102 #DEFINES += -DCF_SUN_F1X_REMAP
109 # You may uncomment this if you know your system has
110 # asprintf and vasprintf in the c library. (gnu libc has.)
111 # If HAS_SYSTEM_ASPRINTF is not defined, an implementation
112 # in sprintf_2.2/ is used.
113 #HAS_SYSTEM_ASPRINTF=1
116 # If you're on an archaic system (such as relatively recent *BSD releases)
117 # without even dummy multibyte/widechar and localisation support, you may
118 # have to uncomment the following line:
119 #DEFINES += -DCF_NO_LOCALE
121 # On some other systems you may something like this:
122 #EXTRA_LIBS += -lintl
132 # Same as '-Wall -pedantic' without '-Wunused' as callbacks often
133 # have unused variables.
134 WARN= -W -Wimplicit -Wreturn-type -Wswitch -Wcomment \
135 -Wtrigraphs -Wformat -Wchar-subscripts \
136 -Wparentheses -pedantic -Wuninitialized
138 CFLAGS=-g -Os $(WARN) $(DEFINES) $(EXTRA_INCLUDES) $(INCLUDES)
139 LDFLAGS=-g -Os $(EXTRA_LIBS) $(LIBS)
140 EXPORT_DYNAMIC=-Xlinker --export-dynamic
142 # The following options are mainly for development use and can be used
143 # to check that the code seems to conform to some standards. Depending
144 # on the version and vendor of you libc, the options may or may not have
145 # expected results. If you define one of C99_SOURCE or XOPEN_SOURCE, you
146 # may also have to define the other.
150 #POSIX_SOURCE=-D_POSIX_SOURCE
153 #XOPEN_SOURCE=-D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED
155 #XOPEN_SOURCE=-D__EXTENSIONS__
157 #C99_SOURCE=-std=c99 -DCF_HAS_VA_COPY
159 # The -DCF_HAS_VA_COPY option should allow for some optimisations, and
160 # in some cases simply defining
161 #C99_SOURCE=-DCF_HAS_VA_COPY
162 # might allow for those optimisations to be taken without any special
163 # libc or compiler options.
171 DO_MAKE_DEPEND=$(CC) -MM $(DEFINES) $(EXTRA_INCLUDES) $(INCLUDES)
172 MAKE_DEPEND=$(DO_MAKE_DEPEND) $(SOURCES) > $(DEPEND_FILE)
187 INSTALL=sh $(TOPDIR)/install-sh -c