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 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407
|
.TH fpcmake 5 "12 Dec 1999" FreePascal "Free Pascal Makefile.fpc format"
.SH NAME
Makefile.fpc \- Configuration file for fpcmake.
.SH SYNOPSIS
.I Makefile.fpc
is a configuration file for the fpcmake command. Starting from this file a
.I Makefile
is created to compile Free Pascal units and programs.
.SH DESCRIPTION
.B Makefile.fpc
is a plain ASCII file that contains a number of sections as in a Windows
.I ini
file. The following sections are recognized (in alphabetical order):
.TP
.B clean
Specifies rules for cleaning the directory of units and programs.
The following entries are recognized:
.RS
.TP
.I units
names of all units that should be removed when cleaning. Don't specify
extensions, the makefile will append these by itself.
.TP
.I files
names of files that should be removed. Specify full filenames.
.RE
.TP
.B defaults
The defaults section contains some default settings. The following keywords
are recognized:
.RS
.TP
.RE
.TP
.B dirs
.TP
.B info
.TP
.B install
Contains instructions for installation of your units and programs. The
following keywods are recognized:
.RS
.TP
.I dirprefix
the directory below wchich all installs are done. This corresponds to the
.I \-\-prefix
argument to GNU
.I configure
It is used for the installation of programs and units. By default, this is
.B /usr
on linux, and
.B /pp
on all other platforms.
.TP
.I dirbase
The directory that is used as the base directory for the installation of
units. Default this is
.I dirprefix
appended with
.I /lib/fpc/FPC\_VERSION
for linux or simply the dirprefix on other platforms.
.RE
Units will be installed in the subdirectory
.I units/$(OS\_TARGET)
of the
.I dirbase
entry.
.TP
.B libs
This section specifies what units should be merged into a library, and what
external libraries are needed. It can contain the following keywords:
.RS
.TP
.I libname
the name of the library that should be created.
.TP
.I libunits
a comma-separated list of units that should be moved into one library.
.TP
.I needgcclib
a boolean value that specifies whether the gcc library is needed. This will
make sure that the path to the GCC library is inserted in the library search
path.
.TP
.I needotherlib
a boolean value that tells the makefile that other library directories will
be needed.
.RE
.TP
.B packages
Which packages must be used. This section can contain the following keywords:
.RS
.TP
.I packages
A comma-separated list of packages that are needed to compile the targets.
Valid for all platforms. In order to differentiate between platforms, you
can prepend the keyword
.I packages
with the OS you are compiling for, e.g.
.I linuxpackages
if you want the makefile to use the listed packages on linux only.
.TP
.I fcl
This is a boolean value (0 or 1) that indicates whether the FCL is used.
.TP
.I rtl
This is a boolean value (0 or 1) that indicates whether the RTL should be
recompiled.
.RE
.TP
.B postsettings
Anything that is in this section will be inserted as-is in the makefile
.I after
the makefile rules that are generated by fpcmake, but
.I before
the general configuration rules.
In it, you cannot use variables that are defined by fpcmake rules, but you
can define additional rules and configuration variables.
.TP
.B presettings
Anything that is in this section will be inserted as-is in the makefile
.I before
the makefile target rules that are generated by fpcmake. This means that
you cannot use any variables that are normally defined by
.TP
.B rules
In this section you can insert dependency rules and any other targets
you wish to have. Do not insert 'default rules' here.
.TP
.B sections
Here you can specify which 'rule sections' should be included in the Makefile.
The sections consist of a series of boolean keywords; each keyword decies
whether a particular section will be written to the makefile. By default,
all sections are written.
You can have the following boolean keywords in this section.
.RS
.TP
.I none
If this is set to true, then no sections are written.
.TP
.I units
If set to
.I false
,
.B fpcmake
omits the rules for compiling units.
.TP
.I exes
If set to
.I false
,
.B fpcmake
omits the rules for compiling executables.
.TP
.I loaders
If set to
.I false
,
.B fpcmake
omits the rules for assembling assembler files.
.TP
.I examples
If set to
.I false
,
.B fpcmake
omits the rules for compiling examples.
.TP
.I package
If set to
.I false
,
.B fpcmake
omits the rules for making packages.
.TP
.I compile
If set to
.I false
,
.B fpcmake
omits the generic rules for compiling pascal files.
.TP
.I depend
If set to
.I false
,
.B fpcmake
omits the dependency rules.
.TP
.I install
If set to
.I false
,
.B fpcmake
omits the rules for installing everything.
.TP
.I sourceinstall
If set to
.I false
,
.B fpcmake
omits the rules for installing the sources.
.TP
.I zipinstall
If set to
.I false
,
.B fpcmake
omits the rules for installing archives.
.TP
.I clean
If set to
.I false
,
.B fpcmake
omits the rules for cleaning the directories.
.TP
.I libs
If set to
.I false
,
.B fpcmake
omits the rules for making libraries.
.TP
.I command
If set to
.I false
,
.B fpcmake
omits the rules for composing the command-line based on the various
variables.
.TP
.I exts
If set to
.I false
,
.B fpcmake
omits the rules for making libraries.
.TP
.I dirs
If set to
.I false
,
.B fpcmake
omits the rules for running make in subdirectories..
.TP
.I tools
If set to
.I false
,
.B fpcmake
omits the rules for running some tools as the erchiver, UPX and zip.
.TP
.I info
If set to
.I false
,
.B fpcmake
omits the rules for generating information.
.RE
.TP
.B targets
In this section you can define the various targets. The following keywords
can be used there:
.RS
.TP
.I dirs
A space separated list of directories where make should also be run.
.TP
.I examples
A space separated list of example programs that need to be compiled when
the user asks to compile the examples. Do not specify an extension,
the extension will be appended.
.TP
.I loaders
A space separated list of names of assembler files that must be assembled.
Don't specify the extension, the extension will be appended.
.TP
.I programs
A space separated list of program names that need to be compiled. Do not
specify an extension, the extension will be appended.
.TP
.I rst
a list of
.I rst
files that needs to be converted to
.I .po
files for use with GNU
.B gettext
and internationalization routines.
.TP
.I units
A space separated list of unit names that need to be compiled. Do not
specify an extension, just the name of the unit as it would appear un a
.I uses
clause is sufficient.
.RE
.TP
.B tools
In this section you can specify which tools are needed. Definitions to
use each of the listed tools will be inserted in the makefile, depending
on the setting in this section.
Each keyword is a boolean keyword; you can switch the use of a tool on or
off with it.
The following keywords are recognised:
.RS
.TP
.I toolppdep
Use
.B ppdep
the dependency tool.
.I True
by default.
.TP
.I toolppumove
Use
.B ppumove
the Free Pascal unit mover.
.I True
by default.
.TP
.I toolppufiles
Use the
.B ppufile
tool to determine dependencies of unit files.
.I True
by default.
.TP
.I toolsed
Use
.B sed
the stream line editor.
.I False
by default.
.TP
.I tooldata2inc
use the
.B data2inc
tool to create include files from data files.
.I False
by default.
.TP
.I tooldiff
Use the GNU
.B diff
tool.
.I False
by default.
.TP
.I toolcmp
Use the
.B cmp
file comparer tool
.I False
by default.
.TP
.I toolupx
Use the
.B upx
executable packer
.I True
by default.
.TP
.I tooldate
use the
.B date
date displaying tool.
.I True
by default.
.TP
.I toolzip
Use the
.B zip
file archiver. This is used by the zip targets.
.I True
by default.
.RE
.TP
.B zip
This section can be used to make zip files from the compiled units and
programs. By default all compiled units are zipped. The zip behaviour can
be influencd with the presettings and postsettings sections.
The following keywords can be used in this unit:
.RS
.TP
.I zipname
this file is the name of the zip file that will be produced.
.TP
.I ziptarget
is the name of a makefile target that will be executed before the zip is
made. By default this is the
.I install
target.
.RE
.SH SEE ALSO
.IP
.BR fpcmake (1)
.BR ppc386 (1)
.BR make (1)
|