~ubuntu-branches/ubuntu/feisty/fpc/feisty

« back to all changes in this revision

Viewing changes to fv/Makefile

  • Committer: Bazaar Package Importer
  • Author(s): Torsten Werner
  • Date: 2007-01-27 20:08:50 UTC
  • mfrom: (1.2.3 upstream)
  • Revision ID: james.westby@ubuntu.com-20070127200850-9mrptaqqjsx9nwa7
Tags: 2.0.4-5
* Fixed Build-Depends.
* Add myself to Uploaders in debian/control.
* Make sure that the sources are really patched before building them.
* Build unit 'libc' on powerpc too.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#
2
 
# Don't edit, this file is generated by FPCMake Version 2.0.0 [2005/05/05]
 
2
# Don't edit, this file is generated by FPCMake Version 2.0.0 [2006/02/06]
3
3
#
4
4
default: all
5
 
MAKEFILETARGETS=i386-linux i386-go32v2 i386-win32 i386-os2 i386-freebsd i386-beos i386-netbsd i386-solaris i386-qnx i386-netware i386-openbsd i386-wdosx i386-emx i386-watcom i386-netwlibc m68k-linux m68k-freebsd m68k-netbsd m68k-amiga m68k-atari m68k-openbsd m68k-palmos powerpc-linux powerpc-netbsd powerpc-macos powerpc-darwin powerpc-morphos sparc-linux sparc-netbsd sparc-solaris x86_64-linux x86_64-freebsd arm-linux
 
5
MAKEFILETARGETS=i386-linux i386-go32v2 i386-win32 i386-os2 i386-freebsd i386-beos i386-netbsd i386-solaris i386-qnx i386-netware i386-openbsd i386-wdosx i386-emx i386-watcom i386-netwlibc i386-wince m68k-linux m68k-freebsd m68k-netbsd m68k-amiga m68k-atari m68k-openbsd m68k-palmos powerpc-linux powerpc-netbsd powerpc-macos powerpc-darwin powerpc-morphos sparc-linux sparc-netbsd sparc-solaris x86_64-linux x86_64-freebsd x86_64-win64 arm-linux arm-palmos arm-wince powerpc64-linux
6
6
BSDs = freebsd netbsd openbsd darwin
7
7
UNIXs = linux $(BSDs) solaris qnx
8
8
LIMIT83fs = go32v2 os2 emx watcom
231
231
endif
232
232
PACKAGESDIR:=$(wildcard $(FPCDIR) $(FPCDIR)/packages/base $(FPCDIR)/packages/extra)
233
233
override PACKAGE_NAME=fv
234
 
override PACKAGE_VERSION=2.0.0
235
 
ifeq ($(FULL_TARGET),i386-linux)
236
 
override TARGET_UNITS+=buildfv
237
 
endif
238
 
ifeq ($(FULL_TARGET),i386-go32v2)
239
 
override TARGET_UNITS+=buildfv
240
 
endif
241
 
ifeq ($(FULL_TARGET),i386-win32)
242
 
override TARGET_UNITS+=buildfv
243
 
endif
244
 
ifeq ($(FULL_TARGET),i386-os2)
245
 
override TARGET_UNITS+=buildfv
246
 
endif
247
 
ifeq ($(FULL_TARGET),i386-freebsd)
248
 
override TARGET_UNITS+=buildfv
249
 
endif
250
 
ifeq ($(FULL_TARGET),i386-beos)
251
 
override TARGET_UNITS+=buildfv
252
 
endif
253
 
ifeq ($(FULL_TARGET),i386-netbsd)
254
 
override TARGET_UNITS+=buildfv
255
 
endif
256
 
ifeq ($(FULL_TARGET),i386-solaris)
257
 
override TARGET_UNITS+=buildfv
258
 
endif
259
 
ifeq ($(FULL_TARGET),i386-qnx)
260
 
override TARGET_UNITS+=buildfv
261
 
endif
262
 
ifeq ($(FULL_TARGET),i386-netware)
263
 
override TARGET_UNITS+=buildfv
264
 
endif
265
 
ifeq ($(FULL_TARGET),i386-openbsd)
266
 
override TARGET_UNITS+=buildfv
267
 
endif
268
 
ifeq ($(FULL_TARGET),i386-wdosx)
269
 
override TARGET_UNITS+=buildfv
270
 
endif
271
 
ifeq ($(FULL_TARGET),i386-emx)
272
 
override TARGET_UNITS+=buildfv
273
 
endif
274
 
ifeq ($(FULL_TARGET),i386-watcom)
275
 
override TARGET_UNITS+=buildfv
276
 
endif
277
 
ifeq ($(FULL_TARGET),i386-netwlibc)
278
 
override TARGET_UNITS+=buildfv
279
 
endif
280
 
ifeq ($(FULL_TARGET),m68k-linux)
281
 
override TARGET_UNITS+=buildfv
282
 
endif
283
 
ifeq ($(FULL_TARGET),m68k-freebsd)
284
 
override TARGET_UNITS+=buildfv
285
 
endif
286
 
ifeq ($(FULL_TARGET),m68k-netbsd)
287
 
override TARGET_UNITS+=buildfv
288
 
endif
289
 
ifeq ($(FULL_TARGET),m68k-amiga)
290
 
override TARGET_UNITS+=buildfv
291
 
endif
292
 
ifeq ($(FULL_TARGET),m68k-atari)
293
 
override TARGET_UNITS+=buildfv
294
 
endif
295
 
ifeq ($(FULL_TARGET),m68k-openbsd)
296
 
override TARGET_UNITS+=buildfv
297
 
endif
298
 
ifeq ($(FULL_TARGET),m68k-palmos)
299
 
override TARGET_UNITS+=buildfv
300
 
endif
301
 
ifeq ($(FULL_TARGET),powerpc-linux)
302
 
override TARGET_UNITS+=buildfv
303
 
endif
304
 
ifeq ($(FULL_TARGET),powerpc-netbsd)
305
 
override TARGET_UNITS+=buildfv
306
 
endif
307
 
ifeq ($(FULL_TARGET),powerpc-macos)
308
 
override TARGET_UNITS+=buildfv
309
 
endif
310
 
ifeq ($(FULL_TARGET),powerpc-darwin)
311
 
override TARGET_UNITS+=buildfv
312
 
endif
313
 
ifeq ($(FULL_TARGET),powerpc-morphos)
314
 
override TARGET_UNITS+=buildfv
315
 
endif
316
 
ifeq ($(FULL_TARGET),sparc-linux)
317
 
override TARGET_UNITS+=buildfv
318
 
endif
319
 
ifeq ($(FULL_TARGET),sparc-netbsd)
320
 
override TARGET_UNITS+=buildfv
321
 
endif
322
 
ifeq ($(FULL_TARGET),sparc-solaris)
323
 
override TARGET_UNITS+=buildfv
324
 
endif
325
 
ifeq ($(FULL_TARGET),x86_64-linux)
326
 
override TARGET_UNITS+=buildfv
327
 
endif
328
 
ifeq ($(FULL_TARGET),x86_64-freebsd)
329
 
override TARGET_UNITS+=buildfv
330
 
endif
331
 
ifeq ($(FULL_TARGET),arm-linux)
332
 
override TARGET_UNITS+=buildfv
333
 
