1 --- ion3.orig/system.mk
5 # Installation path prefix. Unless you know what you're doing, the default
6 # of /usr/local is likely the correct choice.
10 # Unless you are creating a package conforming to some OS's standards, you
11 # probably do not want to modify the following directories:
15 # Configuration .lua files
16 -ETCDIR=$(PREFIX)/etc/ion3
18 # Some .lua files and ion-* shell scripts
19 SHAREDIR=$(PREFIX)/share/ion3
22 # Nothing at the moment
25 -MODULEDIR=$(LIBDIR)/ion3/mod
26 +MODULEDIR=$(LIBDIR)/ion3
27 # Compiled Lua source code
28 LCDIR=$(LIBDIR)/ion3/lc
29 # ion-completefile (does not belong in SHAREDIR being a binary file)
30 -EXTRABINDIR=$(LIBDIR)/ion3/bin
31 +EXTRABINDIR=$(LIBDIR)/ion3
32 # For ion-completeman system-wide cache
33 VARDIR=/var/cache/ion3
37 # If you have installed Lua 5.1 from the official tarball without changing
38 # paths, this should do it.
40 -LUA_LIBS = -L$(LUA_DIR)/lib -llua
41 -LUA_INCLUDES = -I$(LUA_DIR)/include
42 -LUA=$(LUA_DIR)/bin/lua
43 -LUAC=$(LUA_DIR)/bin/luac
45 +#LUA_LIBS = -L$(LUA_DIR)/lib -llua
46 +#LUA_INCLUDES = -I$(LUA_DIR)/include
47 +#LUA=$(LUA_DIR)/bin/lua
48 +#LUAC=$(LUA_DIR)/bin/luac
50 # If you are using the Debian packages, the following settings should be
52 -#LUA_LIBS=`pkg-config --libs lua5.1`
53 -#LUA_INCLUDES=`pkg-config --cflags lua5.1`
55 -#LUAC=/usr/bin/luac5.1
56 +LUA_LIBS=`pkg-config --libs lua5.1`
57 +LUA_INCLUDES=`pkg-config --cflags lua5.1`
64 # You may uncomment this if you know that your system C libary provides
65 # asprintf and vasprintf. (GNU libc does.) If HAS_SYSTEM_ASPRINTF is not
66 # defined, an implementation provided in libtu/sprintf_2.2/ is used.
67 -#HAS_SYSTEM_ASPRINTF=1
68 +HAS_SYSTEM_ASPRINTF=1
70 # The following setting is needed with GNU libc for clock_gettime and the
71 # monotonic clock. Other systems may not need it, or may not provide a
76 -#POSIX_SOURCE=-D_POSIX_C_SOURCE=200112L
77 +POSIX_SOURCE=-D_POSIX_C_SOURCE=200112L
80 -#XOPEN_SOURCE=-D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED
81 +XOPEN_SOURCE=-D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED
83 #XOPEN_SOURCE=-D__EXTENSIONS__
85 -#C99_SOURCE=-std=c99 -DCF_HAS_VA_COPY
86 +C99_SOURCE=-std=c99 -DCF_HAS_VA_COPY
88 # The -DCF_HAS_VA_COPY option should allow for some optimisations, and
89 # in some cases simply defining