1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
|
$NetBSD: patch-al,v 1.3 2006/11/03 07:02:23 wiz Exp $
--- system.mk.orig 2006-05-24 16:23:51.000000000 +0000
+++ system.mk
@@ -7,7 +7,7 @@
## Installation paths
##
-PREFIX=/usr/local
+EXDIR= ${PREFIX}/share/examples/ion3
# Unless you are creating a package conforming to some OS's standards, you
# probably do not want to modify the following directories:
@@ -19,7 +19,7 @@ ETCDIR=$(PREFIX)/etc/ion3
# Some .lua files and ion-* shell scripts
SHAREDIR=$(PREFIX)/share/ion3
# Manual pages
-MANDIR=$(PREFIX)/share/man
+MANDIR=$(PREFIX)/man
# Some documents
DOCDIR=$(PREFIX)/share/doc/ion3
# Nothing at the moment
@@ -47,7 +47,7 @@ LOCALEDIR=$(PREFIX)/share/locale
#PRELOAD_MODULES=1
# Flags to link with libdl.
-DL_LIBS=-ldl
+DL_LIBS= ${BUILDLINK_LDADD.dl}
##
@@ -56,7 +56,7 @@ DL_LIBS=-ldl
# If you have installed Lua 5.1 from the official tarball without changing
# paths, this should do it.
-LUA_DIR=/usr/local
+LUA_DIR=${PREFIX}
LUA_LIBS = -L$(LUA_DIR)/lib -llua
LUA_INCLUDES = -I$(LUA_DIR)/include
LUA=$(LUA_DIR)/bin/lua
@@ -116,8 +116,7 @@ DEFINES += -DCF_XFREE86_TEXTPROP_BUG_WOR
#DEFINES += -DCF_NO_LOCALE
# On some other systems you may something like this:
-#EXTRA_LIBS += -lintl
-#EXTRA_INCLUDES +=
+INTL_LIBS += -lintl
##
@@ -132,8 +131,8 @@ WARN= -W -Wimplicit -Wreturn-type -Wswit
-Wtrigraphs -Wformat -Wchar-subscripts \
-Wparentheses -pedantic -Wuninitialized
-CFLAGS=-g -Os $(WARN) $(DEFINES) $(EXTRA_INCLUDES) $(INCLUDES)
-LDFLAGS=-g -Os $(EXTRA_LIBS) $(LIBS)
+CFLAGS+= $(WARN) $(DEFINES) $(EXTRA_INCLUDES) $(INCLUDES) -fPIC
+LDFLAGS+= $(EXTRA_LIBS) $(LIBS)
EXPORT_DYNAMIC=-Xlinker --export-dynamic
# The following options are mainly for development use and can be used
|