endif
334
 
ifeq ($(FULL_TARGET),i386-linux)
335
 
override TARGET_IMPLICITUNITS+=app colortxt dialogs drivers editors fvcommon fvconsts gadgets histlist inplong memory menus msgbox resource statuses stddlg tabs time validate views sysmsg asciitab timeddlg
336
 
endif
337
 
ifeq ($(FULL_TARGET),i386-go32v2)
338
 
override TARGET_IMPLICITUNITS+=app colortxt dialogs drivers editors fvcommon fvconsts gadgets histlist inplong memory menus msgbox resource statuses stddlg tabs time validate views sysmsg asciitab timeddlg
339
 
endif
340
 
ifeq ($(FULL_TARGET),i386-win32)
341
 
override TARGET_IMPLICITUNITS+=app colortxt dialogs drivers editors fvcommon fvconsts gadgets histlist inplong memory menus msgbox resource statuses stddlg tabs time validate views sysmsg asciitab timeddlg
342
 
endif
343
 
ifeq ($(FULL_TARGET),i386-os2)
344
 
override TARGET_IMPLICITUNITS+=app colortxt dialogs drivers editors fvcommon fvconsts gadgets histlist inplong memory menus msgbox resource statuses stddlg tabs time validate views sysmsg asciitab timeddlg
345
 
endif
346
 
ifeq ($(FULL_TARGET),i386-freebsd)
347
 
override TARGET_IMPLICITUNITS+=app colortxt dialogs drivers editors fvcommon fvconsts gadgets histlist inplong memory menus msgbox resource statuses stddlg tabs time validate views sysmsg asciitab timeddlg
348
 
endif
349
 
ifeq ($(FULL_TARGET),i386-beos)
350
 
override TARGET_IMPLICITUNITS+=app colortxt dialogs drivers editors fvcommon fvconsts gadgets histlist inplong memory menus msgbox resource statuses stddlg tabs time validate views sysmsg asciitab timeddlg
351
 
endif
352
 
ifeq ($(FULL_TARGET),i386-netbsd)
353
 
override TARGET_IMPLICITUNITS+=app colortxt dialogs drivers editors fvcommon fvconsts gadgets histlist inplong memory menus msgbox resource statuses stddlg tabs time validate views sysmsg asciitab timeddlg
354
 
endif
355
 
ifeq ($(FULL_TARGET),i386-solaris)
356
 
override TARGET_IMPLICITUNITS+=app colortxt dialogs drivers editors fvcommon fvconsts gadgets histlist inplong memory menus msgbox resource statuses stddlg tabs time validate views sysmsg asciitab timeddlg
357
 
endif
358
 
ifeq ($(FULL_TARGET),i386-qnx)
359
 
override TARGET_IMPLICITUNITS+=app colortxt dialogs drivers editors fvcommon fvconsts gadgets histlist inplong memory menus msgbox resource statuses stddlg tabs time validate views sysmsg asciitab timeddlg
360
 
endif
361
 
ifeq ($(FULL_TARGET),i386-netware)
362
 
override TARGET_IMPLICITUNITS+=app colortxt dialogs drivers editors fvcommon fvconsts gadgets histlist inplong memory menus msgbox resource statuses stddlg tabs time validate views sysmsg asciitab timeddlg
363
 
endif
364
 
ifeq ($(FULL_TARGET),i386-openbsd)
365
 
override TARGET_IMPLICITUNITS+=app colortxt dialogs drivers editors fvcommon fvconsts gadgets histlist inplong memory menus msgbox resource statuses stddlg tabs time validate views sysmsg asciitab timeddlg
366
 
endif
367
 
ifeq ($(FULL_TARGET),i386-wdosx)
368
 
override TARGET_IMPLICITUNITS+=app colortxt dialogs drivers editors fvcommon fvconsts gadgets histlist inplong memory menus msgbox resource statuses stddlg tabs time validate views sysmsg asciitab timeddlg
369
 
endif
370
 
ifeq ($(FULL_TARGET),i386-emx)
371
 
override TARGET_IMPLICITUNITS+=app colortxt dialogs drivers editors fvcommon fvconsts gadgets histlist inplong memory menus msgbox resource statuses stddlg tabs time validate views sysmsg asciitab timeddlg
372
 
endif
373
 
ifeq ($(FULL_TARGET),i386-watcom)
374
 
override TARGET_IMPLICITUNITS+=app colortxt dialogs drivers editors fvcommon fvconsts gadgets histlist inplong memory menus msgbox resource statuses stddlg tabs time validate views sysmsg asciitab timeddlg
375
 
endif
376
 
ifeq ($(FULL_TARGET),i386-netwlibc)
377
 
override TARGET_IMPLICITUNITS+=app colortxt dialogs drivers editors fvcommon fvconsts gadgets histlist inplong memory menus msgbox resource statuses stddlg tabs time validate views sysmsg asciitab timeddlg
378
 
endif
379
 
ifeq ($(FULL_TARGET),m68k-linux)
380
 
override TARGET_IMPLICITUNITS+=app colortxt dialogs drivers editors fvcommon fvconsts gadgets histlist inplong memory menus msgbox resource statuses stddlg tabs time validate views sysmsg asciitab timeddlg
381
 
endif
382
 
ifeq ($(FULL_TARGET),m68k-freebsd)
383
 
override TARGET_IMPLICITUNITS+=app colortxt dialogs drivers editors fvcommon fvconsts gadgets histlist inplong memory menus msgbox resource statuses stddlg tabs time validate views sysmsg asciitab timeddlg
384
 
endif
385
 
ifeq ($(FULL_TARGET),m68k-netbsd)
386
 
override TARGET_IMPLICITUNITS+=app colortxt dialogs drivers editors fvcommon fvconsts gadgets histlist inplong memory menus msgbox resource statuses stddlg tabs time validate views sysmsg asciitab timeddlg
387
 
endif
388
 
ifeq ($(FULL_TARGET),m68k-amiga)
389
 
override TARGET_IMPLICITUNITS+=app colortxt dialogs drivers editors fvcommon fvconsts gadgets histlist inplong memory menus msgbox resource statuses stddlg tabs time validate views sysmsg asciitab timeddlg
390
 
endif
391
 
ifeq ($(FULL_TARGET),m68k-atari)
392
 
override TARGET_IMPLICITUNITS+=app colortxt dialogs drivers editors fvcommon fvconsts gadgets histlist inplong memory menus msgbox resource statuses stddlg tabs time validate views sysmsg asciitab timeddlg
393
 
endif
394
 
ifeq ($(FULL_TARGET),m68k-openbsd)
395
 
override TARGET_IMPLICITUNITS+=app colortxt dialogs drivers editors fvcommon fvconsts gadgets histlist inplong memory menus msgbox resource statuses stddlg tabs time validate views sysmsg asciitab timeddlg
396
 
endif
397
 
ifeq ($(FULL_TARGET),m68k-palmos)
398
 
override TARGET_IMPLICITUNITS+=app colortxt dialogs drivers editors fvcommon fvconsts gadgets histlist inplong memory menus msgbox resource statuses stddlg tabs time validate views sysmsg asciitab timeddlg
399
 
endif
400
 
ifeq ($(FULL_TARGET),powerpc-linux)
401
 
