Annotation of src/share/mk/bsd.README, Revision 1.243
1.243 ! cube 1: # $NetBSD: bsd.README,v 1.242 2008/11/15 11:27:49 mrg Exp $
1.24 mikel 2: # @(#)bsd.README 8.2 (Berkeley) 4/2/94
1.1 cgd 3:
1.213 lukem 4: This is the README file for the make "include" files for the NetBSD
5: source tree. The files are installed in /usr/share/mk, and are,
6: by convention, named with the suffix ".mk".
1.1 cgd 7:
8: Note, this file is not intended to replace reading through the .mk
9: files for anything tricky.
10:
11: =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
12:
13: RANDOM THINGS WORTH KNOWING:
14:
15: The files are simply C-style #include files, and pretty much behave like
16: you'd expect. The syntax is slightly different in that a single '.' is
17: used instead of the hash mark, i.e. ".include <bsd.prog.mk>".
18:
19: One difference that will save you lots of debugging time is that inclusion
20: of the file is normally done at the *end* of the Makefile. The reason for
21: this is because .mk files often modify variables and behavior based on the
22: values of variables set in the Makefile. To make this work, remember that
23: the FIRST target found is the target that is used, i.e. if the Makefile has:
24:
25: a:
26: echo a
27: a:
28: echo a number two
29:
30: the command "make a" will echo "a". To make things confusing, the SECOND
31: variable assignment is the overriding one, i.e. if the Makefile has:
32:
33: a= foo
34: a= bar
35:
36: b:
37: echo ${a}
38:
39: the command "make b" will echo "bar". This is for compatibility with the
40: way the V7 make behaved.
41:
42: It's fairly difficult to make the BSD .mk files work when you're building
1.75 agc 43: multiple programs in a single directory. It's a lot easier to split up the
1.1 cgd 44: programs than to deal with the problem. Most of the agony comes from making
1.36 ross 45: the "obj" directory stuff work right, not because we switched to a new version
1.1 cgd 46: of make. So, don't get mad at us, figure out a better way to handle multiple
47: architectures so we can quit using the symbolic link stuff. (Imake doesn't
48: count.)
49:
50: The file .depend in the source directory is expected to contain dependencies
51: for the source files. This file is read automatically by make after reading
52: the Makefile.
53:
54: The variable DESTDIR works as before. It's not set anywhere but will change
55: the tree where the file gets installed.
56:
57: The profiled libraries are no longer built in a different directory than
58: the regular libraries. A new suffix, ".po", is used to denote a profiled
1.21 christos 59: object, and ".so" denotes a shared (position-independent) object.
1.97 itojun 60:
1.142 lukem 61: There are various make variables used during the build.
62:
63: Many variables support a (case sensitive) value of "no" or "yes",
64: and are tested with ${VAR} == "no" and ${VAR} != "no" .
65:
66:
1.172 hubertf 67: The basic rule for the variable naming scheme is as follows:
68:
1.231 apb 69: HOST_xxx A command that runs on the host machine regardless of
70: whether or not the system is being cross compiled, or
71: flags for such a command.
72:
1.172 hubertf 73: MKxxx Can be set to "no" to disable functionality, or
74: "yes" to enable it.
75: Usually defaults to "yes", although some variables
76: default to "no".
77: Due to make(1) implementation issues, if a temporary
1.224 lukem 78: command-line override of a mk.conf(5) or <bsd.own.mk>
1.214 wiz 79: setting is required whilst still honoring a particular
1.172 hubertf 80: Makefile's setting of MKxxx, use
81: env MKxxx=value make
82: instead of
83: make MKxxx=value
84:
85: NOxxx If defined, disables a feature.
86: Not intended for users.
87: This is to allow Makefiles to disable functionality
88: that they don't support (such as missing man pages).
89: NOxxx variables must be defined before <bsd.own.mk>
90: is included.
91:
1.231 apb 92: TOOL_xxx A tool that is provided as part of the USETOOLS
93: framework. When not using the USETOOLS framework,
94: TOOL_xxx variables should refer to tools that are
95: already installed on the host system.
96:
1.172 hubertf 97: The following variables that control how things are made/installed that
98: are not set by default. These should not be set by Makefiles; they're for
1.224 lukem 99: the user to define in MAKECONF (see <bsd.own.mk>, below, or mk.conf(5))
100: or on the make(1) command line:
1.172 hubertf 101:
102: BUILD If defined, 'make install' checks that the targets in the
103: source directories are up-to-date and remakes them if they
104: are out of date, instead of blindly trying to install
105: out of date or non-existent targets.
106:
107: MAKEVERBOSE Control how "verbose" the standard make(1) rules are.
108: Default: 2
109: Supported values:
110: 0 Minimal output ("quiet")
111: 1 Describe what is occurring
112: 2 Describe what is occurring and echo the actual command
1.241 apb 113: 3 Ignore the effect of the "@" prefix in make commands
114: 4 Trace shell commands using the shell's -x flag
1.172 hubertf 115:
1.210 gmcgarry 116: MKATF If "no", don't build libatf-c, libatf-c++ libraries associated
117: with the Automated Testing Framework (ATF).
118: Default: yes
119:
1.172 hubertf 120: MKBFD If "no", don't build libbfd, libiberty, or any of the things
121: that depend on them (binutils/gas/ld, gdb, dbsym, mdsetimage).
122: Default: yes
123:
124: MKCATPAGES If "no", don't build or install the catman pages.
125: Default: yes
126:
1.234 mrg 127: MKCOMPAT If "no", don't build or install the src/compat.
128: Default: yes on amd64/sparc64, no elsewhere.
129:
1.210 gmcgarry 130: MKCOMPLEX If "no", don't build libm support for <complex.h>
131: Default: yes
132:
1.172 hubertf 133: MKCRYPTO If "no", no cryptography support will be built into the system,
1.174 christos 134: and also acts as "MKKERBEROS=no".
1.172 hubertf 135: Default: yes
136:
137: MKCRYPTO_IDEA If not "no", IDEA support will be built into libcrypto_idea.a.
138: Default: no
139:
140: MKCRYPTO_MDC2 If not "no", MDC2 support will be built into libcrypto_mdc2.a
141: Default: no
142:
143: MKCRYPTO_RC5 If not "no", RC5 support will be built into libcrypto_rc5.a.
144: Default: no
145:
146: MKCVS If "no", don't build or install cvs(1).
147: Default: yes
148:
1.184 lukem 149: MKDEBUG If "no", don't build and install separate debugging symbols
150: into /usr/libdata/debug.
151: Default: no
152:
1.219 lukem 153: MKDEBUGLIB Build *_g.a debugging libraries, which are compiled
154: with -DDEBUG.
1.176 christos 155: Default: no
156:
1.172 hubertf 157: MKDOC If "no", don't build or install the documentation.
158: Default: yes
159:
160: MKDYNAMICROOT If "no", build programs in /bin and /sbin statically,
161: don't install certain libraries in /lib, and don't
162: install the shared linker into /libexec.
163: Default: yes
164:
1.201 lukem 165: MKGCC If "no", don't build gcc(1) or any of the GCC-related
1.186 mrg 166: libraries (libgcc, libobjc, libstdc++).
1.172 hubertf 167: Default: yes
168:
1.201 lukem 169: MKGCCCMDS If "no", don't build gcc(1), but do build the GCC-related
170: libraries (libgcc, libobjc, libstdc++).
1.172 hubertf 171: Default: yes
172:
173: MKGDB If "no", don't build gdb(1).
174: Default: yes
175:
176: MKHESIOD If "no", disables building of Hesiod infrastructure
177: (libraries and support programs).
178: Default: yes
179:
180: MKHOSTOBJ If not "no", for programs intended to be run on the compile
181: host, the name, release, and architecture of the host
182: operating system will be suffixed to the name of the object
183: directory created by "make obj".
184: Default: no
185:
1.222 lukem 186: MKHTML If "no", don't build or install the HTML man pages.
187: Default: yes
1.172 hubertf 188:
189: MKIEEEFP If "no", don't add code for IEEE754/IEC60559 conformance.
190: Has no effect on most platforms.
191: Default: yes
192:
1.225 joerg 193: MKSTRIPIDENT Strip the RCS IDs from program binaries and shared libraries.
194: Default: no
195:
1.172 hubertf 196: MKINET6 If "no", disables building of INET6 (IPv6) infrastructure
197: (libraries and support programs).
198: Default: yes
199:
200: MKINFO If "no", don't build or install Info documentation from
201: Texinfo source files.
202: Default: yes
203:
204: MKIPFILTER If "no", don't build or install the IP Filter programs and LKM.
205: Default: yes
206:
1.208 lukem 207: MKISCSI If "no", don't build or install iSCSI library or applications
1.181 mrg 208: (depends on libpthread.)
209: Default: yes
210:
1.172 hubertf 211: MKKERBEROS If "no", disables building of Kerberos v5
212: infrastructure (libraries and support programs).
213: Default: yes
214:
1.208 lukem 215: MKLDAP If "no", disables building of LDAP infrastructure
216: (libraries and support programs).
217: Default: yes
218:
1.206 lukem 219: MKLINKLIB If "no", act as "MKLINT=no MKPICINSTALL=no MKPROFILE=no".
1.172 hubertf 220: Also:
221: - don't install the .a libraries
222: - don't install _pic.a libraries on PIC systems
223: - don't build .a libraries on PIC systems
224: - don't install the .so symlink on ELF systems
225: I.e, only install the shared library (and the .so.major
226: symlink on ELF).
227: Default: yes
228:
229: MKLINT If "no", don't build or install the lint libraries.
230: Default: yes
231:
232: MKMAN If "no", don't build or install the man or catman pages,
233: and also acts as "MKCATPAGES=no MKHTML=no".
234: Default: yes
235:
236: MKMANZ If not "no", compress manual pages at installation time.
237: Default: no
238:
239: MKNLS If "no", don't build or install the NLS files and locale
240: definition files.
241: Default: yes
242:
243: MKOBJ If "no", don't enable the rule which creates objdirs,
244: and also acts as "MKOBJDIRS=no".
245: Default: yes
246:
247: MKOBJDIRS If "no", don't create objdirs during a "make build".
248: Default: no
249:
250: MKPAM If "no", disables building of PAM authentication
251: infrastructure (libraries and support programs).
1.182 peter 252: Default: yes
1.172 hubertf 253:
1.210 gmcgarry 254: MKPCC If "no", don't build pcc(1) or any of the PCC-related
255: libraries (libpcc, libpccsoftfloat).
256: Default: no
257:
258: MKPCCCMDS If "no", don't build pcc(1), but do build the PCC-related
259: libraries (libpcc, libpccsoftfloat).
260: Default: no
261:
1.172 hubertf 262: MKPF If "no", don't build or install the pf programs and LKM.
263: Default: yes
264:
265: MKPIC If "no", don't build or install shared libraries, and
266: also acts as "MKPICLIB=no"
267: Default: yes (for MACHINE_ARCHs that support it)
268:
269: MKPICINSTALL If "no", don't install the *_pic.a libraries.
270: Default: yes
271:
272: MKPICLIB If "no", don't build *_pic.a libraries, and build the
273: shared object libraries from the .a libraries.
274: A symlink is installed in ${DESTDIR}/usr/lib for the
275: _pic.a library pointing to the .a library.
276: Default: yes
277:
1.198 christos 278: MKPIE If "no", create regular executables. Otherwise create
279: PIE (Position Independent Executables).
280: Default: no
281:
1.172 hubertf 282: MKPOSTFIX If "no", don't build or install postfix(1).
283: Default: yes
284:
285: MKPROFILE If "no", don't build or install the profiling (*_p.a) libraries.
286: Default: yes
287:
288: MKSHARE If "no", act as "MKCATPAGES=no MKDOC=no MKHTML=no MKINFO=no
289: MKMAN=no MKNLS=no".
290: I.e, don't build catman pages, documentation, Info
291: documentation, man pages, NLS files, ...
292: Default: yes
293:
294: MKSKEY If "no", disables building of S/key authentication
295: infrastructure (libraries and support programs).
296: Default: yes
297:
298: MKSOFTFLOAT If not "no", build with options to enable the compiler to
299: generate output containing library calls for floating
300: point and possibly soft-float library support.
301: Default: no
302:
303: MKSTATICLIB If "no", don't build or install the normal static (*.a)
304: libraries.
305: Default: yes
306:
307: MKUNPRIVED If not "no", don't set the owner/group/mode when installing
308: files or directories, and keep a metadata log of what
309: the owner/group/mode should be. This allows a
310: non-root "make install".
311: Default: no
312:
313: MKUPDATE If not "no", 'make install' only installs targets that are
314: more recently modified in the source directories that their
315: installed counterparts.
316: Default: no
317:
1.237 mrg 318: MKX11 If not "no", depending on the value of ${X11FLAVOUR},
319: 'make build' also descends into either src/x11 (XFree86) or
320: src/external/mit/xorg (modular Xorg) to cross-build X11 and
321: automatically enables creation of X sets.
1.216 mrg 322: Default: no
323:
1.172 hubertf 324: MKYP If "no", disables building of YP (NIS)
325: infrastructure (libraries and support programs).
326: Default: yes
327:
328: USE_HESIOD If "no", disables building Hesiod support into
329: various system utilities/libraries that support it.
330: If ${MKHESIOD} is "no", USE_HESIOD will also be
331: forced to "no".
332:
333: USE_INET6 If "no", disables building INET6 (IPv6) support into
334: various system utilities/libraries that support it.
335: If ${MKINET6} is "no", USE_INET6 will also be
336: forced to "no".
337:
1.197 ad 338: USE_JEMALLOC If "no", disables building the "jemalloc" allocator
339: designed for improved performance with threaded
340: applications. The "phkmalloc" allocator as used up
341: before NetBSD-5.0 will be substituted.
342:
1.175 christos 343: USE_KERBEROS If "no", disables building Kerberos v5
1.172 hubertf 344: support into various system utilities/libraries that
345: support it. If ${MKKERBEROS} is "no", USE_KERBEROS
346: will also be forced to "no".
347:
1.208 lukem 348: USE_LDAP If "no", disables building LDAP support into various
349: system utilities/libraries that support it.
350: If ${MKLDAP} is "no", USE_LDAP will also be forced to "no".
351:
1.172 hubertf 352: USE_PAM If "no", disables building PAM authentication support
353: into various system utilities/libraries that support it.
354: If ${MKPAM} is "no", USE_PAM will also be forced to "no".
355:
356: USE_SKEY If "no", disables building S/key authentication
357: support into various system utilities/libraries that
358: support it. If ${MKSKEY} is "no", USE_SKEY will
359: also be forced to "no".
1.204 lukem 360: Default: no
1.172 hubertf 361:
1.201 lukem 362: USE_SSP If "no", disables GCC stack protection code, which
1.191 rumble 363: detects stack overflows and aborts the program. This
364: imposes some performance penalty.
365: Default: no
1.187 christos 366:
1.172 hubertf 367: USE_YP If "no", disables building YP (NIS) support into
368: various system utilities/libraries that support it.
369: If ${MKYP} is "no", USE_YP will also be forced to "no".
370:
1.237 mrg 371: X11FLAVOUR Set to "Xorg" or "XFree86", depending on whether to build
372: XFree86 or modular Xorg. Only matters if MKX11!=no.
1.242 mrg 373: Default: "Xorg" on amd64, i386, macppc, shark and sparc64,
374: "XFree86" on everything else.
1.237 mrg 375:
1.172 hubertf 376: COPTS.lib<lib>
1.177 mrg 377: OBJCOPTS.lib<lib>
1.172 hubertf 378: LDADD.lib<lib>
379: CPPFLAGS.lib<lib>
380: CXXFLAGS.lib<lib>
381: COPTS.<prog>
1.177 mrg 382: OBJCCOPTS.<prog>
1.172 hubertf 383: LDADD.<prog>
384: CPPFLAGS.<prog>
385: CXXFLAGS.<prog> These provide a way to specify additions to the associated
386: variables in a way that applies only to a particular library
387: or program. <lib> corresponds to the LIB variable set in
388: the library's makefile. <prog> corresponds to either PROG
389: or PROG_CXX (if set). For example, if COPTS.libcrypto is
390: set to "-g", "-g" will be added to COPTS only when compiling
391: the crypto library.
1.118 lukem 392:
393: =-=-=-=-= sys.mk =-=-=-=-=
1.1 cgd 394:
395: The include file <sys.mk> has the default rules for all makes, in the BSD
396: environment or otherwise. You probably don't want to touch this file.
397:
1.118 lukem 398: =-=-=-=-= bsd.own.mk =-=-=-=-=
1.1 cgd 399:
1.17 thorpej 400: The include file <bsd.own.mk> contains source tree configuration parameters,
401: such as the owners, groups, etc. for both manual pages and binaries, and
402: a few global "feature configuration" parameters.
1.1 cgd 403:
404: It has no targets.
405:
1.134 lukem 406: To get system-specific configuration parameters, <bsd.own.mk> will try to
1.29 cjs 407: include the file specified by the "MAKECONF" variable. If MAKECONF is not
408: set, or no such file exists, the system make configuration file, /etc/mk.conf
409: is included. These files may define any of the variables described below.
1.17 thorpej 410:
1.134 lukem 411: <bsd.own.mk> sets the following variables, if they are not already defined
1.17 thorpej 412: (defaults are in brackets):
1.15 cgd 413:
1.98 lukem 414: NETBSDSRCDIR Top of the NetBSD source tree.
415: If _SRC_TOP_ != "", that will be used as the default,
416: otherwise BSDSRCDIR will be used as the default.
417: Various makefiles within the NetBSD source tree will
418: use this to reference the top level of the source tree.
419:
1.95 lukem 420: _SRC_TOP_ Top of the system source tree, as determined by <bsd.own.mk>
1.98 lukem 421: based on the presence of tools/ and build.sh. This variable
422: is "internal" to <bsd.own.mk>, although its value is only
423: determined once and then propagated to all sub-makes.
1.95 lukem 424:
1.15 cgd 425: BSDSRCDIR The real path to the system sources, so that 'make obj'
1.116 lukem 426: will work correctly. [/usr/src]
1.15 cgd 427:
428: BSDOBJDIR The real path to the system 'obj' tree, so that 'make obj'
1.116 lukem 429: will work correctly. [/usr/obj]
1.15 cgd 430:
1.116 lukem 431: BINGRP Binary group. [wheel]
1.15 cgd 432:
1.116 lukem 433: BINOWN Binary owner. [root]
1.15 cgd 434:
1.116 lukem 435: BINMODE Binary mode. [555]
1.15 cgd 436:
1.116 lukem 437: NONBINMODE Mode for non-executable files. [444]
1.15 cgd 438:
1.116 lukem 439: MANDIR Base path for manual installation. [/usr/share/man/cat]
1.15 cgd 440:
1.116 lukem 441: MANGRP Manual group. [wheel]
1.15 cgd 442:
1.116 lukem 443: MANOWN Manual owner. [root]
1.15 cgd 444:
1.116 lukem 445: MANMODE Manual mode. [${NONBINMODE}]
1.15 cgd 446:
1.222 lukem 447: MANINSTALL Manual installation type. Space separated list:
448: catinstall, htmlinstall, maninstall
449: [catinstall maninstall htmlinstall]
1.76 fair 450:
451: LDSTATIC Control program linking; if set blank, link everything
1.129 lukem 452: dynamically. If set to "-static", link everything statically.
1.76 fair 453: If not set, programs link according to their makefile.
1.21 christos 454:
1.116 lukem 455: LIBDIR Base path for library installation. [/usr/lib]
1.15 cgd 456:
1.116 lukem 457: LINTLIBDIR Base path for lint(1) library installation. [/usr/libdata/lint]
1.15 cgd 458:
1.116 lukem 459: LIBGRP Library group. [${BINGRP}]
1.15 cgd 460:
1.116 lukem 461: LIBOWN Library owner. [${BINOWN}]
1.15 cgd 462:
1.116 lukem 463: LIBMODE Library mode. [${NONBINMODE}]
1.15 cgd 464:
465: DOCDIR Base path for system documentation (e.g. PSD, USD, etc.)
1.116 lukem 466: installation. [/usr/share/doc]
1.62 simonb 467:
468: HTMLDOCDIR Base path for html system documentation installation.
469: [/usr/share/doc/html]
1.15 cgd 470:
1.116 lukem 471: DOCGRP Documentation group. [wheel]
1.15 cgd 472:
1.116 lukem 473: DOCOWN Documentation owner. [root]
1.15 cgd 474:
1.116 lukem 475: DOCMODE Documentation mode. [${NONBINMODE}]
1.15 cgd 476:
1.84 kleink 477: NLSDIR Base path for Native Language Support files installation.
1.15 cgd 478: [/usr/share/nls]
1.1 cgd 479:
1.116 lukem 480: NLSGRP Native Language Support files group. [wheel]
1.1 cgd 481:
1.116 lukem 482: NLSOWN Native Language Support files owner. [root]
1.1 cgd 483:
1.116 lukem 484: NLSMODE Native Language Support files mode. [${NONBINMODE}]
1.1 cgd 485:
1.144 lukem 486: X11SRCDIR The path to the xsrc tree. [/usr/xsrc]
487:
1.221 mrg 488: X11SRCDIR.xc The path to the (old) X11 xc src tree. [${X11SRCDIR}/xfree/xc]
1.144 lukem 489:
1.221 mrg 490: X11SRCDIR.local The path to the local X11 src tree. [${X11SRCDIR}/local]
1.144 lukem 491:
1.221 mrg 492: X11SRCDIR.lib<package>
493: X11SRCDIR.<package>
494: The path to the xorg src tree for the specificed package>.
495: [${X11SRCDIR}/external/mit/xorg/<package>/dist]
496:
497: X11ROOTDIR Root directory of the X11 installation. [/usr/X11R6 or
498: [/usr/X11R7]
1.144 lukem 499:
500: X11BINDIR X11 bin directory. [${X11ROOTDIR}/bin]
501:
502: X11FONTDIR X11 font directory. [${X11ROOTDIR}/lib/X11/fonts]
503:
504: X11INCDIR X11 include directory. [${X11ROOTDIR}/include]
505:
506: X11LIBDIR X11 lib/x11 (config) directory. [${X11ROOTDIR}/lib/X11]
507:
508: X11MANDIR X11 manual directory. [${X11ROOTDIR}/man]
509:
510: X11USRLIBDIR X11 library directory. [${X11ROOTDIR}/lib]
511:
1.32 mikel 512: STRIPFLAG The flag passed to the install program to cause the binary
1.1 cgd 513: to be stripped. This is to be used when building your
514: own install script so that the entire system can be made
1.146 lukem 515: stripped/not-stripped using a single knob. []
1.1 cgd 516:
1.2 cgd 517: COPY The flag passed to the install program to cause the binary
518: to be copied rather than moved. This is to be used when
519: building our own install script so that the entire system
520: can either be installed with copies, or with moves using
1.116 lukem 521: a single knob. [-c]
1.15 cgd 522:
1.150 lukem 523: MAKEDIRTARGET dir target [params]
524: Runs "cd $${dir} && ${MAKE} [params] $${target}",
525: displaying a "pretty" message whilst doing so.
526:
1.152 cl 527: RELEASEMACHINEDIR
528: Subdirectory used below RELEASEDIR when building
529: a release. [${MACHINE}]
530:
531: RELEASEMACHINE Subdirectory or path component used for the following
532: paths:
533: distrib/${RELEASEMACHINE}
534: distrib/notes/${RELEASEMACHINE}
535: etc/etc.${RELEASEMACHINE}
536: Used when building a release. [${MACHINE}]
1.150 lukem 537:
1.134 lukem 538: Additionally, the following variables may be set by <bsd.own.mk> or in a
1.214 wiz 539: make configuration file to modify the behavior of the system build
1.17 thorpej 540: process (default values are in brackets along with comments, if set by
1.134 lukem 541: <bsd.own.mk>):
1.33 jonathan 542:
1.172 hubertf 543: USETOOLS Indicates whether the tools specified by ${TOOLDIR} should
544: be used as part of a build in progress.
545: Supported values:
546:
547: yes Use the tools from TOOLDIR.
548: Must be set to this if cross-compiling.
549:
550: no Do not use the tools from TOOLDIR, but refuse to
551: build native compilation tool components that are
552: version-specific for that tool.
553:
554: never Do not use the tools from TOOLDIR, even when
555: building native tool components. This is similar to
556: the traditional NetBSD build method, but does not
557: verify that the compilation tools in use are
558: up-to-date enough in order to build the tree
559: successfully. This may cause build or runtime
560: problems when building the whole NetBSD source tree.
561:
562: Default: "yes" if building all or part of a whole NetBSD
563: source tree (detected automatically); "no" otherwise
564: (to preserve traditional semantics of the <bsd.*.mk>
565: make(1) include files).
1.142 lukem 566:
1.116 lukem 567: OBJECT_FMT Object file format. [set to "ELF" on architectures that
1.199 simonb 568: use ELF -- currently all architectures].
1.33 jonathan 569:
1.103 thorpej 570: TOOLCHAIN_MISSING
1.142 lukem 571: If not "no", this indicates that the platform being built
1.103 thorpej 572: does not have a working in-tree toolchain. If the
1.142 lukem 573: ${MACHINE_ARCH} in question falls into this category,
574: TOOLCHAIN_MISSING is conditionally assigned the value "yes".
1.103 thorpej 575: Otherwise, the variable is unconditionally assigned the
576: value "no".
1.142 lukem 577: If not "no", ${MKBFD}, ${MKGCC}, and ${MKGDB} are
578: unconditionally assigned the value "no".
1.103 thorpej 579:
580: EXTERNAL_TOOLCHAIN
581: This variable is not directly set by <bsd.own.mk>, but
582: including <bsd.own.mk> is the canonical way to gain
583: access to this variable. The variable should be defined
584: either in the user's environment or in the user's mk.conf
585: file. If defined, this variable indicates the root of
586: an external toolchain which will be used to build the
1.142 lukem 587: tree. For example, if a platform is a ${TOOLCHAIN_MISSING}
1.103 thorpej 588: platform, EXTERNAL_TOOLCHAIN can be used to re-enable the
589: cross-compile framework.
590:
1.142 lukem 591: If EXTERNAL_TOOLCHAIN is defined, ${MKGCC} is unconditionally
592: assigned the value "no", since the external version of the
593: compiler may not be able to build the library components of
594: the in-tree compiler.
1.103 thorpej 595:
596: NOTE: This variable is not yet used in as many places as
597: it should be. Expect the exact semantics of this variable
598: to change in the short term as parts of the cross-compile
599: framework continue to be cleaned up.
1.1 cgd 600:
1.236 apb 601: The following variables are defined to commands to perform the
602: appropriate operation, with the default in [brackets]. Note that
603: the defaults change if USETOOLS == "yes":
604:
605: TOOL_AMIGAAOUT2BB aout to Amiga bootblock converter. [amiga-aout2bb]
606:
607: TOOL_AMIGAELF2BB ELF to Amiga bootblock converter. [amiga-elf2bb]
608:
609: TOOL_AMIGATXLT Amige assembly language format translator. [amiga-txlt]
610:
611: TOOL_ASN1_COMPILE ASN1 compiler. [asn1_compile]
612:
613: TOOL_ATF_COMPILE Generate POSIX shell test programs. [atf-compile]
614:
615: TOOL_AWK Pattern-directed scanning/processing language. [awk]
616:
617: TOOL_CAP_MKDB Create capability database. [cap_mkdb]
618:
619: TOOL_CAT Concatenate and print files. [cat]
620:
621: TOOL_CKSUM Display file checksums. [cksum]
622:
623: TOOL_COMPILE_ET Error table compiler. [compile_et]
624:
625: TOOL_CONFIG Build kernel compilation directories. [config]
626:
627: TOOL_CRUNCHGEN Generate crunched binary build environment. [crunchgen]
628:
629: TOOL_CTAGS Create a tags file. [ctags]
630:
631: TOOL_DB Manipulate db(3) databases. [db]
632:
633: TOOL_DISKLABEL Read and write disk pack label. [disklabel]
634:
635: TOOL_EQN Format equations for groff. [eqn]
636:
637: TOOL_FDISK MS-DOS partition maintenance program. [fdisk]
638:
639: TOOL_FGEN IEEE 1275 Open Firmware FCode Tokenizer. [fgen]
640:
641: TOOL_GENASSYM Generate constants for assembly files. [genassym]
642:
643: TOOL_GENCAT Generate NLS message catalogs. [gencat]
644:
645: TOOL_GMAKE GNU make utility. [gmake]
646:
647: TOOL_GROFF Front end for groff document formatting system. [groff]
648:
649: TOOL_HEXDUMP Ascii, decimal, hexadecimal, octal dump. [hexdump]
650:
651: TOOL_HP300MKBOOT Make bootable image for hp300. [hp300-mkboot]
652:
653: TOOL_HP700MKBOOT Make bootable image for hp700. [hp700-mkboot]
654:
655: TOOL_INDXBIB Make bibliographic database's inverted index. [indxbib]
656:
657: TOOL_INSTALLBOOT Install disk bootstrap software. [installboot]
658:
659: TOOL_INSTALL_INFO Update info/dir entries. [install-info]
660:
661: TOOL_JOIN Relational database operator. [join]
662:
663: TOOL_M4 M4 macro language processor. [m4]
664:
665: TOOL_MACPPCFIXCOFF Fix up xcoff headers for macppc. [macppc-fixcoff]
666:
667: TOOL_MAKEFS Create file system image from directory tree. [makefs]
668:
669: TOOL_MAKEINFO Translate Texinfo documents. [makeinfo]
670:
671: TOOL_MAKEWHATIS Create a whatis.db database. [makewhatis]
672:
673: TOOL_MDSETIMAGE Set kernel RAM disk image. [mdsetimage]
674:
675: TOOL_MENUC Menu compiler. [menuc]
676:
677: TOOL_MIPSELF2ECOFF Convert ELF-format executable to ECOFF for mips.
678: [mips-elf2ecoff]
679:
680: TOOL_MKCSMAPPER Make charset mapping table. [mkcsmapper]
681:
682: TOOL_MKESDB Make encoding scheme database. [mkesdb]
683:
684: TOOL_MKLOCALE Make LC_CTYPE locale files. [mklocale]
685:
686: TOOL_MKMAGIC Create database for file(1). [file]
687:
688: TOOL_MKTEMP Make (unique) temporary file name. [mktemp]
689:
690: TOOL_MSGC Simple message list compiler. [msgc]
691:
692: TOOL_MTREE Map a directory hierarchy. [mtree]
693:
694: TOOL_PAX Manipulate file archives and copy directories. [pax]
695:
696: TOOL_PIC Compile pictures for groff. [pic]
697:
698: TOOL_POWERPCMKBOOTIMAGE Make bootable image for powerpc. [powerpc-mkbootimage]
699:
700: TOOL_PWD_MKDB Generate the password databases. [pwd_mkdb]
701:
702: TOOL_REFER Preprocess bibliographic references for groff. [refer]
703:
704: TOOL_ROFF_ASCII Generate ASCII groff output. [nroff]
705:
706: TOOL_ROFF_DVI Generate DVI groff output. [${TOOL_GROFF} -Tdvi]
707:
708: TOOL_ROFF_HTML Generate HTML groff output.
709: [${TOOL_GROFF} -Tlatin1 -mdoc2html]
710:
711: TOOL_ROFF_PS Generate PS groff output. [${TOOL_GROFF} -Tps]
712:
713: TOOL_ROFF_RAW Generate "raw" groff output. [${TOOL_GROFF} -Z]
714:
715: TOOL_RPCGEN Remote Procedure Call (RPC) protocol compiler. [rpcgen]
716:
717: TOOL_SED Stream editor. [sed]
718:
719: TOOL_SOELIM Eliminate .so's from groff input. [soelim]
720:
721: TOOL_SPARKCRC Generate a crc suitable for use in a sparkive file.
722: [sparkcrc]
723:
724: TOOL_STAT Display file status. [stat]
725:
726: TOOL_STRFILE Create a random access file for storing strings.
727: [strfile]
728:
729: TOOL_SUNLABEL Read or modify a SunOS disk label. [sunlabel]
730:
731: TOOL_TBL Format tables for groff. [tbl]
732:
733: TOOL_UUDECODE Uudecode a binary file. [uudecode]
734:
735: TOOL_VGRIND Grind nice listings of programs. [vgrind -f]
736:
737: TOOL_ZIC Time zone compiler. [zic]
738:
1.134 lukem 739: <bsd.own.mk> is generally useful when building your own Makefiles so that
1.1 cgd 740: they use the same default owners etc. as the rest of the tree.
1.131 lukem 741:
742:
743: =-=-=-=-= bsd.dep.mk =-=-=-=-=
744:
745: The include file <bsd.dep.mk> contains the default targets for building
1.133 lukem 746: .depend files. It creates .d files from entries in SRCS and DPSRCS
747: that are C, C++, or Objective C source files, and builds .depend from the
748: .d files. All other files in SRCS and all of DPSRCS will be used as
749: dependencies for the .d files. In order for this to function correctly,
1.132 lukem 750: it should be .included after all other .mk files and directives that may
751: modify SRCS or DPSRCS. It uses the following variables:
752:
753: SRCS List of source files to build the program.
754:
755: DPSRCS List of source files which are needed for generating
756: dependencies, but are not needed in ${SRCS}.
1.1 cgd 757:
758:
1.118 lukem 759: =-=-=-=-= bsd.files.mk =-=-=-=-=
1.106 thorpej 760:
1.118 lukem 761: The include file <bsd.files.mk> handles the FILES variables and is included
1.134 lukem 762: from <bsd.lib.mk> and <bsd.prog.mk>, and uses the following variables:
1.124 lukem 763:
764: FILES The list of files to install.
765:
1.153 lukem 766: CONFIGFILES Similar semantics to FILES, except that the files
767: are installed by the `configinstall' target,
768: not the `install' target.
769: The FILES* variables documented below also apply.
770:
1.124 lukem 771: FILESOWN File owner. [${BINOWN}]
772:
773: FILESGRP File group. [${BINGRP}]
774:
1.203 dholland 775: FILESMODE File mode. [${NONBINMODE}]
1.124 lukem 776:
777: FILESDIR The location to install the files.
778:
779: FILESNAME Optional name to install each file as.
780:
1.153 lukem 781: FILESOWN_<fn> File owner of the specific file <fn>.
782:
783: FILESGRP_<fn> File group of the specific file <fn>.
784:
785: FILESMODE_<fn> File mode of the specific file <fn>.
786:
1.202 uwe 787: FILESDIR_<fn> The location to install the specific file <fn>.
1.153 lukem 788:
789: FILESNAME_<fn> Optional name to install <fn> as.
1.124 lukem 790:
1.243 ! cube 791: FILESBUILD_<fn> A value different from "no" will add the file to the list of
! 792: targets to be built by `realall'. Users of that variable
! 793: should provide a target to build the file.
! 794:
1.135 lukem 795:
1.139 lukem 796: BUILDSYMLINKS List of two word items:
1.135 lukem 797: lnsrc lntgt
798: For each lnsrc item, create a symlink named lntgt.
799: The lntgt symlinks are removed by the cleandir target.
1.106 thorpej 800:
1.148 jmc 801: UUDECODE_FILES List of files which are stored as <file>.uue in the source
802: tree. Each one will be decoded with ${TOOL_UUDECODE}.
803: The source files have a `.uue' suffix, the generated files do
804: not.
1.149 jmc 805:
1.202 uwe 806: UUDECODE_FILES_RENAME_<fn>
807: Rename the output from the decode to the provided name.
1.148 jmc 808:
809: *NOTE: These files are simply decoded, with no install or other
810: rule applying implicitly except being added to the clean
811: target.
1.106 thorpej 812:
1.118 lukem 813: =-=-=-=-= bsd.gcc.mk =-=-=-=-=
1.113 thorpej 814:
815: The include file <bsd.gcc.mk> computes various parameters related to GCC
816: support libraries. It defines no targets. <bsd.own.mk> MUST be included
1.134 lukem 817: before <bsd.gcc.mk>.
1.113 thorpej 818:
1.134 lukem 819: The primary users of <bsd.gcc.mk> are <bsd.prog.mk> and <bsd.lib.mk>, each
1.113 thorpej 820: of which need to know where to find certain GCC support libraries.
821:
1.134 lukem 822: The behavior of <bsd.gcc.mk> is influenced by the EXTERNAL_TOOLCHAIN variable,
1.113 thorpej 823: which is generally set by the user. If EXTERNAL_TOOLCHAIN it set, then
824: the compiler is asked where to find the support libraries, otherwise the
825: support libraries are found in ${DESTDIR}/usr/lib.
826:
1.134 lukem 827: <bsd.gcc.mk> sets the following variables:
1.113 thorpej 828:
1.118 lukem 829: _GCC_CRTBEGIN The full path name to crtbegin.o.
830:
831: _GCC_CRTBEGINS The full path name to crtbeginS.o.
832:
833: _GCC_CRTEND The full path name to crtend.o.
834:
835: _GCC_CRTENDS The full path name to crtendS.o.
836:
837: _GCC_LIBGCCDIR The directory where libgcc.a is located.
838:
839:
840: =-=-=-=-= bsd.inc.mk =-=-=-=-=
841:
1.134 lukem 842: The include file <bsd.inc.mk> defines the includes target and uses the
1.118 lukem 843: variables:
844:
1.124 lukem 845: INCS The list of include files.
1.118 lukem 846:
847: INCSDIR The location to install the include files.
848:
849: INCSNAME Target name of the include file, if only one; same as
850: FILESNAME, but for include files.
851:
1.134 lukem 852: INCSYMLINKS Similar to SYMLINKS in <bsd.links.mk>, except that these
853: are installed in the 'includes' target and not the
854: (much later) 'install' target.
855:
1.118 lukem 856: INCSNAME_<file> The name file <file> should be installed as, if not <file>,
857: same as FILESNAME_<file>, but for include files.
858:
859:
860: =-=-=-=-= bsd.info.mk =-=-=-=-=
861:
862: The include file <bsd.info.mk> is used to generate and install GNU Info
863: documentation from respective Texinfo source files. It defines three
864: implicit targets (.txi.info, .texi.info, and .texinfo.info), and uses the
865: following variables:
866:
867: TEXINFO List of Texinfo source files. Info documentation will
868: consist of single files with the extension replaced by
869: .info.
870:
871: INFOFLAGS Flags to pass to makeinfo. []
872:
873:
874: =-=-=-=-= bsd.kernobj.mk =-=-=-=-=
875:
876: The include file <bsd.kernobj.mk> defines variables related to the
877: location of kernel sources and object directories.
878:
879: KERNSRCDIR Is the location of the top of the kernel src.
1.124 lukem 880: [${_SRC_TOP_}/sys]
1.118 lukem 881:
1.124 lukem 882: KERNARCHDIR Is the location of the machine dependent kernel sources.
883: [arch/${MACHINE}]
1.120 lukem 884:
1.124 lukem 885: KERNCONFDIR Is where the configuration files for kernels are found.
886: [${KERNSRCDIR}/${KERNARCHDIR}/conf]
1.118 lukem 887:
888: KERNOBJDIR Is the kernel build directory. The kernel GENERIC for
889: instance will be compiled in ${KERNOBJDIR}/GENERIC.
890: The default value is
891: ${MAKEOBJDIRPREFIX}${KERNSRCDIR}/${KERNARCHDIR}/compile
892: if it exists or the target 'obj' is being made.
893: Otherwise the default is
894: ${KERNSRCDIR}/${KERNARCHDIR}/compile.
895:
896: It is important that Makefiles (such as those under src/distrib) that
1.134 lukem 897: wish to find compiled kernels use <bsd.kernobj.mk> and ${KERNOBJDIR}
1.118 lukem 898: rather than make assumptions about the location of the compiled kernel.
899:
900:
901: =-=-=-=-= bsd.kinc.mk =-=-=-=-=
902:
903: The include file <bsd.kinc.mk> defines the many targets (includes,
904: subdirectories, etc.), and is used by kernel makefiles to handle
905: include file installation. It is intended to be included alone, by
1.134 lukem 906: kernel Makefiles. It uses similar variables to <bsd.inc.mk>.
907: Please see <bsd.kinc.mk> for more details, and keep the documentation
908: in that file up to date.
1.118 lukem 909:
910:
911: =-=-=-=-= bsd.lib.mk =-=-=-=-=
912:
913: The include file <bsd.lib.mk> has support for building libraries. It has
914: the same eight targets as <bsd.prog.mk>: all, clean, cleandir, depend,
915: includes, install, lint, and tags. Additionally, it has a checkver target
916: which checks for installed shared object libraries whose version is greater
917: that the version of the source. It has a limited number of suffixes,
1.134 lukem 918: consistent with the current needs of the BSD tree. <bsd.lib.mk> includes
1.118 lukem 919: <bsd.shlib.mk> to get shared library parameters.
920:
921: It sets/uses the following variables:
922:
923: LIB The name of the library to build.
924:
925: LIBDIR Target directory for libraries.
926:
927: SHLIBINSTALLDIR Target directory for shared libraries if ${USE_SHLIBDIR}
1.142 lukem 928: is not "no".
1.118 lukem 929:
1.142 lukem 930: USE_SHLIBDIR If not "no", use ${SHLIBINSTALLDIR} instead of ${LIBDIR}
1.118 lukem 931: as the path to install shared libraries to.
932: USE_SHLIBDIR must be defined before <bsd.own.mk> is included.
1.130 lukem 933: Default: no
1.118 lukem 934:
1.218 lukem 935: LIBISMODULE If not "no", install as ${LIB}.so (without the "lib" prefix),
936: and act as "MKDEBUGLIB=no MKLINT=no MKPICINSTALL=no
937: MKPROFILE=no MKSTATICLIB=no".
938: Default: no
939:
1.211 lukem 940: LIBISPRIVATE If not "no", act as "MKDEBUGLIB=no MKLINT=no MKPIC=no
941: MKPROFILE=no", and don't install the (.a) library.
1.154 lukem 942: This is useful for "build only" helper libraries.
943: Default: no
944:
1.118 lukem 945: LINTLIBDIR Target directory for lint libraries.
946:
947: LIBGRP Library group.
948:
949: LIBOWN Library owner.
950:
951: LIBMODE Library mode.
952:
953: LDADD Additional loader objects.
954:
955: MAN The manual pages to be installed (use a .1 - .9 suffix).
956:
957: NOCHECKVER_<library>
958: NOCHECKVER If set, disables checking for installed shared object
959: libraries with versions greater than the source. A
960: particular library name, without the "lib" prefix, may
961: be appended to the variable name to disable the check for
962: only that library.
963:
964: SRCS List of source files to build the library. Suffix types
965: .s, .c, and .f are supported. Note, .s files are preferred
966: to .c files of the same name. (This is not the default for
967: versions of make.)
968:
1.157 lukem 969: LIBDPLIBS A list of the tuples:
970: libname path-to-srcdir-of-libname
971:
972: For each tuple;
973: * LIBDO.libname contains the .OBJDIR of the library
974: `libname', and if it is not set it is determined
975: from the srcdir and added to MAKEOVERRIDES (the
976: latter is to allow for build time optimization).
977: * LDADD gets -L${LIBDO.libname} -llibname added.
978: * DPADD gets ${LIBDO.libname}/liblibname.so or
979: ${LIBDO.libname}/liblibname.a added.
980:
981: This variable may be used for individual libraries, as
982: well as in parent directories to cache common libraries
983: as a build-time optimization.
984:
1.118 lukem 985: The include file <bsd.lib.mk> includes the file named "../Makefile.inc"
986: if it exists, as well as the include file <bsd.man.mk>.
987:
988: It has rules for building profiled objects; profiled libraries are
989: built by default.
990:
991: Libraries are ranlib'd when made.
992:
993:
994: =-=-=-=-= bsd.links.mk =-=-=-=-=
995:
996: The include file <bsd.links.mk> handles the LINKS and SYMLINKS variables
1.134 lukem 997: and is included from from <bsd.lib.mk> and <bsd.prog.mk>.
998:
999: LINKS The list of hard links, consisting of pairs of paths:
1000: source-file target-file
1001: ${DESTDIR} is prepended to both paths before linking.
1002: For example, to link /bin/test and /bin/[, use:
1003: LINKS=/bin/test /bin/[
1004:
1.153 lukem 1005: CONFIGLINKS Similar semantics to LINKS, except that the links
1006: are installed by the `configinstall' target,
1007: not the `install' target.
1008:
1.134 lukem 1009: SYMLINKS The list of symbolic links, consisting of pairs of paths:
1010: source-file target-file
1011: ${DESTDIR} is only prepended to target-file before linking.
1012: For example, to symlink /usr/bin/tar to /bin/tar resulting
1013: in ${DESTDIR}/usr/bin/tar -> /bin/tar:
1014: SYMLINKS=/bin/tar /usr/bin/tar
1.118 lukem 1015:
1.153 lukem 1016: CONFIGSYMLINKS Similar semantics to SYMLINKS, except that the symbolic links
1017: are installed by the `configinstall' target,
1018: not the `install' target.
1019:
1.118 lukem 1020:
1021: =-=-=-=-= bsd.man.mk =-=-=-=-=
1022:
1023: The include file <bsd.man.mk> handles installing manual pages and their
1024: links.
1025:
1.222 lukem 1026: It has a three targets:
1.118 lukem 1027:
1.222 lukem 1028: catinstall:
1029: Install the preformatted manual pages and their links.
1030: htmlinstall:
1031: Install the HTML manual pages and their links.
1.118 lukem 1032: maninstall:
1033: Install the manual page sources and their links.
1034:
1035: It sets/uses the following variables:
1036:
1037: MANDIR Base path for manual installation.
1038:
1039: MANGRP Manual group.
1040:
1041: MANOWN Manual owner.
1042:
1043: MANMODE Manual mode.
1044:
1045: MANSUBDIR Subdirectory under the manual page section, i.e. "/vax"
1046: or "/tahoe" for machine specific manual pages.
1047:
1048: MAN The manual pages to be installed (use a .1 - .9 suffix).
1049:
1050: MLINKS List of manual page links (using a .1 - .9 suffix). The
1051: linked-to file must come first, the linked file second,
1052: and there may be multiple pairs. The files are soft-linked.
1053:
1054: The include file <bsd.man.mk> includes a file named "../Makefile.inc" if
1055: it exists.
1056:
1057:
1058: =-=-=-=-= bsd.obj.mk =-=-=-=-=
1059:
1060: The include file <bsd.obj.mk> defines targets related to the creation
1061: and use of separated object and source directories.
1062:
1063: If an environment variable named MAKEOBJDIRPREFIX is set, make(1) uses
1064: ${MAKEOBJDIRPREFIX}${.CURDIR} as the name of the object directory if
1065: it exists. Otherwise make(1) looks for the existence of a
1066: subdirectory (or a symlink to a directory) of the source directory
1067: into which built targets should be placed. If an environment variable
1068: named MAKEOBJDIR is set, make(1) uses its value as the name of the
1069: object directory; failing that, make first looks for a subdirectory
1070: named "obj.${MACHINE}", and if that doesn't exist, it looks for "obj".
1071:
1072: Object directories are not created automatically by make(1) if they
1073: don't exist; you need to run a separate "make obj". (This will happen
1074: during a top-level build if "MKOBJDIRS" is set to a value other than
1075: "no"). When the source directory is a subdirectory of ${BSDSRCDIR} --
1076: and this is determined by a simple string prefix comparison -- object
1077: directories are created in a separate object directory tree, and a
1078: symlink to the object directory in that tree is created in the source
1079: directory; otherwise, "make obj" assumes that you're not in the main
1080: source tree and that it's not safe to use a separate object tree.
1081:
1082: Several variables used by <bsd.obj.mk> control exactly what
1083: directories and links get created during a "make obj":
1084:
1085: MAKEOBJDIR If set, this is the component name of the object
1086: directory.
1087:
1088: OBJMACHINE If this is set but MAKEOBJDIR is not set, creates
1089: object directories or links named "obj.${MACHINE}";
1090: otherwise, just creates ones named "obj".
1091:
1092: USR_OBJMACHINE If set, and the current directory is a subdirectory of
1093: ${BSDSRCDIR}, create object directory in the
1094: corresponding subdirectory of ${BSDOBJDIR}.${MACHINE};
1095: otherwise, create it in the corresponding subdirectory
1096: of ${BSDOBJDIR}
1.113 thorpej 1097:
1.118 lukem 1098: BUILDID If set, the contents of this variable are appended
1099: to the object directory name. If OBJMACHINE is also
1100: set, ".${BUILDID}" is added after ".${MACHINE}".
1.113 thorpej 1101:
1.106 thorpej 1102:
1.118 lukem 1103: =-=-=-=-= bsd.prog.mk =-=-=-=-=
1.106 thorpej 1104:
1.1 cgd 1105: The include file <bsd.prog.mk> handles building programs from one or
1106: more source files, along with their manual pages. It has a limited number
1.134 lukem 1107: of suffixes, consistent with the current needs of the BSD tree.
1108: <bsd.prog.mk> includes <bsd.shlib.mk> to get shared library parameters.
1.1 cgd 1109:
1.16 jtc 1110: It has eight targets:
1.1 cgd 1111:
1112: all:
1.102 thorpej 1113: build the program and its manual page. This also
1114: creates a GDB initialization file (.gdbinit) in
1115: the objdir. The .gdbinit file sets the shared library
1116: prefix to ${DESTDIR} to facilitate cross-debugging.
1.1 cgd 1117: clean:
1118: remove the program, any object files and the files a.out,
1.24 mikel 1119: Errs, errs, mklog, and ${PROG}.core.
1.1 cgd 1120: cleandir:
1121: remove all of the files removed by the target clean, as
1122: well as .depend, tags, and any manual pages.
1.42 lukem 1123: `distclean' is a synonym for `cleandir'.
1.1 cgd 1124: depend:
1125: make the dependencies for the source files, and store
1126: them in the file .depend.
1.16 jtc 1127: includes:
1128: install any header files.
1.1 cgd 1129: install:
1130: install the program and its manual pages; if the Makefile
1131: does not itself define the target install, the targets
1132: beforeinstall and afterinstall may also be used to cause
1133: actions immediately before and after the install target
1134: is executed.
1135: lint:
1136: run lint on the source files
1137: tags:
1138: create a tags file for the source files.
1139:
1140: It sets/uses the following variables:
1141:
1142: BINGRP Binary group.
1143:
1144: BINOWN Binary owner.
1145:
1146: BINMODE Binary mode.
1147:
1148: CLEANFILES Additional files to remove for the clean and cleandir targets.
1149:
1150: COPTS Additional flags to the compiler when creating C objects.
1.112 thorpej 1151:
1.125 lukem 1152: COPTS.<fn> Additional flags to the compiler when creating the
1153: C objects for <fn>.
1154: For <fn>.[ly], "<fn>.c" must be used.
1155:
1.112 thorpej 1156: CPUFLAGS Additional flags to the compiler/assembler to select
1157: CPU instruction set options, CPU tuning options, etc.
1.35 lukem 1158:
1.125 lukem 1159: CPUFLAGS.<fn> Additional flags to the compiler/assembler for <fn>.
1160: For <fn>.[ly], "<fn>.c" must be used.
1161:
1.124 lukem 1162: CPPFLAGS Additional flags to the C pre-processor.
1.125 lukem 1163:
1164: CPPFLAGS.<fn> Additional flags to the C pre-processor for <fn>.
1165: For <fn>.[ly], "<fn>.c" must be used.
1.102 thorpej 1166:
1167: GDBINIT List of GDB initialization files to add to "source"
1168: directives in the .gdbinit file that is created in the
1169: objdir.
1.1 cgd 1170:
1171: LDADD Additional loader objects. Usually used for libraries.
1172: For example, to load with the compatibility and utility
1173: libraries, use:
1174:
1.5 jtc 1175: LDADD+=-lutil -lcompat
1.1 cgd 1176:
1.178 lukem 1177: LDFLAGS Additional linker flags (passed to ${CC} during link).
1.1 cgd 1178:
1.134 lukem 1179: LINKS See <bsd.links.mk>
1180:
1.177 mrg 1181: OBJCOPTS Additional flags to the compiler when creating ObjC objects.
1182:
1183: OBJCOPTS.<fn> Additional flags to the compiler when creating the
1184: ObjC objects for <fn>.
1185: For <fn>.[ly], "<fn>.c" must be used.
1186:
1.134 lukem 1187: SYMLINKS See <bsd.links.mk>
1.1 cgd 1188:
1.15 cgd 1189: MAN Manual pages (should end in .1 - .9). If no MAN variable is
1.8 cgd 1190: defined, "MAN=${PROG}.1" is assumed.
1.1 cgd 1191:
1.214 wiz 1192: PAXCTL_FLAGS If defined, run paxctl(1) on the program binary after link
1.212 lukem 1193: time, with the value of this variable as args to paxctl(1).
1.193 perry 1194:
1195: PAXCTL_FLAGS.${PROG} Custom override for PAXCTL_FLAGS.
1196:
1.1 cgd 1197: PROG The name of the program to build. If not supplied, nothing
1198: is built.
1199:
1.88 thorpej 1200: PROG_CXX If defined, the name of the program to build. Also
1201: causes <bsd.prog.mk> to link the program with the C++
1202: compiler rather than the C compiler. PROG_CXX overrides
1203: the value of PROG if PROG is also set.
1.87 thorpej 1204:
1.21 christos 1205: PROGNAME The name that the above program will be installed as, if
1206: different from ${PROG}.
1207:
1.37 tv 1208: SRCS List of source files to build the program. If SRCS is not
1.1 cgd 1209: defined, it's assumed to be ${PROG}.c.
1.108 jwise 1210:
1211: DPSRCS List of source files which are needed for generating
1212: dependencies, but are not needed in ${SRCS}.
1.1 cgd 1213:
1214: DPADD Additional dependencies for the program. Usually used for
1215: libraries. For example, to depend on the compatibility and
1216: utility libraries use:
1217:
1.5 jtc 1218: DPADD+=${LIBCOMPAT} ${LIBUTIL}
1.1 cgd 1219:
1220: The following libraries are predefined for DPADD:
1221:
1.21 christos 1222: LIBCRT0?= ${DESTDIR}/usr/lib/crt0.o
1.196 joerg 1223: LIBARCHIVE?= ${DESTDIR}/usr/lib/libarchive.a
1.159 lukem 1224: LIBASN1?= ${DESTDIR}/usr/lib/libasn1.a
1.180 gdamore 1225: LIBBLUETOOTH?= ${DESTDIR}/usr/lib/libbluetooth.a
1.159 lukem 1226: LIBBSDMALLOC?= ${DESTDIR}/usr/lib/libbsdmalloc.a
1.99 itojun 1227: LIBBZ2?= ${DESTDIR}/usr/lib/libbz2.a
1.21 christos 1228: LIBC?= ${DESTDIR}/usr/lib/libc.a
1229: LIBC_PIC?= ${DESTDIR}/usr/lib/libc_pic.a
1.99 itojun 1230: LIBCOM_ERR?= ${DESTDIR}/usr/lib/libcom_err.a
1.21 christos 1231: LIBCOMPAT?= ${DESTDIR}/usr/lib/libcompat.a
1232: LIBCRYPT?= ${DESTDIR}/usr/lib/libcrypt.a
1.99 itojun 1233: LIBCRYPTO?= ${DESTDIR}/usr/lib/libcrypto.a
1234: LIBCRYPTO_IDEA?=${DESTDIR}/usr/lib/libcrypto_idea.a
1.105 itojun 1235: LIBCRYPTO_MDC2?=${DESTDIR}/usr/lib/libcrypto_mdc2.a
1.99 itojun 1236: LIBCRYPTO_RC5?= ${DESTDIR}/usr/lib/libcrypto_rc5.a
1.21 christos 1237: LIBCURSES?= ${DESTDIR}/usr/lib/libcurses.a
1238: LIBDBM?= ${DESTDIR}/usr/lib/libdbm.a
1239: LIBDES?= ${DESTDIR}/usr/lib/libdes.a
1240: LIBEDIT?= ${DESTDIR}/usr/lib/libedit.a
1.114 provos 1241: LIBEVENT?= ${DESTDIR}/usr/lib/libevent.a
1.227 joerg 1242: LIBFETCH?= ${DESTDIR}/usr/lib/libfetch.a
1.73 blymn 1243: LIBFORM?= ${DESTDIR}/usr/lib/libform.a
1.21 christos 1244: LIBGCC?= ${DESTDIR}/usr/lib/libgcc.a
1245: LIBGNUMALLOC?= ${DESTDIR}/usr/lib/libgnumalloc.a
1.99 itojun 1246: LIBGSSAPI?= ${DESTDIR}/usr/lib/libgssapi.a
1247: LIBHDB?= ${DESTDIR}/usr/lib/libhdb.a
1.70 itojun 1248: LIBINTL?= ${DESTDIR}/usr/lib/libintl.a
1.49 itojun 1249: LIBIPSEC?= ${DESTDIR}/usr/lib/libipsec.a
1.99 itojun 1250: LIBKADM5CLNT?= ${DESTDIR}/usr/lib/libkadm5clnt.a
1251: LIBKADM5SRV?= ${DESTDIR}/usr/lib/libkadm5srv.a
1252: LIBKAFS?= ${DESTDIR}/usr/lib/libkafs.a
1253: LIBKRB5?= ${DESTDIR}/usr/lib/libkrb5.a
1.21 christos 1254: LIBKVM?= ${DESTDIR}/usr/lib/libkvm.a
1255: LIBL?= ${DESTDIR}/usr/lib/libl.a
1.208 lukem 1256: LIBLBER?= ${DESTDIR}/usr/lib/liblber.a
1257: LIBLDAP?= ${DESTDIR}/usr/lib/libldap.a
1.209 lukem 1258: LIBLDAP_R?= ${DESTDIR}/usr/lib/libldap_r.a
1.21 christos 1259: LIBM?= ${DESTDIR}/usr/lib/libm.a
1.53 blymn 1260: LIBMENU?= ${DESTDIR}/usr/lib/libmenu.a
1.99 itojun 1261: LIBOBJC?= ${DESTDIR}/usr/lib/libobjc.a
1262: LIBOSSAUDIO?= ${DESTDIR}/usr/lib/libossaudio.a
1.159 lukem 1263: LIBPAM?= ${DESTDIR}/usr/lib/libpam.a
1.21 christos 1264: LIBPCAP?= ${DESTDIR}/usr/lib/libpcap.a
1.99 itojun 1265: LIBPCI?= ${DESTDIR}/usr/lib/libpci.a
1.100 thorpej 1266: LIBPMC?= ${DESTDIR}/usr/lib/libpmc.a
1.26 kleink 1267: LIBPOSIX?= ${DESTDIR}/usr/lib/libposix.a
1.110 thorpej 1268: LIBPTHREAD?= ${DESTDIR}/usr/lib/libpthread.a
1269: LIBPTHREAD_DBG?=${DESTDIR}/usr/lib/libpthread_dbg.a
1.163 christos 1270: LIBRADIUS?= ${DESTDIR}/usr/lib/libradius.a
1.21 christos 1271: LIBRESOLV?= ${DESTDIR}/usr/lib/libresolv.a
1.99 itojun 1272: LIBRMT?= ${DESTDIR}/usr/lib/librmt.a
1273: LIBROKEN?= ${DESTDIR}/usr/lib/libroken.a
1.21 christos 1274: LIBRPCSVC?= ${DESTDIR}/usr/lib/librpcsvc.a
1.110 thorpej 1275: LIBRT?= ${DESTDIR}/usr/lib/librt.a
1.180 gdamore 1276: LIBSDP?= ${DESTDIR}/usr/lib/libsdp.a
1.21 christos 1277: LIBSKEY?= ${DESTDIR}/usr/lib/libskey.a
1.140 lukem 1278: LIBSL?= ${DESTDIR}/usr/lib/libsl.a
1.99 itojun 1279: LIBSS?= ${DESTDIR}/usr/lib/libss.a
1.159 lukem 1280: LIBSSH?= ${DESTDIR}/usr/lib/libssh.a
1.99 itojun 1281: LIBSSL?= ${DESTDIR}/usr/lib/libssl.a
1.187 christos 1282: LIBSSP?= ${DESTDIR}/usr/lib/libssp.a
1.140 lukem 1283: LIBSTDCXX?= ${DESTDIR}/usr/lib/libstdc++.a
1.186 mrg 1284: LIBSUPCXX?= ${DESTDIR}/usr/lib/libsupc++.a
1.21 christos 1285: LIBTERMCAP?= ${DESTDIR}/usr/lib/libtermcap.a
1.99 itojun 1286: LIBUSBHID?= ${DESTDIR}/usr/lib/libusbhid.a
1.21 christos 1287: LIBUTIL?= ${DESTDIR}/usr/lib/libutil.a
1288: LIBWRAP?= ${DESTDIR}/usr/lib/libwrap.a
1289: LIBY?= ${DESTDIR}/usr/lib/liby.a
1290: LIBZ?= ${DESTDIR}/usr/lib/libz.a
1.1 cgd 1291:
1292: SHAREDSTRINGS If defined, a new .c.o rule is used that results in shared
1.12 christos 1293: strings, using xstr(1). Note that this will not work with
1294: parallel makes.
1.1 cgd 1295:
1.59 jlam 1296: STRIPFLAG The flag passed to the install program to cause the binary
1.1 cgd 1297: to be stripped.
1298:
1299: SUBDIR A list of subdirectories that should be built as well.
1300: Each of the targets will execute the same target in the
1301: subdirectories.
1302:
1.21 christos 1303: SCRIPTS A list of interpreter scripts [file.{sh,csh,pl,awk,...}].
1304: These are installed exactly like programs.
1305:
1.166 rtr 1306: SCRIPTSDIR The location to install the scripts. Each script can be
1307: installed to a separate path by setting SCRIPTSDIR_<script>.
1308:
1.21 christos 1309: SCRIPTSNAME The name that the above program will be installed as, if
1310: different from ${SCRIPTS}. These can be further specialized
1311: by setting SCRIPTSNAME_<script>.
1312:
1.124 lukem 1313: FILES See description of <bsd.files.mk>.
1.21 christos 1314:
1.106 thorpej 1315: SHLINKDIR Target directory for shared linker. See description of
1316: <bsd.own.mk> for additional information about this variable.
1.130 lukem 1317:
1.1 cgd 1318: The include file <bsd.prog.mk> includes the file named "../Makefile.inc"
1319: if it exists, as well as the include file <bsd.man.mk>.
1320:
1321: Some simple examples:
1322:
1323: To build foo from foo.c with a manual page foo.1, use:
1324:
1325: PROG= foo
1326:
1327: .include <bsd.prog.mk>
1328:
1329: To build foo from foo.c with a manual page foo.2, add the line:
1330:
1.9 cgd 1331: MAN= foo.2
1.1 cgd 1332:
1333: If foo does not have a manual page at all, add the line:
1334:
1.75 agc 1335: MKMAN= no
1.1 cgd 1336:
1337: If foo has multiple source files, add the line:
1338:
1339: SRCS= a.c b.c c.c d.c
1340:
1341:
1.118 lukem 1342: =-=-=-=-= bsd.rpc.mk =-=-=-=-=
1343:
1344: The include file <bsd.rpc.mk> contains a makefile fragment used to
1345: construct source files built by rpcgen.
1.72 sommerfe 1346:
1.118 lukem 1347: The following macros may be defined in makefiles which include
1348: <bsd.rpc.mk> in order to control which files get built and how they
1349: are to be built:
1.21 christos 1350:
1.118 lukem 1351: RPC_INCS: construct .h file from .x file
1.120 lukem 1352: RPC_XDRFILES: construct _xdr.c from .x file
1.118 lukem 1353: (for marshalling/unmarshalling data types)
1354: RPC_SVCFILES: construct _svc.c from .x file
1355: (server-side stubs)
1356: RPC_SVCFLAGS: Additional flags passed to builds of RPC_SVCFILES.
1.21 christos 1357:
1.118 lukem 1358: RPC_XDIR: Directory containing .x/.h files
1.23 christos 1359:
1360:
1.118 lukem 1361: =-=-=-=-= bsd.shlib.mk =-=-=-=-=
1.21 christos 1362:
1.118 lukem 1363: The include file <bsd.shlib.mk> computes parameters for shared library
1364: installation and use. It defines no targets. <bsd.own.mk> MUST be
1.134 lukem 1365: included before <bsd.shlib.mk>.
1.21 christos 1366:
1.134 lukem 1367: <bsd.own.mk> sets the following variables, if they are not already defined
1.118 lukem 1368: (defaults are in brackets):
1.21 christos 1369:
1.142 lukem 1370: SHLIBINSTALLDIR If ${USE_SHLIBDIR} is not "no", use ${SHLIBINSTALLDIR}
1371: instead of ${LIBDIR} as the base path for shared library
1372: installation. [/lib]
1.21 christos 1373:
1.118 lukem 1374: SHLIBDIR The path to USE_SHLIBDIR shared libraries to use when building
1375: a program. [/lib for programs in /bin and /sbin, /usr/lib
1376: for all others.]
1.81 wiz 1377:
1.142 lukem 1378: _LIBSODIR Set to ${SHLIBINSTALLDIR} if ${USE_SHLIBDIR} is not "no",
1.118 lukem 1379: otherwise set to ${LIBDIR}
1.81 wiz 1380:
1.118 lukem 1381: SHLINKINSTALLDIR Base path for shared linker. [/libexec]
1.39 cgd 1382:
1.118 lukem 1383: SHLINKDIR Path to use for shared linker when building a program.
1384: [/libexec for programs in /bin and /sbin, /usr/libexec for
1385: all others.]
1.39 cgd 1386:
1.13 christos 1387:
1.118 lukem 1388: =-=-=-=-= bsd.subdir.mk =-=-=-=-=
1.13 christos 1389:
1.118 lukem 1390: The include file <bsd.subdir.mk> contains the default targets for building
1.120 lukem 1391: subdirectories. It has the same eight targets as <bsd.prog.mk>: all,
1.233 apb 1392: clean, cleandir, depend, includes, install, lint, and tags. It uses the
1393: following variables:
1394:
1395: NOSUBDIR If this variable is defined, then the SUBDIR variable
1396: will be ignored and subdirectories will not be processed.
1397:
1398: SUBDIR For all of the directories listed in ${SUBDIR}, the
1399: specified directory will be visited and the target made.
1400: There is also a default target which allows the command
1401: "make subdir" where subdir is any directory listed in
1402: ${SUBDIR}.
1403:
1404: As a special case, the use of a token .WAIT as an
1405: entry in SUBDIR acts as a synchronization barrier
1406: when multiple make jobs are run; subdirs before the
1407: .WAIT must complete before any subdirs after .WAIT are
1408: started. See make(1) for some caveats on use of .WAIT
1409: and other special sources.
1.47 tv 1410:
1411:
1.118 lukem 1412: =-=-=-=-= bsd.sys.mk =-=-=-=-=
1.47 tv 1413:
1.13 christos 1414: The include file <bsd.sys.mk> is used by <bsd.prog.mk> and
1.14 cgd 1415: <bsd.lib.mk>. It contains overrides that are used when building
1.133 lukem 1416: the NetBSD source tree.
1417:
1418: The following variables control how various files are compiled/built.
1.142 lukem 1419: (Note that these may be overridden in <bsd.own.mk> if USETOOLS == "yes"):
1.133 lukem 1420:
1421: AR Create, modify, and extract from archives. [ar]
1422:
1423: ARFLAGS Options to ${AR}. [rl]
1424:
1.151 lukem 1425: AS Assembler. [as]
1426:
1.211 lukem 1427: AFLAGS Options to ${CC} when compiling or linking .s or .S
1428: assembly source files. []
1.151 lukem 1429:
1.217 joerg 1430: BUILDSEED GCC uses random numbers when compiling C++ code.
1431: If this option is present, seed the random number
1432: generator based on the value, source file names and
1433: the output file name to make builds more deterministic.
1434: Additional information is available in the GCC
1435: documentation of -frandom-seed.
1436:
1.133 lukem 1437: CC C compiler. [cc]
1438:
1439: CFLAGS Options to ${CC}. [Usually -O or -O2]
1440:
1441: CPP C Pre-Processor. [cpp]
1442:
1443: CPPFLAGS Options to ${CPP}. []
1444:
1.151 lukem 1445: CPUFLAGS Optimization flags for ${CC}. []
1.133 lukem 1446:
1447: CXX C++ compiler. [c++]
1448:
1449: CXXFLAGS Options to ${CXX}. [${CFLAGS}]
1450:
1451: ELF2ECOFF Convert ELF-format executable to ECOFF. [elf2ecoff]
1452:
1453: FC Fortran compiler. [f77]
1454:
1455: FFLAGS Options to {$FC}. [-O]
1456:
1.235 apb 1457: HOST_SH Shell. This must be an absolute path, because it may be
1458: substituted into "#!" lines in scripts. [/bin/sh]
1459:
1.133 lukem 1460: INSTALL install(1) command. [install]
1461:
1462: LEX Lexical analyzer. [lex]
1463:
1464: LFLAGS Options to ${LEX}. []
1465:
1.145 jwise 1466: LPREFIX Symbol prefix for ${LEX} (see -P option in lex(1)) [yy]
1467:
1.133 lukem 1468: LD Linker. [ld]
1469:
1.178 lukem 1470: LDFLAGS Options to ${CC} during the link process. []
1.133 lukem 1471:
1472: LINT C program verifier. [lint]
1473:
1.173 perry 1474: LINTFLAGS Options to ${LINT}. [-chapbxzFS]
1.133 lukem 1475:
1476: LORDER List dependencies for object files. [lorder]
1477:
1478: MAKE make(1). [make]
1479:
1480: MKDEP Construct Makefile dependency list. [mkdep]
1481:
1482: NM List symbols from object files. [nm]
1483:
1484: PC Pascal compiler. [pc] (Not present)
1485:
1486: PFLAGS Options to ${PC}. []
1487:
1488: OBJC Objective C compiler. [${CC}]
1489:
1490: OBJCFLAGS Options to ${OBJC}. [${CFLAGS}]
1491:
1492: OBJCOPY Copy and translate object files. [objcopy]
1493:
1.168 riz 1494: OBJDUMP Display information from object files. [objdump]
1495:
1.133 lukem 1496: RANLIB Generate index to archive. [ranlib]
1497:
1498: SIZE List section sizes and total size. [size]
1499:
1500: STRIP Discard symbols from object files. [strip]
1501:
1502: TSORT Topological sort of a directed graph. [tsort -q]
1503:
1504: YACC LALR(1) parser generator. [yacc]
1505:
1506: YFLAGS Options to ${YACC}. []
1507:
1508: YHEADER If defined, add "-d" to YFLAGS, and add dependencies
1509: from <file>.y to <file>.h and <file>.c, and add
1510: <foo>.h to CLEANFILES.
1511:
1512: YPREFIX If defined, add "-p ${YPREFIX}" to YFLAGS.
1513:
1.116 lukem 1514:
1.69 sommerfe 1515: Other variables of note (incomplete list):
1516:
1.213 lukem 1517: NOGCCERROR If defined, prevents passing certain ${CFLAGS} to GCC
1518: that cause warnings to be fatal, such as:
1519: -Werror -Wa,--fatal-warnings
1520: (The latter being for as(1).)
1.212 lukem 1521:
1522: WARNS Crank up GCC warning options; the distinct levels are:
1.82 lukem 1523: WARNS=1
1524: WARNS=2
1525: WARNS=3
1.164 matt 1526: WARNS=4
1.69 sommerfe 1527:
1.144 lukem 1528: =-=-=-=-= bsd.x11.mk =-=-=-=-=
1529:
1530: The include file <bsd.x11.mk> contains parameters and targets for
1.221 mrg 1531: cross-building X11 from ${X11SRCDIR.xc} / ${X11MITSRCDIR.*}.
1.144 lukem 1532: It should be included after the general Makefile contents but before
1533: the include files such as <bsd.prog.mk> and <bsd.lib.mk>.
1534:
1535: It provides the following targets:
1536: .man.1 .man.3 .man.4 .man.5 .man.7:
1537: If ${MAN} or ${PROG} is set and ${MKMAN} != "no",
1.221 mrg 1538: these rules convert from X11's manual page source
1.144 lukem 1539: into an mdoc.old source file.
1540: cleanx11man:
1541: Clean up the mdoc.old files generated by the above.
1542:
1543: It sets the following variables:
1544:
1545: BINDIR Set to ${X11BINDIR}.
1546: To override, define after including <bsd.x11.mk>
1547:
1548: LIBDIR Set to ${X11USRLIBDIR}.
1549: To override, define after including <bsd.x11.mk>
1550:
1551: MANDIR Set to ${X11MANDIR}.
1552: To override, define after including <bsd.x11.mk>
1553:
1554: CPPFLAGS Appended with definitions to include from
1555: ${DESTDIR}${X11INCDIR}
1556:
1557: LDFLAGS Appended with definitions to link from
1558: ${DESTDIR}${X11USRLIBDIR}
1559:
1.221 mrg 1560: X11FLAGS.CONNECTION Equivalent to X11's CONNECTION_FLAGS.
1.144 lukem 1561:
1.221 mrg 1562: X11FLAGS.EXTENSION Equivalent to X11's EXT_DEFINES.
1.144 lukem 1563:
1.221 mrg 1564: X11FLAGS.LOADABLE Equivalent to X11's LOADABLE.
1.144 lukem 1565:
1.221 mrg 1566: X11FLAGS.OS_DEFINES Equivalent to X11's OS_DEFINES.
1.144 lukem 1567:
1.221 mrg 1568: X11FLAGS.SERVER Equivalent to X11's ServerDefines.
1.144 lukem 1569:
1.221 mrg 1570: X11FLAGS.THREADLIB Equivalent to X11's THREADS_DEFINES for libraries.
1.144 lukem 1571:
1.221 mrg 1572: X11FLAGS.THREADS Equivalent to X11's THREADS_DEFINES.
1.144 lukem 1573:
1574: X11FLAGS.VERSION cpp(1) definitions of OSMAJORVERSION and OSMINORVERSION.
1575:
1.221 mrg 1576: X11FLAGS.DIX Equivalent to X11's DIX_DEFINES.
1577:
1.144 lukem 1578: X11TOOL_UNXCOMM Commandline to convert `XCOMM' comments to `#'
1579:
1580: It uses the following variables:
1581:
1582: APPDEFS List of app-default files to install.
1583:
1584: CPPSCRIPTS List of files/scripts to run through cpp(1)
1585: and then ${X11TOOL_UNXCOMM}. The source files
1586: have a `.cpp' suffix, the generated files do not.
1587:
1588: CPPSCRIPTFLAGS Additional flags to cpp(1) when building CPPSCRIPTS.
1589:
1590: CPPSCRIPTFLAGS_<fn> Additional flags to cpp(1) when building CPPSCRIPT <fn>.
1591:
1592:
1.30 agc 1593: =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
CVSweb <webmaster@jp.NetBSD.org>