-
Notifications
You must be signed in to change notification settings - Fork 11
/
configvars
303 lines (259 loc) · 10.3 KB
/
configvars
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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
# This file is being included into all Makefiles and into the
# installation script "libinstall". Please make sure that it can
# serve both as input to "make" and a Bourne shell.
# Define this to the version of the package.
VERSION=0.60.1
# Define this if you cross-compile. When cross-compiling some files
# (notably programs and commands like zic, zdump or tzselect) won't
# get installed. You have to take car yourself that the libraries
# and include files and so on will get installed in the right place
# The easiest way to do this is to change "prefix", see below.
#CROSS=yes
# Silent build or verbose
AM_DEFAULT_VERBOSITY = 1
#
# cross compiling
#
ifneq (yes,$(M68K_ATARI_MINT_CROSS))
ifeq (no,$(M68K_ATARI_MINT_CROSS))
CROSS = no
else
EVAL_CROSS := case `uname -s` in *MiNT*) echo no;; *) echo yes; esac
CROSS := $(shell $(EVAL_CROSS))
endif
else
CROSS = yes
endif
# Define this to "m68k-atari-mint" if you cross compile.
ifneq ($(CROSS_TOOL),)
toolprefix=$(CROSS_TOOL)-
CROSS := yes
else
ifeq ($(CROSS),yes)
CROSS_TOOL=m68k-atari-mint
toolprefix=$(CROSS_TOOL)-
else
toolprefix=
endif
endif
EVAL_ELF := (echo '\#ifdef __ELF__'; echo yes; echo '\#endif' ) | $(toolprefix)gcc -E - 2>/dev/null | grep yes
ELF := $(shell $(EVAL_ELF))
# Uncomment this out if you want extra libraries that are optimized
# for m68020 processors.
WITH_020_LIB=yes
# Uncomment this out if you want extra libraries
# for ColdFire V4e processors.
WITH_V4E_LIB=yes
# Uncomment this out if you want a debuggable lib lib_g.a.
#WITH_DEBUG_LIB=yes
ifeq ($(ELF),yes)
WITH_DEBUG_LIB=yes
endif
# Uncomment this out if you want -mfastcall libraries
WITH_FASTCALL=$(shell if $(toolprefix)gcc -mfastcall -E - < /dev/null >/dev/null 2>&1; then echo yes; else echo no; fi)
# Uncomment this out if you want a debugable lib lib_p.a.
# This is currently not recommended. At least on my machine
# all executables linked against a profiled lib crash and I
# cannot debug it because the debugger runs out of memory before
# it can fork (even for hello.c). It may be a memory problem
# that only occurs here, it may be a bug.
#WITH_PROFILE_LIB=yes
# This variable is used for various others. Change its value if
# need be. When cross-compiling you will usually want to set this
# to "/usr/m68k-atari-mint".
prefix=/usr
# This is where include files get installed.
includedir=${prefix}/include
# This is where the libraries and the startup modules (crt0.o etc.)
# go.
libdir=${prefix}/lib
# This is where manpages get installed.
mandir=${prefix}/share/man
# This is where user programs get installed.
bindir=${prefix}/bin
# This is where system programs that are not necessary for booting the
# system get installed.
sbindir=${prefix}/sbin
# This is where system programs that are necessary for booting the
# system get installed. If your general prefix is "/usr" (i. e.
# you replace your system files with this distribution, you should
# choose "/sbin". If your general prefix is "/usr/local" (or something
# else, then "$prefix/sbin" will be alright.
ifeq ($(prefix),/usr)
bootsbindir=/sbin
else
bootsbindir=${prefix}/sbin
endif
# Define this to the name of your C compiler. You need at least
# gcc 2.7.2. Older versions will not work. If you use an older
# gcc than 2.95.2 you will run into severe problems.
CC=$(toolprefix)gcc
# Define this to "no" if you don't want to let the installation
# routines remove stale include files from your system's include
# directories. Unless you build an rpm or do cross-compiling
# you should leave that as "yes".
ifeq ($(CROSS),yes)
HEADER_CLEANUP=no
else
HEADER_CLEANUP=yes
endif
# Define this to the name of your ar program.
AR=$(toolprefix)ar
# Define this to "${AR} s" if your system lacks the ranlib program.
RANLIB=$(toolprefix)ranlib
# Define this to the name of your strip program.
STRIP=$(toolprefix)strip
# Minimal set of CFLAGS to use. Additional flags for other processors
# will be added by the individual Makefiles. If you want a debuggable
# library you will have to add "-g" here. If you want more or less
# optimization you can change "-O2" to nothing, "-O" or "-O3". Don't
# add any "-f..." optimization options here, they will be handled
# by the Makefiles because inidividual files need special options.
#
# If you have enough memory and want to speed up compilation you can
# also add -pipe here.
#
# ATTENTION: You have to optimize at least with -O, otherwise some
# extern inlines will not work and will cause unresolved references
# in certain modules.
CFLAGS=-O2 -fomit-frame-pointer -fgnu89-inline
# Flags for building executables
LDFLAGS=
# Additional defines.
DEFS=
CFLAGS_m68000 = -m68000
CFLAGS_m68020 = -m68020-60
CFLAGS_coldfire = -mcpu=5475
CFLAGS_debug = -O -g
CFLAGS_profile = -g -pg -DPROFILING
CFLAGS_short = -mshort
CFLAGS_fastcall = -mfastcall
# Define this to the warning level you want.
WARN=-Wall -Werror -Wstrict-prototypes -Wmissing-prototypes -Wold-style-declaration -Wold-style-definition -Wdeclaration-after-statement
# If your system lacks a BSD compatible install you should set this
# variable to "$(top_srcdir}/install-sh".
# INSTALL=${top_srcdir}/install-sh
INSTALL=install
# Define this to the name of an awk program on your system.
AWK=awk
ifeq ($(CROSS),yes)
CC_FOR_BUILD=gcc
CFLAGS_FOR_BUILD = -O2
LDFLAGS_FOR_BUILD =
else
CC_FOR_BUILD=$(CC)
CFLAGS_FOR_BUILD = $(CFLAGS)
LDFLAGS_FOR_BUILD = $(LDFLAGS)
endif
#####################################################################
# Time zone stuff.
#####################################################################
# Important note: Along with the tz database comes a shell script
# "tzselect". This script requires a korn shell. This is usually
# no problem with MiNT because bash is assez korn shell compatible.
# you should create a symbolic link
# ln -s /bin/bash /bin/ksh
# before running the script.
#
# When cross-compiling nothing will get installed in the tz
# tz subdirectory. Only the binaries zdump and zic will get build
# but not installed.
# Change the line below for your time zone (after finding the zone
# you want in the time zone files, or adding it to a time zone file).
# Alternately, if you discover you've got the wrong time zone, you
# can just
# zic -l rightzone
# after installation to correct things.
# Use the command
# make zonenames
# to get a list of the values you can use for LOCALTIME. If you have
# a binary distribution simply run the installation script libinstall.
# You will then find a list of possible zonenames in this directory
# in the file "zonenames".
#
# The default setting "Factory" is also safe. Whenever you use a
# program that supports the tz database and your timezone is still
# "Factory" its output will remind you to run "tz".
#
# This variable gets overridden if the file /etc/sparemint/timezone
# exists and it defines a variable "TIMEZONE".
LOCALTIME=Factory
# If you want something other than Eastern United States time as a
# template for handling POSIX-style time zone environment variables,
# change the line below (after finding the zone you want in the time
# zone files, or adding it to a time zone file). (When a POSIX-style
# environment variable is handled, the rules in the template file are
# used to determine "spring forward" and "fall back" days and times;
# the environment variable itself specifies UTC offsets of standard
# and summer time.)
# Alternately, if you discover you've got the wrong time zone, you
# can just
# zic -p rightzone
# to correct things.
# Use the command
# make zonenames
# to get a list of the values you can use for POSIXRULES. If you have
# a binary distribution simply run the installation script libinstall.
# You will then find a list of possible zonenames in this directory
# in the file "zonenames".
# If you want POSIX compatibility, use "America/New_York". But you
# must be a very POSIX compatible mind if you do not choose your
# hometown instead.
#
# This variable gets overridden if the file /etc/sparemint/timezone
# exists and it defines a variable "TIMEZONE".
POSIXRULES=America/New_York
# All time zone stuff gets put in subdirectories of...
# Note that this variable defaults to "/usr" and not "/usr/local".
# If you change the installation path you also have to change
# the file src/tzfile.h to reflect your different setting.
TZTOPDIR=${prefix}
# "Compiled" time zone information is placed in the "TZDIR" directory
# (and subdirectories).
# Use an absolute path name for TZDIR unless you're just testing the
# software. Again, take care that this setting is synchronized with
# src/tzfile.h.
TZDIR=${TZTOPDIR}/share/zoneinfo
# If you always want time values interpreted as "seconds since the epoch
# (not counting leap seconds)", use
# TZREDO=posix_only
# below. If you always want right time values interpreted as "seconds since
# the epoch" (counting leap seconds)", use
# TZREDO=right_only
# below. If you want both sets of data available, with leap seconds not
# counted normally, use
# TZREDO=posix_right
# below. If you want both sets of data available, with leap seconds counted
# normally, use
# TZREDO=right_posix
# below.
# POSIX mandates that leap seconds not be counted; for compatibility with it,
# use either "posix_only" or "posix_right". If you don't want to install
# any timezone database specifiy "TZREDO=none".
TZREDO=posix_right
# If you want zic's -s option used when installing, uncomment the next line
# (see zic(8) for details).
# ZFLAGS=-s
# Define this to the name of a korn shell compatible shell on your
# system. Usually the default "/bin/bash" is alright.
KSH=/bin/bash
#####################################################################
# End of time zone stuff.
#####################################################################
#####################################################################
# Linker.
#####################################################################
# Which linker gets used? Possible values are currently "GNU" or
# "OLD_GNU".
# Define this to "GNU" if you use the GNU linker at least version 2.9.1
# (type "ld --version" to see if this is the case). For older versions
# of the GNU linker define it to "OLD_GNU". For other linkers you
# have to edit the files "include/libc-symbols.h" and
# "include/linker.h.in".
LINKER_TYPE=GNU
#####################################################################
# End of linker stuff.
#####################################################################
# The following variables shouldn't be changed by the user.
TAR=tar
GZIP=--best