override TARGET_IMPLICITUNITS+=app colortxt dialogs drivers editors fvcommon fvconsts gadgets histlist inplong memory menus msgbox resource statuses stddlg tabs time validate views sysmsg asciitab timeddlg
402
 
endif
403
 
ifeq ($(FULL_TARGET),powerpc-netbsd)
404
 
override TARGET_IMPLICITUNITS+=app colortxt dialogs drivers editors fvcommon fvconsts gadgets histlist inplong memory menus msgbox resource statuses stddlg tabs time validate views sysmsg asciitab timeddlg
405
 
endif
406
 
ifeq ($(FULL_TARGET),powerpc-macos)
407
 
override TARGET_IMPLICITUNITS+=app colortxt dialogs drivers editors fvcommon fvconsts gadgets histlist inplong memory menus msgbox resource statuses stddlg tabs time validate views sysmsg asciitab timeddlg
408
 
endif
409
 
ifeq ($(FULL_TARGET),powerpc-darwin)
410
 
override TARGET_IMPLICITUNITS+=app colortxt dialogs drivers editors fvcommon fvconsts gadgets histlist inplong memory menus msgbox resource statuses stddlg tabs time validate views sysmsg asciitab timeddlg
411
 
endif
412
 
ifeq ($(FULL_TARGET),powerpc-morphos)
413
 
override TARGET_IMPLICITUNITS+=app colortxt dialogs drivers editors fvcommon fvconsts gadgets histlist inplong memory menus msgbox resource statuses stddlg tabs time validate views sysmsg asciitab timeddlg
414
 
endif
415
 
ifeq ($(FULL_TARGET),sparc-linux)
416
 
override TARGET_IMPLICITUNITS+=app colortxt dialogs drivers editors fvcommon fvconsts gadgets histlist inplong memory menus msgbox resource statuses stddlg tabs time validate views sysmsg asciitab timeddlg
417
 
endif
418
 
ifeq ($(FULL_TARGET),sparc-netbsd)
419
 
override TARGET_IMPLICITUNITS+=app colortxt dialogs drivers editors fvcommon fvconsts gadgets histlist inplong memory menus msgbox resource statuses stddlg tabs time validate views sysmsg asciitab timeddlg
420
 
endif
421
 
ifeq ($(FULL_TARGET),sparc-solaris)
422
 
override TARGET_IMPLICITUNITS+=app colortxt dialogs drivers editors fvcommon fvconsts gadgets histlist inplong memory menus msgbox resource statuses stddlg tabs time validate views sysmsg asciitab timeddlg
423
 
endif
424
 
ifeq ($(FULL_TARGET),x86_64-linux)
425
 
override TARGET_IMPLICITUNITS+=app colortxt dialogs drivers editors fvcommon fvconsts gadgets histlist inplong memory menus msgbox resource statuses stddlg tabs time validate views sysmsg asciitab timeddlg
426
 
endif
427
 
ifeq ($(FULL_TARGET),x86_64-freebsd)
428
 
override TARGET_IMPLICITUNITS+=app colortxt dialogs drivers editors fvcommon fvconsts gadgets histlist inplong memory menus msgbox resource statuses stddlg tabs time validate views sysmsg asciitab timeddlg
429
 
endif
430
 
ifeq ($(FULL_TARGET),arm-linux)
431
 
override TARGET_IMPLICITUNITS+=app colortxt dialogs drivers editors fvcommon fvconsts gadgets histlist inplong memory menus msgbox resource statuses stddlg tabs time validate views sysmsg asciitab timeddlg
432
 
endif
433
 
ifeq ($(FULL_TARGET),i386-linux)
434
 
override TARGET_EXAMPLEDIRS+=test
435
 
endif
436
 
ifeq ($(FULL_TARGET),i386-go32v2)
437
 
override TARGET_EXAMPLEDIRS+=test
438
 
endif
439
 
ifeq ($(FULL_TARGET),i386-win32)
440
 
override TARGET_EXAMPLEDIRS+=test
441
 
endif
442
 
ifeq ($(FULL_TARGET),i386-os2)
443
 
override TARGET_EXAMPLEDIRS+=test
444
 
endif
445
 
ifeq ($(FULL_TARGET),i386-freebsd)
446
 
override TARGET_EXAMPLEDIRS+=test
447
 
endif
448
 
ifeq ($(FULL_TARGET),i386-beos)
449
 
override TARGET_EXAMPLEDIRS+=test
450
 
endif
451
 
ifeq ($(FULL_TARGET),i386-netbsd)
452
 
override TARGET_EXAMPLEDIRS+=test
453
 
endif
454
 
ifeq ($(FULL_TARGET),i386-solaris)
455
 
override TARGET_EXAMPLEDIRS+=test
456
 
endif
457
 
ifeq ($(FULL_TARGET),i386-qnx)
458
 
override TARGET_EXAMPLEDIRS+=test
459
 
endif
460
 
ifeq ($(FULL_TARGET),i386-netware)
461
 
override TARGET_EXAMPLEDIRS+=test
462
 
endif
463
 
ifeq ($(FULL_TARGET),i386-openbsd)
464
 
override TARGET_EXAMPLEDIRS+=test
465
 
endif
466
 
ifeq ($(FULL_TARGET),i386-wdosx)
467
 
override TARGET_EXAMPLEDIRS+=test
468
 
endif
469
 
ifeq ($(FULL_TARGET),i386-emx)
470
 
override TARGET_EXAMPLEDIRS+=test
471
 
endif
472
 
ifeq ($(FULL_TARGET),i386-watcom)
473
 
override TARGET_EXAMPLEDIRS+=test
474
 
endif
475
 
ifeq ($(FULL_TARGET),i386-netwlibc)
476
 
override TARGET_EXAMPLEDIRS+=test
477
 
endif
478
 
ifeq ($(FULL_TARGET),m68k-linux)
479
 
override TARGET_EXAMPLEDIRS+=test
480
 
endif
481
 
ifeq ($(FULL_TARGET),m68k-freebsd)
482
 
override TARGET_EXAMPLEDIRS+=test
483
 
endif
484
 
ifeq ($(FULL_TARGET),m68k-netbsd)
485
 
override TARGET_EXAMPLEDIRS+=test
486
 
endif
487
 
ifeq ($(FULL_TARGET),m68k-amiga)
488
 
override TARGET_EXAMPLEDIRS+=test
489
 
endif
490
 
ifeq ($(FULL_TARGET),m68k-atari)
491
 
override TARGET_EXAMPLEDIRS+=test
492
 
endif
493
 
ifeq ($(FULL_TARGET),m68k-openbsd)
494
 
override TARGET_EXAMPLEDIRS+=test
495
 
endif
496
 
ifeq ($(FULL_TARGET),m68k-palmos)
497
 
override TARGET_EXAMPLEDIRS+=test
498
 
endif
499
 
ifeq ($(FULL_TARGET),powerpc-linux)
500
 
override TARGET_EXAMPLEDIRS+=test
501
 
endif
502
 
ifeq ($(FULL_TARGET),powerpc-netbsd)
503
 
override TARGET_EXAMPLEDIRS+=test
504
 
endif
505
 
ifeq ($(FULL_TARGET),powerpc-macos)
506
 
