File: Makefile

package info (click to toggle)
fpc 0.99.13-19991013-4
  • links: PTS
  • area: main
  • in suites: potato
  • size: 23,104 kB
  • ctags: 9,760
  • sloc: pascal: 253,711; ansic: 5,236; makefile: 3,855; yacc: 2,016; lex: 707; asm: 526; xml: 443; sh: 200; perl: 87; sed: 21; csh: 12; cpp: 1
file content (177 lines) | stat: -rw-r--r-- 3,760 bytes parent folder | download
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
#
#   $Id: Makefile,v 1.5 1999/07/27 13:02:32 peter Exp $
#   Copyright (c) 1999 by the Free Pascal Development Team
#
#   Makefile for Free Pascal Utils
#
#   See the file COPYING.FPC, included in this distribution,
#   for details about the copyright.
#
#   This program is distributed in the hope that it will be useful,
#   but WITHOUT ANY WARRANTY; without even the implied warranty of
#   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
#


#####################################################################
# Defaults
#####################################################################

# Default place of the makefile.fpc
DEFAULTFPCDIR=..

# We need the FCL
NEEDUNITDIR=../fcl/$(OS_TARGET)


#####################################################################
# Real targets
#####################################################################

EXEOBJECTS=ppudump ppumove ppdep ptop rstconv
UNITOBJECTS=

EXTRACLEANUNITS=ppu ptopu

#####################################################################
# Common targets
#####################################################################

.PHONY: all clean install info \
	staticlib sharedlib libsclean \
	staticinstall sharedinstall libinstall \
	extra_clean \
	h2pas_all h2pas_clean h2pas_install \

all: testfpcmake fpc_all h2pas_all

clean: testfpcmake fpc_clean h2pas_clean

install: testfpcmake fpc_install h2pas_install

info: testfpcmake fpc_info

staticlib: testfpcmake fpc_staticlib

sharedlib: testfpcmake fpc_sharedlib

libsclean: testfpcmake fpc_libsclean

staticinstall: testfpcmake fpc_staticinstall

sharedinstall: testfpcmake fpc_sharedinstall

libinstall: testfpcmake fpc_libinstall


#####################################################################
# Include default makefile
#####################################################################

# test if FPCMAKE is still valid
ifdef FPCMAKE
ifeq ($(strip $(wildcard $(FPCMAKE))),)
FPCDIR=
FPCMAKE=
endif
endif

ifndef FPCDIR
ifdef DEFAULTFPCDIR
FPCDIR=$(DEFAULTFPCDIR)
endif
endif

ifndef FPCMAKE
ifdef FPCDIR
FPCMAKE=$(FPCDIR)/makefile.fpc
else
FPCMAKE=makefile.fpc
endif
endif

override FPCMAKE:=$(strip $(wildcard $(FPCMAKE)))
ifeq ($(FPCMAKE),)
testfpcmake:
	@echo makefile.fpc not found!
	@echo Check the FPCMAKE and FPCDIR environment variables.
	@exit
else
include $(FPCMAKE)
testfpcmake:
endif



#####################################################################
# Dependencies
#####################################################################

#
# PPU Tools
#
ppu$(PPUEXT): ppu.pas

ppudump$(EXEEXT): ppudump.pp ppu$(PPUEXT)

ppumove$(EXEEXT): ppumove.pp ppu$(PPUEXT)

#
# Pascal beautifier
#
ptop$(EXEEXT): ptop.pp ptopu$(PPUEXT)

ptopu$(PPUEXT): ptopu.pp

#
# H2Pas
#
h2pas_all:
	$(MAKE) -C h2pas all

h2pas_clean:
	$(MAKE) -C h2pas clean

h2pas_install:
	$(MAKE) -C h2pas install

#
# $Log: Makefile,v $
# Revision 1.5  1999/07/27 13:02:32  peter
#   * add to needunits
#
# Revision 1.4	1999/07/23 18:23:45  michael
# + Added rstconv
#
# Revision 1.3	1999/07/16 13:45:37  peter
#   * 0.99.12b updates
#   * merges
#
# Revision 1.2	1999/06/18 11:03:13  peter
#   * merged
#
# Revision 1.1.2.2  1999/07/16 13:40:58  peter
#   + extrainstallunits,extracleanunits
#
# Revision 1.1.2.1  1999/06/18 10:55:36  peter
#   * version fixes
#   * EXTRAUNITS to set extra units that are build and needs to be cleaned
#
# Revision 1.1	1999/05/12 16:11:39  peter
#   * moved
#
# Revision 1.14  1999/05/03 18:03:13  peter
#   * renamed mkdep -> ppdep
#   * removed obsolete units
#   * add .cod files
#
# Revision 1.13  1999/04/02 00:01:49  peter
#   + ptop to exeobjects
#
# Revision 1.12  1999/04/01 22:52:00  peter
#   * update for makefile.fpc
#
# Revision 1.1	1999/03/16 00:50:29  peter
#   + init
#
#