Renamed package to ion1, and made it conflict with package 'ion'.
[ion1.git] / system.mk
blob6370ca4e631c5dd7bad885334c23b44979027214
1 ##
2 ## System settings
3 ##
6 ##
7 ## Installation paths
8 ##
10 PREFIX=/usr/local
12 # No need to modify these usually
13 BINDIR=$(PREFIX)/bin
14 ETCDIR=$(PREFIX)/etc
15 MANDIR=$(PREFIX)/man
16 DOCDIR=$(PREFIX)/doc
17 # Not used
18 INCDIR=$(PREFIX)/include
19 LIBDIR=$(PREFIX)/lib
23 ## Modules
26 #MODULE_SUPPORT=-DCF_NO_MODULE_SUPPORT
27 MODULE_SUPPORT_LDFLAGS=-export-dynamic -ldl
31 ## X libraries, includes and options
34 X11_PREFIX=/usr/X11R6
36 # SunOS/Solaris
37 #X11_PREFIX=/usr/openwin
39 X11_LIBS=-L$(X11_PREFIX)/lib
40 X11_INCLUDES=-I$(X11_PREFIX)/include
41 X11_DEFINES=
43 #EXTRA_INCLUDES = -I$(PREFIX)/include
44 #EXTRA_LIBS = -L$(PREFIX)/lib
48 ## libc
51 # You may uncomment this if you know your system has
52 # asprintf and vasprintf in the c library. (gnu libc has.)
53 # If HAS_SYSTEM_ASPRINTF is not defined, an implementation
54 # in libtu/sprintf_2.2/ is used.
55 #HAS_SYSTEM_ASPRINTF=1
59 ## C compiler
62 CC=gcc
64 # The POSIX_SOURCE, XOPEN_SOURCE and WARN options should not be necessary,
65 # they're mainly for development use. So, if they cause trouble (not
66 # the ones that should be used on your system or the system is broken),
67 # just comment them out.
69 # libtu/ uses POSIX_SOURCE
71 POSIX_SOURCE=-ansi -D_POSIX_SOURCE
73 # and . (ion) XOPEN_SOURCE.
74 # There is variation among systems what should be used and how they interpret
75 # it so it is perhaps better not using anything at all.
77 # Most systems
78 #XOPEN_SOURCE=-ansi -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED
79 # sunos, (irix)
80 #XOPEN_SOURCE=-ansi -D__EXTENSIONS__
82 # Same as '-Wall -pedantic-errors' without '-Wunused' as callbacks often
83 # have unused variables.
84 WARN= -W -Wimplicit -Wreturn-type -Wswitch -Wcomment \
85 -Wtrigraphs -Wformat -Wchar-subscripts \
86 -Wparentheses -Wuninitialized
89 CFLAGS=-g -O2 $(WARN) $(DEFINES) $(INCLUDES) $(EXTRA_INCLUDES)
90 LDFLAGS=-g $(LIBS) $(EXTRA_LIBS)
94 ## make depend
97 DEPEND_FILE=.depend
98 MAKE_DEPEND=$(CC) -M $(DEFINES) $(INCLUDES) $(EXTRA_INCLUDES) > $(DEPEND_FILE)
102 ## AR
105 AR=ar
106 ARFLAGS=cr
107 RANLIB=ranlib
111 ## Install & strip
114 # Should work almost everywhere
115 INSTALL=install
116 # On a system with pure BSD install, -c might be preferred
117 #INSTALL=install -c
119 INSTALLDIR=mkdir -p
121 BIN_MODE=755
122 DATA_MODE=664
124 STRIP=strip