override TARGET_EXAMPLEDIRS+=test
507
 
endif
508
 
ifeq ($(FULL_TARGET),powerpc-darwin)
509
 
override TARGET_EXAMPLEDIRS+=test
510
 
endif
511
 
ifeq ($(FULL_TARGET),powerpc-morphos)
512
 
override TARGET_EXAMPLEDIRS+=test
513
 
endif
514
 
ifeq ($(FULL_TARGET),sparc-linux)
515
 
override TARGET_EXAMPLEDIRS+=test
516
 
endif
517
 
ifeq ($(FULL_TARGET),sparc-netbsd)
518
 
override TARGET_EXAMPLEDIRS+=test
519
 
endif
520
 
ifeq ($(FULL_TARGET),sparc-solaris)
521
 
override TARGET_EXAMPLEDIRS+=test
522
 
endif
523
 
ifeq ($(FULL_TARGET),x86_64-linux)
524
 
override TARGET_EXAMPLEDIRS+=test
525
 
endif
526
 
ifeq ($(FULL_TARGET),x86_64-freebsd)
527
 
override TARGET_EXAMPLEDIRS+=test
528
 
endif
529
 
ifeq ($(FULL_TARGET),arm-linux)
 
234
override PACKAGE_VERSION=2.0.4
 
235
ifeq ($(FULL_TARGET),i386-linux)
 
236
override TARGET_UNITS+=buildfv
 
237
endif
 
238
ifeq ($(FULL_TARGET),i386-go32v2)
 
239
override TARGET_UNITS+=buildfv
 
240
endif
 
241
ifeq ($(FULL_TARGET),i386-win32)
 
242
override TARGET_UNITS+=buildfv
 
243
endif
 
244
ifeq ($(FULL_TARGET),i386-os2)
 
245
override TARGET_UNITS+=buildfv
 
246
endif
 
247
ifeq ($(FULL_TARGET),i386-freebsd)
 
248
override TARGET_UNITS+=buildfv
 
249
endif
 
250
ifeq ($(FULL_TARGET),i386-beos)
 
251
override TARGET_UNITS+=buildfv
 
252
endif
 
253
ifeq ($(FULL_TARGET),i386-netbsd)
 
254
override TARGET_UNITS+=buildfv
 
255
endif
 
256
ifeq ($(FULL_TARGET),i386-solaris)
 
257
override TARGET_UNITS+=buildfv
 
258
endif
 
259
ifeq ($(FULL_TARGET),i386-qnx)
 
260
override TARGET_UNITS+=buildfv
 
261
endif
 
262
ifeq ($(FULL_TARGET),i386-netware)
 
263
override TARGET_UNITS+=buildfv
 
264
endif
 
265
ifeq ($(FULL_TARGET),i386-openbsd)
 
266
override TARGET_UNITS+=buildfv
 
267
endif
 
268
ifeq ($(FULL_TARGET),i386-wdosx)
 
269
override TARGET_UNITS+=buildfv
 
270
endif
 
271
ifeq ($(FULL_TARGET),i386-emx)
 
272
override TARGET_UNITS+=buildfv
 
273
endif
 
274
ifeq ($(FULL_TARGET),i386-watcom)
 
275
override TARGET_UNITS+=buildfv
 
276
endif
 
277
ifeq ($(FULL_TARGET),i386-netwlibc)
 
278
override TARGET_UNITS+=buildfv
 
279
endif
 
280
ifeq ($(FULL_TARGET),i386-wince)
 
281
override TARGET_UNITS+=buildfv
 
282
endif
 
283
ifeq ($(FULL_TARGET),m68k-linux)
 
284
override TARGET_UNITS+=buildfv
 
285
endif
 
286
ifeq ($(FULL_TARGET),m68k-freebsd)
 
287
override TARGET_UNITS+=buildfv
 
288
endif
 
289
ifeq ($(FULL_TARGET),m68k-netbsd)
 
290
override TARGET_UNITS+=buildfv
 
291
endif
 
292
ifeq ($(FULL_TARGET),m68k-amiga)
 
293
override TARGET_UNITS+=buildfv
 
294
endif
 
295
ifeq ($(FULL_TARGET),m68k-atari)
 
296
override TARGET_UNITS+=buildfv
 
297
endif
 
298
ifeq ($(FULL_TARGET),m68k-openbsd)
 
299
override TARGET_UNITS+=buildfv
 
300
endif
 
301
ifeq ($(FULL_TARGET),m68k-palmos)
 
302
override TARGET_UNITS+=buildfv
 
303
endif
 
304
ifeq ($(FULL_TARGET),powerpc-linux)
 
305
override TARGET_UNITS+=buildfv
 
306
endif
 
307
ifeq ($(FULL_TARGET),powerpc-netbsd)
 
308
override TARGET_UNITS+=buildfv
 
309
endif
 
310
ifeq ($(FULL_TARGET),powerpc-macos)
 
311
override TARGET_UNITS+=buildfv
 
312
endif
 
313
ifeq ($(FULL_TARGET),powerpc-darwin)
 
314
override TARGET_UNITS+=buildfv
 
315
endif
 
316
ifeq ($(FULL_TARGET),powerpc-morphos)
 
317
override TARGET_UNITS+=buildfv
 
318
endif
 
319
ifeq ($(FULL_TARGET),sparc-linux)
 
320
override TARGET_UNITS+=buildfv
 
321
endif
 
322
ifeq ($(FULL_TARGET),sparc-netbsd)
 
323
override TARGET_UNITS+=buildfv
 
324
endif
 
325
ifeq ($(FULL_TARGET),sparc-solaris)
 
326
override TARGET_UNITS+=buildfv
 
327
endif
 
328
ifeq ($(FULL_TARGET),x86_64-linux)
 
329
override TARGET_UNITS+=buildfv
 
330
endif
 
331
ifeq ($(FULL_TARGET),x86_64-freebsd)
 
332
override TARGET_UNITS+=buildfv
 
333
endif
 
334
ifeq ($(FULL_TARGET),x86_64-win64)
 
335
override TARGET_UNITS+=buildfv
 
336
endif
 
337
ifeq ($(FULL_TARGET),arm-linux)
 
338
override TARGET_UNITS+=buildfv
 
339
endif
 
340
ifeq ($(FULL_TARGET),arm-palmos)
 
341
override TARGET_UNITS+=buildfv
 
342
endif
 
343
ifeq ($(FULL_TARGET),arm-wince)
 
344
override TARGET_UNITS+=buildfv
 
345
endif
 
346
ifeq ($(FULL_TARGET),powerpc64-linux)
 
347
override TARGET_UNITS+=buildfv
 
348
endif
 
349
ifeq ($(FULL_TARGET),i386-linux)
 
350
override TARGET_IMPLICITUNITS+=app colortxt dialogs drivers editors fvcommon fvconsts gadgets histlist inplong memory menus msgbox resource statuses stddlg tabs time validate views sysmsg asciitab timeddlg
 
351
endif
 
352
ifeq ($(FULL_TARGET),i386-go32v2)
 
353
override TARGET_IMPLICITUNITS+=app colortxt dialogs drivers editors fvcommon fvconsts gadgets histlist inplong memory menus msgbox resource statuses stddlg tabs time validate views sysmsg asciitab timeddlg
 
