File: Makefile.fpc

package info (click to toggle)
fpc 3.0.0%2Bdfsg-11%2Bdeb9u1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 273,420 kB
  • ctags: 106,632
  • sloc: pascal: 2,840,574; xml: 152,225; ansic: 9,635; asm: 8,297; java: 5,346; sh: 3,991; yacc: 3,745; php: 3,281; makefile: 2,635; lex: 2,538; sql: 267; cpp: 145; perl: 134; sed: 132; csh: 34; tcl: 7
file content (95 lines) | stat: -rw-r--r-- 2,001 bytes parent folder | download | duplicates (10)
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
#
#   Makefile.fpc for Free Pascal Compiler Utils
#

[target]
programs=fpc ppufiles ppudump ppumove mka64ins mkarmins mkx86ins
rst=fpcsubst

[clean]
units=ppu crc

[compiler]
unitdir=..
sourcedir=..

[install]
fpcpackage=y

[require]
tools=data2inc

[default]
fpcdir=../..

[shared]
build=n

[rules]
#
# PPU Tools
#

# not parallel because systems using an external linker will get conflicts
# due to overwriting each other's link.res file
.NOTPARALLEL:

REG_SOURCES=$(wildcard *reg.pp)
REG_EXES=$(subst .pp,$(EXEEXT),$(REG_SOURCES))

ifndef NOCPUDEF
ppu$(PPUEXT): ../ppu.pas
	$(MAKE) ppu$(PPUEXT) NOCPUDEF=1

ppudump$(EXEEXT): ppuutils/ppudump.pp ppu$(PPUEXT)
	$(MAKE) ppudump$(EXEEXT) NOCPUDEF=1

ppufiles$(EXEEXT): ppufiles.pp ppu$(PPUEXT)
	$(MAKE) ppufiles$(EXEEXT) NOCPUDEF=1

ppumove$(EXEEXT): ppumove.pp ppu$(PPUEXT)
	$(MAKE) ppumove$(EXEEXT) NOCPUDEF=1

else
ppu$(PPUEXT): ../ppu.pas
        $(COMPILER) ../ppu.pas -Fu../generic -dGENERIC_CPU -Fi..

ppudump$(EXEEXT): ppuutils/ppudump.pp ppu$(PPUEXT)
        $(COMPILER) ppuutils/ppudump.pp -Fu../generic -dGENERIC_CPU -Fi..

ppufiles$(EXEEXT): ppufiles.pp ppu$(PPUEXT)
        $(COMPILER) ppufiles.pp -Fu../generic -dGENERIC_CPU -Fi..

ppumove$(EXEEXT): ppumove.pp ppu$(PPUEXT)
        $(COMPILER) ppumove.pp -Fu../generic -dGENERIC_CPU -Fi..

endif

msg2inc$(EXEEXT): $(COMPILER_UNITTARGETDIR) msg2inc.pp

gppc386$(EXEEXT): $(COMPILER_UNITTARGETDIR) gppc386.pp

fpcsubst$(EXEEXT): fpcsubst.pp usubst.pp

fpcmkcfg$(EXEEXT): fpcmkcfg.pp usubst.pp fpccfg.inc fpcfg.inc fpini.inc

ifneq ($(DATA2INC),)
fpccfg.inc: fpc.cft
        $(DATA2INC) -b -s fpc.cft fpccfg.inc DefaultConfig

fpcfg.inc : fpinc.cfg
        $(DATA2INC) -b -s fpinc.cfg fpcfg.inc fpcfg

fpini.inc : fpinc.ini
        $(DATA2INC) -b -s fpinc.ini fpini.inc fpini
endif

reg_exes: $(COMPILER_UNITTARGETDIR)
	$(MAKE) $(REG_EXES)

#
# Don't export some tools, which are found in the current dir if it's in
# the path, so are not valid for the subdirs
#

unexport PPUFILES PPUMOVE