-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile.cfg
362 lines (294 loc) · 10.1 KB
/
Makefile.cfg
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
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
#----------------------------------------------------------------------
# SVGAlib Compile-time configuration file
#----------------------------------------------------------------------
# If you change ANYTHING in here you MUST 'make clean' and remake what
# you need.
#
# BEWARE! The toggle settings (INCLUDE_*_DRIVER and such) are set when
# the symbols are set. The value is pointless. Even setting a variable
# to n means yes!
MAJOR_VER = 1
MINOR_VER = 9.25
VERSION = $(MAJOR_VER).$(MINOR_VER)
#----------------------------------------------------------------------
# Kernel module Configuration Section
#----------------------------------------------------------------------
# Char major device used by module
SVGALIB_HELPER_MAJOR = 209
# Linux kernel includes
ifeq ($(S_KERNELRELEASE),)
S_KERNELRELEASE = $(shell uname -r)
endif
INCLUDEDIR = /lib/modules/$(S_KERNELRELEASE)/build/include
DIREXIST = $(shell if [ -e $(INCLUDEDIR) ] ; then echo OK ; fi)
ifneq ($(DIREXIST), OK)
INCLUDEDIR = /usr/src/linux/include
endif
ARCH := $(shell uname -m | sed -e s/i.86/i386/ -e s/sun4u/sparc64/ -e s/arm.*/arm/ -e s/sa110/arm/)
#----------------------------------------------------------------------
# Configuration Section
#----------------------------------------------------------------------
# Source directory.
#srcdir = /usr/local/src/svgalib-$(VERSION)
SRCDIR = $(shell sh -c pwd)
CONFDIR = $(SRCDIR)/src/config
# Common prefix for installation directories.
# NOTE: This directory must exist when you start the install.
TOPDIR=
prefix = $(TOPDIR)/usr/local
exec_prefix = $(prefix)
# Directory where the shared stubs and static library will be installed.
libdir = $(exec_prefix)/lib
# Directory where the shared library will be installed.
sharedlibdir = $(exec_prefix)/lib
# Directory where the font and textmode utilities will be installed.
bindir = $(exec_prefix)/bin
# Directory where the run-time configuration files will be installed.
datadir = $(TOPDIR)/etc/vga
# Directory where the header files will be installed.
includedir = $(prefix)/include
# Directory where the man files will be installed.
mandir = $(prefix)/share/man
# Target binary format.
TARGET_FORMAT = elf
# Uncomment this to use lrmi-0.9, instead of 0.6
# USE_LRMI_9 = y
# uncomment any of the following line to print some debug messages
# DEBUG = yes
# DEBUG_CONF = yes
# DEBUG_ACCEL = yes
# DEBUG_KEYBOARD = yes
# uncomment this if your compiler fails on compiling the assembler in
# src/vgaconvplanar.c, gl/inlstring.h, gl/line.c or gl/scale.c
# NO_ASM = y
# uncomment if you want to set attribute controller and dac without delay
# This breaks original VGA, but seems to work on new cards.
NO_DELAY = y
# Uncomment this if you want root processes to be able to always get a new
# VC. Alas, some games misuse suid root privs and become root, svgalib cannot
# detect this and will allow Joe blow user to open a new virtual VC. If this
# annoys you, comment out the next line (which is the default already)
ROOT_VC_SHORTCUT = y
# Uncomment thit to use libc's memcpy, instead of simple while loop.
# Use demos/linearspeed to see which is faster to video memory.
LIBC_MEMCPY = y
# Uncomment this if you want to compile and install the static libs.
# INSTALLSTATICLIB = installstaticlib
# Comment this out if you don't want to install the shared libs.
# If you do not install the shared nor the static libs, 'make static'
# first to enforce just building the static lib, then the demos will
# use this local static library!
INSTALLSHAREDLIB = installsharedlib
# Comment this out if you want to keep old shared images. Old header files,
# library stubs and static libraries CANNOT be kept in public locations
# except when you rename them yourself.
# KEEPSHAREDLIBS = keep
# Comment this out if you don't want to compile and install the utilities.
INSTALLUTILS = installutils
# Comment this out if you don't want to install the man pages by default
INSTALLMAN = installman
# Remove the '# ' from one of the next two lines if you want to install the
# man pages compressed (with gzip) or not. If you comment out both lines,
# the Makefiles will try to figure out if your system supports gzipped man
# pages and install them when possible.
# MANFORMAT = compressed
# MANFORMAT = uncompressed
# This is the command to update the man pages whatis database.
# This is a slow command. If you are not very patient, simple
# comment out this line
# MAKEWHATIS = makewhatis # Beware, this will really need a few minutes!
# Comment this out if you use devfs or udev and don't want to make svga nodes
# INSTALLDEV = installdev
# Select which makefile to use to install the module, or comment both out if
# you are going to install the kernel module manually
INSTALLMODULE = installmodule
# INSTALLMODULE = installmodule.alt
#
# Comment out any driver that you don't want included in the library.
# These drivers are obsolete and quite likely broken:
#INCLUDE_ET4000_DRIVER = y
#INCLUDE_OAK_DRIVER = y
#INCLUDE_EGA_DRIVER = y
#INCLUDE_MACH32_DRIVER = y
#INCLUDE_ET3000_DRIVER = y
#INCLUDE_GVGA6400_DRIVER = y
#INCLUDE_ATI_DRIVER = y
# End of obsolete drivers.
INCLUDE_CHIPS_DRIVER = y
INCLUDE_APM_DRIVER = y
INCLUDE_NV3_DRIVER = y
INCLUDE_G400_DRIVER = y
INCLUDE_R128_DRIVER = y
INCLUDE_VESA_DRIVER = y
INCLUDE_MX_DRIVER = y
INCLUDE_RENDITION_DRIVER = y
INCLUDE_RAGE_DRIVER = y
INCLUDE_BANSHEE_DRIVER = y
INCLUDE_SIS_DRIVER = y
INCLUDE_I740_DRIVER = y
INCLUDE_I810_DRIVER = y
INCLUDE_LAGUNA_DRIVER = y
INCLUDE_TRIDENT_DRIVER = y
INCLUDE_SAVAGE_DRIVER = y
INCLUDE_MILLENNIUM_DRIVER = y
##INCLUDE_G450C2_DRIVER = y
INCLUDE_PM2_DRIVER = y
INCLUDE_UNICHROME_DRIVER = y
INCLUDE_NEO_DRIVER = y
INCLUDE_ET6000_DRIVER = y
INCLUDE_FBDEV_DRIVER = y
# These drivers are obsolete, but most likely still work:
INCLUDE_PARADISE_DRIVER = y
INCLUDE_ARK_DRIVER = y
INCLUDE_S3_DRIVER = y
INCLUDE_CIRRUS_DRIVER = y
INCLUDE_TVGA_DRIVER = y
INCLUDE_ALI_DRIVER = y
#
# Comment out any adapter you don't want to autodetect.
#
#INCLUDE_ET4000_DRIVER_TEST = y
INCLUDE_CIRRUS_DRIVER_TEST = y
INCLUDE_TVGA_DRIVER_TEST = y
INCLUDE_OAK_DRIVER_TEST = y
INCLUDE_EGA_DRIVER_TEST = y
INCLUDE_MACH32_DRIVER_TEST = y
INCLUDE_GVGA6400_DRIVER_TEST = y
INCLUDE_S3_DRIVER_TEST = y
INCLUDE_ET3000_DRIVER_TEST = y
INCLUDE_ARK_DRIVER_TEST = y
INCLUDE_ATI_DRIVER_TEST = y
INCLUDE_ALI_DRIVER_TEST = y
INCLUDE_CHIPS_DRIVER_TEST = y
INCLUDE_APM_DRIVER_TEST = y
INCLUDE_NV3_DRIVER_TEST = y
INCLUDE_G400_DRIVER_TEST = y
INCLUDE_R128_DRIVER_TEST = y
INCLUDE_ET6000_DRIVER_TEST = y
INCLUDE_MX_DRIVER_TEST = y
INCLUDE_TRIDENT_DRIVER_TEST = y
INCLUDE_PARADISE_DRIVER_TEST = y
INCLUDE_RAGE_DRIVER_TEST = y
INCLUDE_BANSHEE_DRIVER_TEST = y
INCLUDE_SIS_DRIVER_TEST = y
INCLUDE_I740_DRIVER_TEST = y
INCLUDE_I810_DRIVER_TEST = y
INCLUDE_LAGUNA_DRIVER_TEST = y
INCLUDE_NEO_DRIVER_TEST = y
INCLUDE_SAVAGE_DRIVER_TEST = y
INCLUDE_MILLENNIUM_DRIVER_TEST = y
INCLUDE_RENDITION_DRIVER_TEST = y
INCLUDE_PM2_DRIVER_TEST = y
INCLUDE_UNICHROME_DRIVER_TEST = y
#INCLUDE_FBDEV_DRIVER_TEST = y
#Might be too dangerous:
#INCLUDE_VESA_DRIVER_TEST = y
#
# Comment out any dac support that you don't want included in the library.
#
# you must include SIERRA_DAC, if you include any of SCxxxx DACs.
INCLUDE_NORMAL_DAC = y
INCLUDE_S3_SDAC_DAC = y
INCLUDE_S3_GENDAC_DAC = y
INCLUDE_S3_TRIO64_DAC = y
INCLUDE_SIERRA_DAC = y
INCLUDE_SC15025_DAC = y
INCLUDE_ATT20C490_DAC = y
INCLUDE_ATT20C498_DAC = y
INCLUDE_ICW_DAC = y
INCLUDE_IBMRGB52x_DAC = y
INCLUDE_SC1148X_DAC = y
INCLUDE_ICS_GENDAC_DAC = y
#
# Comment out any dac you don't want to autodetect.
# (not all dacs can be autodetected, at this time)
#
INCLUDE_S3_SDAC_DAC_TEST = y
INCLUDE_S3_GENDAC_DAC_TEST = y
INCLUDE_SC15025_DAC_TEST = y
INCLUDE_ATT20C490_DAC_TEST = y
INCLUDE_IBMRGB52x_DAC_TEST = y
INCLUDE_SC1148X_DAC_TEST = y
INCLUDE_ICS_GENDAC_DAC_TEST = y
# LRMI - disbaled for non i386
LRMI = lrmi
# Location of the svgalib configuration file.
SVGALIB_CONFIG_FILE = $(datadir)/libvga.config
# Defining DYNAMIC enables runtime parsing of the file defined by
# ET4000_REGS (usually /etc/libvga.et4000) for the et4000
# driver. See et4000/README for details. Commenting this out again
# saves binary space.
#
# If you just want to use the et4000.regs in the source directory,
# comment out the definition of DYNAMIC. DYNAMIC allows development of new
# resolutions without recompiling.
DYNAMIC = y
ET4000_REGS = $(datadir)/libvga.et4000
# The EGA driver may load additional modes (SuperEGA cards) like the
# et4000 driver does. Just define the configuration file below.
# [This should be taken with a grain of salt, EGA is untested.]
#EGA_REGS = $(datadir)/libvga.ega
# Defining USE_CLOCKS will cause the ET4000 driver to measure clock
# frequencies (they are not actually used yet).
#USE_CLOCKS = y
# Uncomment to allow mouse type overrides
ALLOW_MOUSE_OVERRIDE = y
#----------------------------------------------------------------------
# Compiler Section
#----------------------------------------------------------------------
# Compiler used.
PC = ppc386
ifndef CC
CC = gcc
endif
ifndef CFLAGS
OPTIMIZE = -fomit-frame-pointer -O2 -fno-strength-reduce -pipe
else
OPTIMIZE := $(CFLAGS)
endif
# You might want to add -m386 here if you have a recently installed
# (486 configured) compiler on a 386. The only real difference is the
# generous alignment padding of function entry-points for the 486.
WARN = -Wall -Wstrict-prototypes
INCLUDES = -I$(srcdir)/include -I.
CFLAGS = $(WARN) $(DLLFLAGS) $(INCLUDES) $(OPTIMIZE) $(DEFINES)
LDFLAGS = -s
# additional flags for shared lib.
DLLFLAGS = -fPIC -DPIC
# Utilites used.
AR = ar
INSTALL_PROGRAM = install -sm755
INSTALL_SCRIPT = install -m755
INSTALL_SHLIB = install -m755
INSTALL_DATA = install -m644
ifneq ($(ARCH),i386)
NO_ASM = y
INCLUDE_VESA_DRIVER=
INCLUDE_CHIPS_DRIVER=
INCLUDE_ET4000_DRIVER=
INCLUDE_MACH32_DRIVER=
INCLUDE_NEO_DRIVER=
INCLUDE_TVGA_DRIVER=
INCLUDE_I810_DRIVER=
LRMI=
endif
ifeq ($(ARCH),ppc)
INCLUDE_S3_DRIVER=
endif
ifneq ($(INCLUDE_S3_DRIVER),y)
INCLUDE_NORMAL_DAC =
INCLUDE_S3_SDAC_DAC =
INCLUDE_S3_GENDAC_DAC =
INCLUDE_S3_TRIO64_DAC =
INCLUDE_SIERRA_DAC =
INCLUDE_SC15025_DAC =
INCLUDE_ATT20C490_DAC =
INCLUDE_ATT20C498_DAC =
INCLUDE_ICW_DAC =
INCLUDE_IBMRGB52x_DAC =
INCLUDE_SC1148X_DAC =
endif
ifeq ($(NO_HELPER),y)
INSTALLDEV =
INSTALLMODULE =
endif