354
endif
 
355
ifeq ($(FULL_TARGET),i386-win32)
 
356
override TARGET_IMPLICITUNITS+=app colortxt dialogs drivers editors fvcommon fvconsts gadgets histlist inplong memory menus msgbox resource statuses stddlg tabs time validate views sysmsg asciitab timeddlg
 
357
endif
 
358
ifeq ($(FULL_TARGET),i386-os2)
 
359
override TARGET_IMPLICITUNITS+=app colortxt dialogs drivers editors fvcommon fvconsts gadgets histlist inplong memory menus msgbox resource statuses stddlg tabs time validate views sysmsg asciitab timeddlg
 
360
endif
 
361
ifeq ($(FULL_TARGET),i386-freebsd)
 
362
override TARGET_IMPLICITUNITS+=app colortxt dialogs drivers editors fvcommon fvconsts gadgets histlist inplong memory menus msgbox resource statuses stddlg tabs time validate views sysmsg asciitab timeddlg
 
363
endif
 
364
ifeq ($(FULL_TARGET),i386-beos)
 
365
override TARGET_IMPLICITUNITS+=app colortxt dialogs drivers editors fvcommon fvconsts gadgets histlist inplong memory menus msgbox resource statuses stddlg tabs time validate views sysmsg asciitab timeddlg
 
366
endif
 
367
ifeq ($(FULL_TARGET),i386-netbsd)
 
368
override TARGET_IMPLICITUNITS+=app colortxt dialogs drivers editors fvcommon fvconsts gadgets histlist inplong memory menus msgbox resource statuses stddlg tabs time validate views sysmsg asciitab timeddlg
 
369
endif
 
370
ifeq ($(FULL_TARGET),i386-solaris)
 
371
override TARGET_IMPLICITUNITS+=app colortxt dialogs drivers editors fvcommon fvconsts gadgets histlist inplong memory menus msgbox resource statuses stddlg tabs time validate views sysmsg asciitab timeddlg
 
372
endif
 
373
ifeq ($(FULL_TARGET),i386-qnx)
 
374
override TARGET_IMPLICITUNITS+=app colortxt dialogs drivers editors fvcommon fvconsts gadgets histlist inplong memory menus msgbox resource statuses stddlg tabs time validate views sysmsg asciitab timeddlg
 
375
endif
 
376
ifeq ($(FULL_TARGET),i386-netware)
 
377
override TARGET_IMPLICITUNITS+=app colortxt dialogs drivers editors fvcommon fvconsts gadgets histlist inplong memory menus msgbox resource statuses stddlg tabs time validate views sysmsg asciitab timeddlg
 
378
endif
 
379
ifeq ($(FULL_TARGET),i386-openbsd)
 
380
override TARGET_IMPLICITUNITS+=app colortxt dialogs drivers editors fvcommon fvconsts gadgets histlist inplong memory menus msgbox resource statuses stddlg tabs time validate views sysmsg asciitab timeddlg
 
381
endif
 
382
ifeq ($(FULL_TARGET),i386-wdosx)
 
383
override TARGET_IMPLICITUNITS+=app colortxt dialogs drivers editors fvcommon fvconsts gadgets histlist inplong memory menus msgbox resource statuses stddlg tabs time validate views sysmsg asciitab timeddlg
 
384
endif
 
385
ifeq ($(FULL_TARGET),i386-emx)
 
386
override TARGET_IMPLICITUNITS+=app colortxt dialogs drivers editors fvcommon fvconsts gadgets histlist inplong memory menus msgbox resource statuses stddlg tabs time validate views sysmsg asciitab timeddlg
 
387
endif
 
388
ifeq ($(FULL_TARGET),i386-watcom)
 
389
override TARGET_IMPLICITUNITS+=app colortxt dialogs drivers editors fvcommon fvconsts gadgets histlist inplong memory menus msgbox resource statuses stddlg tabs time validate views sysmsg asciitab timeddlg
 
390
endif
 
391
ifeq ($(FULL_TARGET),i386-netwlibc)
 
392
override TARGET_IMPLICITUNITS+=app colortxt dialogs drivers editors fvcommon fvconsts gadgets histlist inplong memory menus msgbox resource statuses stddlg tabs time validate views sysmsg asciitab timeddlg
 
393
endif
 
394
ifeq ($(FULL_TARGET),i386-wince)
 
395
override TARGET_IMPLICITUNITS+=app colortxt dialogs drivers editors fvcommon fvconsts gadgets histlist inplong memory menus msgbox resource statuses stddlg tabs time validate views sysmsg asciitab timeddlg
 
396
endif
 
397
ifeq ($(FULL_TARGET),m68k-linux)
 
398
override TARGET_IMPLICITUNITS+=app colortxt dialogs drivers editors fvcommon fvconsts gadgets histlist inplong memory menus msgbox resource statuses stddlg tabs time validate views sysmsg asciitab timeddlg
 
399
endif
 
400
ifeq ($(FULL_TARGET),m68k-freebsd)
 
401
override TARGET_IMPLICITUNITS+=app colortxt dialogs drivers editors fvcommon fvconsts gadgets histlist inplong memory menus msgbox resource statuses stddlg tabs time validate views sysmsg asciitab timeddlg
 
402
endif
 
403
ifeq ($(FULL_TARGET),m68k-netbsd)
 
404
override TARGET_IMPLICITUNITS+=app colortxt dialogs drivers editors fvcommon fvconsts gadgets histlist inplong memory menus msgbox resource statuses stddlg tabs time validate views sysmsg asciitab timeddlg
 
405
endif
 
406
ifeq ($(FULL_TARGET),m68k-amiga)
 
407
override TARGET_IMPLICITUNITS+=app colortxt dialogs drivers editors fvcommon fvconsts gadgets histlist inplong memory menus msgbox resource statuses stddlg tabs time validate views sysmsg asciitab timeddlg
 
408
endif
 
409
ifeq ($(FULL_TARGET),m68k-atari)
 
410
override TARGET_IMPLICITUNITS+=app colortxt dialogs drivers editors fvcommon fvconsts gadgets histlist inplong memory menus msgbox resource statuses stddlg tabs time validate views sysmsg asciitab timeddlg
 
411
endif
 
412
ifeq ($(FULL_TARGET),m68k-openbsd)
 
413
override TARGET_IMPLICITUNITS+=app colortxt dialogs drivers editors fvcommon fvconsts gadgets histlist inplong memory menus msgbox resource statuses stddlg tabs time validate views sysmsg asciitab timeddlg
 
414
endif
 
415
ifeq ($(FULL_TARGET),m68k-palmos)
 
416
override TARGET_IMPLICITUNITS+=app colortxt dialogs drivers editors fvcommon fvconsts gadgets histlist inplong memory menus msgbox resource statuses stddlg tabs time validate views sysmsg asciitab timeddlg
 
417
endif
 
418
ifeq ($(FULL_TARGET),powerpc-linux)
 
419
override TARGET_IMPLICITUNITS+=app colortxt dialogs drivers editors fvcommon fvconsts gadgets histlist inplong memory menus msgbox resource statuses stddlg tabs time validate views sysmsg asciitab timeddlg
 
420
endif
 
421
ifeq ($(FULL_TARGET),powerpc-netbsd)
 
422
override TARGET_IMPLICITUNITS+=app colortxt dialogs drivers editors fvcommon fvconsts gadgets histlist inplong memory menus msgbox resource statuses stddlg tabs time validate views sysmsg asciitab timeddlg
 
423
endif
 
424
ifeq ($(FULL_TARGET),powerpc-macos)
 
425
override TARGET_IMPLICITUNITS+=app colortxt dialogs drivers editors fvcommon fvconsts gadgets histlist inplong memory menus msgbox resource statuses stddlg tabs time validate views sysmsg asciitab timeddlg
 
426
endif
 
427
ifeq ($(FULL_TARGET),powerpc-darwin)
 
428
override TARGET_IMPLICITUNITS+=app colortxt dialogs drivers editors fvcommon fvconsts gadgets histlist inplong memory menus msgbox resource statuses stddlg tabs time validate views sysmsg asciitab timeddlg
 
429
endif
 
430
ifeq ($(FULL_TARGET),powerpc-morphos)
 
431
override TARGET_IMPLICITUNITS+=app colortxt dialogs drivers editors fvcommon fvconsts gadgets histlist inplong memory menus msgbox resource statuses stddlg tabs time validate views sysmsg asciitab timeddlg
 
432
endif
 
433
ifeq ($(FULL_TARGET),sparc-linux)
 
434
override TARGET_IMPLICITUNITS+=app colortxt dialogs drivers editors fvcommon fvconsts gadgets histlist inplong memory menus msgbox resource statuses stddlg tabs time validate views sysmsg asciitab timeddlg
 
435
endif
 
436
ifeq ($(FULL_TARGET),sparc-netbsd)
 
437
override TARGET_IMPLICITUNITS+=app colortxt dialogs drivers editors fvcommon fvconsts gadgets histlist inplong memory menus msgbox resource statuses stddlg tabs time validate views sysmsg asciitab timeddlg
 
438
endif
 
439
ifeq ($(FULL_TARGET),sparc-solaris)
 
440
override TARGET_IMPLICITUNITS+=app colortxt dialogs drivers editors fvcommon fvconsts gadgets histlist inplong memory menus msgbox resource statuses stddlg tabs time validate views sysmsg asciitab timeddlg
 
441
endif
 
442
ifeq ($(FULL_TARGET),x86_64-linux)
 
443
override TARGET_IMPLICITUNITS+=app colortxt dialogs drivers editors fvcommon fvconsts gadgets histlist inplong memory menus msgbox resource statuses stddlg tabs time validate views sysmsg asciitab timeddlg
 
444
endif
 
445
ifeq ($(FULL_TARGET),x86_64-freebsd)
 
446
override TARGET_IMPLICITUNITS+=app colortxt dialogs drivers editors fvcommon fvconsts gadgets histlist inplong memory menus msgbox resource statuses stddlg tabs time validate views sysmsg asciitab timeddlg
 
447
endif
 
448
ifeq ($(FULL_TARGET),x86_64-win64)
 
449
override TARGET_IMPLICITUNITS+=app colortxt dialogs drivers editors fvcommon fvconsts gadgets histlist inplong memory menus msgbox resource statuses stddlg tabs time validate views sysmsg asciitab timeddlg
 
450
endif
 
451
ifeq ($(FULL_TARGET),arm-linux)
 
452
override TARGET_IMPLICITUNITS+=app colortxt dialogs drivers editors fvcommon fvconsts gadgets histlist inplong memory menus msgbox resource statuses stddlg tabs time validate views sysmsg asciitab timeddlg
 
453
endif
 
454
ifeq ($(FULL_TARGET),arm-palmos)
 
455
override TARGET_IMPLICITUNITS+=app colortxt dialogs drivers editors fvcommon fvconsts gadgets histlist inplong memory menus msgbox resource statuses stddlg tabs time validate views sysmsg asciitab timeddlg
 
456
endif
 
457
ifeq ($(FULL_TARGET),arm-wince)
 
458
override TARGET_IMPLICITUNITS+=app colortxt dialogs drivers editors fvcommon fvconsts gadgets histlist inplong memory menus msgbox resource statuses stddlg tabs time validate views sysmsg asciitab timeddlg
 
459
endif
 
460
ifeq ($(FULL_TARGET),powerpc64-linux)
 
461
override TARGET_IMPLICITUNITS+=app colortxt dialogs drivers editors fvcommon fvconsts gadgets histlist inplong memory menus msgbox resource statuses stddlg tabs time validate views sysmsg asciitab timeddlg
 
462
endif
 
463
ifeq ($(FULL_TARGET),i386-linux)
 
464
override TARGET_EXAMPLEDIRS+=test
 
465
endif
 
466
ifeq ($(FULL_TARGET),i386-go32v2)
 
467
override TARGET_EXAMPLEDIRS+=test
 
468
endif
 
469
ifeq ($(FULL_TARGET),i386-win32)
 
470
override TARGET_EXAMPLEDIRS+=test
 
471
endif
 
472
ifeq ($(FULL_TARGET),i386-os2)
 
473
override TARGET_EXAMPLEDIRS+=test
 
474
endif
 
475
ifeq ($(FULL_TARGET),i386-freebsd)
 
476
override TARGET_EXAMPLEDIRS+=test
 
477
endif
 
478
ifeq ($(FULL_TARGET),i386-beos)
 
479
override TARGET_EXAMPLEDIRS+=test
 
480
endif
 
481
ifeq ($(FULL_TARGET),i386-netbsd)
 
482
override TARGET_EXAMPLEDIRS+=test
 
483
endif
 
484
ifeq ($(FULL_TARGET),i386-solaris)
 
485
override TARGET_EXAMPLEDIRS+=test
 
486
endif
 
487
ifeq ($(FULL_TARGET),i386-qnx)
 
488
override TARGET_EXAMPLEDIRS+=test
 
489
endif
 
490
ifeq ($(FULL_TARGET),i386-netware)
 
491
override TARGET_EXAMPLEDIRS+=test
 
492
endif
 
493
ifeq ($(FULL_TARGET),i386-openbsd)
 
494
override TARGET_EXAMPLEDIRS+=test
 
495
endif
 
496
ifeq ($(FULL_TARGET),i386-wdosx)
 
497
override TARGET_EXAMPLEDIRS+=test
 
498
endif
 
499
ifeq ($(FULL_TARGET),i386-emx)
 
500
override TARGET_EXAMPLEDIRS+=test
 
501
endif
 
502
ifeq ($(FULL_TARGET),i386-watcom)
 
503
override TARGET_EXAMPLEDIRS+=test
 
504
endif
 
505
ifeq ($(FULL_TARGET),i386-netwlibc)
 
506
override TARGET_EXAMPLEDIRS+=test
 
507
endif
 
508
ifeq ($(FULL_TARGET),i386-wince)
 
509
override TARGET_EXAMPLEDIRS+=test
 
510
endif
 
511
ifeq ($(FULL_TARGET),m68k-linux)
 
512
override TARGET_EXAMPLEDIRS+=test
 
513
endif
 
514
ifeq ($(FULL_TARGET),m68k-freebsd)
 
515
override TARGET_EXAMPLEDIRS+=test
 
516
endif
 
517
ifeq ($(FULL_TARGET),m68k-netbsd)
 
518
override TARGET_EXAMPLEDIRS+=test
 
519
endif
 
520
ifeq ($(FULL_TARGET),m68k-amiga)
 
521
override TARGET_EXAMPLEDIRS+=test
 
522
endif
 
523
ifeq ($(FULL_TARGET),m68k-atari)
 
524
override TARGET_EXAMPLEDIRS+=test
 
525
endif
 
526
ifeq ($(FULL_TARGET),m68k-openbsd)
 
527
override TARGET_EXAMPLEDIRS+=test
 
528
endif
 
529
ifeq ($(FULL_TARGET),m68k-palmos)
 
530
override TARGET_EXAMPLEDIRS+=test
 
531
endif
 
532
ifeq ($(FULL_TARGET),powerpc-linux)
 
533
override TARGET_EXAMPLEDIRS+=test
 
534
endif
 
535
ifeq ($(FULL_TARGET),powerpc-netbsd)
 
536
override TARGET_EXAMPLEDIRS+=test
 
537
endif
 
538
ifeq ($(FULL_TARGET),powerpc-macos)
 
539
override TARGET_EXAMPLEDIRS+=test
 
540
endif
 
541
ifeq ($(FULL_TARGET),powerpc-darwin)
 
542
override TARGET_EXAMPLEDIRS+=test
 
543
endif
 
544
ifeq ($(FULL_TARGET),powerpc-morphos)
 
545
override TARGET_EXAMPLEDIRS+=test
 
546
endif
 
547
ifeq ($(FULL_TARGET),sparc-linux)
 
548
override TARGET_EXAMPLEDIRS+=test
 
549
endif
 
550
ifeq ($(FULL_TARGET),sparc-netbsd)
 
551
override TARGET_EXAMPLEDIRS+=test
 
552
endif
 
553
ifeq ($(FULL_TARGET),sparc-solaris)
 
554
override TARGET_EXAMPLEDIRS+=test
 
555
endif
 
556
ifeq ($(FULL_TARGET),x86_64-linux)
 
557
override TARGET_EXAMPLEDIRS+=test
 
558
endif
 
559
ifeq ($(FULL_TARGET),x86_64-freebsd)
 
560
override TARGET_EXAMPLEDIRS+=test
 
561
endif
 
562
ifeq ($(FULL_TARGET),x86_64-win64)
 
563
override TARGET_EXAMPLEDIRS+=test
 
564
endif
 
565
ifeq ($(FULL_TARGET),arm-linux)
 
566
override TARGET_EXAMPLEDIRS+=test
 
567
endif
 
568
ifeq ($(FULL_TARGET),arm-palmos)
 
569
override TARGET_EXAMPLEDIRS+=test
 
570
endif
 
571
ifeq ($(FULL_TARGET),arm-wince)
 
572
override TARGET_EXAMPLEDIRS+=test
 
573
endif
 
574
ifeq ($(FULL_TARGET),powerpc64-linux)
530
575
override TARGET_EXAMPLEDIRS+=test
531
576
endif
532
577
override INSTALL_BUILDUNIT=buildfv
576
621
ifeq ($(FULL_TARGET),i386-netwlibc)
577
622
override COMPILER_TARGETDIR+=.
578
623
endif
 
624
ifeq ($(FULL_TARGET),i386-wince)
 
625
override COMPILER_TARGETDIR+=.
 
626
endif
579
627
ifeq ($(FULL_TARGET),m68k-linux)
580
628
override COMPILER_TARGETDIR+=.
581
629
endif
627
675
ifeq ($(FULL_TARGET),x86_64-freebsd)
628
676
override COMPILER_TARGETDIR+=.
629
677
endif
 
678
ifeq ($(FULL_TARGET),x86_64-win64)
 
679
override COMPILER_TARGETDIR+=.
 
680
endif
630
681
ifeq ($(FULL_TARGET),arm-linux)
631
682
override COMPILER_TARGETDIR+=.
632
683
endif
 
684
ifeq ($(FULL_TARGET),arm-palmos)
 
685
override COMPILER_TARGETDIR+=.
 
686
endif
 
687
ifeq ($(FULL_TARGET),arm-wince)
 
688
override COMPILER_TARGETDIR+=.
 
689
endif
 
690
ifeq ($(FULL_TARGET),powerpc64-linux)
 
691
override COMPILER_TARGETDIR+=.
 
692
endif
633
693
ifdef REQUIRE_UNITSDIR
634
694
override UNITSDIR+=$(REQUIRE_UNITSDIR)
635
695
endif
813
873
ifndef INSTALL_DATADIR
814
874
INSTALL_DATADIR=$(INSTALL_BASEDIR)
815
875
endif
 
876
ifndef INSTALL_SHAREDDIR
 
877
INSTALL_SHAREDDIR=$(INSTALL_PREFIX)/lib
 
878
endif
816
879
ifdef CROSSCOMPILE
817
880
ifndef CROSSBINDIR
818
881
CROSSBINDIR:=$(wildcard $(CROSSTARGETDIR)/bin/$(SOURCESUFFIX))
833
896
SMARTEXT=.sl
834
897
STATICLIBEXT=.a
835
898
SHAREDLIBEXT=.so
 
899
SHAREDLIBPREFIX=libfp
836
900
STATICLIBPREFIX=libp
837
901
RSTEXT=.rst
838
902
ifeq ($(findstring 1.0.,$(FPC_VERSION)),)
1404
1468
ifeq ($(FULL_TARGET),i386-netwlibc)
1405
1469
REQUIRE_PACKAGES_RTL=1
1406
1470
endif
 
1471
ifeq ($(FULL_TARGET),i386-wince)
 
1472
REQUIRE_PACKAGES_RTL=1
 
1473
endif
1407
1474
ifeq ($(FULL_TARGET),m68k-linux)
1408
1475
REQUIRE_PACKAGES_RTL=1
1409
1476
endif
1455
1522
ifeq ($(FULL_TARGET),x86_64-freebsd)
1456
1523
REQUIRE_PACKAGES_RTL=1
1457
1524
endif
 
1525
ifeq ($(FULL_TARGET),x86_64-win64)
 
1526
REQUIRE_PACKAGES_RTL=1
 
1527
endif
1458
1528
ifeq ($(FULL_TARGET),arm-linux)
1459
1529
REQUIRE_PACKAGES_RTL=1
1460
1530
endif
 
1531
ifeq ($(FULL_TARGET),arm-palmos)
 
1532
REQUIRE_PACKAGES_RTL=1
 
1533
endif
 
1534
ifeq ($(FULL_TARGET),arm-wince)
 
1535
REQUIRE_PACKAGES_RTL=1
 
1536
endif
 
1537
ifeq ($(FULL_TARGET),powerpc64-linux)
 
1538
REQUIRE_PACKAGES_RTL=1
 
1539
endif
1461
1540
ifdef REQUIRE_PACKAGES_RTL
1462
1541
PACKAGEDIR_RTL:=$(firstword $(subst /Makefile.fpc,,$(strip $(wildcard $(addsuffix /rtl/Makefile.fpc,$(PACKAGESDIR))))))
1463
1542
ifneq ($(PACKAGEDIR_RTL),)
1528
1607
FPCCPUOPT:=-OG2p3
1529
1608
else
1530
1609
ifeq ($(CPU_TARGET),powerpc)
1531
 
FPCCPUOPT:=-O1
 
1610
FPCCPUOPT:=-O1r
1532
1611
else
1533
1612
FPCCPUOPT:=
1534
1613
endif
1535
1614
endif
1536
 
override FPCOPT+=-Xs $(FPCCPUOPT) -n
 
1615
override FPCOPT+=-Ur -Xs $(FPCCPUOPT) -n
1537
1616
override FPCOPTDEF+=RELEASE
1538
1617
endif
1539
1618
ifdef STRIP
1591
1670
override FPCOPTDEF+=HASUNIX
1592
1671
endif
1593
1672
endif
 
1673
ifdef CREATESHARED
 
1674
override FPCOPT+=-Cg
 
1675
ifeq ($(CPU_TARGET),i386)
 
1676
override FPCOPT+=-Aas
 
1677
endif
 
1678
endif
 
1679
ifdef LINKSHARED
 
1680
endif
1594
1681
ifdef OPT
1595
1682
override FPCOPT+=$(OPT)
1596
1683
endif
1605
1692
override FPCOPT:=!FPCEXTCMD
1606
1693
export FPCEXTCMD
1607
1694
endif
 
1695
override AFULL_TARGET=$(CPU_TARGET)-$(OS_TARGET)
 
1696
override AFULL_SOURCE=$(CPU_SOURCE)-$(OS_SOURCE)
 
1697
ifneq ($(AFULL_TARGET),$(AFULL_SOURCE))
 
1698
override ACROSSCOMPILE=1
 
1699
endif
 
1700
ifdef ACROSSCOMPILE
 
1701
override FPCOPT+=$(CROSSOPT)
 
1702
endif
1608
1703
override COMPILER:=$(FPC) $(FPCOPT)
1609
1704
ifeq (,$(findstring -s ,$(COMPILER)))
1610
1705
EXECPPAS=
1644
1739
HASEXAMPLES=1
1645
1740
endif
1646
1741
fpc_examples: all $(EXAMPLEFILES) $(addsuffix _all,$(TARGET_EXAMPLEDIRS))
1647
 
.PHONY: fpc_all fpc_smart fpc_debug fpc_release
 
1742
.PHONY: fpc_all fpc_smart fpc_debug fpc_release fpc_shared
1648
1743
$(FPCMADE): $(ALLDEPENDENCIES) $(ALLTARGET)
1649
1744
        @$(ECHOREDIR) Compiled > $(FPCMADE)
1650
1745
fpc_all: $(FPCMADE)
1685
1780
vpath %.dpr $(COMPILER_SOURCEDIR) $(COMPILER_INCLUDEDIR)
1686
1781
vpath %$(OEXT) $(COMPILER_UNITTARGETDIR)
1687
1782
vpath %$(PPUEXT) $(COMPILER_UNITTARGETDIR)
 
1783
.PHONY: fpc_shared
 
1784
override INSTALLTARGET+=fpc_shared_install
 
1785
ifndef SHARED_LIBVERSION
 
1786
SHARED_LIBVERSION=$(FPC_VERSION)
 
1787
endif
 
1788
ifndef SHARED_LIBNAME
 
1789
SHARED_LIBNAME=$(PACKAGE_NAME)
 
1790
endif
 
1791
ifndef SHARED_FULLNAME
 
1792
SHARED_FULLNAME=$(SHAREDLIBPREFIX)$(SHARED_LIBNAME)-$(SHARED_LIBVERSION)$(SHAREDLIBEXT)
 
1793
endif
 
1794
ifndef SHARED_LIBUNITS
 
1795
SHARED_LIBUNITS:=$(TARGET_UNITS) $(TARGET_IMPLICITUNITS)
 
1796
override SHARED_LIBUNITS:=$(filter-out $(INSTALL_BUILDUNIT),$(SHARED_LIBUNITS))
 
1797
endif
 
1798
fpc_shared:
 
1799
ifdef HASSHAREDLIB
 
1800
        $(MAKE) all CREATESHARED=1 LINKSHARED=1 CREATESMART=1
 
1801
ifneq ($(SHARED_BUILD),n)
 
1802
        $(PPUMOVE) -q $(SHARED_LIBUNITS) -i$(COMPILER_UNITTARGETDIR) -o$(SHARED_FULLNAME) -d$(COMPILER_UNITTARGETDIR)
 
1803
endif
 
1804
else
 
1805
        @$(ECHO) Shared Libraries not supported
 
1806
endif
 
1807
fpc_shared_install:
 
1808
ifneq ($(SHARED_BUILD),n)
 
1809
ifneq ($(SHARED_LIBUNITS),)
 
1810
ifneq ($(wildcard $(COMPILER_UNITTARGETDIR)/$(SHARED_FULLNAME)),)
 
1811
        $(INSTALL) $(COMPILER_UNITTARGETDIR)/$(SHARED_FULLNAME) $(INSTALL_SHAREDDIR)
 
1812
endif
 
1813
endif
 
1814
endif
1688
1815
.PHONY: fpc_install fpc_sourceinstall fpc_exampleinstall
1689
1816
ifdef INSTALL_UNITS
1690
1817
override INSTALLPPUFILES+=$(addsuffix $(PPUEXT),$(INSTALL_UNITS))
2055
2182
ifeq ($(FULL_TARGET),i386-netwlibc)
2056
2183
TARGET_EXAMPLEDIRS_TEST=1
2057
2184
endif
 
2185
ifeq ($(FULL_TARGET),i386-wince)
 
2186
TARGET_EXAMPLEDIRS_TEST=1
 
2187
endif
2058
2188
ifeq ($(FULL_TARGET),m68k-linux)
2059
2189
TARGET_EXAMPLEDIRS_TEST=1
2060
2190
endif
2106
2236
ifeq ($(FULL_TARGET),x86_64-freebsd)
2107
2237
TARGET_EXAMPLEDIRS_TEST=1
2108
2238
endif
 
2239
ifeq ($(FULL_TARGET),x86_64-win64)
 
2240
TARGET_EXAMPLEDIRS_TEST=1
 
2241
endif
2109
2242
ifeq ($(FULL_TARGET),arm-linux)
2110
2243
TARGET_EXAMPLEDIRS_TEST=1
2111
2244
endif
 
2245
ifeq ($(FULL_TARGET),arm-palmos)
 
2246
TARGET_EXAMPLEDIRS_TEST=1
 
2247
endif
 
2248
ifeq ($(FULL_TARGET),arm-wince)
 
2249
TARGET_EXAMPLEDIRS_TEST=1
 
2250
endif
 
2251
ifeq ($(FULL_TARGET),powerpc64-linux)
 
2252
TARGET_EXAMPLEDIRS_TEST=1
 
2253
endif
2112
2254
ifdef TARGET_EXAMPLEDIRS_TEST
2113
2255
test_all:
2114
2256
        $(MAKE) -C test all
2160
2302
release: fpc_release
2161
2303
units: fpc_units
2162
2304
examples: fpc_examples
2163
 
shared:
 
2305
shared: fpc_shared
2164
2306
install: fpc_install
2165
2307
sourceinstall: fpc_sourceinstall
2166
2308
exampleinstall: fpc_exampleinstall