diff --git a/src/Mamfile b/src/Mamfile index 4cdefcf22898..7e9ee1000c5e 100644 --- a/src/Mamfile +++ b/src/Mamfile @@ -1,12 +1,10 @@ note * -note * This build file is in the Make Abstract Machine (MAM) language. It was -note * first generated by nmake, but in the ksh 93u+m distribution we maintain -note * it manually because nmake had too many problems to keep using. The -note * Mamfiles are processed by mamake (src/cmd/INIT/mamake.c); we added -note * indentation to improve readability. The language is documented in -note * src/cmd/INIT/README-mamake.md. +note * This build script is in an extended Make Abstract Machine (MAM) +note * language. Documentation is at: src/cmd/INIT/README-mamake.md note * -setv MAMAKE_STRICT + +setv MAMAKE_STRICT 2 + make test virtual make test_announce virtual exec - : testing KornShell $KSH_VERSION : diff --git a/src/cmd/INIT/Mamfile b/src/cmd/INIT/Mamfile index 45c9fdf5f6b1..d723e5733d24 100644 --- a/src/cmd/INIT/Mamfile +++ b/src/cmd/INIT/Mamfile @@ -1,98 +1,48 @@ note * -note * This build file is in the Make Abstract Machine (MAM) language. It was -note * first generated by nmake, but in the ksh 93u+m distribution we maintain -note * it manually because nmake had too many problems to keep using. The -note * Mamfiles are processed by mamake (src/cmd/INIT/mamake.c); we added -note * indentation to improve readability. The language is documented in -note * src/cmd/INIT/README-mamake.md. +note * This build script is in an extended Make Abstract Machine (MAM) +note * language. Documentation is at: src/cmd/INIT/README-mamake.md note * -setv MAMAKE_STRICT + +setv MAMAKE_STRICT 2 setv INSTALLROOT ../../.. -setv PACKAGEROOT ../../../../.. setv CC cc -setv mam_cc_FLAGS -setv CCFLAGS ${-debug-symbols?1?${mam_cc_DEBUG} -D_BLD_DEBUG?${mam_cc_OPTIMIZE}?} -setv CCLDFLAGS ${-strip-symbols?1?${mam_cc_LD_STRIP}??} -setv LDFLAGS + note * note * initialization for the build system note * + make install virtual - make iffe - prev iffe.sh - exec - cp ${<} ${@} && chmod u+w,+x ${@} - done - make mktest - prev mktest.sh - exec - cp ${<} ${@} && chmod u+w,+x ${@} - done - make regress - prev regress.sh - exec - cp ${<} ${@} && chmod u+w,+x ${@} - done - make crossexec - prev crossexec.sh - exec - cp ${<} ${@} && chmod u+w,+x ${@} - done - make mkreq - prev mkreq.sh - exec - cp ${<} ${@} && chmod u+w,+x ${@} - done - make mkreq-maplib - prev mkreq-maplib.sh - exec - cp ${<} ${@} && chmod u+w,+x ${@} - done - make mprobe - prev mprobe.sh - exec - cp ${<} ${@} && chmod u+w,+x ${@} - done - make probe - make probe.sh - prev C+probe - prev make.probe - exec - cat ${^} > ${@} + loop DIR bin include/ast lib/lib lib/probe/C/make lib/probe/C/pp lib/probe/C/mam + make ${INSTALLROOT}/${DIR} + exec - mkdir -p ${@} done - exec - cp ${<} ${@} && chmod u+w,+x ${@} - done - make ${INSTALLROOT}/bin - exec - mkdir -p ${@} done - make ${INSTALLROOT}/bin/iffe - prev iffe - exec - cp -f ${<} ${@} - done - make ${INSTALLROOT}/bin/mkreq - prev mkreq - exec - cp -f ${<} ${@} - done - make ${INSTALLROOT}/bin/mktest - prev mktest - exec - cp -f ${<} ${@} - done - make ${INSTALLROOT}/bin/regress - prev regress - exec - cp -f ${<} ${@} - done - make ${PACKAGEROOT}/bin - exec - mkdir -p ${PACKAGEROOT}/bin - done - make ${INSTALLROOT}/bin/crossexec - prev crossexec - exec - cp -f ${<} ${@} - done - make ${INSTALLROOT}/bin/proto - note * - note * proto(1) has been removed, but install a backward compatibility stub - note * that allows old Mamfiles containing proto commands to keep working. - note * - prev proto.sh - exec - cp ${<} ${@} && chmod u+w,+x ${@} + + note * + note * install helper scripts + note * + + make probe.sh + prev C+probe + prev make.probe + exec - cat ${^} > ${@} + done + loop SCRIPT probe iffe mktest regress crossexec mkreq mkreq-maplib mprobe proto + make ${INSTALLROOT}/bin/${SCRIPT} + make ${SCRIPT} + prev ${@}.sh + exec - cp ${<} ${@} && ${STDCHMOD} u+w,+x ${@} + done + exec - cp -f ${<} ${@} + done done + note * note * ksh93 function search on PATH note * ksh93 builtin command library -lcmd note * ksh93 ld library path search on PATH note * + make ${INSTALLROOT}/bin/.paths exec - if test ! -f ${INSTALLROOT}/bin/.paths -o -w ${INSTALLROOT}/bin/.paths exec - then N=' @@ -225,25 +175,15 @@ make install virtual exec - esac exec - fi done + note * note * probe initialization note * - make ${INSTALLROOT}/lib/probe/C - exec - mkdir -p ${@} - done + make ${INSTALLROOT}/lib/probe/C/probe prev C+probe exec - cp -f ${<} ${@} done - make ${INSTALLROOT}/lib/probe/C/make - exec - mkdir -p ${@} - done - make ${INSTALLROOT}/lib/probe/C/pp - exec - mkdir -p ${@} - done - make ${INSTALLROOT}/lib/probe/C/mam - exec - mkdir -p ${@} - done make ${INSTALLROOT}/lib/probe/C/mam/probe prev mprobe exec - cp -f ${<} ${@} @@ -256,12 +196,6 @@ make install virtual prev probe exec - cp -f ${<} ${@} done - make ${INSTALLROOT}/include/ast - exec - mkdir -p ${@} - done - make ${INSTALLROOT}/lib/lib - exec - mkdir -p ${@} - done note * note * check if -ldl is required note * @@ -274,8 +208,8 @@ make install virtual make ${INSTALLROOT}/lib/lib/dl make dl.req prev dl.c + exec - mkreq-maplib ${CC} : dl : ${^} : dl prev mkreq-maplib - exec - mkreq-maplib ${CC} : dl : dl.c : dl done exec - cp -f ${<} ${@} done @@ -285,8 +219,8 @@ make install virtual make ${INSTALLROOT}/lib/lib/iconv make iconv.req prev iconv.c + exec - mkreq-maplib ${CC} : iconv : ${^} : iconv prev mkreq-maplib - exec - mkreq-maplib ${CC} : iconv : iconv.c : iconv done exec - cp -f ${<} ${@} done @@ -294,8 +228,8 @@ make install virtual make w.req prev w.c prev w2.c + exec - mkreq-maplib ${CC} : w : ${^} : w prev mkreq-maplib - exec - mkreq-maplib ${CC} : w : w.c w2.c : w done exec - cp -f ${<} ${@} done @@ -305,8 +239,8 @@ make install virtual make ${INSTALLROOT}/lib/lib/intl make intl.req prev intl.c + exec - mkreq-maplib ${CC} : intl : ${^} : intl prev mkreq-maplib - exec - mkreq-maplib ${CC} : intl : intl.c : intl done exec - cp -f ${<} ${@} done @@ -318,16 +252,16 @@ make install virtual prev m4.c prev m5.c prev m6.c + exec - mkreq-maplib ${CC} : m : ${^} : m prev mkreq-maplib - exec - mkreq-maplib ${CC} : m : m.c m2.c m3.c m4.c m5.c m6.c : m done exec - cp -f ${<} ${@} done make ${INSTALLROOT}/lib/lib/nsl make nsl.req prev nsl.c + exec - mkreq-maplib ${CC} : nsl : ${^} : nsl prev mkreq-maplib - exec - mkreq-maplib ${CC} : nsl : nsl.c : nsl done exec - cp -f ${<} ${@} done @@ -341,8 +275,8 @@ make install virtual make socket.req prev socket.c prev nsl.c + exec - mkreq-maplib ${CC} : socket : ${^} : socket prev mkreq-maplib - exec - mkreq-maplib ${CC} : socket : socket.c nsl.c : socket done exec - cp -f ${<} ${@} done @@ -364,20 +298,21 @@ make install virtual prev gdbm.c prev gdbm1.c prev gdbm2.c + exec - mkreq-maplib ${CC} : dbm : ${^} : db gdbm_compat gdbm ndbm dbm prev mkreq-maplib - exec - mkreq-maplib ${CC} : dbm : db.c gdbm.c gdbm1.c gdbm2.c : db gdbm_compat gdbm ndbm dbm done exec - cp -f ${<} ${@} done done install + make test dontcare virtual make test.iffe virtual prev iffe.tst - exec - regress --verbose ${<} iffe + exec - regress iffe.tst iffe done make test.mamake virtual prev mamake.tst exec - : testing non-libast mamake at $PWD/mamake : - exec - regress --verbose ${<} mamake + exec - regress mamake.tst mamake done done test diff --git a/src/cmd/INIT/README-mamake.md b/src/cmd/INIT/README-mamake.md index affc5ab54938..a406896924ae 100644 --- a/src/cmd/INIT/README-mamake.md +++ b/src/cmd/INIT/README-mamake.md @@ -1,7 +1,7 @@ -## mamake and the MAM language ## +# mamake and the MAM language # MAM (Make Abstract Machine) is a simple rule-based make language -that is implemented in just six four-letter commands and five attributes, +that is implemented in just seven four-letter commands and five attributes, yet allows unlimited flexibility as it can execute arbitrary shell code. The program implementing MAM, `mamake`, is a portable C90 program written in a single file, `mamake.c`. @@ -10,45 +10,130 @@ or other programs using this build system, to be built using only a standard C compiler and utilities installation without any other dependencies or complications. -MAM was designed by Glenn Fowler at AT&T. +MAM was originally designed by Glenn Fowler at AT&T and intended as an +abstraction layer for `make` implementations such as AT&T `nmake`. The [original documentation](https://web.archive.org/web/20041227143022/http://www2.research.att.com/~gsf/mam/mam.html) -for MAM specified a more extensive language than was actually implemented in `mamake.c`, -while the `ignore` attribute is not documented there. -This file documents the MAM implementation that we are actually using. - -`mamake` processes make files called `Mamfile`. -These were originally generated by a complex AT&T make system called `nmake`. -The intention was for `mamake` to process generated Mamfiles only -and not for it to replace `make`. -Yet, we are using it as our `make` in the ksh 93u+m distribution. -`nmake` was slow, brittle, and did not work on some modern systems, e.g. macOS. -It was not worth fixing because it is about as complex as ksh itself -- -whereas `mamake` is simple and portable, and offers all the same flexibility. - -Compared to the 2012-08-01 AT&T distribution, -ksh 93u+m made a number of changes to `mamake` that make it easier to maintain Mamfiles by hand: -* Introduced a strict mode that activates some backward incompatible changes and deprecation warnings. -* All Mamfiles have been indented for legibility. (See `bin/Mamfile_indent` in the distribution.) -* Indentation and word separators may use any whitespace (e.g. tabs), not only spaces. -* Unrecognized commands and rule attributes throw an error instead of being silently ignored. -* Fixed some crashing bugs and memory leaks. -* The `silent` and `ignore` command prefixes for shell actions are processed internally - for backward compatibility, except in the strict mode. -* The `prev` command may now be used without a prior `make`...`done` to declare a simple - prerequisite, provided the strict mode is activated. -* The `notrace` attribute was added to disable xtrace for a rule's shell action. -* In the strict mode, appending attributes to the `done` command - produces a deprecation warning; please append them to `make` instead. -* Repeating the rule name in the `done` commnand is now optional so that - a simple `done` also works to terminate the current rule. -* The automatic variables `${@}`, `${<}`, `${^}` and `${?}` have been added. +for MAM specified a more extensive and slightly different language +than was actually implemented in `mamake.c`. +This file documents the MAM implementation that is actually in use. + +Since fixing and maintaining AT&T `nmake` proved impractical, `mamake` is +used here as a full `make` replacement, gradually adding some extensions to +the language to facilitate human maintenance of the `Mamfile`s. + +## Table of contents ## + +* [General overview of the MAM language](#user-content-general-overview-of-the-mam-language) + * [Strict and legacy modes](#user-content-strict-and-legacy-modes) +* [MAM variables](#user-content-mam-variables) + * [Special expansion syntax](#user-content-special-expansion-syntax) + * [Automatic variables](#user-content-automatic-variables) +* [Commands](#user-content-commands) + * [Comments](#user-content-comments) + * [Rules](#user-content-rules) + * [Referencing prerequisites or previously defined rules](#user-content-referencing-prerequisites-or-previously-defined-rules) + * [Setting MAM variables](#user-content-setting-mam-variables) + * [Shell actions](#user-content-shell-actions) + * [Viewpathing](#user-content-viewpathing) + * [Execution](#user-content-execution) + * [Strict level 2+ change](#user-content-strict-level-2-change) + * [Declaring common code for shell actions](#user-content-declaring-common-code-for-shell-actions) + * [Binding libraries](#user-content-binding-libraries) + * […while scanning and sorting leaf directories](#user-content-while-scanning-and-sorting-leaf-directories) + * […while building the current directory](#user-content-while-building-the-current-directory) + * [Repeatedly iterating through a block](#user-content-repeatedly-iterating-through-a-block) +* [Appendix: Main changes from the AT&T version](#user-content-appendix-main-changes-from-the-att-version) + +## General overview of the MAM language ## + +MAM is a simple declarative language, easy to parse for machines and easy to +read for humans, in which targets are defined that correspond to files that +need to be generated or updated, or that are prerequisites. `mamake` reads +build scripts from a file, `Mamfile` by default, from start to finish. As it +encounters `make` *target*…`done` blocks, it ‘makes’ (updates) the *target*s +using the instructions within those blocks. Those instructions may declare +dependencies and/or specify shell command actions. + +If a *target* is specified on the command line, `mamake` will update the +actions contained within that target and ignore the rest. -In addition, the following two simple shell scripts are now provided to aid -in maintaining and modernising Mamfiles: +### Strict and legacy modes ### + +By default, `mamake` remains fully backward compatible with Mamfiles as +originally generated by AT&T `nmake`. If the `MAMAKE_STRICT` variable is +set, some backward incompatible changes and deprecation warnings are +activated to ensure correct operation and to facilitate human maintenance of +the Mamfiles. A numeric value assigned to `MAMAKE_STRICT` indicates the +backward incompatibility level. The empty value is equivalent to level 1. +These are called the "strict levels" and their absence the "legacy mode", +also known as strict level 0. + +Each time backward incompatible changes are introduced to `mamake` that would +break previous Mamfiles, those are made subject to a `MAMAKE_STRICT` value of one +higher than the previous highest one; details of those changes are documented +throughout this file and listed in the appendix below. +This makes it possible to test or backport old code using the current build +system. Current Mamfiles should use the highest strict level available. +The current highest available strict level is **2**. + +## MAM variables ## + +MAM variables are imported from the environment +or set via `setv` (see below). +They are referenced using a `${`...`}` syntax not dissimilar to `sh`(1), +though the braces are *not* optional. +If an undefined variable is expanded and the variable name is valid in `sh`(1) +syntax, the expansion is left in place unexpanded, otherwise it is removed. +At strict level 2 and up, it is left unexpanded even if it is not a valid +`sh`(1) variable name; this allows POSIX shell expansions like `${foo#*bar}`. + +By default, the expansion of MAM variable references is recursive, +i.e., the value may itself contain other variable references. +Beware: there is no reference loop detection; any variable referencing +itself directly or indirectly will cause mamake to crash. +At strict level 2 and up, this (mis)feature is disabled and +variables always expand to their literal values, +and variable references in `setv` only work for previously defined variables. + +Note that, in shell actions (see `exec` below), MAM variables are expanded +before the script ever reaches the shell. Consequently, the use of single +shell quotes `'`…`'` does not stop their expansion as you might expect; +in fact, they ensure that only MAM variable expansion happens, +avoiding any potential conflicts with the shell expansion syntax. + +### Special expansion syntax ### + +In `${`*variable*`?`*str*`?`*x*`?`*y*`?}`, +if the string value of the *variable* is identical to *str* or if *c* is `*`, +then the value *x* is substituted, otherwise *y*. +The *x* and *y* values may result from nested variable references. +The last `?` is optional. + +In `${`*variable*`-`*x*`}`, the value of *variable* is substituted +if it is defined and non-empty, otherwise the value of *x* is substituted. +In `${`*variable*`+`*x*`}`, *x* is substituted if the value of +*variable* is defined and non-empty, otherwise the reference is removed. +Note that, unlike in `sh`(1), no distinction is made between an undefined +variable and a defined variable with an empty value. + +### Automatic variables ### + +The following variables are set and updated automatically. +They are inspired by similar variables in `make` implementations, +but since `mamake` is different, so are these variables. + +`${@}` is the name of the rule currently being made. + +`${<}` is the name of the prerequisite rule (`make`…`done` or `prev`) +that was *last* processed within the current rule. + +`${^}` is a space-separated list of names of all the current rule's +previously processed prerequisites. -* `src/cmd/INIT/utils/Mamfile_indent`: Automatically indent or re-indent a Mamfile. -* `src/cmd/INIT/utils/Mamfile_rm_unused_vars`: Remove unreferenced `setv` variable - definitions from a Mamfile (except `MAMAKE_STRICT`). +`${?}` is a space-separate list of the current rule's previously processed +prerequisites that have been updated by a shell action (see `exec` below) +during the current `mamake` run. Prequisites that were already up to date, +or prerequisites that do not contain a shell action, are not included. ## Commands ## @@ -61,13 +146,6 @@ Unrecognized commands or attributes are an error. The *argument* is a single word. The *operand string* is any arbitrary text until the end of the line. -### Strict and legacy modes ### - -If the `MAMAKE_STRICT` variable is set (`setv MAMAKE_STRICT`), -some backward incompatible changes and deprecation warnings -are activated to facilitate human maintenance of the Mamfiles. -We call this the "strict mode" and its absence the "legacy mode". - ### Comments ### `note` is the comment command and is ignored. @@ -75,8 +153,8 @@ In the legacy mode, `info` and `meta` are also ignored. ### Rules ### -`make` *rule* [ *attribute* ... ] -`done` [ *rule* [ *attribute* ... ] ] +`make` *target* [ *attribute* ... ] +`done` [ *target* ] A `make`...`done` block defines the target rule named *rule* using the other commands described here. Unless the `virtual` attribute is used, *rule* names the pathname of the file generated or referenced by the rule. @@ -106,9 +184,9 @@ declaring a dependency on a prerequisite file, such as a source code file that comes with the distribution or a file generated by a previously run Mamfile. One or more *attribute*s may be specified by appending them to the `make` command. -(They may also be appended to the `done` command; the effect is the same either way. -This is deprecated and produces a warning in the strict mode.) -**Attributes apply to the current rule only and do not propagate down to nested rules.** +(At strict levels \< 2, they may also be appended to the `done` command; the effect +is the same either way. At strict level 1, this produces a deprecation warning.) +Attributes apply to the current rule only and do not propagate down to nested rules. The following *attribute*s are available: * `dontcare`: Marks files that do not need to exist. If the file exists then its last-modified timestamp is checked and propagated, @@ -127,12 +205,14 @@ The following *attribute*s are available: By convention, a virtual rule named `all` makes everything, and a virtual rule named `install` performs installation. -Specifying the following *attribute*s is deprecated -and will produce a warning in the strict mode: +At strict level 1 and up, specifying the following *attribute*s is +deprecated and will produce a warning; at strict level 2 and up, +specifying these is an error. + * `archive`: Ignored. Historically used to mark the generation of an `ar`(1) archive. * `generated`: Marks rules that produce output files generated by a shell action. - The explicit assignment of this attribute is ignored in the strict mode. + The explicit assignment of this attribute is ignored at strict level 1. The `exec` command implicitly assigns this attribute. If a rule has this attribute, other rules dependent on this rule will avoid applying viewpathing based on this rule. @@ -148,52 +228,39 @@ The `prev` command is used in two ways: 1. If *rule* is a previously defined rule, `prev` adds a dependency on that rule to the current rule. This can be used to make a rule a prerequisite of multiple `make`...`done` blocks without repeating the rule. No attributes should be given for this use of `prev`, because the attributes of the referenced rule are used. - Superfluous attributes are an error in the strict mode and ignored in the legacy mode. + Superfluous attributes are an error at strict level >= 1 and ignored in the legacy mode. 2. If *rule* is not a previously defined rule, the following applies. In the legacy mode, `prev` creates an empty dummy *rule* and ignores the *attribute*s; this is for backward compatibility. - In the strict mode, + At strict level 1 and up, `prev` creates a rule that declares a dependency on a prerequisite file named by *rule* in a manner equivalent to an empty `make`...`done` block, - with any *attribute*s given applied to the new rule, and + with the optional *attribute*s applied to the new rule, and a nonexistent prerequisite is an error unless a `virtual` or `dontcare` attribute is given. -### MAM variables ### +### Setting MAM variables ### `setv` *variable* [ *defaultvalue* ] Defines a new MAM *variable*, optionally assigning the initial *defaultvalue*. -If the *defaultvalue* begins and ends with double quotes (`"`), those are discarded. If the variable already has a value, the `setv` command is ignored; assigning a new value is not possible. When `mamake` starts, it imports all environment variables as MAM variables, so any variable's default value can be overridden by exporting an environment variable by its name. -MAM variables are referenced using the sh-style `${`...`}` syntax, though the braces are *not* optional. -Any reference to an undefined variable is silently left unexpanded (and not replaced by the empty string). -Expansion of MAM variable references is recursive, i.e., the value may itself contain other variable references. -Beware: there is no reference loop detection. - -[`TODO`: figure out and document advanced expansion syntax supported by `substitute()` in `mamake.c`] - -#### Automatic variables #### - -The following variables are set and updated automatically. -They are inspired by similar variables in `make` implementations, -but since `mamake` is different, so are these variables. - -`${@}` is the name of the rule currently being made. - -`${<}` is the name of the prerequisite rule (`make`…`done` or `prev`) -that was *last* processed within the current rule. +If the strict level is less than 2 and the *defaultvalue* begins and ends with +double quotes (`"`), those quotes are discarded, +though double quotes elsewhere in the value are not treated specially. +The value is otherwise taken entirely literally. -`${^}` is a space-separated list of names of all the current rule's -previously processed prerequisites. - -`${?}` is a space-separate list of the current rule's previously processed -prerequisites that have been updated by a shell action (see `exec` below) -during the current `mamake` run. Prequisites that were already up to date, -or prerequisites that do not contain a shell action, are not included. +When the *variable* is `CC`, mamake runs the `mamprobe` script +to probe the C compiler for flags and features, +or uses that script's stored results if not outdated. +The results are stored as a series of `setv` commands +in a file in the directory `${INSTALLROOT}/lib/probe/C/mam`, +the file name being a hash of full path to the compiler indicated by `${CC}`. +That results file is then read and included in the current Mamfile +as if it followed the `setv CC` command. ### Shell actions ### @@ -213,22 +280,81 @@ Because variables are expanded when the line is encountered, the value of the automatic variables for any `exec` line depends on the position of the line in the rule. -After MAM variable expansion, viewpathing is applied: each word -(separated by space, tab, newline, `;`, `(`, `)`, `` ` ``, `|`, `&` or `=`) -is searched for in the current rule's dependencies, -and if it matches the name of a non-generated dependency, -it is replaced by the canonical path to it in the source directory. +#### Viewpathing #### + +After MAM variable expansion, *viewpathing* is applied. +The first colon-separated element of `${VPATH}` is considered +the object code directory and the second the source code directory; +viewpathing provides the first with a vew to the second. +Viewpathing applies two transformations. + +The first is prerequisite replacement. +Each word (separated by space, tab, newline, `;`, `(`, `)`, `` ` ``, `|`, `&` or `=`) +is searched for in the current rule's prerequisites, +and if it matches the name of a non-generated prerequisite, +it is replaced by the canonical path to it in the source directory, +ensuring that things like prerequisite headers are found. + +The second is include flag duplication. +After every argument that looks like a compiler include directory path (i.e., +starting with `-I`) with a relative path name (i.e., a directory path that does +*not* start with a `/`), another argument starting with `-I` is inserted with +that path name prefixed by the path to the source directory. This mechanism +ensures that headers are found both in the object directory and in the source +directory. It is processed regardless of the command; for example, it also +works for compiler flags passed to `iffe`(1). + +Note that shell quotes are *not* treated specially. If an argument starting +with `-I` ends in a shell quote without preceding whitespace, that trailing +quote is repeated along with the prefixed path and causes a syntax error. + +#### Execution #### When `mamake` encounters the `done` command, the script is executed by the shell whose path is in the `SHELL` environment variable -or, absent that, by `/bin/sh`. -Before executing the script, a trace header in the following format is added to the log: +or, absent that, by `sh`(1). +Each shell action is run in a new instance of the shell. + +Before executing the script, an empty line followed by a trace header +in the following format is written to standard error: # path/to/Mamfile: startline-endline: rule During script execution, shell action comands are traced using the shell's xtrace option, unless the rule has the `notrace` attribute. +#### Strict level 2+ change #### + +At strict level 2 and up, `mamake` turns off global pathname expansion +(globbing) using `set -f` to make safer MAM variable expansion and shell +field splitting possible; this avoids unexpected pathname expansion if +a value contains `?`, `*` or `[`. +A shell action can override this using `set +f`; +this should only be done for individual commands in a `(`subshell`)`. + +### Declaring common code for shell actions ### + +`shim` `-` *code* + +One or more `shim` commands declare a ‘shim’: a common section of `sh`(1) +code that will be automatically inserted in front of subsequent shell +actions upon execution. Like `exec`, `shim` combines multiple lines of +*code* into one section, with MAM variables expanded at declarzation time and +viewpathing applied at execution time. The effect of `shim` is global. + +One use case is defining a shell function that each shell action can call. +For example, such a function might invoke the compiler with a series of +compiler flags common to all compiler invocations, with other flags added via +arguments to the function, so the common flags do not need to be repeated in +every shell action. + +Only one shim is active at a time, but it can be redefined. Each `shim` +command adds a line to a buffer. Upon executing the next shell action at +`done`, the buffer's contents are copied and the buffer is reset. The next +time a `shim` command is encountered, it starts a new shim from scratch that +affects subsequently executed shell actions. +A single `shim -` deactivates the shim. + ### Binding libraries ### `bind` `-l`*libraryname* [ `dontcare` ] @@ -279,3 +405,59 @@ Any `bind` command whose argument does not start with `-l` is ignored. Note that the `bind` functionality implemented in `mamake.c` is completely different from that described in the original documentation. + +### Repeatedly iterating through a block ### + +`loop` *variable* *word* [ *word* ... ] +`done` + +`loop` reads the lines contained between it and the corresponding `done` +repeatedly with a named *variable* set to each of the *word*s. The lines +are processed as part of the rule containing the loop. +The *variable* is locally scoped to the `loop` block and restored to +its previous state after the loop completes. + +Note that `loop` causes repeated reading and processing of Mamfile lines, +*not* necessarily repeated execution. For instance, a loop can be used to +consolidate repetitive `make`…`done` rules. However, each rule is only made +once and subsequent rules by the same name are skipped over. So it only +makes sense to do this if the contained make target names are modified by +the expansion of the iteration *variable*. + +`loop` requires a seekable input file (i.e.: not a pipe). + +## Appendix: Main changes from the AT&T version ## + +Compared to the original AT&T version, ksh 93u+m made a number of +changes to `mamake` that facilitate correct operation and make it easier to +maintain Mamfiles by hand. The following lists the important changes. +* Introduced the notion of ‘strict mode’ levels that tidy things up by + activating some backward incompatible changes and deprecation warnings. +* Indentation and word separators may use any whitespace (e.g. tabs), not only spaces. +* Fixed a bug that stopped a rule marked `virtual` (not associated with + any file) from being executed if a file by that rule's name exists. +* Unrecognized commands and rule attributes throw an error instead of being silently ignored. +* It has been made optional to repeat the `make` target after `done`. +* The `notrace` attribute was added to disable xtrace for a rule's shell action. +* The automatic variables `${@}`, `${<}`, `${^}` and `${?}` have been added. +* An iteration block command, `loop`…`done`, has been added. +* A command to set common code for shell actions, `shim`, has been added. +* **At strict level 1 and up:** + * Appending attributes to `done` instead of `make` is deprecated + and produces a warning. + * The ignored `archive` and `joint` attributes are deprecated. + * Explicitly specifying the `generated` attribute is deprecated. + * The dummy `info` and `meta` commands are unavailable instead of ignored. + * The `prev` command may be used instead of an empty `make`...`done` + block to declare a simple prerequisite with possible attributes. + * When `prev` references a previously processed target, + attributes are an error instead of being ignored. + * The legacy `silent` and `ignore` command prefixes are unavailable. +* **At strict level 2 and up:** + * Appending attributes to `done` instead of `make` is an error. + * The `archive` and `joint` attributes are unavailable. + * Explicitly specifying the `generated` attribute is an error. + * All variable references are expanded to their literal values + without scanning the values for recursive variable references. + * `setv` does not remove leading and trailing `"` from the value. + * Shell actions have pathname expansion (globbing) disabled by default. diff --git a/src/cmd/INIT/mamake.c b/src/cmd/INIT/mamake.c index 06cf86f51585..1a47fa53f954 100644 --- a/src/cmd/INIT/mamake.c +++ b/src/cmd/INIT/mamake.c @@ -38,6 +38,7 @@ static char id[] = "\n@(#)$Id: mamake (ksh 93u+m) " RELEASE_DATE " $\0\n"; static const char usage[] = "[-?\n@(#)$Id: mamake (ksh 93u+m) " RELEASE_DATE " $\n]" "[-author?Glenn Fowler ]" +"[-author?Martijn Dekker ]" "[-author?Contributors to https://github.com/ksh93/ksh]" "[-copyright?(c) 1994-2013 AT&T Intellectual Property]" "[-copyright?(c) 2020-2024 Contributors to ksh 93u+m]" @@ -300,9 +301,12 @@ static struct /* program state */ Stream_t streams[4]; /* input file stream stack */ Stream_t* sp; /* input stream stack pointer */ + + char* shim; /* finished shim */ + Buf_t* shim_buf; /* shim being built up */ } state; -static unsigned long make(Rule_t*); +static unsigned long make(Rule_t*, int, unsigned long, Buf_t**); static char mamfile[] = "Mamfile"; static char sh[] = "/bin/sh"; @@ -857,41 +861,79 @@ cond(char* s) static void substitute(Buf_t* buf, char* s) { - char* t; - char* v; - char* q; - char* b; - int c; - int n; - int a = 0; - int i; + char *t, *q; + char *v; /* variable's value */ + char *b; /* beginning: the literal expansion starting at $ */ + int c, n; + int found_AR = 0; /* 1 if ${AR} encountered */ + int valid_sh_name; /* if set, the variable name is valid in sh(1) */ while (c = *s++) { if (c == '$' && *s == '{') { b = s - 1; - i = 1; - for (n = *(t = ++s) == '-' ? 0 : '-'; (c = *s) && (c != '?' || s == t) && c != '+' && c != n && c != ':' && c != '=' && c != '[' && c != '}'; s++) + t = ++s; + n = *t == '-' ? 0 : '-'; + valid_sh_name = 1; + while ( (c = *s) && + (c != '?' || s == t) && + c != '+' && + c != n && + c != ':' && + c != '=' && + c != '[' && + c != '}' ) + { + s++; if (!isalnum(c) && c != '_') - i = 0; + valid_sh_name = 0; + } + + /* Zero-terminate the variable name */ + *s = 0; + + /* Keep unexpanded if it looks like a ksh array expansion ${var[subscript]} */ + if (c == '[') { append(buf, b); *s = c; continue; } + + /* Obtain value */ + v = (char*)search(state.vars, t, NULL); - if ((c == ':' || c == '=') && (!v || c == ':' && !*v)) + + /* + * In strict >= 2, always keep ${foo:-bar}, ${foo:+bar}, ${foo:=bar}, ${foo=bar} + * unexpanded for passing on to shell scripts in 'exec'. + * + * Before strict==2, this depends on whether the MAM variable value is nonexistent + * or (if ':') empty, which does not make a lot of sense, as that is not valid MAM + * expansion syntax and the feature is not actually implemented properly at all. + */ + + if ((c == ':' || c == '=') && (state.strict >= 2 || !v || c == ':' && !*v)) { append(buf, b); *s = c; continue; } + + /* A really absurd hack, see check for found_AR further below */ + if (t[0] == 'A' && t[1] == 'R' && t[2] == 0) - a = 1; + found_AR = 1; + + /* Un-terminate the variable name */ + *s = c; + + /* Find the ending '}', dealing with nesting */ + if (c && c != '}') { n = 1; @@ -957,9 +999,23 @@ substitute(Buf_t* buf, char* s) case '=': case '}': if (v) - { - if (a && t[0] == 'm' && t[1] == 'a' && t[2] == 'm' && t[3] == '_' && t[4] == 'l' && t[5] == 'i' && t[6] == 'b') - { + { /* + * Perform the expansion: append the value of the variable to the buffer. + */ + if (found_AR && strncmp(t, "mam_lib", 7) == 0 && state.strict < 2) + { /* + * Absurd AT&T hack from 2007. The relevant src/cmd/INIT/RELEASE entry: + * 07-02-26 mamake.c: expand first of ${mam_lib*} for ${AR} + * i.e.: after ${AR}, expand any ${mam_lib*} to only first word of its value. + * + * In the entire AST repository's history, this has only been used once, in + * libcmd/Mamfile, to extract sumlib.o from libsum.a (to add it to libcmd.a): + * + * exec - ${AR} x ${mam_libsum} sumlib.o + * + * Taking the first word from ${mam_libsum} can very easily be handled + * by the shell script instead, so this is disabled at strict level 2+. + */ for (t = v; isspace(*t); t++); for (; *t && !isspace(*t); t++); if (*t) @@ -970,10 +1026,18 @@ substitute(Buf_t* buf, char* s) if (t) *t = ' '; } - else + else if (state.strict < 2) + { + /* Recursively expand variable references in values (no loop detection)! */ substitute(buf, v); + } + else + { + /* Sanity at long last. Variables expand to their literal values. */ + append(buf, v); + } } - else if (i) + else if (valid_sh_name || state.strict >= 2) { c = *s; *s = 0; @@ -1225,7 +1289,11 @@ input(void) if (!state.sp) report(3, "no input file stream", NULL, 0); if (!fgets(input, sizeof(input), state.sp->fp)) + { + if (ferror(state.sp->fp)) + report(3, "read error", NULL, 0); return NULL; + } if (*input && *(e = input + strlen(input) - 1) == '\n') *e = 0; state.sp->line++; @@ -1312,12 +1380,37 @@ run(Rule_t* r, char* s) "*) PATH=.:$PATH;;\n" "esac\n" ); + /* disable global pathname expansion for safer field splitting */ + if (state.strict >= 2) + append(buf,"set -f\n"); /* show trace for the shell action commands */ if (!(r->flags & RULE_notrace)) append(buf,"set -x\n"); + /* add the shim if one was set */ + if (state.shim) + append(buf, state.shim); } + + /* + * Do viewpathing + */ + if (state.view) { + char *tofree = NULL; + if (x && state.shim) + { + /* Also subject the user-set shim to viewpathing + * (plus other code preprended above, but it should not contain anything viewpathable) */ + char *pre = use(buf); + long n = strlen(pre); + if (!(tofree = malloc(n + strlen(s) + 1))) + report(3, "out of memory [run]", NULL, 0); + strcpy(tofree, pre); + strcpy(tofree + n, s); + s = tofree; + } + /* Find words to apply viewpathing to */ do { for (; delimiter(*s); s++) @@ -1378,6 +1471,8 @@ run(Rule_t* r, char* s) } } while (*s = c); s = use(buf); + if (tofree) + free(tofree); } else if (x) { @@ -1509,7 +1604,7 @@ probe(void) } drop(pro); drop(buf); - make(rule("")); + make(rule(""), 0, 0, NULL); pop(); } @@ -1537,7 +1632,7 @@ attributes(Rule_t* r, char* s) flag = RULE_dontcare; break; case 'g': - /* 'exec' assigns this attribute; ignore explicit assignment in strict mode */ + /* 'exec' assigns this attribute; ignore explicit assignment at strict level 1 */ if (n == 9 && !strncmp(t, "generated", n)) flag = state.strict ? -1 : RULE_generated; break; @@ -1553,11 +1648,11 @@ attributes(Rule_t* r, char* s) break; case 'a': if (n == 7 && !strncmp(t, "archive", n)) - flag = -1; /* ignore (not implemented) */ + flag = -1; /* not implemented */ break; case 'j': if (n == 5 && !strncmp(t, "joint", n)) - flag = -1; /* ignore (not implemented) */ + flag = -1; /* not implemented */ break; case 'n': if (n == 7 && !strncmp(t, "notrace", n)) @@ -1566,12 +1661,11 @@ attributes(Rule_t* r, char* s) } if (flag > 0) r->flags |= flag; - else if (flag == 0) + else if (flag == 0 || state.strict >= 2) { t[n] = '\0'; report(3, "unknown attribute", t, 0); } - /* deprecate ignored attributes */ else if (state.strict) report(1, "deprecated", t, 0); } @@ -1703,34 +1797,42 @@ require(char* lib, int dontcare) /* * input() until `done r' + * + * This function is called recursively for both 'make' and 'loop'. The inloop + * parameter is nonzero while processing a loop, in which case modtime and + * cmd are passed on from the caller and updated in the caller upon return. + * If inloop==0, modtime must be initialised to zero and parentcmd is ignored. */ static unsigned long -make(Rule_t* r) +make(Rule_t *r, int inloop, unsigned long modtime, Buf_t **parentcmd) { - char* s; - char* t; - char* u; - char* v; - Rule_t* q; - unsigned long z; - unsigned long x; - Buf_t* buf; - Buf_t* cmd; - - r->making++; - if (r->flags & RULE_active) - state.active++; - if (*r->name) + char *s; + char *u; /* command name */ + char *t; /* argument word */ + char *v; /* operand string */ + Rule_t *q; /* new rule */ + unsigned long x; /* new modtime */ + Buf_t *buf; /* scratch buffer */ + Buf_t *cmd; /* shell action */ + + if (inloop) + cmd = *parentcmd; + else { - z = bindfile(r); - state.indent++; - report(-1, r->name, "make", r->time); + cmd = NULL; + r->making++; + if (r->flags & RULE_active) + state.active++; + if (*r->name) + { + if (!(r->flags & RULE_virtual)) + modtime = bindfile(r); + state.indent++; + report(-1, r->name, "make", r->time); + } } - else - z = 0; buf = buffer(); - cmd = 0; /* * Parse lines */ @@ -1774,8 +1876,8 @@ make(Rule_t* r) q = rule(expand(buf, t)); attributes(q, v); x = bindfile(q); - if (z < x) - z = x; + if (modtime < x) + modtime = x; if (q->flags & RULE_error) r->flags |= RULE_error; } @@ -1785,20 +1887,34 @@ make(Rule_t* r) } } continue; + case KEY('d','o','n','e'): + if (inloop) + { + if (*t) + report(3, "superflous arguments", u, 0); + break; + } if (*t) { /* target is optional; use it for sanity check if present */ q = rule(expand(buf, t)); if (q != r && (t[0] != '$' || state.strict)) - report(3, "mismatched done statement", t, 0); + { + append(buf,q->name); + append(buf," != "); + append(buf,r->name); + report(3, "mismatched done statement", use(buf), 0); + } if (*v) { - if (state.strict) - report(1, v, "done: attributes deprecated; move to 'make'", 0); + if (state.strict >= 2) + report(3, "superfluous arguments", u, 0); + else if (state.strict) + report(1, "attributes deprecated, move to 'make'", u, 0); attributes(r, v); } } - if (cmd && state.active && (state.force || r->time < z || !r->time && !z)) + if (cmd && state.active && (state.force || r->time < modtime || !r->time && !modtime)) { char *fname = state.sp->file, *rname = r->name, *rnamepre = "", *val; int len; @@ -1825,19 +1941,20 @@ make(Rule_t* r) fprintf(stderr, "target %s\n", (r->flags & RULE_virtual) ? "is virtual" : "not found"); else - fprintf(stderr, "target [%lu] older than prerequisites [%lu]\n", r->time, z); + fprintf(stderr, "target [%lu] older than prerequisites [%lu]\n", r->time, modtime); } /* run the shell action */ x = run(r, use(cmd)); - if (z < x) - z = x; + if (modtime < x) + modtime = x; r->flags |= RULE_updated; } r->flags |= RULE_made; if (!(r->flags & (RULE_dontcare|RULE_error|RULE_exists|RULE_generated|RULE_implicit|RULE_virtual))) dont(r, 0, state.keepgoing); break; + case KEY('e','x','e','c'): r->flags |= RULE_generated; if (r->path) @@ -1856,7 +1973,63 @@ make(Rule_t* r) * to avoid confusing behaviour of automatic variables such as ${<} */ append(cmd, expand(buf, v)); } + /* if a shim is buffered, get it ready and reset the buffer */ + if (get(state.shim_buf)) + { + state.shim = use(state.shim_buf); + /* a single 'shim -' deactivates the shim */ + if (*state.shim == '\n' && !state.shim[1]) + state.shim = NULL; + } continue; + + case KEY('l','o','o','p'): + { + long saveoff; + char *vname, *words, *w, *nextw, *cp, *save_value; + Dict_item_t *vnode; + unsigned long saveline = state.sp->line; + + if (!*v) + report(3, "syntax error", u, 0); + /* remember current offset for repeated reading */ + if ((saveoff = ftell(state.sp->fp)) < 0) + report(3, "unseekable input", u, 0); + /* iterate through one or more whitespace-separated words */ + vname = duplicate(expand(buf, t)); + w = words = duplicate(expand(buf, v)); + save_value = search(state.vars, vname, NULL); + vnode = search(state.vars, vname, empty); + for (w = words; w; w = nextw) + { + /* zero-terminate current word and find next word */ + nextw = NULL; + for (cp = w; *cp && !isspace(*cp); cp++); + if (*cp) + { + *cp++ = '\0'; + for (; *cp && isspace(*cp); cp++); + if (*cp) + nextw = cp; + } + /* set iteration variable to current word */ + vnode->value = w; + /* reposition input to the start of this loop block */ + if (w != words) + { + if (fseek(state.sp->fp, saveoff, SEEK_SET) < 0) + report(3, "fseek failed", u, 0); + state.sp->line = saveline; + } + /* (re)read the loop block until 'done', in the context of the current rule */ + modtime = make(r, 1, modtime, &cmd); + } + vnode->value = save_value; + free(words); + free(vname); + continue; + } + case KEY('m','a','k','e'): { char *rulename = expand(buf, t); @@ -1876,9 +2049,9 @@ make(Rule_t* r) /* make the target */ attributes(q, v); - x = make(q); - if (!(q->flags & RULE_ignore) && z < x) - z = x; + x = make(q, 0, 0, NULL); + if (!(q->flags & RULE_ignore) && modtime < x) + modtime = x; if (q->flags & RULE_error) r->flags |= RULE_error; @@ -1907,6 +2080,7 @@ make(Rule_t* r) } continue; } + case KEY('p','r','e','v'): { char *name = expand(buf, t); @@ -1929,8 +2103,8 @@ make(Rule_t* r) report(3, v, "prev: superfluous attributes", 0); if (!q->making) { - if (!(q->flags & RULE_ignore) && z < q->time) - z = q->time; + if (!(q->flags & RULE_ignore) && modtime < q->time) + modtime = q->time; if (q->flags & RULE_error) r->flags |= RULE_error; state.indent++; @@ -1954,12 +2128,11 @@ make(Rule_t* r) } continue; } + case KEY('s','e','t','v'): - if (strcmp(t, "MAMAKE_STRICT") == 0) - state.strict = 1; if (!search(state.vars, t, NULL)) { - if (*v == '"') + if (*v == '"' && state.strict < 2) { s = v + strlen(v) - 1; if (*s == '"') @@ -1968,7 +2141,10 @@ make(Rule_t* r) v++; } } - search(state.vars, t, duplicate(expand(buf, v))); + v = duplicate(expand(buf, v)); + search(state.vars, t, v); + if (strcmp(t, "MAMAKE_STRICT") == 0) + state.strict = *v ? strtol(v, NULL, 10) : 1; } if (!state.probed && t[0] == 'C' && t[1] == 'C' && !t[2]) { @@ -1976,31 +2152,47 @@ make(Rule_t* r) probe(); } continue; + + case KEY('s','h','i','m'): + state.shim = NULL; + /* add line of code to shim buffer */ + if (*v) + append(state.shim_buf, expand(buf, v)); + add(state.shim_buf, '\n'); + continue; + case KEY('n','o','t','e'): /* comment command */ continue; + case KEY('i','n','f','o'): case KEY('m','e','t','a'): if (!state.strict) continue; /* FALLTHROUGH */ + default: report(3, "unknown command", u, 0); } break; } drop(buf); + if (inloop) + { + *parentcmd = cmd; + return modtime; + } if (cmd) drop(cmd); if (*r->name) { - report(-1, r->name, "done", z); + report(-1, r->name, "done", modtime); state.indent--; } if (r->flags & RULE_active) state.active--; r->making--; - return r->time = z; + return r->time = modtime; } /* @@ -2252,6 +2444,7 @@ main(int argc, char** argv) state.exec = 1; state.file = mamfile; state.opt = buffer(); + state.shim_buf = buffer(); state.rules = dictionary(); state.vars = dictionary(); search(state.vars, "MAMAKE", *argv); @@ -2554,7 +2747,7 @@ main(int argc, char** argv) search(state.vars, "MAMAKEARGS", duplicate(use(state.opt) + 1)); push(state.file, NULL, STREAM_MUST); - make(rule("")); + make(rule(""), 0, 0, NULL); pop(); /* diff --git a/src/cmd/INIT/mamake.rt b/src/cmd/INIT/mamake.rt index 096c407892f7..05738c1ec3c4 100644 --- a/src/cmd/INIT/mamake.rt +++ b/src/cmd/INIT/mamake.rt @@ -8,45 +8,92 @@ NOTE regression tests for the mamake command # # WARNING: the regeneration assumes mamake's output is correct, so VERIFY THE RESULTS! # Always do 'git diff mamake.tst' to check that no unexpected changes have been made. +# +# WARNING 2: do not use 'Mamfile' as the data file for the tests, or the +# regeneration will overwrite and then delete the local Mamfile. Mamake +# supports an -f option to use an alternative file name. + +UNIT mamake # ====== -# the one original AT&T test -- uses legacy mode +# the one original AT&T test -- changed to test both legacy and strict mode -UNIT mamake +for strict in '' 'setv MAMAKE_STRICT 1' 'setv MAMAKE_STRICT 2' +do -TEST macros +TEST expansions ${strict:+at strict level ${strict##* }} -DATA Mamfile <<'!' -info mam static 00000 1994-07-17 make (AT&T Research) 5.3 2009-05-05 +DATA ._tmp_Mamfile_ <&2 +make shimtest virtual notrace + make looptest virtual notrace + loop _iter_ een twee drie vier + exec - echo ${_iter_} hoedje${_iter_?een??s} van papier >&2 + done + done + exec - echo "nu is 't gedaan met 't ${_iter_}" >&2 +done +EOF +EXEC -f ._tmp_Mamfile_ diff --git a/src/cmd/INIT/mamake.tst b/src/cmd/INIT/mamake.tst index 1ef1dc12f823..d070472d4613 100644 --- a/src/cmd/INIT/mamake.tst +++ b/src/cmd/INIT/mamake.tst @@ -4,14 +4,14 @@ UNIT mamake -TEST 01 macros +TEST 01 expansions - EXEC -n + EXEC -n -f ._tmp_Mamfile_ INPUT -n - - INPUT Mamfile $'info mam static 00000 1994-07-17 make (AT&T Research) 5.3 2009-05-05 + INPUT ._tmp_Mamfile_ $'info mam static 00000 1994-07-17 make (AT&T Research) 5.3 2009-05-05 setv DEFINED defined setv EMPTY -make all +make all virtual exec - echo DEFINED ${DEFINED} exec - echo DEFINED:VALUE ${DEFINED:VALUE} @@ -38,7 +38,7 @@ exec - echo __NoT_DeFiNeD__.COMPONENT ${__NoT_DeFiNeD__.COMPONENT} exec - echo __NoT_DeFiNeD__.COMPONENT[VALUE] ${__NoT_DeFiNeD__.COMPONENT[VAL'\ $'UE]} -done all generated virtual' +done all' OUTPUT - $'echo DEFINED defined echo DEFINED:VALUE echo DEFINED:-VALUE @@ -60,4 +60,202 @@ echo __NoT_DeFiNeD__=VALUE ${__NoT_DeFiNeD__=VALUE} echo __NoT_DeFiNeD__[VALUE] ${__NoT_DeFiNeD__[VALUE]} echo __NoT_DeFiNeD__.COMPONENT echo __NoT_DeFiNeD__.COMPONENT[VALUE] ${__NoT_DeFiNeD__.COMPONENT[VALUE]}' - ERROR - $'\n# Mamfile: 4-30: make all' + ERROR - $'\n# ._tmp_Mamfile_: 4-30: make all' + +TEST 02 'expansions at strict level 1' + + EXEC -n -f ._tmp_Mamfile_ + INPUT -n - + INPUT ._tmp_Mamfile_ $'setv MAMAKE_STRICT 1 +setv DEFINED defined +setv EMPTY +make all virtual + +exec - echo DEFINED ${DEFINED} +exec - echo DEFINED:VALUE ${DEFINED:VALUE} +exec - echo DEFINED:-VALUE ${DEFINED:-VALUE} +exec - echo DEFINED=VALUE ${DEFINED=VALUE} +exec - echo DEFINED[VALUE] ${DEFINED[VALUE]} +exec - echo DEFINED.COMPONENT ${DEFINED.COMPONENT} +exec - echo DEFINED.COMPONENT[VALUE] ${DEFINED.COMPONENT[VALUE]} + +exec - echo EMPTY ${EMPTY} +exec - echo EMPTY:VALUE ${EMPTY:VALUE} +exec - echo EMPTY:-VALUE ${EMPTY:-VALUE} +exec - echo EMPTY=VALUE ${EMPTY=VALUE} +exec - echo EMPTY[VALUE] ${EMPTY[VALUE]} +exec - echo EMPTY.COMPONENT ${EMPTY.COMPONENT} +exec - echo EMPTY.COMPONENT[VALUE] ${EMPTY.COMPONENT[VALUE]} + +exec - echo __NoT_DeFiNeD__ ${__NoT_DeFiNeD__} +exec - echo __NoT_DeFiNeD__:VALUE ${__NoT_DeFiNeD__:VALUE} +exec - echo __NoT_DeFiNeD__:-VALUE ${__NoT_DeFiNeD__:-VALUE} +exec - echo __NoT_DeFiNeD__=VALUE ${__NoT_DeFiNeD__=VALUE} +exec - echo __NoT_DeFiNeD__[VALUE] ${__NoT_DeFiNeD__[VALUE]} +exec - echo __NoT_DeFiNeD__.COMPONENT ${__NoT_DeFiNeD__.COMPONENT} +exec - echo __NoT_DeFiNeD__.COMPONENT[VALUE] ${__NoT_DeFiNeD__.COMPONENT[VAL'\ +$'UE]} + +done all' + OUTPUT - $'echo DEFINED defined +echo DEFINED:VALUE +echo DEFINED:-VALUE +echo DEFINED=VALUE defined +echo DEFINED[VALUE] ${DEFINED[VALUE]} +echo DEFINED.COMPONENT +echo DEFINED.COMPONENT[VALUE] ${DEFINED.COMPONENT[VALUE]} +echo EMPTY +echo EMPTY:VALUE ${EMPTY:VALUE} +echo EMPTY:-VALUE ${EMPTY:-VALUE} +echo EMPTY=VALUE +echo EMPTY[VALUE] ${EMPTY[VALUE]} +echo EMPTY.COMPONENT +echo EMPTY.COMPONENT[VALUE] ${EMPTY.COMPONENT[VALUE]} +echo __NoT_DeFiNeD__ ${__NoT_DeFiNeD__} +echo __NoT_DeFiNeD__:VALUE ${__NoT_DeFiNeD__:VALUE} +echo __NoT_DeFiNeD__:-VALUE ${__NoT_DeFiNeD__:-VALUE} +echo __NoT_DeFiNeD__=VALUE ${__NoT_DeFiNeD__=VALUE} +echo __NoT_DeFiNeD__[VALUE] ${__NoT_DeFiNeD__[VALUE]} +echo __NoT_DeFiNeD__.COMPONENT +echo __NoT_DeFiNeD__.COMPONENT[VALUE] ${__NoT_DeFiNeD__.COMPONENT[VALUE]}' + ERROR - $'\n# ._tmp_Mamfile_: 4-30: make all' + +TEST 03 'expansions at strict level 2' + + EXEC -n -f ._tmp_Mamfile_ + INPUT -n - + INPUT ._tmp_Mamfile_ $'setv MAMAKE_STRICT 2 +setv DEFINED defined +setv EMPTY +make all virtual + +exec - echo DEFINED ${DEFINED} +exec - echo DEFINED:VALUE ${DEFINED:VALUE} +exec - echo DEFINED:-VALUE ${DEFINED:-VALUE} +exec - echo DEFINED=VALUE ${DEFINED=VALUE} +exec - echo DEFINED[VALUE] ${DEFINED[VALUE]} +exec - echo DEFINED.COMPONENT ${DEFINED.COMPONENT} +exec - echo DEFINED.COMPONENT[VALUE] ${DEFINED.COMPONENT[VALUE]} + +exec - echo EMPTY ${EMPTY} +exec - echo EMPTY:VALUE ${EMPTY:VALUE} +exec - echo EMPTY:-VALUE ${EMPTY:-VALUE} +exec - echo EMPTY=VALUE ${EMPTY=VALUE} +exec - echo EMPTY[VALUE] ${EMPTY[VALUE]} +exec - echo EMPTY.COMPONENT ${EMPTY.COMPONENT} +exec - echo EMPTY.COMPONENT[VALUE] ${EMPTY.COMPONENT[VALUE]} + +exec - echo __NoT_DeFiNeD__ ${__NoT_DeFiNeD__} +exec - echo __NoT_DeFiNeD__:VALUE ${__NoT_DeFiNeD__:VALUE} +exec - echo __NoT_DeFiNeD__:-VALUE ${__NoT_DeFiNeD__:-VALUE} +exec - echo __NoT_DeFiNeD__=VALUE ${__NoT_DeFiNeD__=VALUE} +exec - echo __NoT_DeFiNeD__[VALUE] ${__NoT_DeFiNeD__[VALUE]} +exec - echo __NoT_DeFiNeD__.COMPONENT ${__NoT_DeFiNeD__.COMPONENT} +exec - echo __NoT_DeFiNeD__.COMPONENT[VALUE] ${__NoT_DeFiNeD__.COMPONENT[VAL'\ +$'UE]} + +done all' + OUTPUT - $'echo DEFINED defined +echo DEFINED:VALUE ${DEFINED:VALUE} +echo DEFINED:-VALUE ${DEFINED:-VALUE} +echo DEFINED=VALUE ${DEFINED=VALUE} +echo DEFINED[VALUE] ${DEFINED[VALUE]} +echo DEFINED.COMPONENT ${DEFINED.COMPONENT} +echo DEFINED.COMPONENT[VALUE] ${DEFINED.COMPONENT[VALUE]} +echo EMPTY +echo EMPTY:VALUE ${EMPTY:VALUE} +echo EMPTY:-VALUE ${EMPTY:-VALUE} +echo EMPTY=VALUE ${EMPTY=VALUE} +echo EMPTY[VALUE] ${EMPTY[VALUE]} +echo EMPTY.COMPONENT ${EMPTY.COMPONENT} +echo EMPTY.COMPONENT[VALUE] ${EMPTY.COMPONENT[VALUE]} +echo __NoT_DeFiNeD__ ${__NoT_DeFiNeD__} +echo __NoT_DeFiNeD__:VALUE ${__NoT_DeFiNeD__:VALUE} +echo __NoT_DeFiNeD__:-VALUE ${__NoT_DeFiNeD__:-VALUE} +echo __NoT_DeFiNeD__=VALUE ${__NoT_DeFiNeD__=VALUE} +echo __NoT_DeFiNeD__[VALUE] ${__NoT_DeFiNeD__[VALUE]} +echo __NoT_DeFiNeD__.COMPONENT ${__NoT_DeFiNeD__.COMPONENT} +echo __NoT_DeFiNeD__.COMPONENT[VALUE] ${__NoT_DeFiNeD__.COMPONENT[VALUE]}' + ERROR - $'\n# ._tmp_Mamfile_: 4-30: make all' + +TEST 04 'nested loop with notrace' + + EXEC -f ._tmp_Mamfile_ + INPUT -n - + INPUT ._tmp_Mamfile_ $'setv MAMAKE_STRICT +make looptest virtual +\tloop v1 one two three +\t\tloop v2 four five six +\t\t\tmake ${v1}_${v2} virtual notrace +\t\t\t\texec - echo \'${v1}: ${v2}\' +\t\t\tdone +\t\tdone +\tdone +\texec - : the current target is ${@} +\texec - : the last target was ${<} +\texec - : the targets were ${^} +\texec - : the updated targets were ${?} +done' + OUTPUT - $'one: four +one: five +one: six +two: four +two: five +two: six +three: four +three: five +three: six' + ERROR - $' +# ._tmp_Mamfile_: 5-7: make one_four + +# ._tmp_Mamfile_: 5-7: make one_five + +# ._tmp_Mamfile_: 5-7: make one_six + +# ._tmp_Mamfile_: 5-7: make two_four + +# ._tmp_Mamfile_: 5-7: make two_five + +# ._tmp_Mamfile_: 5-7: make two_six + +# ._tmp_Mamfile_: 5-7: make three_four + +# ._tmp_Mamfile_: 5-7: make three_five + +# ._tmp_Mamfile_: 5-7: make three_six + +# ._tmp_Mamfile_: 2-14: make looptest ++ : the current target is looptest ++ : the last target was three_six ++ : the targets were one_four one_five one_six two_four two_five two_six thr'\ +$'ee_four three_five three_six ++ : the updated targets were one_four one_five one_six two_four two_five two'\ +'_six three_four three_five three_six' + +TEST 05 $'shim, \'exec\' in loop' + + EXEC -f ._tmp_Mamfile_ + INPUT -n - + INPUT ._tmp_Mamfile_ $'setv MAMAKE_STRICT 2 +setv _iter_ vertier +shim - echo KIJK EENS HIER >&2 +make shimtest virtual notrace +\tmake looptest virtual notrace +\t\tloop _iter_ een twee drie vier +\t\t\texec - echo ${_iter_} hoedje${_iter_?een??s} van papier >&2 +\t\tdone +\tdone +\texec - echo "nu is \'t gedaan met \'t ${_iter_}" >&2 +done' + OUTPUT - + ERROR - $' +# ._tmp_Mamfile_: 5-9: make looptest +KIJK EENS HIER +een hoedje van papier +twee hoedjes van papier +drie hoedjes van papier +vier hoedjes van papier + +# ._tmp_Mamfile_: 4-11: make shimtest +KIJK EENS HIER +nu is \'t gedaan met \'t vertier' diff --git a/src/cmd/INIT/utils/Mamfile_indent b/src/cmd/INIT/utils/Mamfile_indent index 68d1d34c27ed..17c250ab0be2 100755 --- a/src/cmd/INIT/utils/Mamfile_indent +++ b/src/cmd/INIT/utils/Mamfile_indent @@ -5,7 +5,7 @@ let() { return $((!($1))); } # Usage: Mamfile_indent Mamfile.new # # Should work on all current POSIX compliant shells. -# By Martijn Dekker , 2021. Public domain. +# By Martijn Dekker , 2021, 2024. Public domain. # Spacing per indentation level. Edit to change style. indent=' ' # one tab @@ -27,6 +27,7 @@ do case $line in printf '%s\n' $spc$line case $line in - make*) let "indentlvl += 1" ;; + make* | loop*) + let "indentlvl += 1" ;; esac done diff --git a/src/cmd/Mamfile b/src/cmd/Mamfile index aa3f33a21481..aae421ab2bce 100644 --- a/src/cmd/Mamfile +++ b/src/cmd/Mamfile @@ -1,12 +1,10 @@ note * -note * This build file is in the Make Abstract Machine (MAM) language. It was -note * first generated by nmake, but in the ksh 93u+m distribution we maintain -note * it manually because nmake had too many problems to keep using. The -note * Mamfiles are processed by mamake (src/cmd/INIT/mamake.c); we added -note * indentation to improve readability. The language is documented in -note * src/cmd/INIT/README-mamake.md. +note * This build script is in an extended Make Abstract Machine (MAM) +note * language. Documentation is at: src/cmd/INIT/README-mamake.md note * -setv MAMAKE_STRICT + +setv MAMAKE_STRICT 2 + make test virtual make install virtual make all virtual diff --git a/src/cmd/builtin/Mamfile b/src/cmd/builtin/Mamfile index 391f8429c281..e7ecc3cbac7a 100644 --- a/src/cmd/builtin/Mamfile +++ b/src/cmd/builtin/Mamfile @@ -1,119 +1,144 @@ note * -note * This build file is in the Make Abstract Machine (MAM) language. It was -note * first generated by nmake, but in the ksh 93u+m distribution we maintain -note * it manually because nmake had too many problems to keep using. The -note * Mamfiles are processed by mamake (src/cmd/INIT/mamake.c); we added -note * indentation to improve readability. The language is documented in -note * src/cmd/INIT/README-mamake.md. +note * This build script is in an extended Make Abstract Machine (MAM) +note * language. Documentation is at: src/cmd/INIT/README-mamake.md note * -setv MAMAKE_STRICT + +setv MAMAKE_STRICT 2 + setv INSTALLROOT ../../.. setv PACKAGE_ast_INCLUDE ${INSTALLROOT}/include/ast setv CC cc -setv mam_cc_FLAGS -setv CCFLAGS ${-debug-symbols?1?${mam_cc_DEBUG} -D_BLD_DEBUG?${mam_cc_OPTIMIZE}?} +setv mam_cc_FLAGS ${-debug-symbols?1?${mam_cc_DEBUG} -D_BLD_DEBUG?${mam_cc_OPTIMIZE}?} +setv CCFLAGS setv CCLDFLAGS ${-strip-symbols?1?${mam_cc_LD_STRIP}??} setv IFFEFLAGS setv LDFLAGS + make .INIT dontcare virtual prev ${PACKAGE_ast_INCLUDE}/cmdlist.h - exec - sed -e '/^CMDLIST(.*)$/!d' -e 's/CMDLIST(\(.*\))/\1/' -e '/^getconf$/d' -e '/^ln$/d' -e '/^mv$/d' -e '/^md5sum$/d' -e '/^sum$/d' ${<} + exec - sed -e '/^CMDLIST(.*)$/!d' -e 's/CMDLIST(\(.*\))/\1/' -e '/^getconf$/d' \ + exec - -e '/^ln$/d' -e '/^mv$/d' -e '/^md5sum$/d' -e '/^sum$/d' ${<} bind -lcmd + bind -lutil dontcare done .INIT + make install virtual - make pty - make pty.o - make pty.c - make FEATURE/pty implicit - prev features/pty - exec - iffe ${IFFEFLAGS} -v -c "${CC} ${mam_cc_FLAGS} ${CCFLAGS} ${LDFLAGS}" ref ${mam_cc_L+-L${INSTALLROOT}/lib} -I${PACKAGE_ast_INCLUDE} -I${INSTALLROOT}/include ${mam_libast} ${mam_libcmd} : run ${<} + note * + note * AST header dependencies + note * TODO: verify and centralise + note * + + prev ${PACKAGE_ast_INCLUDE}/ast_time.h implicit + make ${PACKAGE_ast_INCLUDE}/vmalloc.h implicit + make ${PACKAGE_ast_INCLUDE}/ast_common.h implicit + prev ${PACKAGE_ast_INCLUDE}/ast_map.h implicit + make ${PACKAGE_ast_INCLUDE}/endian.h implicit + make ${PACKAGE_ast_INCLUDE}/bytesex.h implicit + prev ${PACKAGE_ast_INCLUDE}/ast_common.h done - prev ${PACKAGE_ast_INCLUDE}/ast_time.h implicit - make ${PACKAGE_ast_INCLUDE}/vmalloc.h implicit - make ${PACKAGE_ast_INCLUDE}/ast_common.h implicit - prev ${PACKAGE_ast_INCLUDE}/ast_map.h implicit - make ${PACKAGE_ast_INCLUDE}/endian.h implicit - make ${PACKAGE_ast_INCLUDE}/bytesex.h implicit - prev ${PACKAGE_ast_INCLUDE}/ast_common.h - done - done - done - make ${PACKAGE_ast_INCLUDE}/ast_std.h implicit - make ${PACKAGE_ast_INCLUDE}/regex.h implicit - prev ${PACKAGE_ast_INCLUDE}/ast_api.h implicit - make ${PACKAGE_ast_INCLUDE}/ast_wchar.h implicit - make ${PACKAGE_ast_INCLUDE}/wctype.h implicit - make ${PACKAGE_ast_INCLUDE}/ast_wctype.h implicit - prev ${PACKAGE_ast_INCLUDE}/endian.h - make ${PACKAGE_ast_INCLUDE}/wchar.h implicit - prev ${PACKAGE_ast_INCLUDE}/ast_wchar.h - done - done - done - make ${PACKAGE_ast_INCLUDE}/stdio.h implicit - make ${PACKAGE_ast_INCLUDE}/ast_stdio.h implicit - prev ${PACKAGE_ast_INCLUDE}/sfio_s.h implicit - prev ${PACKAGE_ast_INCLUDE}/ast_std.h - done - done - prev ${PACKAGE_ast_INCLUDE}/ast_common.h - done - prev ${PACKAGE_ast_INCLUDE}/ast_common.h - done - make ${PACKAGE_ast_INCLUDE}/getopt.h implicit - prev ${PACKAGE_ast_INCLUDE}/ast_getopt.h implicit - done - prev ${PACKAGE_ast_INCLUDE}/ast_map.h - prev ${PACKAGE_ast_INCLUDE}/ast_botch.h implicit - prev ${PACKAGE_ast_INCLUDE}/ast_limits.h implicit - make ${PACKAGE_ast_INCLUDE}/ast_fcntl.h implicit - prev ${PACKAGE_ast_INCLUDE}/ast_fs.h implicit - done - prev ${PACKAGE_ast_INCLUDE}/ast_getopt.h - make ${PACKAGE_ast_INCLUDE}/ast_sys.h implicit - prev ${PACKAGE_ast_INCLUDE}/getopt.h + done + done + make ${PACKAGE_ast_INCLUDE}/ast_std.h implicit + make ${PACKAGE_ast_INCLUDE}/regex.h implicit + prev ${PACKAGE_ast_INCLUDE}/ast_api.h implicit + make ${PACKAGE_ast_INCLUDE}/ast_wchar.h implicit + make ${PACKAGE_ast_INCLUDE}/wctype.h implicit + make ${PACKAGE_ast_INCLUDE}/ast_wctype.h implicit prev ${PACKAGE_ast_INCLUDE}/endian.h + make ${PACKAGE_ast_INCLUDE}/wchar.h implicit + prev ${PACKAGE_ast_INCLUDE}/ast_wchar.h + done done - prev ${PACKAGE_ast_INCLUDE}/ast_lib.h implicit - prev ${PACKAGE_ast_INCLUDE}/ast_common.h done - done - prev ${PACKAGE_ast_INCLUDE}/regex.h - make ${PACKAGE_ast_INCLUDE}/proc.h implicit - make ${PACKAGE_ast_INCLUDE}/ast.h implicit - prev ${PACKAGE_ast_INCLUDE}/ast_api.h - prev ${PACKAGE_ast_INCLUDE}/vmalloc.h - make ${PACKAGE_ast_INCLUDE}/sfio.h implicit - prev ${PACKAGE_ast_INCLUDE}/sfio_s.h - prev ${PACKAGE_ast_INCLUDE}/ast_common.h + make ${PACKAGE_ast_INCLUDE}/stdio.h implicit + make ${PACKAGE_ast_INCLUDE}/ast_stdio.h implicit + prev ${PACKAGE_ast_INCLUDE}/sfio_s.h implicit prev ${PACKAGE_ast_INCLUDE}/ast_std.h done - prev ${PACKAGE_ast_INCLUDE}/ast_std.h done + prev ${PACKAGE_ast_INCLUDE}/ast_common.h done - make ${PACKAGE_ast_INCLUDE}/error.h implicit - make ${PACKAGE_ast_INCLUDE}/option.h implicit - prev ${PACKAGE_ast_INCLUDE}/ast.h - done - prev ${PACKAGE_ast_INCLUDE}/ast.h - done - make ${PACKAGE_ast_INCLUDE}/cmd.h implicit - make ${PACKAGE_ast_INCLUDE}/cmdext.h implicit - prev ${PACKAGE_ast_INCLUDE}/shcmd.h implicit - done - prev ${PACKAGE_ast_INCLUDE}/shcmd.h - make ${PACKAGE_ast_INCLUDE}/stk.h implicit - prev ${PACKAGE_ast_INCLUDE}/sfio.h - done - prev ${PACKAGE_ast_INCLUDE}/error.h - prev ${PACKAGE_ast_INCLUDE}/ast.h + prev ${PACKAGE_ast_INCLUDE}/ast_common.h + done + make ${PACKAGE_ast_INCLUDE}/getopt.h implicit + prev ${PACKAGE_ast_INCLUDE}/ast_getopt.h implicit + done + prev ${PACKAGE_ast_INCLUDE}/ast_map.h + prev ${PACKAGE_ast_INCLUDE}/ast_botch.h implicit + prev ${PACKAGE_ast_INCLUDE}/ast_limits.h implicit + make ${PACKAGE_ast_INCLUDE}/ast_fcntl.h implicit + prev ${PACKAGE_ast_INCLUDE}/ast_fs.h implicit + done + prev ${PACKAGE_ast_INCLUDE}/ast_getopt.h + make ${PACKAGE_ast_INCLUDE}/ast_sys.h implicit + prev ${PACKAGE_ast_INCLUDE}/getopt.h + prev ${PACKAGE_ast_INCLUDE}/endian.h + done + prev ${PACKAGE_ast_INCLUDE}/ast_lib.h implicit + prev ${PACKAGE_ast_INCLUDE}/ast_common.h + done + done + make ${PACKAGE_ast_INCLUDE}/proc.h implicit + make ${PACKAGE_ast_INCLUDE}/ast.h implicit + prev ${PACKAGE_ast_INCLUDE}/ast_api.h + prev ${PACKAGE_ast_INCLUDE}/vmalloc.h + make ${PACKAGE_ast_INCLUDE}/sfio.h implicit + prev ${PACKAGE_ast_INCLUDE}/sfio_s.h + prev ${PACKAGE_ast_INCLUDE}/ast_common.h + prev ${PACKAGE_ast_INCLUDE}/ast_std.h + done + prev ${PACKAGE_ast_INCLUDE}/ast_std.h + done + done + make ${PACKAGE_ast_INCLUDE}/error.h implicit + make ${PACKAGE_ast_INCLUDE}/option.h implicit + prev ${PACKAGE_ast_INCLUDE}/ast.h + done + prev ${PACKAGE_ast_INCLUDE}/ast.h + done + make ${PACKAGE_ast_INCLUDE}/cmd.h implicit + make ${PACKAGE_ast_INCLUDE}/cmdext.h implicit + prev ${PACKAGE_ast_INCLUDE}/shcmd.h implicit + done + prev ${PACKAGE_ast_INCLUDE}/shcmd.h + make ${PACKAGE_ast_INCLUDE}/stk.h implicit + prev ${PACKAGE_ast_INCLUDE}/sfio.h + done + prev ${PACKAGE_ast_INCLUDE}/error.h + prev ${PACKAGE_ast_INCLUDE}/ast.h + done + + note * + note * Build pty + note * + + make pty + make pty.o + make pty.c + make FEATURE/pty implicit + prev features/pty + exec - iffe ${IFFEFLAGS} -v -c "${CC} ${mam_cc_FLAGS} ${CCFLAGS} ${LDFLAGS}" \ + exec - ref ${mam_cc_L+-L${INSTALLROOT}/lib} -I${PACKAGE_ast_INCLUDE} \ + exec - -I${INSTALLROOT}/include ${mam_libast} ${mam_libcmd} : run ${<} done + prev ${PACKAGE_ast_INCLUDE}/ast_time.h + prev ${PACKAGE_ast_INCLUDE}/vmalloc.h + prev ${PACKAGE_ast_INCLUDE}/regex.h + prev ${PACKAGE_ast_INCLUDE}/proc.h + prev ${PACKAGE_ast_INCLUDE}/error.h + prev ${PACKAGE_ast_INCLUDE}/cmd.h done pty.c - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -I${PACKAGE_ast_INCLUDE} -DERROR_CATALOG=\""builtin"\" -DCMD_STANDALONE=b_pty -c ${<} + exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -I${PACKAGE_ast_INCLUDE} \ + exec - -DERROR_CATALOG=\""builtin"\" -DCMD_STANDALONE=b_pty -c ${<} done pty.o - bind -lutil dontcare - exec - ${CC} ${CCLDFLAGS} ${mam_cc_FLAGS} ${CCFLAGS} ${LDFLAGS} ${mam_cc_L+-L.} ${mam_cc_L+-L${INSTALLROOT}/lib} -o pty pty.o ${mam_libutil} ${mam_libast} ${mam_libcmd} + exec - ${CC} ${CCLDFLAGS} ${mam_cc_FLAGS} ${CCFLAGS} ${LDFLAGS} ${mam_cc_L+-L.} \ + exec - ${mam_cc_L+-L${INSTALLROOT}/lib} -o pty pty.o ${mam_libutil} ${mam_libast} ${mam_libcmd} done pty + + note * + note * Pre-install + note * + make ${INSTALLROOT}/bin exec - mkdir -p ${@} done @@ -123,5 +148,6 @@ make install virtual exec - rm -f ${@} && cp ${<} ${@} done done install + make test dontcare virtual done test diff --git a/src/cmd/ksh93/Mamfile b/src/cmd/ksh93/Mamfile index 9e963e8f67fb..a9e6f983344a 100644 --- a/src/cmd/ksh93/Mamfile +++ b/src/cmd/ksh93/Mamfile @@ -1,1310 +1,1276 @@ note * -note * This build file is in the Make Abstract Machine (MAM) language. It was -note * first generated by nmake, but in the ksh 93u+m distribution we maintain -note * it manually because nmake had too many problems to keep using. The -note * Mamfiles are processed by mamake (src/cmd/INIT/mamake.c); we added -note * indentation to improve readability. The language is documented in -note * src/cmd/INIT/README-mamake.md. +note * This build script is in an extended Make Abstract Machine (MAM) +note * language. Documentation is at: src/cmd/INIT/README-mamake.md note * -setv MAMAKE_STRICT + +setv MAMAKE_STRICT 2 setv INSTALLROOT ../../.. setv PACKAGE_ast_INCLUDE ${INSTALLROOT}/include/ast -setv PACKAGEROOT ../../../../.. -setv AR ${mam_cc_AR} ${mam_cc_AR_ARFLAGS} setv CC cc -setv mam_cc_FLAGS -setv CCFLAGS ${-debug-symbols?1?${mam_cc_DEBUG} -D_BLD_DEBUG?${mam_cc_OPTIMIZE}?} +setv AR ${mam_cc_AR} ${mam_cc_AR_ARFLAGS} +setv mam_cc_FLAGS ${-debug-symbols?1?${mam_cc_DEBUG} -D_BLD_DEBUG?${mam_cc_OPTIMIZE}?} +setv CCFLAGS setv CCLDFLAGS ${-strip-symbols?1?${mam_cc_LD_STRIP}??} setv IFFEFLAGS setv LDFLAGS setv SH_DICT \"libshell\" + make install virtual - make ksh - bind -ldll - bind -lcmd - bind -last - bind -lm dontcare - bind -lnsl dontcare - make shell.req - prev ${INSTALLROOT}/bin/mkreq - exec - mkreq ${CC} ${mam_cc_FLAGS} ${CCFLAGS} : ${LDFLAGS} : shell dll cmd ast m jobs i socket nsl secdb network - done - make shopt.h notrace implicit - make FEATURE/options implicit - prev features/options - exec - iffe ${IFFEFLAGS} -v -c "${CC} ${mam_cc_FLAGS} ${CCFLAGS} ${LDFLAGS}" ref ${mam_cc_L+-L.} ${mam_cc_L+-L${INSTALLROOT}/lib} -I${PACKAGE_ast_INCLUDE} -I${INSTALLROOT}/include ${mam_libdll} ${mam_libcmd} ${mam_libast} ${mam_libm} ${mam_libnsl} : run ${<} - done - prev SHOPT.sh - prev Mamfile - note * - note * the SHOPT.sh file calls the SHOPT function once for each option - note * - exec - writedef() - exec - { - exec - echo "${3:-#ifndef SHOPT_$1}" - exec - echo "# define SHOPT_$1 $2" - exec - echo "#endif" - exec - echo - exec - } - exec - - exec - SHOPT() - exec - { - exec - n=${1%%=*} # name - exec - v=${1#*=} # value - exec - # probe certain options if they don't have a value configured - exec - case $1 in - exec - 'MULTIBYTE=') - exec - # by default, SHOPT_MULTIBYTE is the opposite of AST_NOMULTIBYE - exec - writedef MULTIBYTE 1 '#if !defined(SHOPT_MULTIBYTE) && !AST_NOMULTIBYTE' ;; - exec - 'DEVFD=') - exec - # if /dev/fd/n exposes file descriptor n, make SHOPT_DEVFD use this for - exec - # process substitutions instead of FIFOs, which are not as secure - exec - # WARNING: do not use 'test -e' for this test (too many shells break it - exec - # by failing to test for the physical existence of /dev/fd/9 in the FS) - exec - ls -d /dev/fd/9 9<&0 >/dev/null 2>&1 && writedef DEVFD 1 ;; - exec - 'TEST_L=') - exec - # if external 'test' supports lowercase -l as equivalent to -L, enable - exec - # SHOPT_TEST_L so ksh supports it for compatibility with local scripts - exec - ln -s /dev/null "$EXECROOT/link$$" - exec - if env test -l "$EXECROOT/link$$" && env test ! -l . - exec - then writedef TEST_L 1 - exec - fi 2>/dev/null - exec - rm -f "$EXECROOT/link$$" ;; - exec - 'PRINTF_LEGACY=') - exec - # if external 'printf' allows POSIX-ignorant syntax (i.e., a format operand - exec - # starting with '-' without prior '--'), enable code for backward compat - exec - case $(env printf '-zut%s\n' alors 2>/dev/null) in - exec - -zutalors) - exec - writedef PRINTF_LEGACY 1 ;; - exec - esac ;; - exec - 'SYSRC=') - exec - # if one of these exists, make SHOPT_SYSRC load /etc/ksh.kshrc by default - exec - if test -f /etc/ksh.kshrc || test -f /etc/bash.bashrc - exec - then writedef SYSRC 1 - exec - fi ;; - exec - # some other SHOPTs may be probed for using feature tests in features/options - exec - *=?*) - exec - writedef "$n" "$v" ;; - exec - esac - exec - echo "* SHOPT_$n = ${v:-(probe)}" >&2 # show in make.out - exec - } - exec - - exec - exec >shopt.h - exec - echo '/* Generated from ksh93/SHOPT.sh by ksh93/Mamfile */' - exec - echo - exec - . "$PACKAGEROOT/src/cmd/ksh93/SHOPT.sh" - exec - cat <<-EOF - exec - #include "FEATURE/options" - exec - - exec - /* overrides */ - exec - #if SHOPT_SCRIPTONLY - exec - # undef SHOPT_ACCT - exec - # undef SHOPT_AUDIT - exec - # undef SHOPT_ESH - exec - # undef SHOPT_HISTEXPAND - exec - # undef SHOPT_SYSRC - exec - # undef SHOPT_VSH - exec - #endif - exec - #if !_sys_acct - exec - # undef SHOPT_ACCT - exec - #endif - exec - EOF - done shopt.h - make pmain.o - make sh/pmain.c - make FEATURE/externs implicit - prev features/externs - exec - iffe ${IFFEFLAGS} -v -c "${CC} ${mam_cc_FLAGS} ${CCFLAGS} ${LDFLAGS}" ref ${mam_cc_L+-L.} ${mam_cc_L+-L${INSTALLROOT}/lib} -I${PACKAGE_ast_INCLUDE} -I${INSTALLROOT}/include ${mam_libdll} ${mam_libcmd} ${mam_libast} ${mam_libm} ${mam_libnsl} : run ${<} - done - make include/shell.h implicit - make include/fault.h implicit - make FEATURE/sigfeatures implicit - prev features/sigfeatures - exec - iffe ${IFFEFLAGS} -v -c "${CC} ${mam_cc_FLAGS} ${CCFLAGS} ${LDFLAGS}" ref ${mam_cc_L+-L.} ${mam_cc_L+-L${INSTALLROOT}/lib} -I${PACKAGE_ast_INCLUDE} -I${INSTALLROOT}/include ${mam_libdll} ${mam_libcmd} ${mam_libast} ${mam_libm} ${mam_libnsl} : run ${<} - done - make ${PACKAGE_ast_INCLUDE}/sfio.h implicit - prev ${PACKAGE_ast_INCLUDE}/sfio_s.h implicit - make ${PACKAGE_ast_INCLUDE}/ast_common.h implicit - prev ${PACKAGE_ast_INCLUDE}/ast_map.h implicit - make ${PACKAGE_ast_INCLUDE}/endian.h implicit - make ${PACKAGE_ast_INCLUDE}/bytesex.h implicit - prev ${PACKAGE_ast_INCLUDE}/ast_common.h - done - done - done - make ${PACKAGE_ast_INCLUDE}/ast_std.h implicit - make ${PACKAGE_ast_INCLUDE}/regex.h implicit - prev ${PACKAGE_ast_INCLUDE}/ast_api.h implicit - make ${PACKAGE_ast_INCLUDE}/ast_wchar.h implicit - make ${PACKAGE_ast_INCLUDE}/wctype.h implicit - make ${PACKAGE_ast_INCLUDE}/ast_wctype.h implicit - prev ${PACKAGE_ast_INCLUDE}/endian.h - make ${PACKAGE_ast_INCLUDE}/wchar.h implicit - prev ${PACKAGE_ast_INCLUDE}/ast_wchar.h - done - done - done - make ${PACKAGE_ast_INCLUDE}/stdio.h implicit - make ${PACKAGE_ast_INCLUDE}/ast_stdio.h implicit - prev ${PACKAGE_ast_INCLUDE}/sfio_s.h - prev ${PACKAGE_ast_INCLUDE}/ast_std.h - done - done - prev ${PACKAGE_ast_INCLUDE}/ast_common.h - done - prev ${PACKAGE_ast_INCLUDE}/ast_common.h - done - make ${PACKAGE_ast_INCLUDE}/getopt.h implicit - prev ${PACKAGE_ast_INCLUDE}/ast_getopt.h implicit - done - prev ${PACKAGE_ast_INCLUDE}/ast_map.h - prev ${PACKAGE_ast_INCLUDE}/ast_botch.h implicit - prev ${PACKAGE_ast_INCLUDE}/ast_limits.h implicit - make ${PACKAGE_ast_INCLUDE}/ast_fcntl.h implicit - prev ${PACKAGE_ast_INCLUDE}/ast_fs.h implicit - done - prev ${PACKAGE_ast_INCLUDE}/ast_getopt.h - make ${PACKAGE_ast_INCLUDE}/ast_sys.h implicit - prev ${PACKAGE_ast_INCLUDE}/getopt.h - prev ${PACKAGE_ast_INCLUDE}/endian.h - done - prev ${PACKAGE_ast_INCLUDE}/ast_lib.h implicit - prev ${PACKAGE_ast_INCLUDE}/ast_common.h - done - done - make ${PACKAGE_ast_INCLUDE}/error.h implicit - make ${PACKAGE_ast_INCLUDE}/option.h implicit - make ${PACKAGE_ast_INCLUDE}/ast.h implicit - prev ${PACKAGE_ast_INCLUDE}/ast_api.h - make ${PACKAGE_ast_INCLUDE}/vmalloc.h implicit - prev ${PACKAGE_ast_INCLUDE}/ast_common.h - prev ${PACKAGE_ast_INCLUDE}/ast_std.h - done - prev ${PACKAGE_ast_INCLUDE}/sfio.h - prev ${PACKAGE_ast_INCLUDE}/ast_std.h - done - done - prev ${PACKAGE_ast_INCLUDE}/ast.h - done - prev ${PACKAGE_ast_INCLUDE}/sig.h implicit - done - make ${PACKAGE_ast_INCLUDE}/stk.h implicit - prev ${PACKAGE_ast_INCLUDE}/sfio.h - done - make include/history.h implicit - prev ${PACKAGE_ast_INCLUDE}/ast.h - done - make ${PACKAGE_ast_INCLUDE}/cmd.h implicit - prev ${PACKAGE_ast_INCLUDE}/dlldefs.h implicit - make ${PACKAGE_ast_INCLUDE}/cmdext.h implicit - prev ${PACKAGE_ast_INCLUDE}/shcmd.h implicit - done - prev ${PACKAGE_ast_INCLUDE}/shcmd.h - prev ${PACKAGE_ast_INCLUDE}/stk.h - prev ${PACKAGE_ast_INCLUDE}/error.h - prev ${PACKAGE_ast_INCLUDE}/ast.h - done - prev ${PACKAGE_ast_INCLUDE}/shcmd.h - make include/nval.h implicit - prev ${PACKAGE_ast_INCLUDE}/option.h - make ${PACKAGE_ast_INCLUDE}/cdt.h implicit - prev ${PACKAGE_ast_INCLUDE}/ast_common.h - prev ${PACKAGE_ast_INCLUDE}/ast_std.h - done - prev ${PACKAGE_ast_INCLUDE}/ast.h - done - make include/name.h implicit - prev include/nval.h - prev ${PACKAGE_ast_INCLUDE}/cdt.h - prev ${PACKAGE_ast_INCLUDE}/ast.h - done - prev ${PACKAGE_ast_INCLUDE}/cdt.h - prev ${PACKAGE_ast_INCLUDE}/ast.h - done - prev shopt.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Iinclude -I${PACKAGE_ast_INCLUDE} -D_API_ast=20100309 -DERROR_CONTEXT_T=Error_context_t -c ${<} - done pmain.o - make libshell.a - make alarm.o - make bltins/alarm.c - make FEATURE/time implicit - prev features/time - exec - iffe ${IFFEFLAGS} -v -c "${CC} ${mam_cc_FLAGS} ${CCFLAGS} ${LDFLAGS}" ref ${mam_cc_L+-L.} ${mam_cc_L+-L${INSTALLROOT}/lib} -I${PACKAGE_ast_INCLUDE} -I${INSTALLROOT}/include ${mam_libdll} ${mam_libcmd} ${mam_libast} ${mam_libm} ${mam_libnsl} : run ${<} - make ${PACKAGE_ast_INCLUDE}/times.h implicit - prev ${PACKAGE_ast_INCLUDE}/ast_time.h implicit - prev ${PACKAGE_ast_INCLUDE}/ast.h - done - done - make include/builtins.h implicit - prev include/shtable.h implicit - make FEATURE/dynamic implicit - prev features/dynamic - exec - iffe ${IFFEFLAGS} -v -c "${CC} ${mam_cc_FLAGS} ${CCFLAGS} ${LDFLAGS}" ref ${mam_cc_L+-L.} ${mam_cc_L+-L${INSTALLROOT}/lib} -I${PACKAGE_ast_INCLUDE} -I${INSTALLROOT}/include ${mam_libdll} ${mam_libcmd} ${mam_libast} ${mam_libm} ${mam_libnsl} : run ${<} - prev ${PACKAGE_ast_INCLUDE}/dlldefs.h - done - prev ${PACKAGE_ast_INCLUDE}/option.h - done - prev ${PACKAGE_ast_INCLUDE}/error.h - make include/defs.h implicit - prev include/regress.h implicit - prev include/shtable.h - prev include/shell.h - prev ${PACKAGE_ast_INCLUDE}/endian.h - prev include/name.h - prev include/argnod.h implicit - prev ${PACKAGE_ast_INCLUDE}/cdt.h - prev FEATURE/externs - prev ${PACKAGE_ast_INCLUDE}/error.h - prev ${PACKAGE_ast_INCLUDE}/sfio.h - prev ${PACKAGE_ast_INCLUDE}/ast.h - done - prev shopt.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Iinclude -I${PACKAGE_ast_INCLUDE} -D_API_ast=20100309 -DERROR_CONTEXT_T=Error_context_t -c ${<} - done - make cd_pwd.o - make bltins/cd_pwd.c - make include/test.h implicit - prev include/shtable.h - prev include/defs.h - done - make ${PACKAGE_ast_INCLUDE}/ls.h implicit - prev ${PACKAGE_ast_INCLUDE}/ast_mode.h implicit - prev ${PACKAGE_ast_INCLUDE}/ast_fs.h - prev ${PACKAGE_ast_INCLUDE}/ast_std.h - done - prev include/builtins.h - prev include/name.h - make include/path.h implicit - prev include/defs.h - prev include/nval.h - done - make include/variables.h implicit - prev FEATURE/dynamic - prev ${PACKAGE_ast_INCLUDE}/option.h - prev include/nval.h - done - prev ${PACKAGE_ast_INCLUDE}/error.h - prev include/defs.h - prev shopt.h + note * + note * AST header dependencies + note * TODO: verify and centralise + note * + + make ${PACKAGE_ast_INCLUDE}/sfio.h implicit + prev ${PACKAGE_ast_INCLUDE}/sfio_s.h implicit + make ${PACKAGE_ast_INCLUDE}/ast_common.h implicit + prev ${PACKAGE_ast_INCLUDE}/ast_map.h implicit + make ${PACKAGE_ast_INCLUDE}/endian.h implicit + make ${PACKAGE_ast_INCLUDE}/bytesex.h implicit + prev ${PACKAGE_ast_INCLUDE}/ast_common.h done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Iinclude -I${PACKAGE_ast_INCLUDE} -D_API_ast=20100309 -DERROR_CONTEXT_T=Error_context_t -c ${<} done - make cflow.o - make bltins/cflow.c - prev include/builtins.h - make include/shnodes.h implicit - prev include/argnod.h - prev ${PACKAGE_ast_INCLUDE}/ast.h - done - prev ${PACKAGE_ast_INCLUDE}/error.h - prev ${PACKAGE_ast_INCLUDE}/ast.h - prev include/defs.h - prev shopt.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Iinclude -I${PACKAGE_ast_INCLUDE} -D_API_ast=20100309 -DERROR_CONTEXT_T=Error_context_t -c ${<} - done - make deparse.o - make sh/deparse.c - prev include/test.h - prev include/shnodes.h - prev include/defs.h - prev shopt.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Iinclude -I${PACKAGE_ast_INCLUDE} -D_API_ast=20100309 -DERROR_CONTEXT_T=Error_context_t -c ${<} - done - make enum.o - make bltins/enum.c - prev include/defs.h - prev shopt.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Iinclude -I${PACKAGE_ast_INCLUDE} -DERROR_CATALOG=${SH_DICT} -D_API_ast=20100309 -DERROR_CONTEXT_T=Error_context_t -c ${<} - done - make getopts.o - make bltins/getopts.c - prev include/builtins.h - prev include/nval.h - prev ${PACKAGE_ast_INCLUDE}/error.h - prev include/variables.h - prev include/defs.h - prev shopt.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Iinclude -I${PACKAGE_ast_INCLUDE} -D_API_ast=20100309 -DERROR_CONTEXT_T=Error_context_t -c ${<} - done - make hist.o - make bltins/hist.c - make include/edit.h implicit - prev include/national.h implicit - make include/terminal.h implicit - make FEATURE/ttys implicit - prev features/ttys - exec - iffe ${IFFEFLAGS} -v -c "${CC} ${mam_cc_FLAGS} ${CCFLAGS} ${LDFLAGS}" ref ${mam_cc_L+-L.} ${mam_cc_L+-L${INSTALLROOT}/lib} -I${PACKAGE_ast_INCLUDE} -I${INSTALLROOT}/include ${mam_libdll} ${mam_libcmd} ${mam_libast} ${mam_libm} ${mam_libnsl} : run ${<} - done - done - prev ${PACKAGE_ast_INCLUDE}/sig.h - make FEATURE/locale implicit - prev features/locale - exec - iffe ${IFFEFLAGS} -v -c "${CC} ${mam_cc_FLAGS} ${CCFLAGS} ${LDFLAGS}" ref ${mam_cc_L+-L.} ${mam_cc_L+-L${INSTALLROOT}/lib} -I${PACKAGE_ast_INCLUDE} -I${INSTALLROOT}/include ${mam_libdll} ${mam_libcmd} ${mam_libast} ${mam_libm} ${mam_libnsl} : run ${<} - done - make FEATURE/cmds implicit - prev features/cmds - exec - iffe ${IFFEFLAGS} -v -c "${CC} ${mam_cc_FLAGS} ${CCFLAGS} ${LDFLAGS}" ref ${mam_cc_L+-L.} ${mam_cc_L+-L${INSTALLROOT}/lib} -I${PACKAGE_ast_INCLUDE} -I${INSTALLROOT}/include ${mam_libdll} ${mam_libcmd} ${mam_libast} ${mam_libm} ${mam_libnsl} : run ${<} - done - done - prev include/builtins.h - prev include/history.h - prev include/name.h - make include/io.h implicit - prev ${PACKAGE_ast_INCLUDE}/sfio.h - prev ${PACKAGE_ast_INCLUDE}/ast.h - done - prev include/variables.h - prev ${PACKAGE_ast_INCLUDE}/error.h - prev ${PACKAGE_ast_INCLUDE}/ls.h - prev include/defs.h - prev shopt.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Iinclude -I${PACKAGE_ast_INCLUDE} -D_API_ast=20100309 -DERROR_CONTEXT_T=Error_context_t -c ${<} - done - make misc.o - make bltins/misc.c - prev ${PACKAGE_ast_INCLUDE}/times.h - prev FEATURE/time - prev FEATURE/locale - make include/jobs.h implicit - prev ${PACKAGE_ast_INCLUDE}/vmalloc.h - prev include/terminal.h - make ${PACKAGE_ast_INCLUDE}/aso.h implicit - prev ${PACKAGE_ast_INCLUDE}/ast_common.h - done - prev ${PACKAGE_ast_INCLUDE}/sfio.h - prev ${PACKAGE_ast_INCLUDE}/ast.h - done - prev include/builtins.h - prev include/history.h - prev include/name.h - prev include/io.h - prev include/path.h - prev include/shnodes.h - prev include/variables.h - prev include/defs.h - prev shopt.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Iinclude -I${PACKAGE_ast_INCLUDE} -D_API_ast=20100309 -DERROR_CONTEXT_T=Error_context_t -c ${<} - done - make mkservice.o - make bltins/mkservice.c - prev ${PACKAGE_ast_INCLUDE}/cmd.h - prev ${PACKAGE_ast_INCLUDE}/error.h - prev include/nval.h - prev include/defs.h - prev shopt.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Iinclude -I${PACKAGE_ast_INCLUDE} -DSH_DICT=${SH_DICT} -D_API_ast=20100309 -DERROR_CONTEXT_T=Error_context_t -c ${<} - done - make print.o - make bltins/print.c - make ${PACKAGE_ast_INCLUDE}/ccode.h implicit - prev ${PACKAGE_ast_INCLUDE}/ast_ccode.h implicit - prev ${PACKAGE_ast_INCLUDE}/ast_common.h - done - make ${PACKAGE_ast_INCLUDE}/tmx.h implicit - make ${PACKAGE_ast_INCLUDE}/tv.h implicit - prev ${PACKAGE_ast_INCLUDE}/ast.h - done - make ${PACKAGE_ast_INCLUDE}/tm.h implicit - prev ${PACKAGE_ast_INCLUDE}/times.h - prev ${PACKAGE_ast_INCLUDE}/ast.h - done - done - make include/streval.h implicit - make ${PACKAGE_ast_INCLUDE}/ast_float.h implicit + done + make ${PACKAGE_ast_INCLUDE}/ast_std.h implicit + make ${PACKAGE_ast_INCLUDE}/regex.h implicit + prev ${PACKAGE_ast_INCLUDE}/ast_api.h implicit + make ${PACKAGE_ast_INCLUDE}/ast_wchar.h implicit + make ${PACKAGE_ast_INCLUDE}/wctype.h implicit + make ${PACKAGE_ast_INCLUDE}/ast_wctype.h implicit prev ${PACKAGE_ast_INCLUDE}/endian.h - prev ${PACKAGE_ast_INCLUDE}/ast_common.h - done - prev include/defs.h - prev ${PACKAGE_ast_INCLUDE}/ast.h - done - prev include/builtins.h - prev include/history.h - prev include/name.h - prev include/io.h - prev ${PACKAGE_ast_INCLUDE}/error.h - prev include/defs.h - prev shopt.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Iinclude -I${PACKAGE_ast_INCLUDE} -D_API_ast=20100309 -DERROR_CONTEXT_T=Error_context_t -c ${<} - done - make read.o - make bltins/read.c - prev include/edit.h - prev include/terminal.h - prev include/history.h - prev include/builtins.h - prev include/name.h - prev include/io.h - make include/lexstates.h implicit - prev ${PACKAGE_ast_INCLUDE}/wctype.h - prev ${PACKAGE_ast_INCLUDE}/wchar.h - prev FEATURE/locale - done - prev include/variables.h - prev include/defs.h - prev ${PACKAGE_ast_INCLUDE}/error.h - prev ${PACKAGE_ast_INCLUDE}/ast.h - prev shopt.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Iinclude -I${PACKAGE_ast_INCLUDE} -D_API_ast=20100309 -DERROR_CONTEXT_T=Error_context_t -c ${<} - done - make sleep.o - make bltins/sleep.c - make FEATURE/poll implicit - prev features/poll - exec - iffe ${IFFEFLAGS} -v -c "${CC} ${mam_cc_FLAGS} ${CCFLAGS} ${LDFLAGS}" ref ${mam_cc_L+-L.} ${mam_cc_L+-L${INSTALLROOT}/lib} -I${PACKAGE_ast_INCLUDE} -I${INSTALLROOT}/include ${mam_libdll} ${mam_libcmd} ${mam_libast} ${mam_libm} ${mam_libnsl} : run ${<} - done - prev FEATURE/time - prev include/builtins.h - prev ${PACKAGE_ast_INCLUDE}/tmx.h - prev ${PACKAGE_ast_INCLUDE}/error.h - prev include/defs.h - prev shopt.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Iinclude -I${PACKAGE_ast_INCLUDE} -D_API_ast=20100309 -DERROR_CONTEXT_T=Error_context_t -c ${<} - done - make trap.o - make bltins/trap.c - prev include/builtins.h - prev include/jobs.h - prev include/defs.h - prev shopt.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Iinclude -I${PACKAGE_ast_INCLUDE} -D_API_ast=20100309 -DERROR_CONTEXT_T=Error_context_t -c ${<} - done - make test.o - make bltins/test.c - prev ${PACKAGE_ast_INCLUDE}/tmx.h - prev FEATURE/poll - prev FEATURE/externs - prev include/builtins.h - prev include/test.h - prev include/terminal.h - prev include/io.h - prev ${PACKAGE_ast_INCLUDE}/regex.h - prev ${PACKAGE_ast_INCLUDE}/ls.h - prev ${PACKAGE_ast_INCLUDE}/error.h - prev include/defs.h - prev shopt.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Iinclude -I${PACKAGE_ast_INCLUDE} -D_API_ast=20100309 -DERROR_CONTEXT_T=Error_context_t -c ${<} - done - make typeset.o - make bltins/typeset.c - prev FEATURE/dynamic - prev include/variables.h - prev include/builtins.h - prev include/history.h - prev include/name.h - prev include/path.h - prev ${PACKAGE_ast_INCLUDE}/error.h - prev include/defs.h - prev shopt.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Iinclude -I${PACKAGE_ast_INCLUDE} -D_API_ast=20100309 -DERROR_CONTEXT_T=Error_context_t -c ${<} - done - make ulimit.o - make bltins/ulimit.c - make include/ulimit.h implicit - make FEATURE/rlimits implicit - prev features/rlimits - exec - iffe ${IFFEFLAGS} -v -c "${CC} ${mam_cc_FLAGS} ${CCFLAGS} ${LDFLAGS}" ref ${mam_cc_L+-L.} ${mam_cc_L+-L${INSTALLROOT}/lib} -I${PACKAGE_ast_INCLUDE} -I${INSTALLROOT}/include ${mam_libdll} ${mam_libcmd} ${mam_libast} ${mam_libm} ${mam_libnsl} : run ${<} - done - prev FEATURE/time - done - prev include/name.h - prev include/builtins.h - prev include/defs.h - prev ${PACKAGE_ast_INCLUDE}/error.h - prev ${PACKAGE_ast_INCLUDE}/sfio.h - prev ${PACKAGE_ast_INCLUDE}/ast.h - prev shopt.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Iinclude -I${PACKAGE_ast_INCLUDE} -D_API_ast=20100309 -DERROR_CONTEXT_T=Error_context_t -c ${<} - done - make umask.o - make bltins/umask.c - prev include/builtins.h - prev include/shell.h - prev ${PACKAGE_ast_INCLUDE}/ls.h - prev ${PACKAGE_ast_INCLUDE}/error.h - prev ${PACKAGE_ast_INCLUDE}/sfio.h - prev ${PACKAGE_ast_INCLUDE}/ast.h - prev shopt.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Iinclude -I${PACKAGE_ast_INCLUDE} -D_API_ast=20100309 -DERROR_CONTEXT_T=Error_context_t -c ${<} - done - make whence.o - make bltins/whence.c - prev include/builtins.h - make include/shlex.h implicit - prev include/lexstates.h - prev include/shtable.h - prev include/shnodes.h - prev ${PACKAGE_ast_INCLUDE}/cdt.h - done - prev include/path.h - prev include/name.h - prev include/shtable.h - prev ${PACKAGE_ast_INCLUDE}/error.h - prev include/defs.h - prev shopt.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Iinclude -I${PACKAGE_ast_INCLUDE} -D_API_ast=20100309 -DERROR_CONTEXT_T=Error_context_t -c ${<} - done - make main.o - make sh/main.c - prev nc.h implicit dontcare virtual - prev FEATURE/externs - prev FEATURE/time - prev include/timeout.h implicit - prev include/history.h - prev include/shnodes.h - prev include/shlex.h - prev include/jobs.h - prev include/io.h - prev include/path.h - prev include/variables.h - prev include/defs.h - make include/fcin.h implicit - prev ${PACKAGE_ast_INCLUDE}/sfio.h - done - prev ${PACKAGE_ast_INCLUDE}/ls.h - prev ${PACKAGE_ast_INCLUDE}/sfio.h - prev ${PACKAGE_ast_INCLUDE}/ast.h - prev shopt.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} ${-debug-symbols?1?${mam_cc_DEBUG} -D_BLD_DEBUG?${CCFLAGS.FORCE}?} ${DEBUG+-DDEBUG=${DEBUG}} -DSH_DICT=${SH_DICT} ${SH_CMDLIB_DIR+-DSH_CMDLIB_DIR=${SH_CMDLIB_DIR}} -I. -Iinclude -I${PACKAGE_ast_INCLUDE} -D_API_ast=20100309 -DERROR_CONTEXT_T=Error_context_t -c ${<} - done - make nvdisc.o - make sh/nvdisc.c - prev include/shlex.h - prev include/io.h - prev include/path.h - prev include/builtins.h - prev include/variables.h - prev include/defs.h - prev shopt.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Iinclude -I${PACKAGE_ast_INCLUDE} -D_API_ast=20100309 -DERROR_CONTEXT_T=Error_context_t -c ${<} - done - make nvtype.o - make sh/nvtype.c - prev include/builtins.h - prev include/variables.h - prev include/io.h - prev include/defs.h - prev shopt.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -DSH_DICT=${SH_DICT} -I. -Iinclude -I${PACKAGE_ast_INCLUDE} -D_API_ast=20100309 -DERROR_CONTEXT_T=Error_context_t -c ${<} - done - make arith.o - make sh/arith.c - prev include/builtins.h - prev include/variables.h - prev include/streval.h - prev include/name.h - prev include/lexstates.h - prev include/defs.h - prev shopt.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Iinclude -I${PACKAGE_ast_INCLUDE} -D_API_ast=20100309 -DERROR_CONTEXT_T=Error_context_t -c ${<} - done - make args.o - make sh/args.c - prev include/io.h - prev include/shlex.h - prev FEATURE/poll - prev include/edit.h - prev include/terminal.h - prev include/builtins.h - prev include/jobs.h - prev include/path.h - prev include/defs.h - prev shopt.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Iinclude -I${PACKAGE_ast_INCLUDE} -D_API_ast=20100309 -DERROR_CONTEXT_T=Error_context_t -c ${<} - done - make array.o - make sh/array.c - prev include/name.h - prev include/defs.h - prev shopt.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Iinclude -I${PACKAGE_ast_INCLUDE} -D_API_ast=20100309 -DERROR_CONTEXT_T=Error_context_t -c ${<} - done - make completion.o - make edit/completion.c - prev include/history.h - prev include/edit.h - prev include/io.h - prev include/path.h - prev include/lexstates.h - prev ${PACKAGE_ast_INCLUDE}/ast_wchar.h - prev include/defs.h - prev shopt.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Iinclude -I${PACKAGE_ast_INCLUDE} -D_API_ast=20100309 -DERROR_CONTEXT_T=Error_context_t -c ${<} - done - make defs.o - make sh/defs.c - prev include/timeout.h - prev include/edit.h - prev include/shlex.h - prev include/jobs.h - prev include/defs.h - prev shopt.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Iinclude -I${PACKAGE_ast_INCLUDE} -D_API_ast=20100309 -DERROR_CONTEXT_T=Error_context_t -c ${<} - done - make edit.o - make edit/edit.c - prev include/shlex.h - prev include/edit.h - prev include/history.h - prev include/terminal.h - prev include/io.h - prev include/variables.h - prev include/defs.h - prev ${PACKAGE_ast_INCLUDE}/ls.h - prev FEATURE/time - prev include/fault.h - prev ${PACKAGE_ast_INCLUDE}/ccode.h - prev ${PACKAGE_ast_INCLUDE}/ast.h - prev shopt.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Iinclude -I${PACKAGE_ast_INCLUDE} -D_API_ast=20100309 -DERROR_CONTEXT_T=Error_context_t -c ${<} - done - make expand.o - make sh/expand.c - prev include/path.h - prev include/io.h - make ${PACKAGE_ast_INCLUDE}/ast_dir.h implicit - make ${PACKAGE_ast_INCLUDE}/dirent.h implicit - make ${PACKAGE_ast_INCLUDE}/ast_dirent.h implicit - prev ${PACKAGE_ast_INCLUDE}/ast_std.h + make ${PACKAGE_ast_INCLUDE}/wchar.h implicit + prev ${PACKAGE_ast_INCLUDE}/ast_wchar.h done done - prev dirlib.h implicit dontcare virtual - prev ${PACKAGE_ast_INCLUDE}/ast_lib.h - done - prev ${PACKAGE_ast_INCLUDE}/ls.h - prev ${PACKAGE_ast_INCLUDE}/glob.h implicit - prev ${PACKAGE_ast_INCLUDE}/ast.h - prev include/test.h - prev include/variables.h - prev include/defs.h - prev shopt.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Iinclude -I${PACKAGE_ast_INCLUDE} -D_API_ast=20100309 -DERROR_CONTEXT_T=Error_context_t -c ${<} - done - make regress.o - make bltins/regress.c - prev ${PACKAGE_ast_INCLUDE}/tmx.h - prev include/builtins.h - prev include/io.h - prev ${PACKAGE_ast_INCLUDE}/ls.h - prev ${PACKAGE_ast_INCLUDE}/error.h - prev include/defs.h - prev shopt.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -DSH_DICT=${SH_DICT} -I. -Iinclude -I${PACKAGE_ast_INCLUDE} -D_API_ast=20100309 -DERROR_CONTEXT_T=Error_context_t -c ${<} - done - make fault.o - make sh/fault.c - prev ${PACKAGE_ast_INCLUDE}/vmalloc.h - prev include/ulimit.h - prev include/builtins.h - prev include/path.h - prev include/jobs.h - prev include/variables.h - prev include/shlex.h - prev include/history.h - prev include/io.h - prev include/fcin.h - prev include/defs.h - prev shopt.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Iinclude -I${PACKAGE_ast_INCLUDE} -D_API_ast=20100309 -DERROR_CONTEXT_T=Error_context_t -c ${<} - done - make fcin.o - make sh/fcin.c - prev include/fcin.h - prev ${PACKAGE_ast_INCLUDE}/error.h - prev ${PACKAGE_ast_INCLUDE}/sfio.h - prev ${PACKAGE_ast_INCLUDE}/ast.h - prev shopt.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Iinclude -I${PACKAGE_ast_INCLUDE} -D_API_ast=20100309 -DERROR_CONTEXT_T=Error_context_t -c ${<} - done - make history.o - make edit/history.c - prev ${PACKAGE_ast_INCLUDE}/stdio.h - prev include/history.h - prev include/io.h - prev include/builtins.h - prev include/path.h - prev include/variables.h - prev include/defs.h - prev ${PACKAGE_ast_INCLUDE}/ls.h - prev ${PACKAGE_ast_INCLUDE}/error.h - prev FEATURE/time - prev ${PACKAGE_ast_INCLUDE}/sfio.h - prev ${PACKAGE_ast_INCLUDE}/ast.h - prev shopt.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Iinclude -I${PACKAGE_ast_INCLUDE} -D_API_ast=20100309 -DERROR_CONTEXT_T=Error_context_t -c ${<} - done - make init.o - make sh/init.c - prev ${PACKAGE_ast_INCLUDE}/wctype.h - prev ${PACKAGE_ast_INCLUDE}/ast_wchar.h - make include/version.h implicit - prev ${PACKAGE_ast_INCLUDE}/releaseflags.h implicit - done - prev include/lexstates.h - prev FEATURE/externs - prev FEATURE/dynamic - prev FEATURE/time - prev include/builtins.h - prev include/shlex.h - prev include/io.h - prev include/jobs.h - prev include/edit.h - prev include/name.h - prev include/fault.h - prev include/path.h - prev include/variables.h - prev ${PACKAGE_ast_INCLUDE}/ast_random.h - prev ${PACKAGE_ast_INCLUDE}/regex.h - prev ${PACKAGE_ast_INCLUDE}/tmx.h - prev ${PACKAGE_ast_INCLUDE}/ccode.h - prev include/defs.h - prev shopt.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Iinclude -I${PACKAGE_ast_INCLUDE} -D_API_ast=20100309 -DERROR_CONTEXT_T=Error_context_t -c ${<} - done - make io.o - make sh/io.c - prev ${PACKAGE_ast_INCLUDE}/endian.h - prev FEATURE/poll - prev FEATURE/dynamic - prev FEATURE/externs - prev include/timeout.h - prev include/edit.h - prev include/history.h - prev include/shnodes.h - prev include/shlex.h - prev include/jobs.h - prev include/io.h - prev include/path.h - prev include/variables.h - prev ${PACKAGE_ast_INCLUDE}/regex.h - prev ${PACKAGE_ast_INCLUDE}/ls.h - prev include/fcin.h - prev include/defs.h - prev shopt.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Iinclude -I${PACKAGE_ast_INCLUDE} -D_API_ast=20100309 -DERROR_CONTEXT_T=Error_context_t -c ${<} - done - make jobs.o - make sh/jobs.c - prev include/history.h - prev include/jobs.h - prev include/io.h - make ${PACKAGE_ast_INCLUDE}/wait.h implicit - prev ${PACKAGE_ast_INCLUDE}/ast_wait.h implicit - prev ${PACKAGE_ast_INCLUDE}/ast.h done - prev include/defs.h - prev shopt.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Iinclude -I${PACKAGE_ast_INCLUDE} -D_API_ast=20100309 -DERROR_CONTEXT_T=Error_context_t -c ${<} - done - make lex.o - make sh/lex.c - prev include/shlex.h - prev include/io.h - prev include/lexstates.h - prev include/test.h - prev include/argnod.h - prev include/shell.h - prev include/defs.h - prev include/nval.h - prev include/fcin.h - prev ${PACKAGE_ast_INCLUDE}/releaseflags.h - prev ${PACKAGE_ast_INCLUDE}/ast.h - prev shopt.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Iinclude -I${PACKAGE_ast_INCLUDE} -D_API_ast=20100309 -DERROR_CONTEXT_T=Error_context_t -c ${<} - done - make macro.o - make sh/macro.c - prev include/streval.h - prev include/national.h - prev include/path.h - prev include/shnodes.h - prev include/jobs.h - prev include/io.h - prev include/shlex.h - prev include/variables.h - prev include/name.h - prev ${PACKAGE_ast_INCLUDE}/regex.h - prev include/fcin.h - prev include/defs.h - prev shopt.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Iinclude -I${PACKAGE_ast_INCLUDE} -D_API_ast=20100309 -DERROR_CONTEXT_T=Error_context_t -c ${<} - done - make name.o - make sh/name.c - prev include/builtins.h - prev include/shnodes.h - prev include/streval.h - prev FEATURE/externs - prev include/timeout.h - prev include/lexstates.h - prev include/path.h - prev include/variables.h - prev include/defs.h - prev shopt.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Iinclude -I${PACKAGE_ast_INCLUDE} -D_API_ast=20100309 -DERROR_CONTEXT_T=Error_context_t -c ${<} - done - make nvtree.o - make sh/nvtree.c - prev include/lexstates.h - prev include/argnod.h - prev include/name.h - prev include/defs.h - prev shopt.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Iinclude -I${PACKAGE_ast_INCLUDE} -D_API_ast=20100309 -DERROR_CONTEXT_T=Error_context_t -c ${<} - done - make parse.o - make sh/parse.c - prev include/path.h - prev include/test.h - prev include/builtins.h - prev include/history.h - prev include/shlex.h - prev ${PACKAGE_ast_INCLUDE}/error.h - prev include/fcin.h - prev include/shell.h - prev include/defs.h - prev include/version.h - prev shopt.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Iinclude -I${PACKAGE_ast_INCLUDE} -D_API_ast=20100309 -DERROR_CONTEXT_T=Error_context_t -c ${<} - done - make path.o - make sh/path.c - prev FEATURE/time - prev ${PACKAGE_ast_INCLUDE}/endian.h - prev exec_attr.h implicit dontcare virtual - prev FEATURE/dynamic - prev include/test.h - prev include/history.h - prev include/jobs.h - prev include/io.h - prev include/path.h - prev include/variables.h - prev include/nval.h - prev ${PACKAGE_ast_INCLUDE}/ls.h - prev include/fcin.h - prev include/defs.h - prev shopt.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Iinclude -I${PACKAGE_ast_INCLUDE} -D_API_ast=20100309 -DERROR_CONTEXT_T=Error_context_t -c ${<} - done - make string.o - make sh/string.c - prev ${PACKAGE_ast_INCLUDE}/wctype.h - prev include/national.h - prev include/lexstates.h - prev include/shtable.h - prev ${PACKAGE_ast_INCLUDE}/ccode.h - prev include/defs.h - prev ${PACKAGE_ast_INCLUDE}/ast_wchar.h - prev ${PACKAGE_ast_INCLUDE}/ast.h - prev shopt.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Iinclude -I${PACKAGE_ast_INCLUDE} -D_API_ast=20100309 -DERROR_CONTEXT_T=Error_context_t -c ${<} - done - make streval.o - make sh/streval.c - prev FEATURE/externs - prev ${PACKAGE_ast_INCLUDE}/error.h - prev include/streval.h - prev shopt.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Iinclude -I${PACKAGE_ast_INCLUDE} -D_API_ast=20100309 -DERROR_CONTEXT_T=Error_context_t -c ${<} - done - make subshell.o - make sh/subshell.c - prev include/path.h - prev include/variables.h - prev include/jobs.h - prev include/shlex.h - prev include/shnodes.h - prev include/fault.h - prev include/io.h - prev ${PACKAGE_ast_INCLUDE}/ls.h - prev include/defs.h - prev shopt.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Iinclude -I${PACKAGE_ast_INCLUDE} -D_API_ast=20100309 -DERROR_CONTEXT_T=Error_context_t -c ${<} - done - make tdump.o - make sh/tdump.c - prev ${PACKAGE_ast_INCLUDE}/ccode.h - prev include/io.h - prev include/path.h - prev include/shnodes.h - prev include/defs.h - prev shopt.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Iinclude -I${PACKAGE_ast_INCLUDE} -D_API_ast=20100309 -DERROR_CONTEXT_T=Error_context_t -c ${<} - done - make timers.o - make sh/timers.c - prev FEATURE/time - prev FEATURE/sigfeatures - prev include/defs.h - prev include/fault.h - prev ${PACKAGE_ast_INCLUDE}/error.h - prev ${PACKAGE_ast_INCLUDE}/sig.h - prev ${PACKAGE_ast_INCLUDE}/ast.h - prev shopt.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Iinclude -I${PACKAGE_ast_INCLUDE} -D_API_ast=20100309 -DERROR_CONTEXT_T=Error_context_t -c ${<} - done - make trestore.o - make sh/trestore.c - prev ${PACKAGE_ast_INCLUDE}/ccode.h - prev include/io.h - prev include/path.h - prev include/shnodes.h - prev include/defs.h - prev shopt.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} ${-debug-symbols?1?${mam_cc_DEBUG} -D_BLD_DEBUG?${CCFLAGS.FORCE}?} ${SH_CMDLIB_DIR+-DSH_CMDLIB_DIR=${SH_CMDLIB_DIR}} -DSH_DICT=${SH_DICT} -I. -Iinclude -I${PACKAGE_ast_INCLUDE} -D_API_ast=20100309 -DERROR_CONTEXT_T=Error_context_t -c ${<} - done - make waitevent.o - make sh/waitevent.c - prev include/defs.h - prev shopt.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Iinclude -I${PACKAGE_ast_INCLUDE} -D_API_ast=20100309 -DERROR_CONTEXT_T=Error_context_t -c ${<} - done - make xec.o - make sh/xec.c - prev ${PACKAGE_ast_INCLUDE}/vmalloc.h - prev include/streval.h - prev FEATURE/locale - prev FEATURE/externs - prev FEATURE/time - prev include/builtins.h - prev include/test.h - prev include/jobs.h - prev include/shnodes.h - prev include/io.h - prev include/name.h - prev include/path.h - prev include/variables.h - prev include/fcin.h - prev include/defs.h - prev shopt.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Iinclude -I${PACKAGE_ast_INCLUDE} -D_API_ast=20100309 -DERROR_CONTEXT_T=Error_context_t -c ${<} - done - make limits.o - make data/limits.c - prev include/ulimit.h - prev ${PACKAGE_ast_INCLUDE}/ast.h - prev shopt.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Iinclude -I${PACKAGE_ast_INCLUDE} -D_API_ast=20100309 -c ${<} - done - make msg.o - make data/msg.c - prev include/edit.h - prev include/jobs.h - prev include/builtins.h - prev include/history.h - prev include/timeout.h - prev include/shlex.h - prev include/io.h - prev include/path.h - prev include/defs.h - prev ${PACKAGE_ast_INCLUDE}/ast.h - prev shopt.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Iinclude -I${PACKAGE_ast_INCLUDE} -D_API_ast=20100309 -DERROR_CONTEXT_T=Error_context_t -c ${<} - done - make strdata.o - make data/strdata.c - make FEATURE/math implicit - prev ${PACKAGE_ast_INCLUDE}/ast_float.h - make features/math.sh - prev data/math.tab implicit - done - exec - iffe ${IFFEFLAGS} -v -c "${CC} ${mam_cc_FLAGS} ${CCFLAGS} ${LDFLAGS}" ref ${mam_cc_L+-L.} ${mam_cc_L+-L${INSTALLROOT}/lib} -I${PACKAGE_ast_INCLUDE} -I${INSTALLROOT}/include ${mam_libdll} ${mam_libcmd} ${mam_libast} ${mam_libm} ${mam_libnsl} : run ${<} data/math.tab - prev ${PACKAGE_ast_INCLUDE}/ast_standards.h implicit - make ${INSTALLROOT}/src/lib/libast/FEATURE/float implicit - prev ${INSTALLROOT}/src/lib/libast/FEATURE/standards implicit - prev ${PACKAGE_ast_INCLUDE}/ast_common.h + make ${PACKAGE_ast_INCLUDE}/stdio.h implicit + make ${PACKAGE_ast_INCLUDE}/ast_stdio.h implicit + prev ${PACKAGE_ast_INCLUDE}/sfio_s.h + prev ${PACKAGE_ast_INCLUDE}/ast_std.h done done - prev include/streval.h - prev ${PACKAGE_ast_INCLUDE}/ast_standards.h - prev shopt.h + prev ${PACKAGE_ast_INCLUDE}/ast_common.h done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} ${-debug-symbols?1?${mam_cc_DEBUG} -D_BLD_DEBUG?${CCFLAGS.FORCE}?} ${SH_CMDLIB_DIR+-DSH_CMDLIB_DIR=${SH_CMDLIB_DIR}} -DSH_DICT=${SH_DICT} -I. -Iinclude -I${PACKAGE_ast_INCLUDE} -D_API_ast=20100309 -DERROR_CONTEXT_T=Error_context_t -c ${<} + prev ${PACKAGE_ast_INCLUDE}/ast_common.h done - make testops.o - make data/testops.c - prev include/test.h - prev include/defs.h - prev ${PACKAGE_ast_INCLUDE}/ast.h - prev shopt.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -DSH_DICT=${SH_DICT} -I. -Iinclude -I${PACKAGE_ast_INCLUDE} -D_API_ast=20100309 -DERROR_CONTEXT_T=Error_context_t -c ${<} + make ${PACKAGE_ast_INCLUDE}/getopt.h implicit + prev ${PACKAGE_ast_INCLUDE}/ast_getopt.h implicit done - make keywords.o - make data/keywords.c - prev include/shlex.h - prev include/shell.h - prev shopt.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Iinclude -I${PACKAGE_ast_INCLUDE} -D_API_ast=20100309 -DERROR_CONTEXT_T=Error_context_t -c ${<} - done - make options.o - make data/options.c - prev include/shtable.h - prev include/name.h - prev include/defs.h - prev shopt.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Iinclude -I${PACKAGE_ast_INCLUDE} -D_API_ast=20100309 -DERROR_CONTEXT_T=Error_context_t -c ${<} - done - make signals.o - make data/signals.c - prev include/jobs.h - prev include/defs.h - prev shopt.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Iinclude -I${PACKAGE_ast_INCLUDE} -D_API_ast=20100309 -DERROR_CONTEXT_T=Error_context_t -c ${<} - done - make aliases.o - make data/aliases.c - prev FEATURE/dynamic - prev include/defs.h - prev shopt.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Iinclude -I${PACKAGE_ast_INCLUDE} -D_API_ast=20100309 -DERROR_CONTEXT_T=Error_context_t -c ${<} - done - make builtins.o - make data/builtins.c - prev FEATURE/poll - prev FEATURE/cmds - prev include/jobs.h - prev include/builtins.h - prev include/version.h - prev include/name.h - prev include/ulimit.h - prev include/shtable.h - prev include/defs.h - prev shopt.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -DSH_DICT=${SH_DICT} -I. -Iinclude -I${PACKAGE_ast_INCLUDE} -D_API_ast=20100309 -DERROR_CONTEXT_T=Error_context_t -c ${<} - done - make variables.o - make data/variables.c - prev include/builtins.h - prev include/variables.h - prev include/defs.h - prev include/name.h - prev include/shtable.h - prev include/shell.h - prev FEATURE/dynamic - prev ${PACKAGE_ast_INCLUDE}/ast.h - prev shopt.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Iinclude -I${PACKAGE_ast_INCLUDE} -D_API_ast=20100309 -DERROR_CONTEXT_T=Error_context_t -c ${<} + prev ${PACKAGE_ast_INCLUDE}/ast_map.h + prev ${PACKAGE_ast_INCLUDE}/ast_botch.h implicit + prev ${PACKAGE_ast_INCLUDE}/ast_limits.h implicit + make ${PACKAGE_ast_INCLUDE}/ast_fcntl.h implicit + prev ${PACKAGE_ast_INCLUDE}/ast_fs.h implicit done - make lexstates.o - make data/lexstates.c - prev include/lexstates.h - prev ${PACKAGE_ast_INCLUDE}/ast.h - prev shopt.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Iinclude -I${PACKAGE_ast_INCLUDE} -D_API_ast=20100309 -c ${<} - done - make emacs.o - make edit/emacs.c - prev include/terminal.h - prev include/edit.h - prev include/history.h - prev include/io.h - prev include/defs.h - prev ${PACKAGE_ast_INCLUDE}/releaseflags.h - prev ${PACKAGE_ast_INCLUDE}/ast.h - prev shopt.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Iinclude -I${PACKAGE_ast_INCLUDE} -D_API_ast=20100309 -DERROR_CONTEXT_T=Error_context_t -c ${<} + prev ${PACKAGE_ast_INCLUDE}/ast_getopt.h + make ${PACKAGE_ast_INCLUDE}/ast_sys.h implicit + prev ${PACKAGE_ast_INCLUDE}/getopt.h + prev ${PACKAGE_ast_INCLUDE}/endian.h done - make vi.o - make edit/vi.c - prev include/lexstates.h - prev FEATURE/time - prev include/terminal.h - prev include/edit.h - prev include/history.h - prev include/io.h - prev ${PACKAGE_ast_INCLUDE}/ast.h - prev include/defs.h - prev shopt.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Iinclude -I${PACKAGE_ast_INCLUDE} -D_API_ast=20100309 -DERROR_CONTEXT_T=Error_context_t -c ${<} - done - make hexpand.o - make edit/hexpand.c - prev include/edit.h - prev include/defs.h - prev shopt.h + prev ${PACKAGE_ast_INCLUDE}/ast_lib.h implicit + prev ${PACKAGE_ast_INCLUDE}/ast_common.h + done + done + make ${PACKAGE_ast_INCLUDE}/error.h implicit + make ${PACKAGE_ast_INCLUDE}/option.h implicit + make ${PACKAGE_ast_INCLUDE}/ast.h implicit + prev ${PACKAGE_ast_INCLUDE}/ast_api.h + make ${PACKAGE_ast_INCLUDE}/vmalloc.h implicit + prev ${PACKAGE_ast_INCLUDE}/ast_common.h + prev ${PACKAGE_ast_INCLUDE}/ast_std.h done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Iinclude -I${PACKAGE_ast_INCLUDE} -D_API_ast=20100309 -DERROR_CONTEXT_T=Error_context_t -c ${<} + prev ${PACKAGE_ast_INCLUDE}/sfio.h + prev ${PACKAGE_ast_INCLUDE}/ast_std.h done - exec - if test -f ${@} - exec - then ${AR} rc ${@} ${?} # add changed *.o - exec - else ${AR} rc ${@} ${^} # add all *.o - exec - fi || exit - exec - (ranlib ${@}) >/dev/null 2>&1 || true - done libshell.a - bind -lshell - exec - ${CC} ${CCLDFLAGS} ${mam_cc_FLAGS} ${CCFLAGS} ${LDFLAGS} ${mam_cc_L+-L.} ${mam_cc_L+-L${INSTALLROOT}/lib} -o ksh pmain.o ${mam_libshell} ${mam_libnsl} ${mam_libast} ${mam_libm} - done ksh - make shcomp - make shcomp.o - make sh/shcomp.c - prev include/terminal.h - prev include/shnodes.h - prev include/path.h - prev include/defs.h - prev include/shell.h - prev include/version.h - prev shopt.h + done + prev ${PACKAGE_ast_INCLUDE}/ast.h + done + make ${PACKAGE_ast_INCLUDE}/stk.h implicit + prev ${PACKAGE_ast_INCLUDE}/sfio.h + done + make ${PACKAGE_ast_INCLUDE}/cmd.h implicit + prev ${PACKAGE_ast_INCLUDE}/dlldefs.h implicit + make ${PACKAGE_ast_INCLUDE}/cmdext.h implicit + prev ${PACKAGE_ast_INCLUDE}/shcmd.h implicit + done + prev ${PACKAGE_ast_INCLUDE}/shcmd.h + prev ${PACKAGE_ast_INCLUDE}/stk.h + prev ${PACKAGE_ast_INCLUDE}/error.h + prev ${PACKAGE_ast_INCLUDE}/ast.h + done + make ${PACKAGE_ast_INCLUDE}/cdt.h implicit + prev ${PACKAGE_ast_INCLUDE}/ast_common.h + prev ${PACKAGE_ast_INCLUDE}/ast_std.h + done + make ${PACKAGE_ast_INCLUDE}/times.h implicit + prev ${PACKAGE_ast_INCLUDE}/ast_time.h implicit + prev ${PACKAGE_ast_INCLUDE}/ast.h + done + make ${PACKAGE_ast_INCLUDE}/ls.h implicit + prev ${PACKAGE_ast_INCLUDE}/ast_mode.h implicit + prev ${PACKAGE_ast_INCLUDE}/ast_fs.h + prev ${PACKAGE_ast_INCLUDE}/ast_std.h + done + make ${PACKAGE_ast_INCLUDE}/aso.h implicit + prev ${PACKAGE_ast_INCLUDE}/ast_common.h + done + make ${PACKAGE_ast_INCLUDE}/ccode.h implicit + prev ${PACKAGE_ast_INCLUDE}/ast_ccode.h implicit + prev ${PACKAGE_ast_INCLUDE}/ast_common.h + done + make ${PACKAGE_ast_INCLUDE}/tmx.h implicit + make ${PACKAGE_ast_INCLUDE}/tv.h implicit + prev ${PACKAGE_ast_INCLUDE}/ast.h + done + make ${PACKAGE_ast_INCLUDE}/tm.h implicit + prev ${PACKAGE_ast_INCLUDE}/times.h + prev ${PACKAGE_ast_INCLUDE}/ast.h + done + done + make ${PACKAGE_ast_INCLUDE}/ast_float.h implicit + prev ${PACKAGE_ast_INCLUDE}/endian.h + prev ${PACKAGE_ast_INCLUDE}/ast_common.h + done + make ${PACKAGE_ast_INCLUDE}/ast_dir.h implicit + make ${PACKAGE_ast_INCLUDE}/dirent.h implicit + make ${PACKAGE_ast_INCLUDE}/ast_dirent.h implicit + prev ${PACKAGE_ast_INCLUDE}/ast_std.h done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Iinclude -I${PACKAGE_ast_INCLUDE} -DSH_DICT=${SH_DICT} -D_API_ast=20100309 -DERROR_CONTEXT_T=Error_context_t -c ${<} done - prev ksh - exec - ${CC} ${CCLDFLAGS} ${mam_cc_FLAGS} ${CCFLAGS} ${LDFLAGS} ${mam_cc_L+-L.} ${mam_cc_L+-L${INSTALLROOT}/lib} -o shcomp shcomp.o ${mam_libshell} ${mam_libnsl} ${mam_libast} ${mam_libm} - done shcomp - make shell virtual - prev libshell.a + prev ${PACKAGE_ast_INCLUDE}/ast_lib.h done - prev libshell.a - make ${INSTALLROOT}/bin - exec - mkdir -p ${@} + make ${PACKAGE_ast_INCLUDE}/wait.h implicit + prev ${PACKAGE_ast_INCLUDE}/ast_wait.h implicit + prev ${PACKAGE_ast_INCLUDE}/ast.h done - make ${INSTALLROOT}/bin/ksh - prev ksh - note * macOS throws code signature error if 'cp' overwrites Mach-O binary; must remove first - exec - rm -f ${@} && cp ${<} ${@} + prev ${PACKAGE_ast_INCLUDE}/ast_standards.h implicit + prev ${PACKAGE_ast_INCLUDE}/sig.h implicit + prev ${PACKAGE_ast_INCLUDE}/glob.h implicit + prev ${PACKAGE_ast_INCLUDE}/releaseflags.h implicit + + note * + note * Library dependencies + note * + + bind -ldll + bind -lcmd + bind -last + bind -lm dontcare + bind -lnsl dontcare + + make shell.req + prev ${INSTALLROOT}/bin/mkreq + exec - mkreq ${CC} ${mam_cc_FLAGS} ${CCFLAGS} : ${LDFLAGS} : \ + exec - shell dll cmd ast m jobs i socket nsl secdb network done - make ${INSTALLROOT}/man/man1 - exec - mkdir -p ${@} + + note * + note * Feature tests + note * + + setv iffe_run iffe ${IFFEFLAGS} -v -c '${CC} ${mam_cc_FLAGS} ${CCFLAGS} ${LDFLAGS}' ref ${mam_cc_L+-L.} ${mam_cc_L+-L${INSTALLROOT}/lib} -I${PACKAGE_ast_INCLUDE} -I${INSTALLROOT}/include ${mam_libdll} ${mam_libcmd} ${mam_libast} ${mam_libm} ${mam_libnsl} : run + + make features/time + prev ${PACKAGE_ast_INCLUDE}/times.h done - make ${INSTALLROOT}/man/man1/sh.1 - prev sh.1 - exec - cp -f ${<} ${@} + + make features/dynamic + prev ${PACKAGE_ast_INCLUDE}/dlldefs.h done - make ${INSTALLROOT}/lib - exec - mkdir -p ${@} + + loop F options externs sigfeatures time dynamic ttys locale cmds poll rlimits + make FEATURE/${F} implicit + prev features/${F} + exec - ${iffe_run} ${<} + done done - make ${INSTALLROOT}/lib/libshell.a - prev libshell.a - exec - cp -f ${<} ${@} || exit - exec - (ranlib ${@}) >/dev/null 2>&1 || true + + make FEATURE/math implicit + make features/math.sh + prev ${PACKAGE_ast_INCLUDE}/ast_float.h + prev data/math.tab implicit + done + exec - ${iffe_run} ${<} data/math.tab done - make ${INSTALLROOT}/man/man3 - exec - mkdir -p ${@} + + note * + note * Generate a shopt.h compile-time options header from SHOPT.sh and probe results. + note * + + make shopt.h notrace implicit + prev FEATURE/options + prev SHOPT.sh + prev Mamfile + note * + note * the SHOPT.sh file calls the SHOPT function once for each option + note * + exec - writedef() + exec - { + exec - echo "${3:-#ifndef SHOPT_$1}" + exec - echo "# define SHOPT_$1 $2" + exec - echo "#endif" + exec - echo + exec - } + exec - + exec - SHOPT() + exec - { + exec - n=${1%%=*} # name + exec - v=${1#*=} # value + exec - # probe certain options if they don't have a value configured + exec - case $1 in + exec - 'MULTIBYTE=') + exec - # by default, SHOPT_MULTIBYTE is the opposite of AST_NOMULTIBYE + exec - writedef MULTIBYTE 1 '#if !defined(SHOPT_MULTIBYTE) && !AST_NOMULTIBYTE' ;; + exec - 'DEVFD=') + exec - # if /dev/fd/n exposes file descriptor n, make SHOPT_DEVFD use this for + exec - # process substitutions instead of FIFOs, which are not as secure + exec - # WARNING: do not use 'test -e' for this test (too many shells break it + exec - # by failing to test for the physical existence of /dev/fd/9 in the FS) + exec - ls -d /dev/fd/9 9<&0 >/dev/null 2>&1 && writedef DEVFD 1 ;; + exec - 'TEST_L=') + exec - # if external 'test' supports lowercase -l as equivalent to -L, enable + exec - # SHOPT_TEST_L so ksh supports it for compatibility with local scripts + exec - ln -s /dev/null "$EXECROOT/link$$" + exec - if env test -l "$EXECROOT/link$$" && env test ! -l . + exec - then writedef TEST_L 1 + exec - fi 2>/dev/null + exec - rm -f "$EXECROOT/link$$" ;; + exec - 'PRINTF_LEGACY=') + exec - # if external 'printf' allows POSIX-ignorant syntax (i.e., a format operand + exec - # starting with '-' without prior '--'), enable code for backward compat + exec - case $(env printf '-zut%s\n' alors 2>/dev/null) in + exec - -zutalors) + exec - writedef PRINTF_LEGACY 1 ;; + exec - esac ;; + exec - 'SYSRC=') + exec - # if one of these exists, make SHOPT_SYSRC load /etc/ksh.kshrc by default + exec - if test -f /etc/ksh.kshrc || test -f /etc/bash.bashrc + exec - then writedef SYSRC 1 + exec - fi ;; + exec - # some other SHOPTs may be probed for using feature tests in features/options + exec - *=?*) + exec - writedef "$n" "$v" ;; + exec - esac + exec - echo "* SHOPT_$n = ${v:-(probe)}" >&2 # show in make.out + exec - } + exec - + exec - exec >shopt.h + exec - echo '/* Generated from ksh93/SHOPT.sh by ksh93/Mamfile */' + exec - echo + exec - . "$PACKAGEROOT/src/cmd/ksh93/SHOPT.sh" + exec - cat <<-EOF + exec - #include "FEATURE/options" + exec - + exec - /* overrides */ + exec - #if SHOPT_SCRIPTONLY + exec - # undef SHOPT_ACCT + exec - # undef SHOPT_AUDIT + exec - # undef SHOPT_ESH + exec - # undef SHOPT_HISTEXPAND + exec - # undef SHOPT_SYSRC + exec - # undef SHOPT_VSH + exec - #endif + exec - #if !_sys_acct + exec - # undef SHOPT_ACCT + exec - #endif + exec - EOF + done shopt.h + + note * + note * ksh93 C header (*.h) dependencies + note * + + make include/fault.h implicit + prev FEATURE/sigfeatures + prev ${PACKAGE_ast_INCLUDE}/sfio.h + prev ${PACKAGE_ast_INCLUDE}/error.h + prev ${PACKAGE_ast_INCLUDE}/sig.h done - make ${INSTALLROOT}/man/man3/shell.3 - prev shell.3 - exec - cp -f ${<} ${@} + + make include/history.h implicit + prev ${PACKAGE_ast_INCLUDE}/ast.h done - make ${INSTALLROOT}/man/man3/nval.3 - prev nval.3 - exec - cp -f ${<} ${@} + + make include/nval.h implicit + prev ${PACKAGE_ast_INCLUDE}/option.h + prev ${PACKAGE_ast_INCLUDE}/cdt.h + prev ${PACKAGE_ast_INCLUDE}/ast.h + done + + make include/name.h implicit + prev include/nval.h + prev ${PACKAGE_ast_INCLUDE}/cdt.h + prev ${PACKAGE_ast_INCLUDE}/ast.h done - make ${INSTALLROOT}/lib/lib - exec - mkdir -p ${@} + + make include/shell.h implicit + prev include/fault.h + prev ${PACKAGE_ast_INCLUDE}/stk.h + prev include/history.h + prev ${PACKAGE_ast_INCLUDE}/cmd.h + prev ${PACKAGE_ast_INCLUDE}/shcmd.h + prev include/nval.h + prev include/name.h + prev ${PACKAGE_ast_INCLUDE}/cdt.h + prev ${PACKAGE_ast_INCLUDE}/ast.h done - make ${INSTALLROOT}/lib/lib/shell - prev shell.req - exec - cp -f ${<} ${@} + + make include/shtable.h implicit done - make ${PACKAGE_ast_INCLUDE} - exec - mkdir -p ${PACKAGE_ast_INCLUDE} + + make include/builtins.h implicit + prev include/shtable.h + prev FEATURE/dynamic + prev ${PACKAGE_ast_INCLUDE}/option.h done - make ${PACKAGE_ast_INCLUDE}/nval.h + + make include/regress.h + done + + make include/argnod.h implicit + done + + make include/defs.h implicit + prev include/regress.h + prev include/shtable.h + prev include/shell.h + prev ${PACKAGE_ast_INCLUDE}/endian.h + prev include/name.h + prev include/argnod.h + prev ${PACKAGE_ast_INCLUDE}/cdt.h + prev FEATURE/externs + prev ${PACKAGE_ast_INCLUDE}/error.h + prev ${PACKAGE_ast_INCLUDE}/sfio.h + prev ${PACKAGE_ast_INCLUDE}/ast.h + done + + make include/test.h implicit + prev include/shtable.h + prev include/defs.h + done + + make include/path.h implicit + prev include/defs.h prev include/nval.h - exec - cp -f ${<} ${@} done - make ${PACKAGE_ast_INCLUDE}/shell.h + + make include/variables.h implicit + prev FEATURE/dynamic + prev ${PACKAGE_ast_INCLUDE}/option.h + prev include/nval.h + done + + make include/shnodes.h implicit + prev include/argnod.h + prev ${PACKAGE_ast_INCLUDE}/ast.h + done + + make include/national.h implicit + done + + make include/terminal.h implicit + prev FEATURE/ttys + done + + make include/edit.h implicit + prev include/national.h + prev include/terminal.h + prev ${PACKAGE_ast_INCLUDE}/sig.h + prev FEATURE/locale + prev FEATURE/cmds + done + + make include/io.h implicit + prev ${PACKAGE_ast_INCLUDE}/sfio.h + prev ${PACKAGE_ast_INCLUDE}/ast.h + done + + make include/jobs.h implicit + prev ${PACKAGE_ast_INCLUDE}/vmalloc.h + prev include/terminal.h + prev ${PACKAGE_ast_INCLUDE}/aso.h + prev ${PACKAGE_ast_INCLUDE}/sfio.h + prev ${PACKAGE_ast_INCLUDE}/ast.h + done + + make include/streval.h implicit + prev ${PACKAGE_ast_INCLUDE}/ast_float.h + prev include/defs.h + prev ${PACKAGE_ast_INCLUDE}/ast.h + done + + make include/lexstates.h implicit + prev ${PACKAGE_ast_INCLUDE}/wctype.h + prev ${PACKAGE_ast_INCLUDE}/wchar.h + prev FEATURE/locale + done + + make include/ulimit.h implicit + prev FEATURE/rlimits + prev FEATURE/time + done + + make include/shlex.h implicit + prev include/lexstates.h + prev include/shtable.h + prev include/shnodes.h + prev ${PACKAGE_ast_INCLUDE}/cdt.h + done + + make include/fcin.h implicit + prev ${PACKAGE_ast_INCLUDE}/sfio.h + done + + make include/version.h implicit + prev ${PACKAGE_ast_INCLUDE}/releaseflags.h + done + + make include/timeout.h + done + + note * + note * ksh93 C source (*.c) dependencies + note * + + make sh/pmain.c + prev FEATURE/externs prev include/shell.h - exec - cp -f ${<} ${@} + prev shopt.h + done + + make bltins/alarm.c + prev FEATURE/time + prev include/builtins.h + prev ${PACKAGE_ast_INCLUDE}/error.h + prev include/defs.h + prev shopt.h done - make ${PACKAGE_ast_INCLUDE}/history.h + + make bltins/cd_pwd.c + prev include/test.h + prev ${PACKAGE_ast_INCLUDE}/ls.h + prev include/builtins.h + prev include/name.h + prev include/path.h + prev include/variables.h + prev ${PACKAGE_ast_INCLUDE}/error.h + prev include/defs.h + prev shopt.h + done + + make bltins/cflow.c + prev include/builtins.h + prev include/shnodes.h + prev ${PACKAGE_ast_INCLUDE}/error.h + prev ${PACKAGE_ast_INCLUDE}/ast.h + prev include/defs.h + prev shopt.h + done + + make sh/deparse.c + prev include/test.h + prev include/shnodes.h + prev include/defs.h + prev shopt.h + done + + make bltins/enum.c + prev include/defs.h + prev shopt.h + done + + make bltins/getopts.c + prev include/builtins.h + prev include/nval.h + prev ${PACKAGE_ast_INCLUDE}/error.h + prev include/variables.h + prev include/defs.h + prev shopt.h + done + + make bltins/hist.c + prev include/edit.h + prev include/builtins.h prev include/history.h - exec - cp -f ${<} ${@} + prev include/name.h + prev include/io.h + prev include/variables.h + prev ${PACKAGE_ast_INCLUDE}/error.h + prev ${PACKAGE_ast_INCLUDE}/ls.h + prev include/defs.h + prev shopt.h done - make ${INSTALLROOT}/bin/shcomp - prev shcomp - note * macOS throws code signature error if 'cp' overwrites Mach-O binary; must remove first - exec - rm -f ${@} && cp ${<} ${@} + + make bltins/misc.c + prev ${PACKAGE_ast_INCLUDE}/times.h + prev FEATURE/time + prev FEATURE/locale + prev include/jobs.h + prev include/builtins.h + prev include/history.h + prev include/name.h + prev include/io.h + prev include/path.h + prev include/shnodes.h + prev include/variables.h + prev include/defs.h + prev shopt.h done - make ${INSTALLROOT}/fun - exec - mkdir -p ${@} + + make bltins/mkservice.c + prev ${PACKAGE_ast_INCLUDE}/cmd.h + prev ${PACKAGE_ast_INCLUDE}/error.h + prev include/nval.h + prev include/defs.h + prev shopt.h done - make ${INSTALLROOT}/fun/autocd - prev fun/autocd - exec - cp -f ${<} ${@} && chmod ugo+x ${@} + + make bltins/print.c + prev ${PACKAGE_ast_INCLUDE}/ccode.h + prev ${PACKAGE_ast_INCLUDE}/tmx.h + prev include/streval.h + prev include/builtins.h + prev include/history.h + prev include/name.h + prev include/io.h + prev ${PACKAGE_ast_INCLUDE}/error.h + prev include/defs.h + prev shopt.h done - make ${INSTALLROOT}/fun/cd - prev fun/cd - exec - cp -f ${<} ${@} && chmod ugo+x ${@} + + make bltins/read.c + prev include/edit.h + prev include/terminal.h + prev include/history.h + prev include/builtins.h + prev include/name.h + prev include/io.h + prev include/lexstates.h + prev include/variables.h + prev include/defs.h + prev ${PACKAGE_ast_INCLUDE}/error.h + prev ${PACKAGE_ast_INCLUDE}/ast.h + prev shopt.h done - make ${INSTALLROOT}/fun/dirs - prev fun/dirs - exec - cp -f ${<} ${@} && chmod ugo+x ${@} + + make bltins/sleep.c + prev FEATURE/poll + prev FEATURE/time + prev include/builtins.h + prev ${PACKAGE_ast_INCLUDE}/tmx.h + prev ${PACKAGE_ast_INCLUDE}/error.h + prev include/defs.h + prev shopt.h done - make ${INSTALLROOT}/fun/man - prev fun/man - exec - cp -f ${<} ${@} && chmod ugo+x ${@} + + make bltins/trap.c + prev include/builtins.h + prev include/jobs.h + prev include/defs.h + prev shopt.h done - make ${INSTALLROOT}/fun/mcd - prev fun/mcd - exec - cp -f ${<} ${@} && chmod ugo+x ${@} + + make bltins/test.c + prev ${PACKAGE_ast_INCLUDE}/tmx.h + prev FEATURE/poll + prev FEATURE/externs + prev include/builtins.h + prev include/test.h + prev include/terminal.h + prev include/io.h + prev ${PACKAGE_ast_INCLUDE}/regex.h + prev ${PACKAGE_ast_INCLUDE}/ls.h + prev ${PACKAGE_ast_INCLUDE}/error.h + prev include/defs.h + prev shopt.h done - make ${INSTALLROOT}/fun/popd - prev fun/popd - exec - cp -f ${<} ${@} && chmod ugo+x ${@} + + make bltins/typeset.c + prev FEATURE/dynamic + prev include/variables.h + prev include/builtins.h + prev include/history.h + prev include/name.h + prev include/path.h + prev ${PACKAGE_ast_INCLUDE}/error.h + prev include/defs.h + prev shopt.h + done + + make bltins/ulimit.c + prev include/ulimit.h + prev include/name.h + prev include/builtins.h + prev include/defs.h + prev ${PACKAGE_ast_INCLUDE}/error.h + prev ${PACKAGE_ast_INCLUDE}/sfio.h + prev ${PACKAGE_ast_INCLUDE}/ast.h + prev shopt.h + done + + make bltins/umask.c + prev include/builtins.h + prev include/shell.h + prev ${PACKAGE_ast_INCLUDE}/ls.h + prev ${PACKAGE_ast_INCLUDE}/error.h + prev ${PACKAGE_ast_INCLUDE}/sfio.h + prev ${PACKAGE_ast_INCLUDE}/ast.h + prev shopt.h + done + + make bltins/whence.c + prev include/builtins.h + prev include/shlex.h + prev include/path.h + prev include/name.h + prev include/shtable.h + prev ${PACKAGE_ast_INCLUDE}/error.h + prev include/defs.h + prev shopt.h + done + + make sh/main.c + prev FEATURE/externs + prev FEATURE/time + prev include/timeout.h + prev include/history.h + prev include/shnodes.h + prev include/shlex.h + prev include/jobs.h + prev include/io.h + prev include/path.h + prev include/variables.h + prev include/defs.h + prev include/fcin.h + prev ${PACKAGE_ast_INCLUDE}/ls.h + prev ${PACKAGE_ast_INCLUDE}/sfio.h + prev ${PACKAGE_ast_INCLUDE}/ast.h + prev shopt.h + done + + make sh/nvdisc.c + prev include/shlex.h + prev include/io.h + prev include/path.h + prev include/builtins.h + prev include/variables.h + prev include/defs.h + prev shopt.h + done + + make sh/nvtype.c + prev include/builtins.h + prev include/variables.h + prev include/io.h + prev include/defs.h + prev shopt.h + done + + make sh/arith.c + prev include/builtins.h + prev include/variables.h + prev include/streval.h + prev include/name.h + prev include/lexstates.h + prev include/defs.h + prev shopt.h + done + + make sh/args.c + prev include/io.h + prev include/shlex.h + prev FEATURE/poll + prev include/edit.h + prev include/terminal.h + prev include/builtins.h + prev include/jobs.h + prev include/path.h + prev include/defs.h + prev shopt.h done - make ${INSTALLROOT}/fun/pushd - prev fun/pushd - exec - cp -f ${<} ${@} && chmod ugo+x ${@} + + make sh/array.c + prev include/name.h + prev include/defs.h + prev shopt.h + done + + make edit/completion.c + prev include/history.h + prev include/edit.h + prev include/io.h + prev include/path.h + prev include/lexstates.h + prev ${PACKAGE_ast_INCLUDE}/ast_wchar.h + prev include/defs.h + prev shopt.h + done + + make sh/defs.c + prev include/timeout.h + prev include/edit.h + prev include/shlex.h + prev include/jobs.h + prev include/defs.h + prev shopt.h + done + + make edit/edit.c + prev include/shlex.h + prev include/edit.h + prev include/history.h + prev include/terminal.h + prev include/io.h + prev include/variables.h + prev include/defs.h + prev ${PACKAGE_ast_INCLUDE}/ls.h + prev FEATURE/time + prev include/fault.h + prev ${PACKAGE_ast_INCLUDE}/ccode.h + prev ${PACKAGE_ast_INCLUDE}/ast.h + prev shopt.h + done + + make sh/expand.c + prev include/path.h + prev include/io.h + prev ${PACKAGE_ast_INCLUDE}/ast_dir.h + prev ${PACKAGE_ast_INCLUDE}/ls.h + prev ${PACKAGE_ast_INCLUDE}/glob.h + prev ${PACKAGE_ast_INCLUDE}/ast.h + prev include/test.h + prev include/variables.h + prev include/defs.h + prev shopt.h + done + + make bltins/regress.c + prev ${PACKAGE_ast_INCLUDE}/tmx.h + prev include/builtins.h + prev include/io.h + prev ${PACKAGE_ast_INCLUDE}/ls.h + prev ${PACKAGE_ast_INCLUDE}/error.h + prev include/defs.h + prev shopt.h + done + + make sh/fault.c + prev ${PACKAGE_ast_INCLUDE}/vmalloc.h + prev include/ulimit.h + prev include/builtins.h + prev include/path.h + prev include/jobs.h + prev include/variables.h + prev include/shlex.h + prev include/history.h + prev include/io.h + prev include/fcin.h + prev include/defs.h + prev shopt.h + done + + make sh/fcin.c + prev include/fcin.h + prev ${PACKAGE_ast_INCLUDE}/error.h + prev ${PACKAGE_ast_INCLUDE}/sfio.h + prev ${PACKAGE_ast_INCLUDE}/ast.h + prev shopt.h + done + + make edit/history.c + prev ${PACKAGE_ast_INCLUDE}/stdio.h + prev include/history.h + prev include/io.h + prev include/builtins.h + prev include/path.h + prev include/variables.h + prev include/defs.h + prev ${PACKAGE_ast_INCLUDE}/ls.h + prev ${PACKAGE_ast_INCLUDE}/error.h + prev FEATURE/time + prev ${PACKAGE_ast_INCLUDE}/sfio.h + prev ${PACKAGE_ast_INCLUDE}/ast.h + prev shopt.h + done + + make sh/init.c + prev ${PACKAGE_ast_INCLUDE}/wctype.h + prev ${PACKAGE_ast_INCLUDE}/ast_wchar.h + prev include/version.h + prev include/lexstates.h + prev FEATURE/externs + prev FEATURE/dynamic + prev FEATURE/time + prev include/builtins.h + prev include/shlex.h + prev include/io.h + prev include/jobs.h + prev include/edit.h + prev include/name.h + prev include/fault.h + prev include/path.h + prev include/variables.h + prev ${PACKAGE_ast_INCLUDE}/ast_random.h + prev ${PACKAGE_ast_INCLUDE}/regex.h + prev ${PACKAGE_ast_INCLUDE}/tmx.h + prev ${PACKAGE_ast_INCLUDE}/ccode.h + prev include/defs.h + prev shopt.h + done + + make sh/io.c + prev ${PACKAGE_ast_INCLUDE}/endian.h + prev FEATURE/poll + prev FEATURE/dynamic + prev FEATURE/externs + prev include/timeout.h + prev include/edit.h + prev include/history.h + prev include/shnodes.h + prev include/shlex.h + prev include/jobs.h + prev include/io.h + prev include/path.h + prev include/variables.h + prev ${PACKAGE_ast_INCLUDE}/regex.h + prev ${PACKAGE_ast_INCLUDE}/ls.h + prev include/fcin.h + prev include/defs.h + prev shopt.h + done + + make sh/jobs.c + prev include/history.h + prev include/jobs.h + prev include/io.h + prev ${PACKAGE_ast_INCLUDE}/wait.h + prev include/defs.h + prev shopt.h + done + + make sh/lex.c + prev include/shlex.h + prev include/io.h + prev include/lexstates.h + prev include/test.h + prev include/argnod.h + prev include/shell.h + prev include/defs.h + prev include/nval.h + prev include/fcin.h + prev ${PACKAGE_ast_INCLUDE}/releaseflags.h + prev ${PACKAGE_ast_INCLUDE}/ast.h + prev shopt.h + done + + make sh/macro.c + prev include/streval.h + prev include/national.h + prev include/path.h + prev include/shnodes.h + prev include/jobs.h + prev include/io.h + prev include/shlex.h + prev include/variables.h + prev include/name.h + prev ${PACKAGE_ast_INCLUDE}/regex.h + prev include/fcin.h + prev include/defs.h + prev shopt.h + done + + make sh/name.c + prev include/builtins.h + prev include/shnodes.h + prev include/streval.h + prev FEATURE/externs + prev include/timeout.h + prev include/lexstates.h + prev include/path.h + prev include/variables.h + prev include/defs.h + prev shopt.h + done + + make sh/nvtree.c + prev include/lexstates.h + prev include/argnod.h + prev include/name.h + prev include/defs.h + prev shopt.h + done + + make sh/parse.c + prev include/path.h + prev include/test.h + prev include/builtins.h + prev include/history.h + prev include/shlex.h + prev ${PACKAGE_ast_INCLUDE}/error.h + prev include/fcin.h + prev include/shell.h + prev include/defs.h + prev include/version.h + prev shopt.h + done + + make sh/path.c + prev FEATURE/time + prev ${PACKAGE_ast_INCLUDE}/endian.h + prev FEATURE/dynamic + prev include/test.h + prev include/history.h + prev include/jobs.h + prev include/io.h + prev include/path.h + prev include/variables.h + prev include/nval.h + prev ${PACKAGE_ast_INCLUDE}/ls.h + prev include/fcin.h + prev include/defs.h + prev shopt.h + done + + make sh/string.c + prev ${PACKAGE_ast_INCLUDE}/wctype.h + prev include/national.h + prev include/lexstates.h + prev include/shtable.h + prev ${PACKAGE_ast_INCLUDE}/ccode.h + prev include/defs.h + prev ${PACKAGE_ast_INCLUDE}/ast_wchar.h + prev ${PACKAGE_ast_INCLUDE}/ast.h + prev shopt.h + done + + make sh/streval.c + prev FEATURE/externs + prev ${PACKAGE_ast_INCLUDE}/error.h + prev include/streval.h + prev shopt.h + done + + make sh/subshell.c + prev include/path.h + prev include/variables.h + prev include/jobs.h + prev include/shlex.h + prev include/shnodes.h + prev include/fault.h + prev include/io.h + prev ${PACKAGE_ast_INCLUDE}/ls.h + prev include/defs.h + prev shopt.h + done + + make sh/tdump.c + prev ${PACKAGE_ast_INCLUDE}/ccode.h + prev include/io.h + prev include/path.h + prev include/shnodes.h + prev include/defs.h + prev shopt.h + done + + make sh/timers.c + prev FEATURE/time + prev FEATURE/sigfeatures + prev include/defs.h + prev include/fault.h + prev ${PACKAGE_ast_INCLUDE}/error.h + prev ${PACKAGE_ast_INCLUDE}/sig.h + prev ${PACKAGE_ast_INCLUDE}/ast.h + prev shopt.h + done + + make sh/trestore.c + prev ${PACKAGE_ast_INCLUDE}/ccode.h + prev include/io.h + prev include/path.h + prev include/shnodes.h + prev include/defs.h + prev shopt.h + done + + make sh/waitevent.c + prev include/defs.h + prev shopt.h + done + + make sh/xec.c + prev ${PACKAGE_ast_INCLUDE}/vmalloc.h + prev include/streval.h + prev FEATURE/locale + prev FEATURE/externs + prev FEATURE/time + prev include/builtins.h + prev include/test.h + prev include/jobs.h + prev include/shnodes.h + prev include/io.h + prev include/name.h + prev include/path.h + prev include/variables.h + prev include/fcin.h + prev include/defs.h + prev shopt.h + done + + make data/limits.c + prev include/ulimit.h + prev ${PACKAGE_ast_INCLUDE}/ast.h + prev shopt.h + done + + make data/msg.c + prev include/edit.h + prev include/jobs.h + prev include/builtins.h + prev include/history.h + prev include/timeout.h + prev include/shlex.h + prev include/io.h + prev include/path.h + prev include/defs.h + prev ${PACKAGE_ast_INCLUDE}/ast.h + prev shopt.h + done + + make data/strdata.c + prev FEATURE/math + prev include/streval.h + prev ${PACKAGE_ast_INCLUDE}/ast_standards.h + prev shopt.h + done + + make data/testops.c + prev include/test.h + prev include/defs.h + prev ${PACKAGE_ast_INCLUDE}/ast.h + prev shopt.h + done + + make data/keywords.c + prev include/shlex.h + prev include/shell.h + prev shopt.h + done + + make data/options.c + prev include/shtable.h + prev include/name.h + prev include/defs.h + prev shopt.h + done + + make data/signals.c + prev include/jobs.h + prev include/defs.h + prev shopt.h + done + + make data/aliases.c + prev FEATURE/dynamic + prev include/defs.h + prev shopt.h + done + + make data/builtins.c + prev FEATURE/poll + prev FEATURE/cmds + prev include/jobs.h + prev include/builtins.h + prev include/version.h + prev include/name.h + prev include/ulimit.h + prev include/shtable.h + prev include/defs.h + prev shopt.h + done + + make data/variables.c + prev include/builtins.h + prev include/variables.h + prev include/defs.h + prev include/name.h + prev include/shtable.h + prev include/shell.h + prev FEATURE/dynamic + prev ${PACKAGE_ast_INCLUDE}/ast.h + prev shopt.h + done + + make data/lexstates.c + prev include/lexstates.h + prev ${PACKAGE_ast_INCLUDE}/ast.h + prev shopt.h + done + + make edit/emacs.c + prev include/terminal.h + prev include/edit.h + prev include/history.h + prev include/io.h + prev include/defs.h + prev ${PACKAGE_ast_INCLUDE}/releaseflags.h + prev ${PACKAGE_ast_INCLUDE}/ast.h + prev shopt.h + done + + make edit/vi.c + prev include/lexstates.h + prev FEATURE/time + prev include/terminal.h + prev include/edit.h + prev include/history.h + prev include/io.h + prev ${PACKAGE_ast_INCLUDE}/ast.h + prev include/defs.h + prev shopt.h + done + + make edit/hexpand.c + prev include/edit.h + prev include/defs.h + prev shopt.h + done + + make sh/shcomp.c + prev include/terminal.h + prev include/shnodes.h + prev include/path.h + prev include/defs.h + prev include/shell.h + prev include/version.h + prev shopt.h + done + + note * + note * Set common compiler invocation arguments + note * + + setv compile ${CC} ${mam_cc_FLAGS} ${CCFLAGS} ${DEBUG+-DDEBUG=${DEBUG}} -DSH_DICT=${SH_DICT} ${SH_CMDLIB_DIR+-DSH_CMDLIB_DIR=${SH_CMDLIB_DIR}} -I. -Iinclude -I${PACKAGE_ast_INCLUDE} -D_API_ast=20100309 -DERROR_CONTEXT_T=Error_context_t -c + + note * + note * Build the library + note * + + make libshell.a + + loop OBJ args arith array defs deparse expand fault fcin init io jobs lex macro main name nvdisc nvtree nvtype parse path streval string subshell tdump timers trestore waitevent xec + make ${OBJ}.o + prev sh/${OBJ}.c + exec - ${compile} ${<} + done + done + + loop OBJ alarm cd_pwd cflow enum getopts hist misc mkservice print read regress sleep test trap typeset ulimit umask whence + make ${OBJ}.o + prev bltins/${OBJ}.c + exec - ${compile} ${<} + done + done + + loop OBJ completion edit emacs hexpand history vi + make ${OBJ}.o + prev edit/${OBJ}.c + exec - ${compile} ${<} + done + done + + loop OBJ aliases builtins keywords lexstates limits msg options signals strdata testops variables + make ${OBJ}.o + prev data/${OBJ}.c + exec - ${compile} ${<} + done + done + + note * + note * Link the library + note * + exec - if test -f ${@} + exec - then ${AR} rc ${@} ${?} # add changed *.o + exec - else ${AR} rc ${@} ${^} # add all *.o + exec - fi || exit + exec - ranlib ${@} >/dev/null 2>&1 || true + + done libshell.a + + note * Set the mam_libshell variable + bind -lshell + + shim - link_binary() + shim - { + shim - ${CC} ${CCLDFLAGS} ${mam_cc_FLAGS} ${CCFLAGS} ${LDFLAGS} \ + shim - ${mam_cc_L+-L.} ${mam_cc_L+-L${INSTALLROOT}/lib} \ + shim - -o "$@" ${mam_libshell} ${mam_libnsl} ${mam_libast} ${mam_libm} + shim - } + + make ksh + prev libshell.a + make pmain.o + prev sh/pmain.c + exec - ${compile} ${<} + done + exec - link_binary ksh pmain.o + done ksh + + make shcomp + prev libshell.a + make shcomp.o + prev sh/shcomp.c + exec - ${compile} ${<} + done + exec - link_binary shcomp shcomp.o + done shcomp + + note * + note * Pre-install + note * + + prev libshell.a + loop DIR bin include/ast lib/lib man/man1 man/man3 fun + make ${INSTALLROOT}/${DIR} + exec - mkdir -p ${@} + done + done + loop EXE ksh shcomp + make ${INSTALLROOT}/bin/${EXE} + prev ${EXE} + note * macOS throws code signature error if 'cp' overwrites Mach-O binary; must remove first + exec - rm -f ${@} && cp ${<} ${@} + done + done + make ${INSTALLROOT}/man/man1/sh.1 + prev sh.1 + exec - cp -f ${<} ${@} + done + make ${INSTALLROOT}/lib/libshell.a + prev libshell.a + exec - cp -f ${<} ${@} || exit + exec - ranlib ${@} >/dev/null 2>&1 || true + done + loop MAN3PG shell nval + make ${INSTALLROOT}/man/man3/${MAN3PG}.3 + prev ${MAN3PG}.3 + exec - cp -f ${<} ${@} + done + done + make ${INSTALLROOT}/lib/lib/shell + prev shell.req + exec - cp -f ${<} ${@} + done + loop HDR nval shell history + make ${PACKAGE_ast_INCLUDE}/${HDR}.h + prev include/${HDR}.h + exec - cp -f ${<} ${@} + done + done + loop FUN autocd cd dirs man mcd popd pushd + make ${INSTALLROOT}/fun/${FUN} + prev fun/${FUN} + exec - cp -f ${<} ${@} && chmod ugo+x ${@} + done done make announce_build_done notrace virtual prev ksh @@ -1312,10 +1278,15 @@ make install virtual exec - echo "# Type 'bin/package use' to try it out" done done install + +note * +note * Run regression tests. +note * + make test dontcare virtual + prev install make test.ksh virtual prev tests/shtests - exec - cd "$PACKAGEROOT/src/cmd/ksh93/tests" - exec - exec "$SHELL" shtests + exec - cd "$PACKAGEROOT/src/cmd/ksh93/tests" && ./shtests done done test diff --git a/src/cmd/ksh93/bltins/enum.c b/src/cmd/ksh93/bltins/enum.c index d3755128442d..b53930fe9c5d 100644 --- a/src/cmd/ksh93/bltins/enum.c +++ b/src/cmd/ksh93/bltins/enum.c @@ -22,7 +22,7 @@ const char sh_optenum[] = "[-?\n@(#)$Id: " ENUM_ID " $\n]" -"[--catalog?" ERROR_CATALOG "]" +"[--catalog?" SH_DICT "]" "[+NAME?enum - create an enumeration type]" "[+DESCRIPTION?\benum\b is a declaration command that creates one or more " "enumeration type declaration commands named \atypename\a. Variables " @@ -56,7 +56,7 @@ const char sh_optenum[] = static const char enum_type[] = "[-?\n@(#)$Id: " ENUM_ID " $\n]" -"[--catalog?" ERROR_CATALOG "]" +"[--catalog?" SH_DICT "]" "[+NAME?\f?\f - create an instance of type \b\f?\f\b]" "[+DESCRIPTION?The \b\f?\f\b declaration command creates a variable for " "each \aname\a with enumeration type \b\f?\f\b, a type that has been " @@ -217,7 +217,7 @@ int b_enum(int argc, char** argv, Shbltin_t *context) Namval_t *np; } optdisc; - cmdinit(argc, argv, context, ERROR_CATALOG, ERROR_NOTIFY); + cmdinit(argc, argv, context, SH_DICT, ERROR_NOTIFY); for (;;) { switch (optget(argv, sh_optenum)) diff --git a/src/lib/Mamfile b/src/lib/Mamfile index aa3f33a21481..aae421ab2bce 100644 --- a/src/lib/Mamfile +++ b/src/lib/Mamfile @@ -1,12 +1,10 @@ note * -note * This build file is in the Make Abstract Machine (MAM) language. It was -note * first generated by nmake, but in the ksh 93u+m distribution we maintain -note * it manually because nmake had too many problems to keep using. The -note * Mamfiles are processed by mamake (src/cmd/INIT/mamake.c); we added -note * indentation to improve readability. The language is documented in -note * src/cmd/INIT/README-mamake.md. +note * This build script is in an extended Make Abstract Machine (MAM) +note * language. Documentation is at: src/cmd/INIT/README-mamake.md note * -setv MAMAKE_STRICT + +setv MAMAKE_STRICT 2 + make test virtual make install virtual make all virtual diff --git a/src/lib/libast/Mamfile b/src/lib/libast/Mamfile index cd2e6b131370..b2f5730b8dd1 100644 --- a/src/lib/libast/Mamfile +++ b/src/lib/libast/Mamfile @@ -1,4973 +1,5067 @@ note * -note * This build file is in the Make Abstract Machine (MAM) language. It was -note * first generated by nmake, but in the ksh 93u+m distribution we maintain -note * it manually because nmake had too many problems to keep using. The -note * Mamfiles are processed by mamake (src/cmd/INIT/mamake.c); we added -note * indentation to improve readability. The language is documented in -note * src/cmd/INIT/README-mamake.md. +note * This build script is in an extended Make Abstract Machine (MAM) +note * language. Documentation is at: src/cmd/INIT/README-mamake.md note * -setv MAMAKE_STRICT + +setv MAMAKE_STRICT 2 setv INSTALLROOT ../../.. setv PACKAGEROOT ../../../../.. -setv AR ${mam_cc_AR} ${mam_cc_AR_ARFLAGS} setv CC cc -setv mam_cc_FLAGS ${mam_cc_DLL} -D_BLD_ast -setv CCFLAGS ${-debug-symbols?1?${mam_cc_DEBUG} -D_BLD_DEBUG?${mam_cc_OPTIMIZE}?} +setv AR ${mam_cc_AR} ${mam_cc_AR_ARFLAGS} +setv mam_cc_FLAGS ${mam_cc_DLL} -D_BLD_ast ${-debug-symbols?1?${mam_cc_DEBUG} -D_BLD_DEBUG?${mam_cc_OPTIMIZE}?} +setv CCFLAGS setv CCLDFLAGS ${-strip-symbols?1?${mam_cc_LD_STRIP}??} setv IFFEFLAGS setv LDFLAGS + +note * +note * iffe and cc invocations are mostly the same but some add custom flags; +note * set shim functions for brevity and "single source of truth" while still allowing this +note * + +shim - invoke_iffe() +shim - { +shim - s=$1 +shim - shift +shim - set -- ${CC} ${mam_cc_FLAGS} ${CCFLAGS} ${LDFLAGS} "$@" +shim - iffe ${IFFEFLAGS} -v -X ast -X std -c "$*" run "$s" +shim - } +shim - +shim - compile() +shim - { +shim - s=$1 +shim - shift +shim - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp "$@" -Iinclude -Istd -c "$s" +shim - } + make install virtual - make ast virtual - make _always_generate_releaseflags.h notrace virtual - exec - git_commit=$(git rev-parse --short=8 HEAD 2>/dev/null) - exec - case $?,$git_commit in - exec - 0,[0-9a-z][0-9a-z][0-9a-z][0-9a-z][0-9a-z][0-9a-z][0-9a-z][0-9a-z]) - exec - echo "/* generated by libast/Mamfile using $(git --version) */" - exec - git update-index --really-refresh >/dev/null - exec - git diff-index --quiet HEAD - exec - wd_clean=$((! $?)) # working directory clean? - exec - case $(git branch) in - exec - *\*\ [0-9]*.[0-9]*) - exec - # If we're not on a branch that starts with a number - exec - # (release branch), then compile as a release version - exec - case $wd_clean in - exec - 1) echo "#ifndef _AST_release" - exec - echo "# define _AST_release 1" - exec - echo "#endif" - exec - ;; - exec - 0) echo "/*" - exec - echo " * on a git release branch, but changes were made;" - exec - echo " * _AST_release not defined by default" - exec - echo " */" - exec - ;; - exec - esac - exec - ;; - exec - *) - exec - echo "/* not on a git release branch; _AST_release not defined by default */" - exec - ;; - exec - esac - exec - test "$wd_clean" -eq 0 && git_commit=$git_commit/MOD - exec - echo "#define _AST_git_commit \"$git_commit\"" - exec - echo "# current git commit: $git_commit" >&2 # for the log - exec - ;; - exec - *) - exec - echo "/* generated by libast/Mamfile (we're not in a git repo) */" - exec - echo "#ifndef _AST_release" - exec - echo "# define _AST_release 1" - exec - echo "#endif" - exec - echo "#undef _AST_git_commit" - exec - ;; - exec - esac > releaseflags.h.new - exec - if cmp -s releaseflags.h.new releaseflags.h - exec - then rm -f releaseflags.h.new - exec - else mv -f releaseflags.h.new releaseflags.h - exec - fi - done - make ast.req - make ast_standards.h implicit - make FEATURE/standards - prev features/standards - exec - iffe ${IFFEFLAGS} -v -X ast -X std -c "${CC} ${mam_cc_FLAGS} ${CCFLAGS} ${LDFLAGS}" run ${<} + note * + note * Generate release information + note * + note * (The target is 'virtual' as it needs to be run at + note * every build, so we can catch changes of git commit) + note * + make releaseflags.h notrace virtual + exec - git_commit=$(git rev-parse --short=8 HEAD 2>/dev/null) + exec - case $?,$git_commit in + exec - 0,[0-9a-z][0-9a-z][0-9a-z][0-9a-z][0-9a-z][0-9a-z][0-9a-z][0-9a-z]) + exec - echo "/* generated by libast/Mamfile using $(git --version) */" + exec - git update-index --really-refresh >/dev/null + exec - git diff-index --quiet HEAD + exec - wd_clean=$((! $?)) # working directory clean? + exec - case $(git branch) in + exec - *\*\ [0-9]*.[0-9]*) + exec - # If we're not on a branch that starts with a number + exec - # (release branch), then compile as a release version + exec - case $wd_clean in + exec - 1) echo "#ifndef _AST_release" + exec - echo "# define _AST_release 1" + exec - echo "#endif" + exec - ;; + exec - 0) echo "/*" + exec - echo " * on a git release branch, but changes were made;" + exec - echo " * _AST_release not defined by default" + exec - echo " */" + exec - ;; + exec - esac + exec - ;; + exec - *) + exec - echo "/* not on a git release branch; _AST_release not defined by default */" + exec - ;; + exec - esac + exec - test "$wd_clean" -eq 0 && git_commit=$git_commit/MOD + exec - echo "#define _AST_git_commit \"$git_commit\"" + exec - echo "# current git commit: $git_commit" >&2 # for the log + exec - ;; + exec - *) + exec - echo "/* generated by libast/Mamfile (we're not in a git repo) */" + exec - echo "#ifndef _AST_release" + exec - echo "# define _AST_release 1" + exec - echo "#endif" + exec - echo "#undef _AST_git_commit" + exec - ;; + exec - esac > releaseflags.h.new + exec - if cmp -s releaseflags.h.new releaseflags.h + exec - then rm -f releaseflags.h.new + exec - else mv -f releaseflags.h.new releaseflags.h + exec - fi + done + + note * + note * Generate some fundamental headers from iffe feature tests + note * + + note * The standards test influences all subsequent iffe feature tests, so must be made first + make ast_standards.h implicit + make FEATURE/standards implicit + prev features/standards + exec - invoke_iffe ${<} + done + exec - cp -f ${<} ${@} + done + + note * AST API versioning voodoo + make ast_api.h implicit + make FEATURE/api implicit + prev features/api + exec - invoke_iffe ${<} + done + exec - cp -f ${<} ${@} + done + + note * Compiler features, basic system headers, backward compat, etc. -- included by just about everything + make ast_common.h implicit + make FEATURE/common implicit + prev features/common + exec - invoke_iffe ${<} + done + note * include from ast_common.h but not from FEATURE/common + exec - sed '/define _def_map_ast/d' < ${<} > ${@} + done ast_common.h + + note * Main feature test for system libraries + make ast_lib.h implicit + make FEATURE/lib implicit + prev features/lib + exec - invoke_iffe ${<} + done + exec - cp -f ${<} ${@} + done + + note * AST replacement for + make sig.h implicit + make FEATURE/sig implicit + prev features/sig.sh + exec - invoke_iffe ${<} + done + exec - cp -f ${<} ${@} + done + + make FEATURE/eaccess implicit + prev features/eaccess + exec - invoke_iffe ${<} + done + + make ast_mmap.h implicit + make FEATURE/mmap implicit + prev features/mmap + exec - invoke_iffe ${<} + done + exec - cp -f ${<} ${@} + done + + make FEATURE/vmalloc implicit + prev FEATURE/mmap + prev features/vmalloc + exec - invoke_iffe ${<} + done + + make FEATURE/options implicit + prev features/options + exec - invoke_iffe ${<} + done + + make ast_map.h implicit + make FEATURE/map implicit + make features/map.c + prev sig.h + prev FEATURE/api + prev FEATURE/eaccess + prev FEATURE/vmalloc + prev FEATURE/options + prev FEATURE/mmap + prev FEATURE/lib + done + exec - invoke_iffe ${<} -I. + done + exec - cp -f ${<} ${@} + done ast_map.h + + make std/endian.h implicit + make std/bytesex.h implicit + prev ast_common.h + prev ast_map.h + done std/bytesex.h + done std/endian.h + + + note * Checks for system headers, data types, and C library functions. Emits prorotypes if needed. + make ast_sys.h implicit + make FEATURE/sys implicit + prev features/sys + exec - invoke_iffe ${<} + prev std/endian.h + done + exec - cp -f ${<} ${@} + done + + note * Feature test for atomic integer operations + make FEATURE/aso + prev FEATURE/common + prev features/aso + exec - invoke_iffe ${<} + done + + make ast_wait.h implicit + make FEATURE/wait + prev features/wait + exec - invoke_iffe ${<} + done + exec - cp -f ${<} ${@} + done + + make ast_param.h implicit + make FEATURE/param + prev std/endian.h + prev features/param.sh + exec - invoke_iffe ${<} + done FEATURE/param + exec - cp -f ${<} ${@} + done + + note * + note * Generate system library dependency information + note * + + make ast.req + note * + note * generate initial ast.req + note * + prev ${INSTALLROOT}/bin/mkreq + exec - set -o errexit + exec - mkreq ${CC} ${mam_cc_FLAGS} ${CCFLAGS} : ${LDFLAGS} : ast iconv w + note * + note * some systems move -lc routines to -lm; see astmath.c for details + note * + make astmath.out + make port/astmath.c + prev std/endian.h + done + setv _math_test ${CC} ${CCLDFLAGS} ${mam_cc_FLAGS} ${CCFLAGS} ${LDFLAGS} -DN=$N -DIS -o astmath.exe ${<} + exec - X=1 + exec - for N in 1 2 3 4 5 6 7 8 + exec - do if ${_math_test} 2>/dev/null + exec - then : implicit math function N=$N : + exec - elif ${_math_test} -lm + exec - then : math function N=$N requires -lm : + exec - X=0 + exec - break + exec - else : ERROR: ${<} fails to compile or link, even with -lm : + exec - exit 1 + exec - fi + exec - done + exec - (set +f; exec rm -rf astmath.exe*) + exec - echo $X > astmath.out + done + note * + note * add library dependencies resulting from the aso feature test + note * + prev FEATURE/aso + exec - sed -e '/^#define _REQ_/!d' -e 's/#define _REQ_\([a-z0-9_]*\).*/ -l\1/' ${<} >> ${@} + note * + note * add -lm if the astmath.c probe found it necessary + note * + exec - read no_libm_needed > ${@} ;; + exec - *) touch ${@} ;; + exec - esac + done ast.req + + note * + note * Probe all manner of configuration values from conf.tab + note * These are used for astconf(3) and the getconf(1) built-in + note * + + make ast_limits.h + make FEATURE/limits + make features/limits.c + prev FEATURE/param + prev FEATURE/common + prev FEATURE/lib + prev FEATURE/standards + make comp/getopt.h implicit + prev include/ast_getopt.h implicit + done + make conflim.h implicit + prev FEATURE/standards + prev FEATURE/common + prev FEATURE/param + prev FEATURE/wait + make conf + prev comp/conf.sh + exec - cat - comp/conf.sh <<'EOF' >conf && chmod u+w,+x conf + exec - HOSTTYPE='${mam_cc_HOSTTYPE}' + exec - EOF + done + prev comp/conf.tab + exec - conf -v ${<} ${CC} ${mam_cc_FLAGS} ${CCFLAGS} done - exec - cp -f ${<} ${@} - done - make FEATURE/lib - prev features/lib - exec - iffe ${IFFEFLAGS} -v -X ast -X std -c "${CC} ${mam_cc_FLAGS} ${CCFLAGS} ${LDFLAGS}" run ${<} - done - make FEATURE/common - prev features/common - exec - iffe ${IFFEFLAGS} -v -X ast -X std -c "${CC} ${mam_cc_FLAGS} ${CCFLAGS} ${LDFLAGS}" run ${<} - done - make FEATURE/param - prev features/param.sh - exec - iffe ${IFFEFLAGS} -v -X ast -X std -c "${CC} ${mam_cc_FLAGS} ${CCFLAGS} ${LDFLAGS}" run ${<} - make std/endian.h implicit dontcare - make std/bytesex.h implicit dontcare - make ast_common.h implicit dontcare - prev FEATURE/common - exec - sed '/define _def_map_ast/d' < ${<} > ${@} - make ast_map.h implicit dontcare - make FEATURE/map - make features/map.c - make sig.h implicit - make FEATURE/sig - prev features/sig.sh - exec - iffe ${IFFEFLAGS} -v -X ast -X std -c "${CC} ${mam_cc_FLAGS} ${CCFLAGS} ${LDFLAGS}" run ${<} - done - exec - cp -f ${<} ${@} - done - make FEATURE/api implicit - prev features/api - exec - iffe ${IFFEFLAGS} -v -X ast -X std -c "${CC} ${mam_cc_FLAGS} ${CCFLAGS} ${LDFLAGS}" run ${<} - done - make FEATURE/eaccess implicit - prev features/eaccess - exec - iffe ${IFFEFLAGS} -v -X ast -X std -c "${CC} ${mam_cc_FLAGS} ${CCFLAGS} ${LDFLAGS}" run ${<} - done - make FEATURE/vmalloc implicit - prev features/vmalloc - exec - iffe ${IFFEFLAGS} -v -X ast -X std -c "${CC} ${mam_cc_FLAGS} ${CCFLAGS} ${LDFLAGS}" run ${<} - make FEATURE/mmap implicit - prev features/mmap - exec - iffe ${IFFEFLAGS} -v -X ast -X std -c "${CC} ${mam_cc_FLAGS} ${CCFLAGS} ${LDFLAGS}" run ${<} - done - done - make FEATURE/options implicit - prev features/options - exec - iffe ${IFFEFLAGS} -v -X ast -X std -c "${CC} ${mam_cc_FLAGS} ${CCFLAGS} ${LDFLAGS}" run ${<} - done - prev FEATURE/mmap - prev FEATURE/lib - done - exec - iffe ${IFFEFLAGS} -v -X ast -X std -c "${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. ${LDFLAGS}" run ${<} - done - exec - cp -f ${<} ${@} - done ast_map.h - done ast_common.h - done std/bytesex.h - done std/endian.h - done FEATURE/param - make FEATURE/aso - prev features/aso - exec - iffe ${IFFEFLAGS} -v -X ast -X std -c "${CC} ${mam_cc_FLAGS} ${CCFLAGS} ${LDFLAGS}" run ${<} + done features/limits.c + exec - invoke_iffe ${<} -I. -Icomp -Iinclude -Istd + done FEATURE/limits + exec - cp -f ${<} ${@} + done ast_limits.h + + note * + note * Declare implicit header dependencies + note * + + make include/ast.h implicit + prev ast_api.h + prev include/vmalloc.h + prev include/sfio.h + prev include/ast_std.h implicit + done + + make include/vmalloc.h implicit + prev ast_common.h + prev include/ast_std.h + done + + make include/sfio.h implicit + prev include/sfio_s.h implicit + prev ast_common.h + prev include/ast_std.h + done + + prev dir/dirstd.h implicit + + note * + note * Generate more header files based on iffe feature tests + note * + + make ast_dirent.h implicit + prev include/ast_std.h + make FEATURE/dirent + prev include/ast_std.h + prev features/dirent + exec - invoke_iffe ${<} + done + exec - cp -f ${<} ${@} + done + + make ast_fs.h implicit + make FEATURE/fs implicit + prev features/fs + exec - invoke_iffe ${<} + done + exec - cp -f ${<} ${@} + done + + make ast_wchar.h implicit + make FEATURE/wchar + prev std/wctype.h + prev std/stdio.h + prev ast_common.h + make features/wchar + prev ast_common.h done - prev ast_map.h - make ast_limits.h - make FEATURE/limits - make features/limits.c - make conflim.h implicit - make conf - prev comp/conf.sh - exec - { - exec - cat - comp/conf.sh <<'!' - exec - HOSTTYPE="${mam_cc_HOSTTYPE}" - exec - ! - exec - } > conf && chmod u+w,+x conf - done - prev comp/conf.tab - exec - ${INSTALLROOT}/src/lib/libast/conf -v comp/conf.tab ${CC} ${mam_cc_FLAGS} ${CCFLAGS} - done - prev FEATURE/param - make comp/getopt.h implicit dontcare - prev include/ast_getopt.h implicit - done - prev FEATURE/common - prev FEATURE/lib - prev FEATURE/standards - done features/limits.c - exec - iffe ${IFFEFLAGS} -v -X ast -X std -c "${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Iinclude -Istd ${LDFLAGS}" run ${<} - done FEATURE/limits - exec - cp -f ${<} ${@} - done ast_limits.h - make ast_stdio.h dontcare - make FEATURE/stdio - prev features/stdio - exec - iffe ${IFFEFLAGS} -v -X ast -X std -c "${CC} ${mam_cc_FLAGS} ${CCFLAGS} ${LDFLAGS}" run ${<} - prev include/sfio_s.h implicit - make include/ast_std.h implicit - make include/regex.h implicit - make ast_api.h implicit dontcare - prev FEATURE/api - exec - cp -f ${<} ${@} - done - make ast_wchar.h implicit dontcare - make FEATURE/wchar - make features/wchar - prev ast_common.h - done - exec - iffe ${IFFEFLAGS} -v -X ast -X std -c "${CC} ${mam_cc_FLAGS} ${CCFLAGS} ${LDFLAGS}" run ${<} - make std/wctype.h implicit dontcare - make ast_wctype.h implicit dontcare - make FEATURE/wctype - prev features/wctype - exec - iffe ${IFFEFLAGS} -v -X ast -X std -c "${CC} ${mam_cc_FLAGS} ${CCFLAGS} ${LDFLAGS}" run ${<} - prev std/endian.h - make std/wchar.h implicit dontcare - prev ast_wchar.h - done - done - exec - cp -f ${<} ${@} - done - done - make std/stdio.h implicit dontcare - prev ast_stdio.h - done - prev ast_common.h - done - exec - cp -f ${<} ${@} - prev std/stdio.h - prev ast_common.h - done - prev ast_common.h - done - prev comp/getopt.h - prev ast_map.h - make ast_botch.h implicit dontcare - make FEATURE/botch - make features/botch.c - make FEATURE/sys implicit - prev features/sys - exec - iffe ${IFFEFLAGS} -v -X ast -X std -c "${CC} ${mam_cc_FLAGS} ${CCFLAGS} ${LDFLAGS}" run ${<} - prev std/endian.h - done - prev FEATURE/lib - done - exec - iffe ${IFFEFLAGS} -v -X ast -X std -c "${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Iinclude -Istd ${LDFLAGS}" run ${<} - done - exec - cp -f ${<} ${@} - done - prev ast_limits.h - make ast_fcntl.h implicit dontcare - make FEATURE/fcntl - make features/fcntl.c - make FEATURE/tty implicit - prev features/tty - exec - iffe ${IFFEFLAGS} -v -X ast -X std -c "${CC} ${mam_cc_FLAGS} ${CCFLAGS} ${LDFLAGS}" run ${<} - done - make FEATURE/fs implicit - prev features/fs - exec - iffe ${IFFEFLAGS} -v -X ast -X std -c "${CC} ${mam_cc_FLAGS} ${CCFLAGS} ${LDFLAGS}" run ${<} - done - prev FEATURE/lib - prev FEATURE/standards - done - exec - iffe ${IFFEFLAGS} -v -X ast -X std -c "${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Iinclude -Istd ${LDFLAGS}" run ${<} - make ast_fs.h implicit dontcare - prev FEATURE/fs - exec - cp -f ${<} ${@} - done - done - exec - cp -f ${<} ${@} - prev ast_fs.h - done - prev include/ast_getopt.h - make ast_sys.h implicit dontcare - prev FEATURE/sys - exec - cp -f ${<} ${@} - done - make ast_lib.h implicit dontcare - prev FEATURE/lib - exec - cp -f ${<} ${@} - done - prev ast_common.h - prev ast_standards.h - done include/ast_std.h - done FEATURE/stdio - exec - cp -f ${<} ${@} - prev include/sfio_s.h - prev include/ast_std.h - done ast_stdio.h - make ast_nl_types.h - make FEATURE/nl_types - prev features/nl_types - exec - iffe ${IFFEFLAGS} -v -X ast -X std -c "${CC} ${mam_cc_FLAGS} ${CCFLAGS} ${LDFLAGS}" run ${<} + exec - invoke_iffe ${<} + done + exec - cp -f ${<} ${@} + prev std/stdio.h + prev ast_common.h + done + + make ast_wctype.h implicit + make FEATURE/wctype + prev features/wctype + exec - invoke_iffe ${<} + prev std/endian.h + make std/wchar.h implicit + prev ast_wchar.h + done + done + exec - cp -f ${<} ${@} + done + + make ast_botch.h implicit + make FEATURE/botch + make features/botch.c + prev FEATURE/sys + prev FEATURE/lib + done + exec - invoke_iffe ${<} -I. -Icomp -Iinclude -Istd + done + exec - cp -f ${<} ${@} + done + + make ast_tty.h implicit + make FEATURE/tty implicit + prev features/tty + exec - invoke_iffe ${<} + done + exec - cp -f ${<} ${@} + done + + make ast_fcntl.h implicit + prev ast_fs.h + make FEATURE/fcntl + prev ast_fs.h + make features/fcntl.c + prev FEATURE/tty + prev FEATURE/fs + prev FEATURE/lib + prev FEATURE/standards + done + exec - invoke_iffe ${<} -I. -Icomp -Iinclude -Istd + done + exec - cp -f ${<} ${@} + done + + make ast_stdio.h implicit + prev include/sfio_s.h + prev include/ast_std.h + make FEATURE/stdio + prev include/sfio_s.h + make include/ast_std.h + make include/regex.h implicit + prev ast_api.h + prev ast_wchar.h + prev ast_common.h done - exec - cp -f ${<} ${@} - done - prev ast_wchar.h - prev ast_wctype.h - note * - note * clean up obsolete headers - note * - exec - rm -rf dirent.h iconv.h nl_types.h stdio.h wchar.h wctype.h ast_hdr.h ast_types.h ast_unistd.h iffeio.h \ - exec - ${INSTALLROOT}/include/ast/limits.h ${INSTALLROOT}/include/ast/unistd.h \ - exec - ${PACKAGEROOT}/src/lib/libast/std/limits.h - note * - note * generate initial ast.req - note * - prev ${INSTALLROOT}/bin/mkreq - exec - set -o errexit - exec - mkreq ${CC} ${mam_cc_FLAGS} ${CCFLAGS} : ${LDFLAGS} : ast iconv w - note * - note * some systems move -lc routines to -lm; see astmath.c for details - note * - make astmath.out - make port/astmath.c - prev std/endian.h + prev comp/getopt.h + prev ast_map.h + prev ast_botch.h + prev ast_limits.h + prev ast_fcntl.h + prev include/ast_getopt.h + prev ast_sys.h + prev ast_lib.h + prev ast_common.h + prev ast_standards.h + done include/ast_std.h + prev features/stdio + exec - invoke_iffe ${<} + done FEATURE/stdio + exec - cp -f ${<} ${@} + done ast_stdio.h + + make ast_nl_types.h + make FEATURE/nl_types + prev features/nl_types + exec - invoke_iffe ${<} + done + exec - cp -f ${<} ${@} + done + + make ast_mode.h implicit + make FEATURE/mode + make features/mode.c + prev include/modecanon.h implicit + prev FEATURE/param + done + exec - invoke_iffe ${<} -I. -Iinclude -Istd + done + exec - cp -f ${<} ${@} + done + + make FEATURE/syscall implicit + prev features/syscall + exec - invoke_iffe ${<} + done + + make FEATURE/hack implicit + make features/hack + prev FEATURE/common + done + exec - invoke_iffe ${<} + done + + make ast_ccode.h implicit + make FEATURE/ccode + prev features/ccode + exec - invoke_iffe ${<} + done + exec - cp -f ${<} ${@} + done + + make ast_time.h implicit + make FEATURE/time + prev features/time + exec - invoke_iffe ${<} + done + exec - cp -f ${<} ${@} + done + + make tv.h implicit + prev include/ast.h + make FEATURE/tv + prev include/ast.h + prev features/tv + exec - invoke_iffe ${<} + done + exec - cp -f ${<} ${@} + done + + make ast_random.h implicit + make FEATURE/random implicit + prev features/random + exec - invoke_iffe ${<} + done + exec - cp -f ${<} ${@} + done + + make ast_float.h implicit + make FEATURE/float implicit + prev ast_common.h + prev features/float + exec - invoke_iffe ${<} + done + exec - cp -f ${<} ${@} + done + + make lc.h implicit + prev include/ast.h + prev port/lc.tab + make lctab.c + prev port/lclang.h + prev port/lclib.h + make lcgen + make port/lcgen.c + prev std/stdio.h done - exec - X=1 - exec - for N in 1 2 3 4 5 6 7 8 - exec - do if ${CC} ${CCLDFLAGS} -DN=$N -DIS ${mam_cc_FLAGS} ${CCFLAGS} -I. -Istd ${LDFLAGS} -o astmath.exe port/astmath.c 2>/dev/null - exec - then : implicit math function N=$N : - exec - elif ${CC} ${CCLDFLAGS} -DN=$N -DIS ${mam_cc_FLAGS} ${CCFLAGS} -I. -Istd ${LDFLAGS} -o astmath.exe port/astmath.c -lm 2>/dev/null - exec - then : math function N=$N requires -lm : - exec - X=0 - exec - break - exec - else : ERROR: astmath.c fails to compile or link, even with -lm : - exec - exit 1 - exec - fi - exec - done - exec - rm -rf astmath.exe* - exec - echo $X > astmath.out - done - prev FEATURE/aso - exec - sed -e '/^#define _REQ_/!d' -e 's/#define _REQ_\([a-z0-9_]*\).*/ -l\1/' ${<} >> ${@} - exec - read no_libm_needed > ${@} ;; - exec - *) touch ${@} ;; - exec - esac - done ast.req - make libast.a - make state.o - make misc/state.c - make include/ast.h implicit - prev ast_api.h - make include/vmalloc.h implicit - prev ast_common.h - prev include/ast_std.h - done - make include/sfio.h implicit - prev include/sfio_s.h - prev ast_common.h - prev include/ast_std.h - done - prev include/ast_std.h + exec - ${CC} ${CCLDFLAGS} ${CCFLAGS} ${LDFLAGS} -o lcgen port/lcgen.c + done + exec - lcgen lc.h lctab.c < port/lc.tab + done + done + + make ast_ndbm.h implicit + make FEATURE/ndbm implicit + prev std/stdio.h + prev features/ndbm + exec - invoke_iffe ${<} + done + exec - cp -f ${<} ${@} + done + + make ast_sizeof.h implicit + make FEATURE/sizeof implicit + prev features/sizeof + exec - invoke_iffe ${<} + done + exec - cp -f ${<} ${@} + done + + make align.h implicit + make FEATURE/align + make features/align.c + prev FEATURE/common + done + exec - invoke_iffe ${<} -I. + done + exec - cp -f ${<} ${@} + done + + note * + note * Build the library + note * + + make libast.a + + make state.o + make misc/state.c + prev include/ast.h + done + exec - compile ${<} + done + + make opendir.o + make dir/opendir.c + make dir/dirlib.h implicit + prev dir/dirstd.h + prev ast_param.h + make std/dirent.h implicit + prev ast_dirent.h done - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Iinclude -Istd -c ${<} - done - make opendir.o - make dir/opendir.c - make dir/dirlib.h implicit - prev dir/dirstd.h implicit dontcare - prev direntry.h implicit dontcare virtual - make ast_param.h implicit dontcare - prev FEATURE/param - exec - cp -f ${<} ${@} - done - make std/dirent.h implicit dontcare - make ast_dirent.h implicit dontcare - make FEATURE/dirent - prev include/ast_std.h - prev features/dirent - exec - iffe ${IFFEFLAGS} -v -X ast -X std -c "${CC} ${mam_cc_FLAGS} ${CCFLAGS} ${LDFLAGS}" run ${<} - done - exec - cp -f ${<} ${@} - prev include/ast_std.h - done - done - prev ndir.h implicit dontcare virtual - prev std/dirent.h - make include/ls.h implicit - make ast_mode.h implicit dontcare - make FEATURE/mode - make features/mode.c - prev include/modecanon.h implicit - prev FEATURE/param - done - exec - iffe ${IFFEFLAGS} -v -X ast -X std -c "${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Iinclude -Istd ${LDFLAGS}" run ${<} - done - exec - cp -f ${<} ${@} - done - prev ast_fs.h - prev include/ast_std.h - done - prev include/ast.h + prev std/dirent.h + make include/ls.h implicit + prev ast_mode.h + prev ast_fs.h + prev include/ast_std.h done + prev include/ast.h done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Idir -Iinclude -Istd -c ${<} done - make readdir.o - make dir/readdir.c - prev dir/dirlib.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Idir -Iinclude -Istd -c ${<} + exec - compile ${<} -Idir + done + + make readdir.o + make dir/readdir.c + prev dir/dirlib.h done - make rewinddir.o - make dir/rewinddir.c - prev dir/dirlib.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Idir -Iinclude -Istd -c ${<} + exec - compile ${<} -Idir + done + + make rewinddir.o + make dir/rewinddir.c + prev dir/dirlib.h done - make seekdir.o - make dir/seekdir.c - prev dir/dirlib.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Idir -Iinclude -Istd -c ${<} + exec - compile ${<} -Idir + done + + make seekdir.o + make dir/seekdir.c + prev dir/dirlib.h done - make telldir.o - make dir/telldir.c + exec - compile ${<} -Idir + done + + make telldir.o + make dir/telldir.c + prev dir/dirlib.h + done + exec - compile ${<} -Idir + done + + make getcwd.o + make misc/getcwd.c + make include/ast_dir.h implicit + prev std/dirent.h prev dir/dirlib.h + prev ast_lib.h done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Idir -Iinclude -Istd -c ${<} - done - make getcwd.o - make misc/getcwd.c - make include/ast_dir.h implicit - prev std/dirent.h - prev dir/dirlib.h - prev ast_lib.h - done - make include/error.h implicit - make include/option.h implicit - prev include/ast.h - done + make include/error.h implicit + make include/option.h implicit prev include/ast.h done - make FEATURE/syscall implicit - prev features/syscall - exec - iffe ${IFFEFLAGS} -v -X ast -X std -c "${CC} ${mam_cc_FLAGS} ${CCFLAGS} ${LDFLAGS}" run ${<} - done prev include/ast.h done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Idir -Iinclude -Istd -c ${<} - done - make fastfind.o - make misc/fastfind.c - make misc/findlib.h implicit - prev include/find.h implicit - prev include/vmalloc.h - prev include/regex.h - prev include/ls.h - prev include/error.h - prev std/endian.h - make include/cdt.h implicit - prev ast_common.h - prev include/ast_std.h - done - prev include/ast.h + prev FEATURE/syscall + prev include/ast.h + done + exec - compile ${<} -Idir + done + + make fastfind.o + make misc/fastfind.c + make misc/findlib.h implicit + prev include/find.h implicit + prev include/vmalloc.h + prev include/regex.h + prev include/ls.h + prev include/error.h + prev std/endian.h + make include/cdt.h implicit + prev ast_common.h + prev include/ast_std.h done + prev include/ast.h done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} ${-debug-symbols?1?${mam_cc_DEBUG} -D_BLD_DEBUG?${CCFLAGS.FORCE}?} -I. -Icomp -Imisc -Iinclude -Istd -c ${<} done - make hashalloc.o - make hash/hashalloc.c - make FEATURE/hack implicit - make features/hack - prev FEATURE/common - done - exec - iffe ${IFFEFLAGS} -v -X ast -X std -c "${CC} ${mam_cc_FLAGS} ${CCFLAGS} ${LDFLAGS}" run ${<} - done - make hash/hashlib.h implicit - make include/hash.h implicit - prev include/hashpart.h implicit - done - prev include/ast.h + exec - compile ${<} -Imisc + done + + make hashalloc.o + make hash/hashalloc.c + prev FEATURE/hack + make hash/hashlib.h implicit + make include/hash.h implicit + prev include/hashpart.h implicit done + prev include/ast.h done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Ihash -Iinclude -Istd -c ${<} done - make hashdump.o - make hash/hashdump.c - prev hash/hashlib.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Ihash -Iinclude -Istd -c ${<} + exec - compile ${<} -Ihash + done + + make hashdump.o + make hash/hashdump.c + prev hash/hashlib.h done - make hashfree.o - make hash/hashfree.c - prev hash/hashlib.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Ihash -Iinclude -Istd -c ${<} + exec - compile ${<} -Ihash + done + + make hashfree.o + make hash/hashfree.c + prev hash/hashlib.h done - make hashlast.o - make hash/hashlast.c - prev hash/hashlib.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Ihash -Iinclude -Istd -c ${<} + exec - compile ${<} -Ihash + done + + make hashlast.o + make hash/hashlast.c + prev hash/hashlib.h done - make hashlook.o - make hash/hashlook.c - prev hash/hashlib.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Ihash -Iinclude -Istd -c ${<} + exec - compile ${<} -Ihash + done + + make hashlook.o + make hash/hashlook.c + prev hash/hashlib.h done - make hashscan.o - make hash/hashscan.c - prev hash/hashlib.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Ihash -Iinclude -Istd -c ${<} + exec - compile ${<} -Ihash + done + + make hashscan.o + make hash/hashscan.c + prev hash/hashlib.h done - make hashsize.o - make hash/hashsize.c - prev hash/hashlib.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Ihash -Iinclude -Istd -c ${<} + exec - compile ${<} -Ihash + done + + make hashsize.o + make hash/hashsize.c + prev hash/hashlib.h done - make hashview.o - make hash/hashview.c - prev hash/hashlib.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Ihash -Iinclude -Istd -c ${<} + exec - compile ${<} -Ihash + done + + make hashview.o + make hash/hashview.c + prev hash/hashlib.h done - make hashwalk.o - make hash/hashwalk.c - prev hash/hashlib.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Ihash -Iinclude -Istd -c ${<} + exec - compile ${<} -Ihash + done + + make hashwalk.o + make hash/hashwalk.c + prev hash/hashlib.h done - make memhash.o - make hash/memhash.c - prev hash/hashlib.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Ihash -Iinclude -Istd -c ${<} + exec - compile ${<} -Ihash + done + + make memhash.o + make hash/memhash.c + prev hash/hashlib.h done - make memsum.o - make hash/memsum.c - prev hash/hashlib.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Ihash -Iinclude -Istd -c ${<} + exec - compile ${<} -Ihash + done + + make memsum.o + make hash/memsum.c + prev hash/hashlib.h done - make strhash.o - make hash/strhash.c - prev hash/hashlib.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Ihash -Iinclude -Istd -c ${<} + exec - compile ${<} -Ihash + done + + make strhash.o + make hash/strhash.c + prev hash/hashlib.h done - make strkey.o - make hash/strkey.c - prev include/hashkey.h implicit - prev include/ast.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Iinclude -Istd -c ${<} + exec - compile ${<} -Ihash + done + + make strkey.o + make hash/strkey.c + prev include/hashkey.h implicit + prev include/ast.h done - make strsum.o - make hash/strsum.c - prev hash/hashlib.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Ihash -Iinclude -Istd -c ${<} - done - make stracmp.o - make string/stracmp.c - make include/ccode.h implicit - make ast_ccode.h implicit dontcare - make FEATURE/ccode - prev features/ccode - exec - iffe ${IFFEFLAGS} -v -X ast -X std -c "${CC} ${mam_cc_FLAGS} ${CCFLAGS} ${LDFLAGS}" run ${<} - done - exec - cp -f ${<} ${@} - done - prev ast_common.h - done - prev include/ast.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Iinclude -Istd -c ${<} + exec - compile ${<} + done + + make strsum.o + make hash/strsum.c + prev hash/hashlib.h done - make strnacmp.o - make string/strnacmp.c - prev include/ccode.h - prev include/ast.h + exec - compile ${<} -Ihash + done + + make stracmp.o + make string/stracmp.c + make include/ccode.h implicit + prev ast_ccode.h + prev ast_common.h done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Iinclude -Istd -c ${<} + prev include/ast.h done - make ccmap.o - make string/ccmap.c - prev include/ccode.h - prev include/ast.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Iinclude -Istd -c ${<} + exec - compile ${<} + done + + make strnacmp.o + make string/strnacmp.c + prev include/ccode.h + prev include/ast.h done - make ccmapid.o - make string/ccmapid.c - prev include/ccode.h - prev include/ast.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Iinclude -Istd -c ${<} + exec - compile ${<} + done + + make ccmap.o + make string/ccmap.c + prev include/ccode.h + prev include/ast.h done - make ccnative.o - make string/ccnative.c - prev include/ccode.h - prev include/ast.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Iinclude -Istd -c ${<} + exec - compile ${<} + done + + make ccmapid.o + make string/ccmapid.c + prev include/ccode.h + prev include/ast.h done - make chresc.o - make string/chresc.c - prev include/regex.h - prev include/ccode.h - prev include/ast.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Iinclude -Istd -c ${<} + exec - compile ${<} + done + + make ccnative.o + make string/ccnative.c + prev include/ccode.h + prev include/ast.h done - make chrtoi.o - make string/chrtoi.c - prev include/ast.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Iinclude -Istd -c ${<} + exec - compile ${<} + done + + make chresc.o + make string/chresc.c + prev include/regex.h + prev include/ccode.h + prev include/ast.h + done + exec - compile ${<} + done + + make chrtoi.o + make string/chrtoi.c + prev include/ast.h done - make streval.o - make string/streval.c - prev include/ast.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Iinclude -Istd -c ${<} + exec - compile ${<} + done + + make streval.o + make string/streval.c + prev include/ast.h done - make strexpr.o - make string/strexpr.c - prev include/ast.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Iinclude -Istd -c ${<} + exec - compile ${<} + done + + make strexpr.o + make string/strexpr.c + prev include/ast.h done - make strmatch.o - make string/strmatch.c - prev include/regex.h - prev include/ast.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Iinclude -Istd -c ${<} + exec - compile ${<} + done + + make strmatch.o + make string/strmatch.c + prev include/regex.h + prev include/ast.h done - make strcopy.o - make string/strcopy.c - prev include/ast.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Iinclude -Istd -c ${<} - done - make modei.o - make string/modei.c - make string/modelib.h implicit - make include/modex.h implicit - prev include/modecanon.h - prev ast_fs.h - done - prev include/ls.h - prev include/ast.h + exec - compile ${<} + done + + make strcopy.o + make string/strcopy.c + prev include/ast.h + done + exec - compile ${<} + done + + make modei.o + make string/modei.c + make string/modelib.h implicit + make include/modex.h implicit + prev include/modecanon.h + prev ast_fs.h done + prev include/ls.h + prev include/ast.h done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Istring -Iinclude -Istd -c ${<} done - make modex.o - make string/modex.c - prev string/modelib.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Istring -Iinclude -Istd -c ${<} + exec - compile ${<} -Istring + done + + make modex.o + make string/modex.c + prev string/modelib.h done - make strmode.o - make string/strmode.c - prev string/modelib.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Istring -Iinclude -Istd -c ${<} + exec - compile ${<} -Istring + done + + make strmode.o + make string/strmode.c + prev string/modelib.h done - make strlcat.o - make string/strlcat.c - prev ast_map.h - prev include/ast.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Iinclude -Istd -c ${<} + exec - compile ${<} -Istring + done + + make strlcat.o + make string/strlcat.c + prev ast_map.h + prev include/ast.h done - make strlcpy.o - make string/strlcpy.c - prev ast_map.h - prev include/ast.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Iinclude -Istd -c ${<} + exec - compile ${<} + done + + make strlcpy.o + make string/strlcpy.c + prev ast_map.h + prev include/ast.h done - make strlook.o - make string/strlook.c - prev include/ast.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Iinclude -Istd -c ${<} + exec - compile ${<} + done + + make strlook.o + make string/strlook.c + prev include/ast.h done - make strncopy.o - make string/strncopy.c - prev include/ast.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Iinclude -Istd -c ${<} + exec - compile ${<} + done + + make strncopy.o + make string/strncopy.c + prev include/ast.h done - make strsearch.o - make string/strsearch.c - prev include/ast.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Iinclude -Istd -c ${<} + exec - compile ${<} + done + + make strsearch.o + make string/strsearch.c + prev include/ast.h + done + exec - compile ${<} + done + + make strpsearch.o + make string/strpsearch.c + prev include/ccode.h + prev include/ast.h + done + exec - compile ${<} + done + + make stresc.o + make string/stresc.c + prev include/ast.h + done + exec - compile ${<} + done + + make stropt.o + make string/stropt.c + prev include/ast.h + done + exec - compile ${<} + done + + make strtape.o + make string/strtape.c + prev include/ast.h + done + exec - compile ${<} + done + + make strpcmp.o + make string/strpcmp.c + prev include/ast.h + done + exec - compile ${<} + done + + make strnpcmp.o + make string/strnpcmp.c + prev include/ast.h + done + exec - compile ${<} + done + + make strvcmp.o + make string/strvcmp.c + prev include/ast.h + done + exec - compile ${<} + done + + make strnvcmp.o + make string/strnvcmp.c + prev include/ast.h done - make strpsearch.o - make string/strpsearch.c - prev include/ccode.h + exec - compile ${<} + done + + make tok.o + make string/tok.c + make include/tok.h implicit prev include/ast.h done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Iinclude -Istd -c ${<} + prev include/ast.h + done + exec - compile ${<} + done + + make tokline.o + make string/tokline.c + prev include/tok.h + prev include/error.h + prev include/ast.h + done + exec - compile ${<} + done + + make tokscan.o + make string/tokscan.c + prev FEATURE/hack + prev include/tok.h + prev include/ast.h + done + exec - compile ${<} + done + + make pathaccess.o + make path/pathaccess.c + prev ast_api.h + prev include/ast.h + done + exec - compile ${<} + done + + make pathcat.o + make path/pathcat.c + prev ast_api.h + prev include/ast.h done - make stresc.o - make string/stresc.c + exec - compile ${<} + done + + make pathcanon.o + make path/pathcanon.c + prev ast_api.h + prev include/error.h + prev include/ls.h + prev include/ast.h + done + exec - compile ${<} + done + + make pathcheck.o + make path/pathcheck.c + make include/times.h implicit + prev ast_time.h prev include/ast.h done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Iinclude -Istd -c ${<} + prev include/error.h + prev include/ls.h + prev include/ast.h + done + exec - compile ${<} + done + + make pathpath.o + make path/pathpath.c + prev ast_api.h + prev include/ast.h done - make stropt.o - make string/stropt.c + exec - compile ${<} + done + + make pathexists.o + make path/pathexists.c + prev include/error.h + prev include/ls.h + make port/lclib.h implicit + prev lc.h + prev include/error.h prev include/ast.h done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Iinclude -Istd -c ${<} done - make strtape.o - make string/strtape.c + exec - compile ${<} -Iport -I${INSTALLROOT}/include + done + + make pathfind.o + make path/pathfind.c + prev include/ls.h + prev include/error.h + prev include/ast.h + done + exec - compile ${<} + done + + make pathicase.o + make path/pathicase.c + prev include/error.h + prev include/ast.h + done + exec - compile ${<} + done + + make pathkey.o + make path/pathkey.c + prev ast_api.h + prev include/ls.h + prev include/ast.h + done + exec - compile ${<} + done + + make pathprobe.o + make path/pathprobe.c + prev ast_api.h + make include/proc.h implicit prev include/ast.h done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Iinclude -Istd -c ${<} + prev include/ls.h + prev include/error.h + prev include/ast.h + done + exec - compile ${<} -DHOSTTYPE=\""${mam_cc_HOSTTYPE}"\" + done + + make pathrepl.o + make path/pathrepl.c + prev ast_api.h + prev include/ast.h + done + exec - compile ${<} + done + + make pathnative.o + make path/pathnative.c + prev include/ast.h + done + exec - compile ${<} + done + + make pathposix.o + make path/pathposix.c + prev include/ast.h done - make strpcmp.o - make string/strpcmp.c + exec - compile ${<} + done + + make pathtemp.o + make path/pathtemp.c + prev include/error.h + make include/tm.h implicit + prev include/times.h prev include/ast.h done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Iinclude -Istd -c ${<} + prev tv.h + prev include/ls.h + prev include/ast.h + done + exec - compile ${<} + done + + make pathtmp.o + make path/pathtmp.c + prev std/stdio.h + prev include/ast.h done - make strnpcmp.o - make string/strnpcmp.c + exec - compile ${<} + done + + make pathstat.o + make path/pathstat.c + prev include/error.h + prev include/ls.h + prev include/ast.h + done + exec - compile ${<} + done + + make pathgetlink.o + make path/pathgetlink.c + make misc/univlib.h implicit + prev include/ls.h prev include/ast.h done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Iinclude -Istd -c ${<} done - make strvcmp.o - make string/strvcmp.c - prev include/ast.h + exec - compile ${<} -Imisc + done + + make pathsetlink.o + make path/pathsetlink.c + prev misc/univlib.h + done + exec - compile ${<} -Imisc + done + + make pathbin.o + make path/pathbin.c + prev include/ast.h + done + exec - compile ${<} + done + + make pathshell.o + make path/pathshell.c + prev include/ast.h + done + exec - compile ${<} + done + + make pathcd.o + make path/pathcd.c + make include/stk.h implicit + prev include/sfio.h done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Iinclude -Istd -c ${<} + prev include/error.h + prev include/ast.h done - make strnvcmp.o - make string/strnvcmp.c - prev include/ast.h + exec - compile ${<} + done + + make pathprog.o + make path/pathprog.c + make FEATURE/prog implicit + prev features/prog + exec - invoke_iffe ${<} done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Iinclude -Istd -c ${<} + prev include/ast_windows.h implicit + prev include/ast.h done - make tok.o - make string/tok.c - make include/tok.h implicit - prev include/ast.h + exec - compile ${<} + done + + make ftwalk.o + make misc/ftwalk.c + make include/ftwalk.h implicit + make include/fts.h implicit + prev ast_mode.h + prev ast_fs.h + prev include/ast_std.h done - prev include/ast.h done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Iinclude -Istd -c ${<} + prev include/ast.h done - make tokline.o - make string/tokline.c - prev include/tok.h - prev include/error.h - prev include/ast.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Iinclude -Istd -c ${<} + exec - compile ${<} + done + + make ftwflags.o + make misc/ftwflags.c + prev include/ftwalk.h + prev include/ast.h done - make tokscan.o - make string/tokscan.c - prev FEATURE/hack - prev include/tok.h + exec - compile ${<} + done + + make fts.o + make misc/fts.c + prev include/fts.h + prev include/ls.h + prev include/error.h + prev include/ast_dir.h + prev include/ast.h + done + exec - compile ${<} -Idir + done + + make astintercept.o + make misc/astintercept.c + make misc/intercepts.h implicit + prev include/shcmd.h implicit prev include/ast.h done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Iinclude -Istd -c ${<} done - make pathaccess.o - make path/pathaccess.c - prev ast_api.h - prev include/ast.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Iinclude -Istd -c ${<} + exec - compile ${<} -Imisc + done + + make conformance.o + make misc/conformance.c + prev include/ast.h done - make pathcat.o - make path/pathcat.c - prev ast_api.h - prev include/ast.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Iinclude -Istd -c ${<} + exec - compile ${<} + done + + make getenv.o + make misc/getenv.c + prev misc/intercepts.h done - make pathcanon.o - make path/pathcanon.c - prev ast_api.h + exec - compile ${<} -Imisc + done + + make setenviron.o + make misc/setenviron.c + prev misc/intercepts.h + done + exec - compile ${<} -Imisc + done + + make optget.o + make misc/optget.c + prev include/ccode.h + make include/debug.h implicit prev include/error.h - prev include/ls.h prev include/ast.h done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Iinclude -Istd -c ${<} - done - make pathcheck.o - make path/pathcheck.c - make include/times.h implicit - make ast_time.h implicit dontcare - make FEATURE/time - prev features/time - exec - iffe ${IFFEFLAGS} -v -X ast -X std -c "${CC} ${mam_cc_FLAGS} ${CCFLAGS} ${LDFLAGS}" run ${<} - done - exec - cp -f ${<} ${@} - done - prev include/ast.h - done + make misc/optlib.h implicit prev include/error.h - prev include/ls.h + prev include/cdt.h prev include/ast.h done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Iinclude -Istd -c ${<} done - make pathpath.o - make path/pathpath.c - prev ast_api.h - prev include/ast.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Iinclude -Istd -c ${<} + exec - compile ${<} -Imisc + done + + make optjoin.o + make misc/optjoin.c + prev misc/optlib.h done - make pathexists.o - make path/pathexists.c - prev include/error.h - prev include/ls.h - make port/lclib.h implicit - make lc.h implicit - make lcgen - make port/lcgen.c - prev std/stdio.h - done - exec - ${CC} ${CCLDFLAGS} ${CCFLAGS} ${LDFLAGS} -o lcgen port/lcgen.c - done - prev port/lc.tab - exec - ./lcgen lc.h lctab.c < port/lc.tab - prev include/ast.h - done - prev include/error.h - prev include/ast.h - done - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Iport -Iinclude -Istd -I${INSTALLROOT}/include -c ${<} + exec - compile ${<} -Imisc + done + + make optesc.o + make misc/optesc.c + prev misc/optlib.h done - make pathfind.o - make path/pathfind.c - prev include/ls.h - prev include/error.h - prev include/ast.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Iinclude -Istd -c ${<} + exec - compile ${<} -Imisc + done + + make optctx.o + make misc/optctx.c + prev misc/optlib.h done - make pathicase.o - make path/pathicase.c - prev include/error.h - prev include/ast.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Iinclude -Istd -c ${<} + exec - compile ${<} -Imisc + done + + make strsort.o + make string/strsort.c + prev include/ast.h done - make pathkey.o - make path/pathkey.c - prev ast_api.h + exec - compile ${<} + done + + make struniq.o + make string/struniq.c + prev include/ast.h + done + exec - compile ${<} + done + + make magic.o + make misc/magic.c + make include/magic.h implicit prev include/ls.h - prev include/ast.h + prev include/sfio.h + done + make include/swap.h implicit + prev ast_common.h + done + prev include/regex.h + prev include/error.h + prev include/modex.h + make include/dt.h implicit + prev include/vmalloc.h + prev include/cdt.h done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Iinclude -Istd -c ${<} + prev include/ccode.h + prev include/ast.h done - make pathprobe.o - make path/pathprobe.c - prev ast_api.h - make include/proc.h implicit - prev include/ast.h + exec - compile ${<} + done + + make mime.o + make misc/mime.c + make misc/mimelib.h implicit + make include/mime.h implicit + prev include/ls.h + prev include/sfio.h done - prev include/ls.h - prev include/error.h + prev include/tok.h + prev include/magic.h + prev include/cdt.h prev include/ast.h done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Iinclude -Istd -DHOSTTYPE=\""${mam_cc_HOSTTYPE}"\" -c ${<} done - make pathrepl.o - make path/pathrepl.c - prev ast_api.h - prev include/ast.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Iinclude -Istd -c ${<} + exec - compile ${<} -Imisc + done + + make mimetype.o + make misc/mimetype.c + prev misc/mimelib.h + done + exec - compile ${<} -Imisc + done + + make signal.o + make misc/signal.c + prev ast_map.h + prev sig.h + prev include/ast.h + done + exec - compile ${<} + done + + make sigflag.o + make comp/sigflag.c + prev sig.h + prev include/ast.h + done + exec - compile ${<} + done + + make systrace.o + make misc/systrace.c + prev include/debug.h + prev include/proc.h + prev include/error.h + prev include/ast.h + done + exec - compile ${<} + done + + make error.o + make misc/error.c + prev include/regex.h + prev include/times.h + prev include/stk.h + prev sig.h + prev include/namval.h implicit + prev include/ccode.h + prev port/lclib.h + done + exec - compile ${<} -Iport -I${INSTALLROOT}/include -DERROR_CATALOG=\""libast"\" + done + + make errorf.o + make misc/errorf.c + prev include/error.h done - make pathnative.o - make path/pathnative.c + exec - compile ${<} + done + + make errormsg.o + make misc/errormsg.c + prev include/error.h + done + exec - compile ${<} + done + + make errorx.o + make misc/errorx.c + prev port/lclib.h + done + exec - compile ${<} -Iport -I${INSTALLROOT}/include + done + + make localeconv.o + make comp/localeconv.c + prev port/lclib.h + done + exec - compile ${<} -Iport -I${INSTALLROOT}/include + done + + make setlocale.o + make comp/setlocale.c + prev include/ast_windows.h + prev std/wctype.h + prev include/error.h + prev include/namval.h + make include/mc.h implicit prev include/ast.h done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Iinclude -Istd -c ${<} + prev ast_wchar.h + prev port/lclib.h + prev ast_standards.h done - make pathposix.o - make path/pathposix.c - prev include/ast.h + exec - compile ${<} -Iport -I${INSTALLROOT}/include + done + + make translate.o + make misc/translate.c + make std/nl_types.h implicit + prev ast_nl_types.h done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Iinclude -Istd -c ${<} + prev include/mc.h + prev include/error.h + prev include/cdt.h + prev port/lclib.h done - make pathtemp.o - make path/pathtemp.c - prev include/error.h - make include/tm.h implicit - prev include/times.h - prev include/ast.h - done - make tv.h implicit - make FEATURE/tv - prev include/ast.h - prev features/tv - exec - iffe ${IFFEFLAGS} -v -X ast -X std -c "${CC} ${mam_cc_FLAGS} ${CCFLAGS} ${LDFLAGS}" run ${<} + exec - compile ${<} -Iport -I${INSTALLROOT}/include + done + + make catopen.o + make comp/catopen.c + make std/iconv.h implicit + make ast_iconv.h implicit + make FEATURE/iconv + prev include/ccode.h + prev ast_common.h + prev features/iconv + exec - invoke_iffe ${<} done exec - cp -f ${<} ${@} - prev include/ast.h + prev include/ccode.h + prev ast_common.h done - prev include/ls.h - prev include/ast.h done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Iinclude -Istd -c ${<} + prev std/nl_types.h + prev include/mc.h + prev include/ast.h done - make pathtmp.o - make path/pathtmp.c - prev std/stdio.h - prev include/ast.h + exec - compile ${<} + done + + make iconv.o + make comp/iconv.c + prev include/ast_windows.h + prev port/lclib.h + prev std/iconv.h + prev include/ccode.h + prev include/error.h + prev std/dirent.h + prev include/ast.h + done + exec - compile ${<} -Iport -I${INSTALLROOT}/include + done + + make lc.o + make port/lc.c + make FEATURE/locale implicit + prev features/locale + exec - invoke_iffe ${<} + done + make port/lclang.h implicit + prev include/ast_windows.h done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Iinclude -Istd -c ${<} + prev port/lclib.h done - make pathstat.o - make path/pathstat.c + exec - compile ${<} -Iport -I${INSTALLROOT}/include + done + + make lctab.o + prev lctab.c + exec - compile ${<} -Iport -I${INSTALLROOT}/include + done + + make mc.o + make port/mc.c + prev std/nl_types.h + prev include/mc.h + prev include/error.h + prev include/vmalloc.h + prev std/iconv.h + prev port/lclib.h + prev sfio/sfhdr.h + make sfio/sfhdr.h implicit + prev port/lclib.h + prev std/wchar.h prev include/error.h + prev FEATURE/float prev include/ls.h + prev ast_tty.h + prev ast_time.h prev include/ast.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Iinclude -Istd -c ${<} - done - make pathgetlink.o - make path/pathgetlink.c - make misc/univlib.h implicit - prev include/ls.h - prev include/ast.h + make include/sfio_t.h implicit + prev include/sfio.h + done + prev FEATURE/common + prev FEATURE/mmap + make FEATURE/sfio implicit + prev features/sfio + exec - invoke_iffe ${<} done done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Imisc -Iinclude -Istd -c ${<} done - make pathsetlink.o - make path/pathsetlink.c - prev misc/univlib.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Imisc -Iinclude -Istd -c ${<} + exec - compile ${<} ${DEBUG+-DDEBUG=${DEBUG}} -Iport -Isfio -I${INSTALLROOT}/include + done + + make base64.o + make string/base64.c + prev include/ast.h done - make pathbin.o - make path/pathbin.c + exec - compile ${<} + done + + make recfmt.o + make misc/recfmt.c + make include/recfmt.h implicit prev include/ast.h done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Iinclude -Istd -c ${<} done - make pathshell.o - make path/pathshell.c - prev include/ast.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Iinclude -Istd -c ${<} + exec - compile ${<} + done + + make recstr.o + make misc/recstr.c + prev include/recfmt.h done - make pathcd.o - make path/pathcd.c - make include/stk.h implicit - prev include/sfio.h - done - prev include/error.h - prev include/ast.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Iinclude -Istd -c ${<} + exec - compile ${<} + done + + make reclen.o + make misc/reclen.c + prev include/recfmt.h done - make pathprog.o - make path/pathprog.c - make FEATURE/prog implicit - prev features/prog - exec - iffe ${IFFEFLAGS} -v -X ast -X std -c "${CC} ${mam_cc_FLAGS} ${CCFLAGS} ${LDFLAGS}" run ${<} - done - prev include/ast_windows.h - prev include/ast.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Iinclude -Istd -c ${<} - done - make ftwalk.o - make misc/ftwalk.c - make include/ftwalk.h implicit - make include/fts.h implicit - prev ast_mode.h - prev ast_fs.h - prev include/ast_std.h - done - done - prev include/ast.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Iinclude -Istd -c ${<} + exec - compile ${<} + done + + make fmtrec.o + make misc/fmtrec.c + prev include/recfmt.h done - make ftwflags.o - make misc/ftwflags.c - prev include/ftwalk.h - prev include/ast.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Iinclude -Istd -c ${<} + exec - compile ${<} + done + + make fmtbuf.o + make string/fmtbuf.c + prev include/ast.h done - make fts.o - make misc/fts.c - prev include/fts.h - prev include/ls.h - prev include/error.h - prev include/ast_dir.h - prev include/ast.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Idir -Iinclude -Istd -D__OBSOLETE__=20120101 -c ${<} + exec - compile ${<} + done + + make fmtclock.o + make string/fmtclock.c + prev include/tm.h + prev include/ast.h done - make astintercept.o - make misc/astintercept.c - make misc/intercepts.h implicit - prev include/shcmd.h implicit - prev include/ast.h - done - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Imisc -Iinclude -Istd -c ${<} + exec - compile ${<} + done + + make fmtdev.o + make string/fmtdev.c + prev include/ls.h + prev include/ast.h done - make conformance.o - make misc/conformance.c - prev include/ast.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Iinclude -Istd -c ${<} + exec - compile ${<} + done + + make fmtelapsed.o + make string/fmtelapsed.c + prev include/ast.h done - make getenv.o - make misc/getenv.c - prev windows.h implicit dontcare virtual - prev misc/intercepts.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Imisc -Iinclude -Istd -c ${<} + exec - compile ${<} + done + + make fmterror.o + make string/fmterror.c + prev include/ast.h done - make setenviron.o - make misc/setenviron.c - prev misc/intercepts.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Imisc -Iinclude -Istd -c ${<} + exec - compile ${<} + done + + make fmtesc.o + make string/fmtesc.c + prev std/wctype.h + prev std/wchar.h + prev include/ccode.h + prev include/ast.h + done + exec - compile ${<} + done + + make fmtfmt.o + make string/fmtfmt.c + prev include/ast.h done - make optget.o - make misc/optget.c - prev include/ccode.h - make include/debug.h implicit - prev include/error.h - prev include/ast.h - done - make misc/optlib.h implicit - prev include/error.h - prev include/cdt.h - prev include/ast.h - done - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Imisc -Iinclude -Istd -c ${<} + exec - compile ${<} + done + + make fmtfs.o + make string/fmtfs.c + prev include/cdt.h + prev FEATURE/fs + prev include/mnt.h implicit + prev include/ls.h + prev include/ast.h + done + exec - compile ${<} + done + + make fmtident.o + make string/fmtident.c + prev include/ast.h done - make optjoin.o - make misc/optjoin.c - prev misc/optlib.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Imisc -Iinclude -Istd -c ${<} + exec - compile ${<} + done + + make fmtint.o + make string/fmtint.c + prev include/ast.h done - make optesc.o - make misc/optesc.c - prev misc/optlib.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Imisc -Iinclude -Istd -c ${<} + exec - compile ${<} + done + + make fmtip4.o + make string/fmtip4.c + prev include/ast.h done - make optctx.o - make misc/optctx.c - prev misc/optlib.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Imisc -Iinclude -Istd -c ${<} + exec - compile ${<} + done + + make fmtip6.o + make string/fmtip6.c + prev include/ip6.h implicit + prev include/ast.h done - make strsort.o - make string/strsort.c - prev include/ast.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Iinclude -Istd -c ${<} + exec - compile ${<} + done + + make fmtls.o + make string/fmtls.c + prev include/tm.h + prev include/ls.h + prev include/ast.h + done + exec - compile ${<} + done + + make fmtmatch.o + make string/fmtmatch.c + prev include/ast.h done - make struniq.o - make string/struniq.c - prev include/ast.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Iinclude -Istd -c ${<} + exec - compile ${<} + done + + make fmtmode.o + make string/fmtmode.c + prev string/modelib.h done - make magic.o - make misc/magic.c - make include/magic.h implicit - prev include/ls.h - prev include/sfio.h - done - make include/swap.h implicit - prev ast_common.h - done - prev include/regex.h - prev include/error.h - prev include/modex.h - make include/dt.h implicit - prev include/vmalloc.h - prev include/cdt.h - done - prev include/ccode.h - prev include/ast.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Iinclude -Istd -c ${<} - done - make mime.o - make misc/mime.c - make misc/mimelib.h implicit - make include/mime.h implicit - prev include/ls.h - prev include/sfio.h + exec - compile ${<} -Istring + done + + make fmtnum.o + make string/fmtnum.c + prev include/ast.h + done + exec - compile ${<} + done + + make fmtperm.o + make string/fmtperm.c + prev include/ls.h + prev include/ast.h + done + exec - compile ${<} + done + + make fmtre.o + make string/fmtre.c + prev include/ast.h + done + exec - compile ${<} + done + + make fmttime.o + make string/fmttime.c + prev include/tm.h + done + exec - compile ${<} + done + + make fmtuid.o + make string/fmtuid.c + prev std/stdio.h + prev include/cdt.h + prev include/ast.h + done + exec - compile ${<} + done + + make fmtgid.o + make string/fmtgid.c + prev std/stdio.h + prev include/cdt.h + prev include/ast.h + done + exec - compile ${<} + done + + make fmtsignal.o + make string/fmtsignal.c + prev sig.h + prev include/ast.h + done + exec - compile ${<} + done + + make fmtscale.o + make string/fmtscale.c + prev port/lclib.h + prev include/ast.h + done + exec - compile ${<} -Iport -I${INSTALLROOT}/include + done + + make fmttmx.o + make string/fmttmx.c + prev tv.h + make tmx.h implicit + make FEATURE/tmx + prev tv.h + prev include/tm.h + make features/tmx + prev FEATURE/common done - prev include/tok.h - prev include/magic.h - prev include/cdt.h - prev include/ast.h + exec - invoke_iffe ${<} done + exec - cp -f ${<} ${@} + prev tv.h + prev include/tm.h done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Imisc -Iinclude -Istd -c ${<} - done - make mimetype.o - make misc/mimetype.c - prev misc/mimelib.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Imisc -Iinclude -Istd -c ${<} done - make signal.o - make misc/signal.c - prev ast_map.h - prev sig.h - prev include/ast.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Iinclude -Istd -c ${<} + exec - compile ${<} + done + + make fmttv.o + make string/fmttv.c + prev include/tm.h + prev tv.h done - make sigflag.o - make comp/sigflag.c - prev sig.h - prev include/ast.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Iinclude -Istd -c ${<} + exec - compile ${<} + done + + make fmtversion.o + make string/fmtversion.c + prev include/ast.h done - make systrace.o - make misc/systrace.c - prev include/debug.h - prev include/proc.h - prev include/error.h - prev include/ast.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Iinclude -Istd -c ${<} + exec - compile ${<} + done + + make strelapsed.o + make string/strelapsed.c + prev include/ast.h done - make error.o - make misc/error.c - prev include/regex.h - prev include/times.h - prev include/stk.h - prev sig.h - prev include/namval.h implicit - prev include/ccode.h - prev port/lclib.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Iport -Iinclude -Istd -I${INSTALLROOT}/include -DERROR_CATALOG=\""libast"\" -c ${<} + exec - compile ${<} + done + + make strperm.o + make string/strperm.c + prev include/modex.h + prev include/ls.h + prev include/ast.h + done + exec - compile ${<} + done + + make struid.o + make string/struid.c + prev include/cdt.h + prev include/ast.h done - make errorf.o - make misc/errorf.c - prev include/error.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Iinclude -Istd -c ${<} + exec - compile ${<} + done + + make strgid.o + make string/strgid.c + prev include/cdt.h + prev include/ast.h done - make errormsg.o - make misc/errormsg.c - prev include/error.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Iinclude -Istd -c ${<} + exec - compile ${<} + done + + make strtoip4.o + make string/strtoip4.c + prev include/ast.h done - make errorx.o - make misc/errorx.c - prev port/lclib.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Iport -Iinclude -Istd -I${INSTALLROOT}/include -c ${<} + exec - compile ${<} + done + + make strtoip6.o + make string/strtoip6.c + prev include/ip6.h + prev include/ast.h done - make localeconv.o - make comp/localeconv.c - prev port/lclib.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Iport -Iinclude -Istd -I${INSTALLROOT}/include -c ${<} + exec - compile ${<} + done + + make stk.o + make misc/stk.c + prev include/stk.h + prev align.h + prev include/ast.h + prev include/sfio_t.h + done + exec - compile ${<} + done + + make swapget.o + make string/swapget.c + prev include/swap.h + prev include/ast.h done - make setlocale.o - make comp/setlocale.c - prev include/ast_windows.h - prev std/wctype.h - prev include/error.h - prev include/namval.h - make include/mc.h implicit - prev include/ast.h - done - prev ast_wchar.h - prev port/lclib.h - prev ast_standards.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Iport -Iinclude -Istd -I${INSTALLROOT}/include -c ${<} + exec - compile ${<} + done + + make swapmem.o + make string/swapmem.c + prev include/swap.h + prev include/ast.h done - make translate.o - make misc/translate.c - make std/nl_types.h implicit - prev ast_nl_types.h - done - prev include/mc.h - prev include/error.h - prev include/cdt.h - prev port/lclib.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Iport -Iinclude -Istd -I${INSTALLROOT}/include -c ${<} - done - make catopen.o - make comp/catopen.c - make std/iconv.h implicit - make ast_iconv.h implicit - make FEATURE/iconv - prev include/ccode.h - prev ast_common.h - prev features/iconv - exec - iffe ${IFFEFLAGS} -v -X ast -X std -c "${CC} ${mam_cc_FLAGS} ${CCFLAGS} ${LDFLAGS}" run ${<} - done - exec - cp -f ${<} ${@} - prev include/ccode.h - prev ast_common.h - done - done - prev std/nl_types.h - prev include/mc.h - prev include/ast.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Iinclude -Istd -c ${<} + exec - compile ${<} + done + + make swapop.o + make string/swapop.c + prev include/swap.h + prev include/ast.h done - make iconv.o - make comp/iconv.c - prev include/ast_windows.h - prev port/lclib.h - prev std/iconv.h - prev include/ccode.h - prev include/error.h - prev std/dirent.h - prev include/ast.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Iport -Iinclude -Istd -I${INSTALLROOT}/include -c ${<} + exec - compile ${<} + done + + make swapput.o + make string/swapput.c + prev include/swap.h + prev include/ast.h done - make lc.o - make port/lc.c - make FEATURE/locale implicit - prev features/locale - exec - iffe ${IFFEFLAGS} -v -X ast -X std -c "${CC} ${mam_cc_FLAGS} ${CCFLAGS} ${LDFLAGS}" run ${<} - done - make port/lclang.h implicit - make include/ast_windows.h implicit - prev windows.h + exec - compile ${<} + done + + make sigdata.o + make misc/sigdata.c + make FEATURE/signal implicit + make features/signal.c + make FEATURE/siglist implicit + prev features/siglist + exec - invoke_iffe ${<} done + prev FEATURE/standards done - prev port/lclib.h + exec - invoke_iffe ${<} -I. done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Iport -Iinclude -Istd -I${INSTALLROOT}/include -c ${<} + prev sig.h + prev include/ast.h done - make lctab.o - make lctab.c - prev port/lclang.h - prev port/lclib.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Iport -Iinclude -Istd -I${INSTALLROOT}/include -c ${<} + exec - compile ${<} + done + + make sigcrit.o + make misc/sigcrit.c + prev sig.h + prev include/ast.h done - make mc.o - make port/mc.c - prev std/nl_types.h - prev include/mc.h - prev include/error.h - prev include/vmalloc.h - prev std/iconv.h - prev port/lclib.h - make sfio/sfhdr.h implicit - prev port/lclib.h - prev stropts.h implicit dontcare virtual - prev std/wchar.h - prev include/error.h - make FEATURE/float implicit - prev ast_common.h - make features/float - prev FEATURE/standards - done - exec - iffe ${IFFEFLAGS} -v -X ast -X std -c "${CC} ${mam_cc_FLAGS} ${CCFLAGS} ${LDFLAGS}" run ${<} - done - prev mman.h implicit dontcare virtual - prev filio.h implicit dontcare virtual - prev stat.h implicit dontcare virtual - prev include/ls.h - make ast_tty.h implicit dontcare - prev FEATURE/tty - exec - cp -f ${<} ${@} - done - prev ast_time.h + exec - compile ${<} + done + + make sigunblock.o + make comp/sigunblock.c + prev sig.h + prev include/ast.h + done + exec - compile ${<} + done + + make procopen.o + make misc/procopen.c + prev include/namval.h + prev ast_tty.h + prev include/ls.h + make misc/proclib.h implicit + prev include/proc.h + make include/wait.h implicit + prev ast_wait.h prev include/ast.h - make include/sfio_t.h implicit - prev include/sfio.h - done - prev FEATURE/common - prev FEATURE/mmap - make FEATURE/sfio implicit - prev features/sfio - exec - iffe ${IFFEFLAGS} -v -X ast -X std -c "${CC} ${mam_cc_FLAGS} ${CCFLAGS} ${LDFLAGS}" run ${<} - done done - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} ${-debug-symbols?1?${mam_cc_DEBUG} -D_BLD_DEBUG?${CCFLAGS.FORCE}?} ${DEBUG+-DDEBUG=${DEBUG}} -I. -Icomp -Iport -Isfio -Iinclude -Istd -I${INSTALLROOT}/include -c ${<} - done - make base64.o - make string/base64.c + prev sig.h prev include/ast.h done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Iinclude -Istd -c ${<} done - make recfmt.o - make misc/recfmt.c - make include/recfmt.h implicit - prev include/ast.h - done - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Iinclude -Istd -c ${<} + exec - compile ${<} -Imisc + done + + make procclose.o + make misc/procclose.c + prev misc/proclib.h done - make recstr.o - make misc/recstr.c - prev include/recfmt.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Iinclude -Istd -c ${<} + exec - compile ${<} -Imisc + done + + make procrun.o + make misc/procrun.c + prev misc/proclib.h done - make reclen.o - make misc/reclen.c - prev include/recfmt.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Iinclude -Istd -c ${<} + exec - compile ${<} -Imisc + done + + make procfree.o + make misc/procfree.c + prev misc/proclib.h done - make fmtrec.o - make misc/fmtrec.c - prev include/recfmt.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Iinclude -Istd -c ${<} + exec - compile ${<} -Imisc + done + + make tmdate.o + make tm/tmdate.c + prev tmx.h done - make fmtbuf.o - make string/fmtbuf.c - prev include/ast.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Iinclude -Istd -c ${<} + exec - compile ${<} + done + + make tmequiv.o + make tm/tmequiv.c + prev include/tm.h done - make fmtclock.o - make string/fmtclock.c - prev include/tm.h - prev include/ast.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Iinclude -Istd -c ${<} + exec - compile ${<} + done + + make tmfix.o + make tm/tmfix.c + prev tmx.h + prev include/ast.h done - make fmtdev.o - make string/fmtdev.c - prev include/ls.h - prev include/ast.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Iinclude -Istd -c ${<} + exec - compile ${<} + done + + make tmfmt.o + make tm/tmfmt.c + prev tmx.h done - make fmtelapsed.o - make string/fmtelapsed.c - prev include/ast.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Iinclude -Istd -c ${<} + exec - compile ${<} + done + + make tmform.o + make tm/tmform.c + prev include/tm.h + prev include/ast.h done - make fmterror.o - make string/fmterror.c - prev include/ast.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Iinclude -Istd -c ${<} + exec - compile ${<} + done + + make tmgoff.o + make tm/tmgoff.c + prev include/tm.h + prev include/ast.h done - make fmtesc.o - make string/fmtesc.c - prev std/wctype.h - prev std/wchar.h - prev include/ccode.h - prev include/ast.h + exec - compile ${<} + done + + make tminit.o + make tm/tminit.c + make FEATURE/tmlib implicit + prev features/tmlib + exec - invoke_iffe ${<} done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Iinclude -Istd -c ${<} + prev include/namval.h + prev include/tm.h done - make fmtfmt.o - make string/fmtfmt.c - prev include/ast.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Iinclude -Istd -c ${<} + exec - compile ${<} + done + + make tmleap.o + make tm/tmleap.c + prev tmx.h done - make fmtfs.o - make string/fmtfs.c - prev include/cdt.h - prev FEATURE/fs - prev include/mnt.h implicit - prev include/ls.h - prev include/ast.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Iinclude -Istd -c ${<} + exec - compile ${<} + done + + make tmlex.o + make tm/tmlex.c + prev include/tm.h + prev include/ast.h done - make fmtident.o - make string/fmtident.c - prev include/ast.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Iinclude -Istd -c ${<} + exec - compile ${<} + done + + make tmlocale.o + make tm/tmlocale.c + prev std/nl_types.h + prev include/ast_windows.h + prev port/lclib.h + prev ast_nl_types.h + prev include/tm.h + prev include/mc.h + prev std/iconv.h + prev include/cdt.h + prev include/ast.h + done + exec - compile ${<} -Iport -I${INSTALLROOT}/include + done + + make tmmake.o + make tm/tmmake.c + prev tmx.h done - make fmtint.o - make string/fmtint.c - prev include/ast.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Iinclude -Istd -c ${<} + exec - compile ${<} + done + + make tmpoff.o + make tm/tmpoff.c + prev include/tm.h + prev include/ast.h done - make fmtip4.o - make string/fmtip4.c - prev include/ast.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Iinclude -Istd -c ${<} + exec - compile ${<} + done + + make tmscan.o + make tm/tmscan.c + prev tmx.h done - make fmtip6.o - make string/fmtip6.c - prev include/ip6.h implicit - prev include/ast.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Iinclude -Istd -c ${<} + exec - compile ${<} + done + + make tmsleep.o + make tm/tmsleep.c + prev tv.h + prev include/tm.h + prev include/ast.h + done + exec - compile ${<} + done + + make tmtime.o + make tm/tmtime.c + prev tmx.h done - make fmtls.o - make string/fmtls.c - prev include/tm.h - prev include/ls.h - prev include/ast.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Iinclude -Istd -c ${<} + exec - compile ${<} + done + + make tmtype.o + make tm/tmtype.c + prev include/tm.h + prev include/ast.h done - make fmtmatch.o - make string/fmtmatch.c - prev include/ast.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Iinclude -Istd -c ${<} + exec - compile ${<} + done + + make tmweek.o + make tm/tmweek.c + prev tmx.h done - make fmtmode.o - make string/fmtmode.c - prev string/modelib.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Istring -Iinclude -Istd -c ${<} + exec - compile ${<} + done + + make tmword.o + make tm/tmword.c + prev include/tm.h + prev include/ast.h done - make fmtnum.o - make string/fmtnum.c - prev include/ast.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Iinclude -Istd -c ${<} + exec - compile ${<} + done + + make tmzone.o + make tm/tmzone.c + prev include/tm.h + prev include/ast.h done - make fmtperm.o - make string/fmtperm.c - prev include/ls.h - prev include/ast.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Iinclude -Istd -c ${<} + exec - compile ${<} + done + + make tmxdate.o + make tm/tmxdate.c + prev include/debug.h + prev tmx.h done - make fmtre.o - make string/fmtre.c - prev include/ast.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Iinclude -Istd -c ${<} + exec - compile ${<} + done + + make tmxduration.o + make tm/tmxduration.c + prev tmx.h done - make fmttime.o - make string/fmttime.c - prev include/tm.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Iinclude -Istd -c ${<} + exec - compile ${<} + done + + make tmxfmt.o + make tm/tmxfmt.c + prev tmx.h done - make fmtuid.o - make string/fmtuid.c - prev std/stdio.h - prev include/cdt.h - prev include/ast.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Iinclude -Istd -c ${<} + exec - compile ${<} + done + + make tmxgettime.o + make tm/tmxgettime.c + prev tv.h + prev tmx.h done - make fmtgid.o - make string/fmtgid.c - prev std/stdio.h - prev include/cdt.h - prev include/ast.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Iinclude -Istd -c ${<} + exec - compile ${<} + done + + make tmxleap.o + make tm/tmxleap.c + prev tmx.h done - make fmtsignal.o - make string/fmtsignal.c - prev sig.h - prev include/ast.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Iinclude -Istd -c ${<} - done - make fmtscale.o - make string/fmtscale.c - prev port/lclib.h - prev include/ast.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Iport -Iinclude -Istd -I${INSTALLROOT}/include -c ${<} - done - make fmttmx.o - make string/fmttmx.c - prev tv.h - make tmx.h implicit - make FEATURE/tmx - prev tv.h - prev include/tm.h - make features/tmx - prev FEATURE/common - done - exec - iffe ${IFFEFLAGS} -v -X ast -X std -c "${CC} ${mam_cc_FLAGS} ${CCFLAGS} ${LDFLAGS}" run ${<} - done - exec - cp -f ${<} ${@} - prev tv.h - prev include/tm.h - done - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Iinclude -Istd -c ${<} - done - make fmttv.o - make string/fmttv.c - prev include/tm.h - prev tv.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Iinclude -Istd -c ${<} + exec - compile ${<} + done + + make tmxmake.o + make tm/tmxmake.c + prev FEATURE/tmlib + prev tmx.h done - make fmtversion.o - make string/fmtversion.c - prev include/ast.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Iinclude -Istd -c ${<} + exec - compile ${<} + done + + make tmxscan.o + make tm/tmxscan.c + prev tmx.h done - make strelapsed.o - make string/strelapsed.c - prev include/ast.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Iinclude -Istd -c ${<} + exec - compile ${<} + done + + make tmxsettime.o + make tm/tmxsettime.c + prev tv.h + prev tmx.h done - make strperm.o - make string/strperm.c - prev include/modex.h - prev include/ls.h - prev include/ast.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Iinclude -Istd -c ${<} + exec - compile ${<} + done + + make tmxsleep.o + make tm/tmxsleep.c + prev tv.h + prev tmx.h done - make struid.o - make string/struid.c - prev include/cdt.h - prev include/ast.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Iinclude -Istd -c ${<} + exec - compile ${<} + done + + make tmxtime.o + make tm/tmxtime.c + prev FEATURE/tmlib + prev tmx.h done - make strgid.o - make string/strgid.c - prev include/cdt.h - prev include/ast.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Iinclude -Istd -c ${<} + exec - compile ${<} + done + + make tmxtouch.o + make tm/tmxtouch.c + prev tv.h + prev tmx.h done - make strtoip4.o - make string/strtoip4.c - prev include/ast.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Iinclude -Istd -c ${<} + exec - compile ${<} + done + + make tvcmp.o + make tm/tvcmp.c + prev tv.h done - make strtoip6.o - make string/strtoip6.c - prev include/ip6.h - prev include/ast.h + exec - compile ${<} + done + + make tvgettime.o + make tm/tvgettime.c + make FEATURE/tvlib implicit + prev features/tvlib + exec - invoke_iffe ${<} done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Iinclude -Istd -c ${<} + prev include/tm.h + prev tv.h done - make stk.o - make misc/stk.c - prev include/stk.h - make align.h implicit - make FEATURE/align - make features/align.c - prev FEATURE/common - done - exec - iffe ${IFFEFLAGS} -v -X ast -X std -c "${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. ${LDFLAGS}" run ${<} - done - exec - cp -f ${<} ${@} + exec - compile ${<} + done + + make tvsettime.o + make tm/tvsettime.c + prev FEATURE/tvlib + prev include/tm.h + prev tv.h + done + exec - compile ${<} + done + + make tvsleep.o + make tm/tvsleep.c + prev FEATURE/tvlib + prev include/error.h + prev include/tm.h + prev tv.h + prev include/ast.h + done + exec - compile ${<} + done + + make tvtouch.o + make tm/tvtouch.c + prev FEATURE/tvlib + prev include/error.h + prev include/times.h + prev tv.h + prev include/ls.h + prev include/ast.h + done + exec - compile ${<} + done + + make cmdarg.o + make misc/cmdarg.c + prev ast_api.h + prev include/proc.h + make misc/cmdlib.h implicit + make include/cmdarg.h implicit + prev include/error.h done - prev include/ast.h - prev include/sfio_t.h done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Iinclude -Istd -c ${<} + prev include/ast.h done - make swapget.o - make string/swapget.c - prev include/swap.h - prev include/ast.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Iinclude -Istd -c ${<} + exec - compile ${<} -Imisc + done + + make vecargs.o + make vec/vecargs.c + prev include/vecargs.h implicit + prev include/ast.h done - make swapmem.o - make string/swapmem.c - prev include/swap.h - prev include/ast.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Iinclude -Istd -c ${<} + exec - compile ${<} + done + + make vecfile.o + make vec/vecfile.c + prev include/vecargs.h + prev include/ls.h + prev include/ast.h + done + exec - compile ${<} + done + + make vecfree.o + make vec/vecfree.c + prev include/vecargs.h + prev include/ast.h done - make swapop.o - make string/swapop.c - prev include/swap.h - prev include/ast.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Iinclude -Istd -c ${<} + exec - compile ${<} + done + + make vecload.o + make vec/vecload.c + prev include/vecargs.h + prev include/ast.h done - make swapput.o - make string/swapput.c - prev include/swap.h - prev include/ast.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Iinclude -Istd -c ${<} - done - make sigdata.o - make misc/sigdata.c - make FEATURE/signal implicit - make features/signal.c - make FEATURE/siglist implicit - prev features/siglist - exec - iffe ${IFFEFLAGS} -v -X ast -X std -c "${CC} ${mam_cc_FLAGS} ${CCFLAGS} ${LDFLAGS}" run ${<} - done - prev FEATURE/standards - done - exec - iffe ${IFFEFLAGS} -v -X ast -X std -c "${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. ${LDFLAGS}" run ${<} - done - prev sig.h - prev include/ast.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Iinclude -Istd -c ${<} + exec - compile ${<} + done + + make vecstring.o + make vec/vecstring.c + prev include/vecargs.h + prev include/ast.h done - make sigcrit.o - make misc/sigcrit.c - prev sig.h - prev include/ast.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Iinclude -Istd -c ${<} + exec - compile ${<} + done + + make univdata.o + make misc/univdata.c + prev misc/univlib.h done - make sigunblock.o - make comp/sigunblock.c - prev sig.h - prev include/ast.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Iinclude -Istd -c ${<} + exec - compile ${<} -Imisc + done + + make touch.o + make port/touch.c + prev tv.h + prev include/times.h + prev include/ast.h + done + exec - compile ${<} + done + + make mnt.o + make port/mnt.c + prev std/stdio.h + prev include/ast_windows.h + prev include/ls.h + prev include/mnt.h + prev include/ast.h done - make procopen.o - make misc/procopen.c - prev include/namval.h - prev ast_tty.h - prev include/ls.h - make misc/proclib.h implicit - prev include/proc.h - make include/wait.h implicit - make ast_wait.h implicit dontcare - make FEATURE/wait - prev features/wait - exec - iffe ${IFFEFLAGS} -v -X ast -X std -c "${CC} ${mam_cc_FLAGS} ${CCFLAGS} ${LDFLAGS}" run ${<} - done - exec - cp -f ${<} ${@} - done - prev include/ast.h - done - prev sig.h - prev include/ast.h - done - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Imisc -Iinclude -Istd -c ${<} + exec - compile ${<} + done + + make debug.o + make misc/debug.c + prev include/times.h + prev FEATURE/time + prev include/debug.h + prev include/error.h + prev include/ast.h + done + exec - compile ${<} + done + + make memccpy.o + make comp/memccpy.c + prev include/ast.h done - make procclose.o - make misc/procclose.c - prev misc/proclib.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Imisc -Iinclude -Istd -c ${<} + exec - compile ${<} + done + + make memchr.o + make comp/memchr.c + prev include/ast.h done - make procrun.o - make misc/procrun.c - prev misc/proclib.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Imisc -Iinclude -Istd -D__OBSOLETE__=20120101 -c ${<} + exec - compile ${<} + done + + make memcmp.o + make comp/memcmp.c + prev include/ast.h done - make procfree.o - make misc/procfree.c - prev misc/proclib.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Imisc -Iinclude -Istd -c ${<} + exec - compile ${<} + done + + make memcpy.o + make comp/memcpy.c + prev include/ast.h done - make tmdate.o - make tm/tmdate.c - prev tmx.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Iinclude -Istd -c ${<} + exec - compile ${<} + done + + make memdup.o + make string/memdup.c + prev include/ast.h done - make tmequiv.o - make tm/tmequiv.c - prev include/tm.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Iinclude -Istd -c ${<} + exec - compile ${<} + done + + make memmove.o + make comp/memmove.c + prev include/ast.h done - make tmfix.o - make tm/tmfix.c - prev tmx.h - prev include/ast.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Iinclude -Istd -c ${<} + exec - compile ${<} + done + + make memset.o + make comp/memset.c + prev include/ast.h done - make tmfmt.o - make tm/tmfmt.c - prev tmx.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Iinclude -Istd -c ${<} + exec - compile ${<} + done + + make mkdir.o + make comp/mkdir.c + prev include/error.h + prev include/wait.h + prev include/ls.h + prev include/ast.h + done + exec - compile ${<} + done + + make mkfifo.o + make comp/mkfifo.c + prev include/error.h + prev include/ls.h + prev include/ast.h + done + exec - compile ${<} + done + + make mknod.o + make comp/mknod.c + prev include/error.h + prev include/ls.h + prev include/ast.h + done + exec - compile ${<} + done + + make rmdir.o + make comp/rmdir.c + prev include/error.h + prev include/ls.h + prev include/ast.h + done + exec - compile ${<} + done + + make remove.o + make comp/remove.c + prev ast_map.h + prev include/ast.h done - make tmform.o - make tm/tmform.c - prev include/tm.h - prev include/ast.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Iinclude -Istd -c ${<} + exec - compile ${<} + done + + make rename.o + make comp/rename.c + prev include/proc.h + prev include/error.h + prev include/ast.h + done + exec - compile ${<} + done + + make link.o + make comp/link.c + prev include/error.h + prev include/ast.h done - make tmgoff.o - make tm/tmgoff.c - prev include/tm.h - prev include/ast.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Iinclude -Istd -c ${<} + exec - compile ${<} + done + + make unlink.o + make comp/unlink.c + prev include/ast.h done - make tminit.o - make tm/tminit.c - make FEATURE/tmlib implicit - prev features/tmlib - exec - iffe ${IFFEFLAGS} -v -X ast -X std -c "${CC} ${mam_cc_FLAGS} ${CCFLAGS} ${LDFLAGS}" run ${<} - done - prev include/namval.h - prev include/tm.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Iinclude -Istd -c ${<} + exec - compile ${<} + done + + make strdup.o + make string/strdup.c + prev include/ast.h done - make tmleap.o - make tm/tmleap.c - prev tmx.h + exec - compile ${<} + done + + make strtod.o + make comp/strtod.c + make sfio/sfstrtof.h implicit + prev FEATURE/float + prev sfio/sfhdr.h done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Iinclude -Istd -c ${<} + prev include/ast.h done - make tmlex.o - make tm/tmlex.c - prev include/tm.h + exec - compile ${<} -Iport -Isfio -I${INSTALLROOT}/include + done + + make strtold.o + make comp/strtold.c + prev sfio/sfstrtof.h + prev include/ast.h + prev ast_sys.h + prev ast_lib.h + prev ast_common.h + done + exec - compile ${<} -Iport -Isfio -I${INSTALLROOT}/include + done + + make strtol.o + make comp/strtol.c + make string/strtoi.h implicit + prev sfio/sfhdr.h + prev include/error.h prev include/ast.h done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Iinclude -Istd -c ${<} done - make tmlocale.o - make tm/tmlocale.c - prev std/nl_types.h - prev include/ast_windows.h - prev port/lclib.h - prev ast_nl_types.h - prev include/tm.h - prev include/mc.h - prev std/iconv.h - prev include/cdt.h - prev include/ast.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Iport -Iinclude -Istd -I${INSTALLROOT}/include -c ${<} + exec - compile ${<} -Iport -Isfio -Istring -I${INSTALLROOT}/include + done + + make strtoll.o + make comp/strtoll.c + prev string/strtoi.h + prev ast_map.h + prev include/ast.h + done + exec - compile ${<} -Iport -Isfio -Istring -I${INSTALLROOT}/include + done + + make strtoul.o + make comp/strtoul.c + prev string/strtoi.h done - make tmmake.o - make tm/tmmake.c - prev tmx.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Iinclude -Istd -c ${<} + exec - compile ${<} -Iport -Isfio -Istring -I${INSTALLROOT}/include + done + + make strtoull.o + make comp/strtoull.c + prev string/strtoi.h + prev ast_map.h + prev include/ast.h + done + exec - compile ${<} -Iport -Isfio -Istring -I${INSTALLROOT}/include + done + + make strton.o + make string/strton.c + prev string/strtoi.h done - make tmpoff.o - make tm/tmpoff.c - prev include/tm.h - prev include/ast.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Iinclude -Istd -c ${<} + exec - compile ${<} -Iport -Isfio -Istring -I${INSTALLROOT}/include + done + + make strtonll.o + make string/strtonll.c + prev string/strtoi.h done - make tmscan.o - make tm/tmscan.c - prev tmx.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Iinclude -Istd -c ${<} + exec - compile ${<} -Iport -Isfio -Istring -I${INSTALLROOT}/include + done + + make strntod.o + make string/strntod.c + prev sfio/sfstrtof.h + prev include/ast.h done - make tmsleep.o - make tm/tmsleep.c - prev tv.h - prev include/tm.h - prev include/ast.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Iinclude -Istd -c ${<} + exec - compile ${<} -Iport -Isfio -I${INSTALLROOT}/include + done + + make strntold.o + make string/strntold.c + prev sfio/sfstrtof.h + prev include/ast.h done - make tmtime.o - make tm/tmtime.c - prev tmx.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Iinclude -Istd -c ${<} + exec - compile ${<} -Iport -Isfio -I${INSTALLROOT}/include + done + + make strnton.o + make string/strnton.c + prev string/strtoi.h done - make tmtype.o - make tm/tmtype.c - prev include/tm.h - prev include/ast.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Iinclude -Istd -c ${<} + exec - compile ${<} -Iport -Isfio -Istring -I${INSTALLROOT}/include + done + + make strntonll.o + make string/strntonll.c + prev string/strtoi.h done - make tmweek.o - make tm/tmweek.c - prev tmx.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Iinclude -Istd -c ${<} + exec - compile ${<} -Iport -Isfio -Istring -I${INSTALLROOT}/include + done + + make strntol.o + make string/strntol.c + prev string/strtoi.h done - make tmword.o - make tm/tmword.c - prev include/tm.h - prev include/ast.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Iinclude -Istd -c ${<} + exec - compile ${<} -Iport -Isfio -Istring -I${INSTALLROOT}/include + done + + make strntoll.o + make string/strntoll.c + prev string/strtoi.h done - make tmzone.o - make tm/tmzone.c - prev include/tm.h - prev include/ast.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Iinclude -Istd -c ${<} + exec - compile ${<} -Iport -Isfio -Istring -I${INSTALLROOT}/include + done + + make strntoul.o + make string/strntoul.c + prev string/strtoi.h done - make tmxdate.o - make tm/tmxdate.c - prev include/debug.h - prev tmx.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Iinclude -Istd -c ${<} + exec - compile ${<} -Iport -Isfio -Istring -I${INSTALLROOT}/include + done + + make strntoull.o + make string/strntoull.c + prev string/strtoi.h done - make tmxduration.o - make tm/tmxduration.c - prev tmx.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Iinclude -Istd -c ${<} + exec - compile ${<} -Iport -Isfio -Istring -I${INSTALLROOT}/include + done + + make strcasecmp.o + make comp/strcasecmp.c + prev include/ast.h done - make tmxfmt.o - make tm/tmxfmt.c - prev tmx.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} ${-debug-symbols?1?${mam_cc_DEBUG} -D_BLD_DEBUG?${CCFLAGS.FORCE}?} -I. -Icomp -Iinclude -Istd -c ${<} + exec - compile ${<} + done + + make strncasecmp.o + make comp/strncasecmp.c + prev include/ast.h done - make tmxgettime.o - make tm/tmxgettime.c - prev tv.h - prev tmx.h + exec - compile ${<} + done + + make strerror.o + make string/strerror.c + make FEATURE/errno implicit + prev features/errno + exec - invoke_iffe ${<} done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Iinclude -Istd -c ${<} + prev port/lclib.h done - make tmxleap.o - make tm/tmxleap.c - prev tmx.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Iinclude -Istd -c ${<} + exec - compile ${<} -Iport -I${INSTALLROOT}/include + done + + make mktemp.o + make comp/mktemp.c + prev ast_map.h + prev std/stdio.h + prev include/ast.h done - make tmxmake.o - make tm/tmxmake.c - prev FEATURE/tmlib - prev tmx.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Iinclude -Istd -c ${<} + exec - compile ${<} + done + + make tmpnam.o + make comp/tmpnam.c + prev ast_map.h + prev std/stdio.h + prev include/ast.h done - make tmxscan.o - make tm/tmxscan.c - prev tmx.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Iinclude -Istd -c ${<} + exec - compile ${<} + done + + make fsync.o + make comp/fsync.c + prev include/error.h + prev include/ast.h done - make tmxsettime.o - make tm/tmxsettime.c - prev tv.h - prev tmx.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Iinclude -Istd -c ${<} + exec - compile ${<} + done + + make execlp.o + make comp/execlp.c + prev include/ast.h + prev ast_lib.h done - make tmxsleep.o - make tm/tmxsleep.c - prev tv.h - prev tmx.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Iinclude -Istd -c ${<} + exec - compile ${<} + done + + make execve.o + make comp/execve.c + prev include/error.h + prev include/wait.h + prev sig.h + prev include/ast.h + done + exec - compile ${<} + done + + make execvp.o + make comp/execvp.c + prev include/ast.h + prev ast_lib.h done - make tmxtime.o - make tm/tmxtime.c - prev FEATURE/tmlib - prev tmx.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Iinclude -Istd -c ${<} + exec - compile ${<} + done + + make execvpe.o + make comp/execvpe.c + prev include/ast.h + prev ast_lib.h done - make tmxtouch.o - make tm/tmxtouch.c - prev tv.h - prev tmx.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Iinclude -Istd -c ${<} + exec - compile ${<} + done + + make spawnveg.o + make comp/spawnveg.c + prev ast_tty.h + prev sig.h + prev include/wait.h + prev include/error.h + prev include/ast.h + done + exec - compile ${<} + done + + make killpg.o + make comp/killpg.c + prev sig.h + prev include/ast.h done - make tvcmp.o - make tm/tvcmp.c - prev tv.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Iinclude -Istd -c ${<} + exec - compile ${<} + done + + make getlogin.o + make comp/getlogin.c + prev include/ast.h done - make tvgettime.o - make tm/tvgettime.c - make FEATURE/tvlib implicit - prev features/tvlib - exec - iffe ${IFFEFLAGS} -v -X ast -X std -c "${CC} ${mam_cc_FLAGS} ${CCFLAGS} ${LDFLAGS}" run ${<} - done - prev include/tm.h - prev tv.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Iinclude -Istd -c ${<} + exec - compile ${<} + done + + make putenv.o + make comp/putenv.c + prev ast_map.h + prev include/ast.h done - make tvsettime.o - make tm/tvsettime.c - prev FEATURE/tvlib - prev include/tm.h - prev tv.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Iinclude -Istd -c ${<} + exec - compile ${<} + done + + make setenv.o + make comp/setenv.c + prev ast_map.h + prev include/ast.h done - make tvsleep.o - make tm/tvsleep.c - prev FEATURE/tvlib - prev include/error.h - prev include/tm.h - prev tv.h - prev include/ast.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Iinclude -Istd -c ${<} + exec - compile ${<} + done + + make unsetenv.o + make comp/unsetenv.c + prev ast_map.h + prev include/ast.h done - make tvtouch.o - make tm/tvtouch.c - prev FEATURE/tvlib - prev include/error.h - prev include/times.h - prev tv.h - prev include/ls.h - prev include/ast.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Iinclude -Istd -c ${<} + exec - compile ${<} + done + + make lstat.o + make comp/lstat.c + prev include/ls.h + prev include/ast.h done - make cmdarg.o - make misc/cmdarg.c - prev ast_api.h - prev include/proc.h - make misc/cmdlib.h implicit - make include/cmdarg.h implicit - prev include/error.h - done - done - prev include/ast.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Imisc -Iinclude -Istd -c ${<} + exec - compile ${<} + done + + make statvfs.o + make comp/statvfs.c + prev include/error.h + prev include/ls.h + prev include/ast.h + done + exec - compile ${<} + done + + make eaccess.o + make comp/eaccess.c + prev FEATURE/eaccess + prev include/ls.h + prev include/ast.h + done + exec - compile ${<} + done + + make gross.o + make comp/gross.c + prev comp/gross_sgi.h implicit + prev FEATURE/hack + prev include/ls.h + prev include/ast.h + done + exec - compile ${<} + done + + make omitted.o + make comp/omitted.c + prev include/ast_windows.h + prev include/ls.h + make FEATURE/omitted implicit + prev features/omitted + exec - invoke_iffe ${<} + done + prev include/tm.h + prev include/error.h + prev ast_stdio.h + prev include/ast.h + prev FEATURE/float + done + exec - compile ${<} + done + + make readlink.o + make comp/readlink.c + prev include/error.h + prev comp/fakelink.h implicit + prev include/ast.h + done + exec - compile ${<} + done + + make symlink.o + make comp/symlink.c + prev include/error.h + prev comp/fakelink.h + prev include/ast.h + done + exec - compile ${<} + done + + make getpgrp.o + make comp/getpgrp.c + prev include/ast_std.h done - make vecargs.o - make vec/vecargs.c - prev include/vecargs.h implicit - prev include/ast.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Iinclude -Istd -c ${<} + exec - compile ${<} + done + + make setpgid.o + make comp/setpgid.c + prev include/error.h + prev include/ast.h done - make vecfile.o - make vec/vecfile.c - prev include/vecargs.h - prev include/ls.h - prev include/ast.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Iinclude -Istd -c ${<} + exec - compile ${<} + done + + make setsid.o + make comp/setsid.c + prev include/error.h + prev ast_tty.h + prev include/ast.h + done + exec - compile ${<} + done + + make fcntl.o + make comp/fcntl.c + prev include/error.h + prev ast_tty.h + prev include/ls.h + prev include/ast.h + done + exec - compile ${<} + done + + make open.o + make comp/open.c + prev ast_tty.h + prev include/error.h + prev include/ls.h + prev include/ast.h + done + exec - compile ${<} + done + + make arc4random.o + make comp/arc4random.c + prev comp/chacha_private.h + prev FEATURE/mmap + prev include/error.h + prev FEATURE/random + prev include/ast.h + done + exec - compile ${<} + done + + make getdents.o + make dir/getdents.c + prev dir/dirlib.h done - make vecfree.o - make vec/vecfree.c - prev include/vecargs.h - prev include/ast.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Iinclude -Istd -c ${<} + exec - compile ${<} -Idir + done + + make getwd.o + make comp/getwd.c + prev include/ast.h done - make vecload.o - make vec/vecload.c - prev include/vecargs.h - prev include/ast.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Iinclude -Istd -c ${<} + exec - compile ${<} + done + + make dup2.o + make comp/dup2.c + prev include/error.h + prev include/ast.h done - make vecstring.o - make vec/vecstring.c - prev include/vecargs.h - prev include/ast.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Iinclude -Istd -c ${<} + exec - compile ${<} + done + + make errno.o + make comp/errno.c + prev include/ast.h done - make univdata.o - make misc/univdata.c - prev misc/univlib.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Imisc -Iinclude -Istd -c ${<} + exec - compile ${<} + done + + make getgroups.o + make comp/getgroups.c + prev include/error.h + prev include/ast.h done - make touch.o - make port/touch.c - prev tv.h - prev include/times.h - prev include/ast.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Iinclude -Istd -c ${<} - done - make mnt.o - make port/mnt.c - prev mnttab.h implicit dontcare virtual - prev std/stdio.h - prev include/ast_windows.h - prev include/ls.h - prev include/mnt.h - prev include/ast.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Iinclude -Istd -c ${<} - done - make debug.o - make misc/debug.c - prev include/times.h - prev FEATURE/time - prev include/debug.h - prev include/error.h - prev include/ast.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Iinclude -Istd -c ${<} + exec - compile ${<} + done + + make mount.o + make comp/mount.c + prev include/error.h + prev include/ast.h done - make memccpy.o - make comp/memccpy.c - prev include/ast.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Iinclude -Istd -c ${<} + exec - compile ${<} + done + + make system.o + make comp/system.c + prev ast_map.h + prev include/proc.h + prev include/ast.h + done + exec - compile ${<} + done + + make iblocks.o + make port/iblocks.c + prev include/ls.h + prev ast_param.h + prev include/ast.h + done + exec - compile ${<} + done + + make modedata.o + make string/modedata.c + prev string/modelib.h done - make memchr.o - make comp/memchr.c - prev include/ast.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Iinclude -Istd -c ${<} + exec - compile ${<} -Istring + done + + make tmdata.o + make tm/tmdata.c + prev include/tm.h + prev include/ast.h done - make memcmp.o - make comp/memcmp.c + exec - compile ${<} + done + + make memfatal.o + make disc/memfatal.c + prev FEATURE/vmalloc + prev include/vmalloc.h + prev include/error.h + prev include/ast.h + done + exec - compile ${<} + done + + make sfkeyprintf.o + make disc/sfkeyprintf.c + prev ast_api.h + prev include/regex.h + make include/sfdisc.h implicit prev include/ast.h done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Iinclude -Istd -c ${<} + prev include/ccode.h + prev include/ast.h done - make memcpy.o - make comp/memcpy.c - prev include/ast.h + exec - compile ${<} + done + + make sfdcdio.o + make disc/sfdcdio.c + make disc/sfdchdr.h implicit + prev include/sfdisc.h + prev sfio/sfhdr.h done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Iinclude -Istd -c ${<} done - make memdup.o - make string/memdup.c - prev include/ast.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Iinclude -Istd -c ${<} + exec - compile ${<} -Idisc -Iport -Isfio -I${INSTALLROOT}/include + done + + make sfdcdos.o + make disc/sfdcdos.c + prev disc/sfdchdr.h done - make memmove.o - make comp/memmove.c - prev include/ast.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Iinclude -Istd -c ${<} + exec - compile ${<} -Idisc -Iport -Isfio -I${INSTALLROOT}/include + done + + make sfdcfilter.o + make disc/sfdcfilter.c + prev disc/sfdchdr.h done - make memset.o - make comp/memset.c - prev include/ast.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Iinclude -Istd -c ${<} + exec - compile ${<} -Idisc -Iport -Isfio -I${INSTALLROOT}/include + done + + make sfdcseekable.o + make disc/sfdcseekable.c + prev disc/sfdchdr.h done - make mkdir.o - make comp/mkdir.c - prev include/error.h - prev include/wait.h - prev include/ls.h - prev include/ast.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Iinclude -Istd -c ${<} + exec - compile ${<} -Idisc -Iport -Isfio -I${INSTALLROOT}/include + done + + make sfdcslow.o + make disc/sfdcslow.c + prev disc/sfdchdr.h done - make mkfifo.o - make comp/mkfifo.c - prev include/error.h - prev include/ls.h - prev include/ast.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Iinclude -Istd -c ${<} + exec - compile ${<} -Idisc -Iport -Isfio -I${INSTALLROOT}/include + done + + make sfdcsubstr.o + make disc/sfdcsubstr.c + prev disc/sfdchdr.h done - make mknod.o - make comp/mknod.c - prev include/error.h - prev include/ls.h - prev include/ast.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Iinclude -Istd -c ${<} + exec - compile ${<} -Idisc -Iport -Isfio -I${INSTALLROOT}/include + done + + make sfdctee.o + make disc/sfdctee.c + prev disc/sfdchdr.h done - make rmdir.o - make comp/rmdir.c - prev include/error.h - prev include/ls.h - prev include/ast.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Iinclude -Istd -c ${<} + exec - compile ${<} -Idisc -Iport -Isfio -I${INSTALLROOT}/include + done + + make sfdcunion.o + make disc/sfdcunion.c + prev disc/sfdchdr.h done - make remove.o - make comp/remove.c - prev ast_map.h - prev include/ast.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Iinclude -Istd -c ${<} + exec - compile ${<} -Idisc -Iport -Isfio -I${INSTALLROOT}/include + done + + make sfdcmore.o + make disc/sfdcmore.c + prev ast_tty.h + prev disc/sfdchdr.h done - make rename.o - make comp/rename.c - prev include/proc.h - prev include/error.h - prev include/ast.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Iinclude -Istd -c ${<} + exec - compile ${<} -Idisc -Iport -Isfio -I${INSTALLROOT}/include + done + + make sfdcprefix.o + make disc/sfdcprefix.c + prev disc/sfdchdr.h done - make link.o - make comp/link.c - prev include/error.h - prev include/ast.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Iinclude -Istd -c ${<} + exec - compile ${<} -Idisc -Iport -Isfio -I${INSTALLROOT}/include + done + + make wc.o + make comp/wc.c + prev std/wchar.h + prev include/ast.h done - make unlink.o - make comp/unlink.c - prev include/ast.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Iinclude -Istd -c ${<} + exec - compile ${<} + done + + make wc2utf8.o + make string/wc2utf8.c + prev include/ast.h done - make strdup.o - make string/strdup.c - prev include/ast.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Iinclude -Istd -c ${<} + exec - compile ${<} + done + + make dirname.o + make comp/dirname.c + prev include/ast_std.h done - make strtod.o - make comp/strtod.c - make sfio/sfstrtof.h implicit - prev FEATURE/float - prev sfio/sfhdr.h - done - prev include/ast.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Iport -Isfio -Iinclude -Istd -I${INSTALLROOT}/include -c ${<} + exec - compile ${<} + done + + make fmtmsglib.o + make comp/fmtmsglib.c + prev comp/fmtmsg.h implicit + prev include/ast.h done - make strtold.o - make comp/strtold.c - prev sfio/sfstrtof.h - prev include/ast.h - prev ast_sys.h - prev ast_lib.h + exec - compile ${<} + done + + make fnmatch.o + make comp/fnmatch.c + make comp/fnmatch.h implicit prev ast_common.h done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Iport -Isfio -Iinclude -Istd -I${INSTALLROOT}/include -c ${<} + prev include/regex.h + prev include/ast.h + prev ast_lib.h done - make strtol.o - make comp/strtol.c - make string/strtoi.h implicit dontcare - prev sfio/sfhdr.h - prev include/error.h - prev include/ast.h - done + exec - compile ${<} + done + + make ftw.o + make comp/ftw.c + make comp/ftw.h implicit + prev include/ftwalk.h done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Iport -Isfio -Istring -Iinclude -Istd -I${INSTALLROOT}/include -c ${<} + prev include/ast.h done - make strtoll.o - make comp/strtoll.c - prev string/strtoi.h - prev ast_map.h - prev include/ast.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Iport -Isfio -Istring -Iinclude -Istd -I${INSTALLROOT}/include -c ${<} + exec - compile ${<} + done + + make getdate.o + make comp/getdate.c + prev ast_map.h + prev include/tm.h + prev include/ast.h + done + exec - compile ${<} + done + + make getsubopt.o + make comp/getsubopt.c + prev include/error.h + prev include/ast.h done - make strtoul.o - make comp/strtoul.c - prev string/strtoi.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Iport -Isfio -Istring -Iinclude -Istd -I${INSTALLROOT}/include -c ${<} + exec - compile ${<} + done + + make glob.o + make misc/glob.c + prev include/glob.h implicit + prev include/regex.h + prev include/error.h + prev include/ast_dir.h + prev include/stk.h + prev include/ls.h + prev include/ast.h + done + exec - compile ${<} -Idir + done + + make nftw.o + make comp/nftw.c + prev comp/ftw.h + prev include/ast.h done - make strtoull.o - make comp/strtoull.c - prev string/strtoi.h - prev ast_map.h - prev include/ast.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Iport -Isfio -Istring -Iinclude -Istd -I${INSTALLROOT}/include -c ${<} + exec - compile ${<} + done + + make re_comp.o + make comp/re_comp.c + prev include/regex.h + prev comp/re_comp.h implicit + prev include/ast.h + done + exec - compile ${<} + done + + make resolvepath.o + make comp/resolvepath.c + prev ast_api.h + prev ast_map.h + prev include/error.h + prev include/ast.h + done + exec - compile ${<} + done + + make realpath.o + make comp/realpath.c + prev ast_map.h + prev include/ast.h done - make strton.o - make string/strton.c - prev string/strtoi.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Iport -Isfio -Istring -Iinclude -Istd -I${INSTALLROOT}/include -c ${<} + exec - compile ${<} + done + + make regcmp.o + make comp/regcmp.c + prev align.h + prev include/regex.h + prev comp/libgen.h implicit + prev include/ast.h + done + exec - compile ${<} + done + + make regexp.o + make comp/regexp.c + prev align.h + prev include/regex.h + prev comp/regexp.h implicit + prev include/ast.h + done + exec - compile ${<} + done + + make strftime.o + make comp/strftime.c + prev ast_map.h + prev include/tm.h + prev include/ast.h + done + exec - compile ${<} + done + + make strptime.o + make comp/strptime.c + prev ast_map.h + prev tmx.h + prev include/ast.h + done + exec - compile ${<} + done + + make swab.o + make comp/swab.c + prev include/swap.h + prev include/ast.h done - make strtonll.o - make string/strtonll.c - prev string/strtoi.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Iport -Isfio -Istring -Iinclude -Istd -I${INSTALLROOT}/include -c ${<} + exec - compile ${<} + done + + make tempnam.o + make comp/tempnam.c + prev std/stdio.h + prev include/ast.h + prev include/ast_std.h done - make strntod.o - make string/strntod.c - prev sfio/sfstrtof.h - prev include/ast.h + exec - compile ${<} + done + + make wordexp.o + make comp/wordexp.c + prev include/stk.h + make comp/wordexp.h implicit + prev ast_common.h done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Iport -Isfio -Iinclude -Istd -I${INSTALLROOT}/include -c ${<} + prev include/ast.h done - make strntold.o - make string/strntold.c - prev sfio/sfstrtof.h + exec - compile ${<} + done + + make mktime.o + make comp/mktime.c + prev ast_map.h + prev include/tm.h + prev include/ast.h + done + exec - compile ${<} + done + + make regalloc.o + make regex/regalloc.c + make regex/reglib.h implicit + prev std/wctype.h + prev std/wchar.h + prev std/stdio.h + prev include/regex.h + prev include/stk.h + prev include/cdt.h prev include/ast.h done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Iport -Isfio -Iinclude -Istd -I${INSTALLROOT}/include -c ${<} done - make strnton.o - make string/strnton.c - prev string/strtoi.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Iport -Isfio -Istring -Iinclude -Istd -I${INSTALLROOT}/include -c ${<} + exec - compile ${<} -Iregex + done + + make regclass.o + make regex/regclass.c + prev regex/reglib.h done - make strntonll.o - make string/strntonll.c - prev string/strtoi.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Iport -Isfio -Istring -Iinclude -Istd -I${INSTALLROOT}/include -c ${<} + exec - compile ${<} -Iregex + done + + make regcoll.o + make regex/regcoll.c + prev regex/reglib.h done - make strntol.o - make string/strntol.c - prev string/strtoi.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Iport -Isfio -Istring -Iinclude -Istd -I${INSTALLROOT}/include -c ${<} + exec - compile ${<} -Iregex + done + + make regcomp.o + make regex/regcomp.c + prev port/lclib.h + prev regex/reglib.h done - make strntoll.o - make string/strntoll.c - prev string/strtoi.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Iport -Isfio -Istring -Iinclude -Istd -I${INSTALLROOT}/include -c ${<} + exec - compile ${<} -Iport -Iregex -I${INSTALLROOT}/include + done + + make regcache.o + make regex/regcache.c + prev include/regex.h + prev include/ast.h done - make strntoul.o - make string/strntoul.c - prev string/strtoi.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Iport -Isfio -Istring -Iinclude -Istd -I${INSTALLROOT}/include -c ${<} + exec - compile ${<} + done + + make regdecomp.o + make regex/regdecomp.c + prev regex/reglib.h done - make strntoull.o - make string/strntoull.c - prev string/strtoi.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Iport -Isfio -Istring -Iinclude -Istd -I${INSTALLROOT}/include -c ${<} + exec - compile ${<} -Iregex + done + + make regerror.o + make regex/regerror.c + prev regex/reglib.h done - make strcasecmp.o - make comp/strcasecmp.c - prev include/ast.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Iinclude -Istd -c ${<} + exec - compile ${<} -Iregex + done + + make regexec.o + make regex/regexec.c + prev regex/reglib.h done - make strncasecmp.o - make comp/strncasecmp.c - prev include/ast.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Iinclude -Istd -c ${<} + exec - compile ${<} -Iregex + done + + make regfatal.o + make regex/regfatal.c + prev include/error.h + prev regex/reglib.h done - make strerror.o - make string/strerror.c - make FEATURE/errno implicit - prev features/errno - exec - iffe ${IFFEFLAGS} -v -X ast -X std -c "${CC} ${mam_cc_FLAGS} ${CCFLAGS} ${LDFLAGS}" run ${<} - done - prev port/lclib.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Iport -Iinclude -Istd -I${INSTALLROOT}/include -c ${<} + exec - compile ${<} -Iregex + done + + make reginit.o + make regex/reginit.c + prev include/ccode.h + prev regex/reglib.h done - make mktemp.o - make comp/mktemp.c - prev ast_map.h - prev std/stdio.h - prev include/ast.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Iinclude -Istd -c ${<} + exec - compile ${<} -Iregex + done + + make regnexec.o + make regex/regnexec.c + prev regex/reglib.h done - make tmpnam.o - make comp/tmpnam.c - prev ast_map.h - prev std/stdio.h - prev include/ast.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Iinclude -Istd -c ${<} + exec - compile ${<} -Iregex + done + + make regsubcomp.o + make regex/regsubcomp.c + prev regex/reglib.h done - make fsync.o - make comp/fsync.c - prev include/error.h - prev include/ast.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Iinclude -Istd -c ${<} + exec - compile ${<} -Iregex + done + + make regsubexec.o + make regex/regsubexec.c + prev regex/reglib.h done - make execlp.o - make comp/execlp.c - prev include/ast.h - prev ast_lib.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Iinclude -Istd -c ${<} + exec - compile ${<} -Iregex + done + + make regsub.o + make regex/regsub.c + prev regex/reglib.h done - make execve.o - make comp/execve.c - prev include/error.h - prev include/wait.h - prev sig.h - prev include/ast.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Iinclude -Istd -c ${<} + exec - compile ${<} -Iregex + done + + make regrecord.o + make regex/regrecord.c + prev regex/reglib.h done - make execvp.o - make comp/execvp.c - prev include/ast.h - prev ast_lib.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Iinclude -Istd -c ${<} + exec - compile ${<} -Iregex + done + + make regrexec.o + make regex/regrexec.c + prev regex/reglib.h done - make execvpe.o - make comp/execvpe.c - prev include/ast.h - prev ast_lib.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Iinclude -Istd -c ${<} + exec - compile ${<} -Iregex + done + + make regstat.o + make regex/regstat.c + prev regex/reglib.h done - make spawnveg.o - make comp/spawnveg.c - prev ast_tty.h - prev sig.h - prev process.h implicit dontcare virtual - prev include/wait.h - prev include/error.h - prev include/ast.h + exec - compile ${<} -Iregex + done + + make dtclose.o + make cdt/dtclose.c + make cdt/dthdr.h implicit + make cdt/cdtlib.h implicit + prev include/debug.h + make include/aso.h implicit + prev ast_common.h + done + prev include/cdt.h + prev include/ast.h + done done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} ${-debug-symbols?1?${mam_cc_DEBUG} -D_BLD_DEBUG?${CCFLAGS.FORCE}?} -I. -Icomp -Iinclude -Istd -c ${<} done - make killpg.o - make comp/killpg.c - prev sig.h - prev include/ast.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Iinclude -Istd -c ${<} + exec - compile ${<} -Icdt -I${INSTALLROOT}/include/ast + done + + make dtdisc.o + make cdt/dtdisc.c + prev cdt/dthdr.h done - make getlogin.o - make comp/getlogin.c - prev include/ast.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Iinclude -Istd -c ${<} + exec - compile ${<} -Icdt -I${INSTALLROOT}/include/ast + done + + make dthash.o + make cdt/dthash.c + prev cdt/dthdr.h done - make putenv.o - make comp/putenv.c - prev ast_map.h - prev include/ast.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Iinclude -Istd -c ${<} + exec - compile ${<} -Icdt -I${INSTALLROOT}/include/ast + done + + make dtlist.o + make cdt/dtlist.c + prev cdt/dthdr.h done - make setenv.o - make comp/setenv.c - prev ast_map.h - prev include/ast.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Iinclude -Istd -c ${<} + exec - compile ${<} -Icdt -I${INSTALLROOT}/include/ast + done + + make dtmethod.o + make cdt/dtmethod.c + prev cdt/dthdr.h done - make unsetenv.o - make comp/unsetenv.c - prev ast_map.h - prev include/ast.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Iinclude -Istd -c ${<} + exec - compile ${<} -Icdt -I${INSTALLROOT}/include/ast + done + + make dtopen.o + make cdt/dtopen.c + prev cdt/dthdr.h done - make lstat.o - make comp/lstat.c - prev include/ls.h - prev include/ast.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Iinclude -Istd -c ${<} + exec - compile ${<} -Icdt -I${INSTALLROOT}/include/ast + done + + make dtstat.o + make cdt/dtstat.c + prev cdt/dthdr.h done - make statvfs.o - make comp/statvfs.c - prev include/error.h - prev include/ls.h - prev include/ast.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Iinclude -Istd -c ${<} + exec - compile ${<} -Icdt -I${INSTALLROOT}/include/ast + done + + make dtstrhash.o + make cdt/dtstrhash.c + prev cdt/dthdr.h done - make eaccess.o - make comp/eaccess.c - prev FEATURE/eaccess - prev include/ls.h - prev include/ast.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Iinclude -Istd -c ${<} + exec - compile ${<} -Icdt -I${INSTALLROOT}/include/ast + done + + make dttree.o + make cdt/dttree.c + prev cdt/dthdr.h done - make gross.o - make comp/gross.c - make comp/gross_sgi.h implicit dontcare - prev locale_attr.h implicit dontcare virtual - done - prev FEATURE/hack - prev include/ls.h - prev include/ast.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Iinclude -Istd -c ${<} + exec - compile ${<} -Icdt -I${INSTALLROOT}/include/ast + done + + make dtuser.o + make cdt/dtuser.c + prev cdt/dthdr.h done - make omitted.o - make comp/omitted.c - prev process.h - prev include/ast_windows.h - prev include/ls.h - make FEATURE/omitted implicit - prev features/omitted - exec - iffe ${IFFEFLAGS} -v -X ast -X std -c "${CC} ${mam_cc_FLAGS} ${CCFLAGS} ${LDFLAGS}" run ${<} - done - prev include/tm.h - prev include/error.h - prev ast_stdio.h - prev include/ast.h - prev FEATURE/float - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Iinclude -Istd -c ${<} + exec - compile ${<} -Icdt -I${INSTALLROOT}/include/ast + done + + make dtview.o + make cdt/dtview.c + prev cdt/dthdr.h done - make readlink.o - make comp/readlink.c - prev include/error.h - prev comp/fakelink.h implicit dontcare - prev include/ast.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Iinclude -Istd -c ${<} + exec - compile ${<} -Icdt -I${INSTALLROOT}/include/ast + done + + make dtwalk.o + make cdt/dtwalk.c + prev cdt/dthdr.h done - make symlink.o - make comp/symlink.c - prev include/error.h - prev comp/fakelink.h - prev include/ast.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Iinclude -Istd -c ${<} + exec - compile ${<} -Icdt -I${INSTALLROOT}/include/ast + done + + make dtnew.o + make cdt/dtnew.c + prev include/dt.h done - make getpgrp.o - make comp/getpgrp.c - prev include/ast_std.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Iinclude -Istd -c ${<} + exec - compile ${<} + done + + make dtcomp.o + make cdt/dtcomp.c + prev include/cdt.h done - make setpgid.o - make comp/setpgid.c - prev include/error.h - prev include/ast.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Iinclude -Istd -c ${<} + exec - compile ${<} + done + + make sfclose.o + make sfio/sfclose.c + prev sfio/sfhdr.h done - make setsid.o - make comp/setsid.c - prev include/error.h - prev ast_tty.h - prev include/ast.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Iinclude -Istd -c ${<} + exec - compile ${<} -Iport -Isfio -I${INSTALLROOT}/include + done + + make sfclrlock.o + make sfio/sfclrlock.c + prev sfio/sfhdr.h done - make fcntl.o - make comp/fcntl.c - prev include/error.h - prev ast_tty.h - prev include/ls.h - prev include/ast.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Iinclude -Istd -c ${<} + exec - compile ${<} -Iport -Isfio -I${INSTALLROOT}/include + done + + make sfdisc.o + make sfio/sfdisc.c + prev sfio/sfhdr.h done - make open.o - make comp/open.c - prev ast_tty.h - prev include/error.h - prev include/ls.h - prev include/ast.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Iinclude -Istd -c ${<} + exec - compile ${<} -Iport -Isfio -I${INSTALLROOT}/include + done + + make sfdlen.o + make sfio/sfdlen.c + prev sfio/sfhdr.h done - make arc4random.o - make comp/arc4random.c - prev comp/chacha_private.h - prev FEATURE/mmap - prev include/error.h - make FEATURE/random implicit - prev features/random - exec - iffe ${IFFEFLAGS} -v -X ast -X std -c "${CC} ${mam_cc_FLAGS} ${CCFLAGS} ${LDFLAGS}" run ${<} - done - prev include/ast.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Iinclude -Istd -c ${<} + exec - compile ${<} -Iport -Isfio -I${INSTALLROOT}/include + done + + make sfexcept.o + make sfio/sfexcept.c + prev sfio/sfhdr.h done - make getdents.o - make dir/getdents.c - prev dir/dirlib.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Idir -Iinclude -Istd -c ${<} + exec - compile ${<} -Iport -Isfio -I${INSTALLROOT}/include + done + + make sfgetl.o + make sfio/sfgetl.c + prev sfio/sfhdr.h done - make getwd.o - make comp/getwd.c - prev include/ast.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Iinclude -Istd -c ${<} + exec - compile ${<} -Iport -Isfio -I${INSTALLROOT}/include + done + + make sfgetu.o + make sfio/sfgetu.c + prev sfio/sfhdr.h done - make dup2.o - make comp/dup2.c - prev include/error.h - prev include/ast.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Iinclude -Istd -c ${<} + exec - compile ${<} -Iport -Isfio -I${INSTALLROOT}/include + done + + make sfcvt.o + make sfio/sfcvt.c + prev sfio/sfhdr.h + prev FEATURE/standards done - make errno.o - make comp/errno.c - prev include/ast.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Iinclude -Istd -c ${<} + exec - compile ${<} -Iport -Isfio -I${INSTALLROOT}/include + done + + make sfecvt.o + make sfio/sfecvt.c + prev sfio/sfhdr.h done - make getgroups.o - make comp/getgroups.c - prev include/error.h - prev include/ast.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Iinclude -Istd -c ${<} + exec - compile ${<} -Iport -Isfio -I${INSTALLROOT}/include + done + + make sffcvt.o + make sfio/sffcvt.c + prev sfio/sfhdr.h done - make mount.o - make comp/mount.c - prev include/error.h - prev include/ast.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Iinclude -Istd -c ${<} + exec - compile ${<} -Iport -Isfio -I${INSTALLROOT}/include + done + + make sfextern.o + make sfio/sfextern.c + prev sfio/sfhdr.h done - make system.o - make comp/system.c - prev ast_map.h - prev include/proc.h - prev include/ast.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Iinclude -Istd -c ${<} + exec - compile ${<} -Iport -Isfio -I${INSTALLROOT}/include + done + + make sffilbuf.o + make sfio/sffilbuf.c + prev sfio/sfhdr.h done - make iblocks.o - make port/iblocks.c - prev include/ls.h - prev ast_param.h - prev include/ast.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Iinclude -Istd -c ${<} + exec - compile ${<} -Iport -Isfio -I${INSTALLROOT}/include + done + + make sfflsbuf.o + make sfio/sfflsbuf.c + prev sfio/sfhdr.h done - make modedata.o - make string/modedata.c - prev string/modelib.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Istring -Iinclude -Istd -c ${<} + exec - compile ${<} -Iport -Isfio -I${INSTALLROOT}/include + done + + make sfprints.o + make sfio/sfprints.c + prev sfio/sfhdr.h done - make tmdata.o - make tm/tmdata.c - prev include/tm.h - prev include/ast.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Iinclude -Istd -c ${<} + exec - compile ${<} -Iport -Isfio -I${INSTALLROOT}/include + done + + make sfgetd.o + make sfio/sfgetd.c + prev sfio/sfhdr.h done - make memfatal.o - make disc/memfatal.c - prev FEATURE/vmalloc - prev include/vmalloc.h - prev include/error.h - prev include/ast.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Iinclude -Istd -c ${<} + exec - compile ${<} -Iport -Isfio -I${INSTALLROOT}/include + done + + make sfgetr.o + make sfio/sfgetr.c + prev sfio/sfhdr.h done - make sfkeyprintf.o - make disc/sfkeyprintf.c - prev ast_api.h - prev include/regex.h - make include/sfdisc.h implicit - prev include/ast.h - done - prev include/ccode.h - prev include/ast.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Iinclude -Istd -c ${<} + exec - compile ${<} -Iport -Isfio -I${INSTALLROOT}/include + done + + make sfllen.o + make sfio/sfllen.c + prev sfio/sfhdr.h done - make sfdcdio.o - make disc/sfdcdio.c - make disc/sfdchdr.h implicit - prev include/sfdisc.h - prev sfio/sfhdr.h - done - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Idisc -Iport -Isfio -Iinclude -Istd -I${INSTALLROOT}/include -c ${<} + exec - compile ${<} -Iport -Isfio -I${INSTALLROOT}/include + done + + make sfmode.o + make sfio/sfmode.c + prev include/wait.h + prev sig.h + prev sfio/sfhdr.h + done + exec - compile ${<} -Iport -Isfio -I${INSTALLROOT}/include + done + + make sfmove.o + make sfio/sfmove.c + prev sfio/sfhdr.h done - make sfdcdos.o - make disc/sfdcdos.c - prev disc/sfdchdr.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Idisc -Iport -Isfio -Iinclude -Istd -I${INSTALLROOT}/include -c ${<} + exec - compile ${<} -Iport -Isfio -I${INSTALLROOT}/include + done + + make sfnew.o + make sfio/sfnew.c + prev sfio/sfhdr.h done - make sfdcfilter.o - make disc/sfdcfilter.c - prev disc/sfdchdr.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Idisc -Iport -Isfio -Iinclude -Istd -I${INSTALLROOT}/include -c ${<} + exec - compile ${<} -Iport -Isfio -I${INSTALLROOT}/include + done + + make sfpkrd.o + make sfio/sfpkrd.c + prev sfio/sfhdr.h done - make sfdcseekable.o - make disc/sfdcseekable.c - prev disc/sfdchdr.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Idisc -Iport -Isfio -Iinclude -Istd -I${INSTALLROOT}/include -c ${<} + exec - compile ${<} -Iport -Isfio -I${INSTALLROOT}/include + done + + make sfnotify.o + make sfio/sfnotify.c + prev sfio/sfhdr.h done - make sfdcslow.o - make disc/sfdcslow.c - prev disc/sfdchdr.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Idisc -Iport -Isfio -Iinclude -Istd -I${INSTALLROOT}/include -c ${<} + exec - compile ${<} -Iport -Isfio -I${INSTALLROOT}/include + done + + make sfnputc.o + make sfio/sfnputc.c + prev sfio/sfhdr.h done - make sfdcsubstr.o - make disc/sfdcsubstr.c - prev disc/sfdchdr.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Idisc -Iport -Isfio -Iinclude -Istd -I${INSTALLROOT}/include -c ${<} + exec - compile ${<} -Iport -Isfio -I${INSTALLROOT}/include + done + + make sfopen.o + make sfio/sfopen.c + prev sfio/sfhdr.h done - make sfdctee.o - make disc/sfdctee.c - prev disc/sfdchdr.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Idisc -Iport -Isfio -Iinclude -Istd -I${INSTALLROOT}/include -c ${<} + exec - compile ${<} -Iport -Isfio -I${INSTALLROOT}/include + done + + make sfpeek.o + make sfio/sfpeek.c + prev sfio/sfhdr.h done - make sfdcunion.o - make disc/sfdcunion.c - prev disc/sfdchdr.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Idisc -Iport -Isfio -Iinclude -Istd -I${INSTALLROOT}/include -c ${<} + exec - compile ${<} -Iport -Isfio -I${INSTALLROOT}/include + done + + make sfpoll.o + make sfio/sfpoll.c + prev sfio/sfhdr.h done - make sfdcmore.o - make disc/sfdcmore.c - prev ast_tty.h - prev disc/sfdchdr.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Idisc -Iport -Isfio -Iinclude -Istd -I${INSTALLROOT}/include -c ${<} + exec - compile ${<} -Iport -Isfio -I${INSTALLROOT}/include + done + + make sfpool.o + make sfio/sfpool.c + prev sfio/sfhdr.h done - make sfdcprefix.o - make disc/sfdcprefix.c - prev disc/sfdchdr.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Idisc -Iport -Isfio -Iinclude -Istd -I${INSTALLROOT}/include -c ${<} + exec - compile ${<} -Iport -Isfio -I${INSTALLROOT}/include + done + + make sfpopen.o + make sfio/sfpopen.c + prev include/proc.h + prev sfio/sfhdr.h done - make wc.o - make comp/wc.c - prev std/wchar.h - prev include/ast.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Iinclude -Istd -c ${<} + exec - compile ${<} -Iport -Isfio -I${INSTALLROOT}/include + done + + make sfprintf.o + make sfio/sfprintf.c + prev sfio/sfhdr.h done - make wc2utf8.o - make string/wc2utf8.c - prev include/ast.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Iinclude -Istd -c ${<} + exec - compile ${<} ${mam_cc_NOPROTECT} -Iport -Isfio -I${INSTALLROOT}/include + done + + make sfputd.o + make sfio/sfputd.c + prev sfio/sfhdr.h done - make dirname.o - make comp/dirname.c - prev include/ast_std.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Iinclude -Istd -c ${<} + exec - compile ${<} -Iport -Isfio -I${INSTALLROOT}/include + done + + make sfputl.o + make sfio/sfputl.c + prev sfio/sfhdr.h done - make fmtmsglib.o - make comp/fmtmsglib.c - prev comp/fmtmsg.h implicit dontcare - prev include/ast.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Iinclude -Istd -c ${<} + exec - compile ${<} -Iport -Isfio -I${INSTALLROOT}/include + done + + make sfputr.o + make sfio/sfputr.c + prev sfio/sfhdr.h done - make fnmatch.o - make comp/fnmatch.c - make comp/fnmatch.h implicit - prev ast_common.h - done - prev include/regex.h - prev include/ast.h - prev ast_lib.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Iinclude -Istd -c ${<} + exec - compile ${<} -Iport -Isfio -I${INSTALLROOT}/include + done + + make sfputu.o + make sfio/sfputu.c + prev sfio/sfhdr.h done - make ftw.o - make comp/ftw.c - make comp/ftw.h implicit - prev include/ftwalk.h - done - prev include/ast.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Iinclude -Istd -c ${<} + exec - compile ${<} -Iport -Isfio -I${INSTALLROOT}/include + done + + make sfrd.o + make sfio/sfrd.c + prev sfio/sfhdr.h done - make getdate.o - make comp/getdate.c - prev ast_map.h - prev include/tm.h - prev include/ast.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Iinclude -Istd -c ${<} + exec - compile ${<} ${DEBUG+-DDEBUG=${DEBUG}} -Iport -Isfio -I${INSTALLROOT}/include + done + + make sfread.o + make sfio/sfread.c + prev sfio/sfhdr.h done - make getsubopt.o - make comp/getsubopt.c - prev include/error.h - prev include/ast.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Iinclude -Istd -c ${<} + exec - compile ${<} -Iport -Isfio -I${INSTALLROOT}/include + done + + make sfreserve.o + make sfio/sfreserve.c + prev sfio/sfhdr.h done - make glob.o - make misc/glob.c - prev include/glob.h implicit - prev include/regex.h - prev include/error.h - prev include/ast_dir.h - prev include/stk.h - prev include/ls.h - prev include/ast.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Idir -Iinclude -Istd -c ${<} + exec - compile ${<} -Iport -Isfio -I${INSTALLROOT}/include + done + + make sfscanf.o + make sfio/sfscanf.c + prev sfio/sfhdr.h done - make nftw.o - make comp/nftw.c - prev comp/ftw.h - prev include/ast.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Iinclude -Istd -c ${<} + exec - compile ${<} ${mam_cc_NOPROTECT} -Iport -Isfio -I${INSTALLROOT}/include + done + + make sfseek.o + make sfio/sfseek.c + prev sfio/sfhdr.h done - make re_comp.o - make comp/re_comp.c - prev include/regex.h - prev comp/re_comp.h implicit - prev include/ast.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Iinclude -Istd -c ${<} + exec - compile ${<} -Iport -Isfio -I${INSTALLROOT}/include + done + + make sfset.o + make sfio/sfset.c + prev sfio/sfhdr.h done - make resolvepath.o - make comp/resolvepath.c - prev ast_api.h - prev ast_map.h - prev include/error.h - prev include/ast.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Iinclude -Istd -c ${<} + exec - compile ${<} ${DEBUG+-DDEBUG=${DEBUG}} -Iport -Isfio -I${INSTALLROOT}/include + done + + make sfsetbuf.o + make sfio/sfsetbuf.c + prev sfio/sfhdr.h done - make realpath.o - make comp/realpath.c - prev ast_map.h - prev include/ast.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Iinclude -Istd -c ${<} + exec - compile ${<} -Iport -Isfio -I${INSTALLROOT}/include + done + + make sfsetfd.o + make sfio/sfsetfd.c + prev sfio/sfhdr.h done - make regcmp.o - make comp/regcmp.c - prev align.h - prev include/regex.h - prev comp/libgen.h implicit - prev include/ast.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Iinclude -Istd -c ${<} + exec - compile ${<} -Iport -Isfio -I${INSTALLROOT}/include + done + + make sfsize.o + make sfio/sfsize.c + prev sfio/sfhdr.h done - make regexp.o - make comp/regexp.c - prev align.h - prev include/regex.h - prev comp/regexp.h implicit - prev include/ast.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Iinclude -Istd -c ${<} + exec - compile ${<} -Iport -Isfio -I${INSTALLROOT}/include + done + + make sfsk.o + make sfio/sfsk.c + prev sfio/sfhdr.h done - make strftime.o - make comp/strftime.c - prev ast_map.h - prev include/tm.h - prev include/ast.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Iinclude -Istd -c ${<} + exec - compile ${<} -Iport -Isfio -I${INSTALLROOT}/include + done + + make sfstack.o + make sfio/sfstack.c + prev sfio/sfhdr.h done - make strptime.o - make comp/strptime.c - prev ast_map.h - prev tmx.h - prev include/ast.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Iinclude -Istd -c ${<} + exec - compile ${<} -Iport -Isfio -I${INSTALLROOT}/include + done + + make sfstrtod.o + make sfio/sfstrtod.c + prev sfio/sfhdr.h done - make swab.o - make comp/swab.c - prev include/swap.h - prev include/ast.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Iinclude -Istd -c ${<} + exec - compile ${<} -Iport -Isfio -I${INSTALLROOT}/include + done + + make sfsync.o + make sfio/sfsync.c + prev sfio/sfhdr.h done - make tempnam.o - make comp/tempnam.c - prev std/stdio.h - prev include/ast.h - prev include/ast_std.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Iinclude -Istd -c ${<} + exec - compile ${<} -Iport -Isfio -I${INSTALLROOT}/include + done + + make sfswap.o + make sfio/sfswap.c + prev sfio/sfhdr.h done - make wordexp.o - make comp/wordexp.c - prev include/stk.h - make comp/wordexp.h implicit - prev ast_common.h + exec - compile ${<} -Iport -Isfio -I${INSTALLROOT}/include + done + + make sftable.o + make sfio/sftable.c + make FEATURE/sfinit implicit + make features/sfinit.c + prev FEATURE/float + prev FEATURE/common done - prev include/ast.h + exec - invoke_iffe ${<} -I. -Istd done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Iinclude -Istd -c ${<} + prev FEATURE/float + prev sfio/sfhdr.h done - make mktime.o - make comp/mktime.c - prev ast_map.h - prev include/tm.h - prev include/ast.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Iinclude -Istd -c ${<} - done - make regalloc.o - make regex/regalloc.c - make regex/reglib.h implicit - prev std/wctype.h - prev std/wchar.h - prev std/stdio.h - prev include/regex.h - prev include/stk.h - prev include/cdt.h - prev include/ast.h - done - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Iregex -Iinclude -Istd -c ${<} + exec - compile ${<} -Iport -Isfio -I${INSTALLROOT}/include + done + + make sftell.o + make sfio/sftell.c + prev sfio/sfhdr.h done - make regclass.o - make regex/regclass.c - prev regex/reglib.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Iregex -Iinclude -Istd -c ${<} + exec - compile ${<} -Iport -Isfio -I${INSTALLROOT}/include + done + + make sftmp.o + make sfio/sftmp.c + prev sfio/sfhdr.h done - make regcoll.o - make regex/regcoll.c - prev regex/reglib.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Iregex -Iinclude -Istd -c ${<} + exec - compile ${<} -Iport -Isfio -I${INSTALLROOT}/include + done + + make sfungetc.o + make sfio/sfungetc.c + prev sfio/sfhdr.h done - make regcomp.o - make regex/regcomp.c - prev port/lclib.h - prev regex/reglib.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} ${-debug-symbols?1?${mam_cc_DEBUG} -D_BLD_DEBUG?${CCFLAGS.FORCE}?} -I. -Icomp -Iport -Iregex -Iinclude -Istd -I${INSTALLROOT}/include -c ${<} + exec - compile ${<} -Iport -Isfio -I${INSTALLROOT}/include + done + + make sfvprintf.o + make sfio/sfvprintf.c + prev include/ccode.h + prev sfio/sfhdr.h done - make regcache.o - make regex/regcache.c - prev include/regex.h - prev include/ast.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Iinclude -Istd -c ${<} + exec - compile ${<} ${mam_cc_NOPROTECT} ${DEBUG+-DDEBUG=${DEBUG}} -Iport -Isfio -I${INSTALLROOT}/include + done + + make sfvscanf.o + make sfio/sfvscanf.c + prev sfio/sfstrtof.h + prev sfio/sfhdr.h done - make regdecomp.o - make regex/regdecomp.c - prev regex/reglib.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Iregex -Iinclude -Istd -c ${<} + exec - compile ${<} ${mam_cc_NOPROTECT} -Iport -Isfio -I${INSTALLROOT}/include + done + + make sfwr.o + make sfio/sfwr.c + prev sfio/sfhdr.h done - make regerror.o - make regex/regerror.c - prev regex/reglib.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Iregex -Iinclude -Istd -c ${<} + exec - compile ${<} -Iport -Isfio -I${INSTALLROOT}/include + done + + make sfwrite.o + make sfio/sfwrite.c + prev sfio/sfhdr.h done - make regexec.o - make regex/regexec.c - prev regex/reglib.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Iregex -Iinclude -Istd -c ${<} + exec - compile ${<} -Iport -Isfio -I${INSTALLROOT}/include + done + + make sfpurge.o + make sfio/sfpurge.c + prev sfio/sfhdr.h done - make regfatal.o - make regex/regfatal.c - prev include/error.h - prev regex/reglib.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Iregex -Iinclude -Istd -c ${<} + exec - compile ${<} -Iport -Isfio -I${INSTALLROOT}/include + done + + make sfraise.o + make sfio/sfraise.c + prev sfio/sfhdr.h done - make reginit.o - make regex/reginit.c - prev include/ccode.h - prev regex/reglib.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Iregex -Iinclude -Istd -c ${<} + exec - compile ${<} -Iport -Isfio -I${INSTALLROOT}/include + done + + make sfwalk.o + make sfio/sfwalk.c + prev sfio/sfhdr.h done - make regnexec.o - make regex/regnexec.c - prev regex/reglib.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Iregex -Iinclude -Istd -c ${<} + exec - compile ${<} -Iport -Isfio -I${INSTALLROOT}/include + done + + make sfgetm.o + make sfio/sfgetm.c + prev sfio/sfhdr.h done - make regsubcomp.o - make regex/regsubcomp.c - prev regex/reglib.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Iregex -Iinclude -Istd -c ${<} + exec - compile ${<} -Iport -Isfio -I${INSTALLROOT}/include + done + + make sfputm.o + make sfio/sfputm.c + prev sfio/sfhdr.h done - make regsubexec.o - make regex/regsubexec.c - prev regex/reglib.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Iregex -Iinclude -Istd -c ${<} + exec - compile ${<} -Iport -Isfio -I${INSTALLROOT}/include + done + + make sfresize.o + make sfio/sfresize.c + prev sfio/sfhdr.h done - make regsub.o - make regex/regsub.c - prev regex/reglib.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Iregex -Iinclude -Istd -c ${<} + exec - compile ${<} -Iport -Isfio -I${INSTALLROOT}/include + done + + make _sfclrerr.o + make sfio/_sfclrerr.c + prev sfio/sfhdr.h done - make regrecord.o - make regex/regrecord.c - prev regex/reglib.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Iregex -Iinclude -Istd -c ${<} + exec - compile ${<} -Iport -Isfio -I${INSTALLROOT}/include + done + + make _sfeof.o + make sfio/_sfeof.c + prev sfio/sfhdr.h done - make regrexec.o - make regex/regrexec.c - prev regex/reglib.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Iregex -Iinclude -Istd -c ${<} + exec - compile ${<} -Iport -Isfio -I${INSTALLROOT}/include + done + + make _sferror.o + make sfio/_sferror.c + prev sfio/sfhdr.h done - make regstat.o - make regex/regstat.c - prev regex/reglib.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Iregex -Iinclude -Istd -c ${<} - done - make dtclose.o - make cdt/dtclose.c - make cdt/dthdr.h implicit dontcare - make cdt/cdtlib.h implicit dontcare - prev include/debug.h - make include/aso.h implicit - prev ast_common.h - done - prev include/cdt.h - prev include/ast.h - done - done - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icdt -Icomp -Iinclude -Istd -I${INSTALLROOT}/include/ast -c ${<} + exec - compile ${<} -Iport -Isfio -I${INSTALLROOT}/include + done + + make _sffileno.o + make sfio/_sffileno.c + prev sfio/sfhdr.h done - make dtdisc.o - make cdt/dtdisc.c - prev cdt/dthdr.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icdt -Icomp -Iinclude -Istd -I${INSTALLROOT}/include/ast -c ${<} + exec - compile ${<} -Iport -Isfio -I${INSTALLROOT}/include + done + + make _sfopen.o + make sfio/_sfopen.c + prev sfio/sfhdr.h done - make dthash.o - make cdt/dthash.c - prev cdt/dthdr.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icdt -Icomp -Iinclude -Istd -I${INSTALLROOT}/include/ast -c ${<} + exec - compile ${<} -Iport -Isfio -I${INSTALLROOT}/include + done + + make _sfstacked.o + make sfio/_sfstacked.c + prev sfio/sfhdr.h done - make dtlist.o - make cdt/dtlist.c - prev cdt/dthdr.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icdt -Icomp -Iinclude -Istd -I${INSTALLROOT}/include/ast -c ${<} + exec - compile ${<} -Iport -Isfio -I${INSTALLROOT}/include + done + + make _sfvalue.o + make sfio/_sfvalue.c + prev sfio/sfhdr.h done - make dtmethod.o - make cdt/dtmethod.c - prev cdt/dthdr.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icdt -Icomp -Iinclude -Istd -I${INSTALLROOT}/include/ast -c ${<} + exec - compile ${<} -Iport -Isfio -I${INSTALLROOT}/include + done + + make _sfgetc.o + make sfio/_sfgetc.c + prev sfio/sfhdr.h done - make dtopen.o - make cdt/dtopen.c - prev cdt/dthdr.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icdt -Icomp -Iinclude -Istd -I${INSTALLROOT}/include/ast -c ${<} + exec - compile ${<} -Iport -Isfio -I${INSTALLROOT}/include + done + + make _sfgetl.o + make sfio/_sfgetl.c + prev sfio/sfhdr.h done - make dtstat.o - make cdt/dtstat.c - prev cdt/dthdr.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icdt -Icomp -Iinclude -Istd -I${INSTALLROOT}/include/ast -c ${<} + exec - compile ${<} -Iport -Isfio -I${INSTALLROOT}/include + done + + make _sfgetl2.o + make sfio/_sfgetl2.c + prev sfio/sfhdr.h done - make dtstrhash.o - make cdt/dtstrhash.c - prev cdt/dthdr.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icdt -Icomp -Iinclude -Istd -I${INSTALLROOT}/include/ast -c ${<} + exec - compile ${<} -Iport -Isfio -I${INSTALLROOT}/include + done + + make _sfgetu.o + make sfio/_sfgetu.c + prev sfio/sfhdr.h done - make dttree.o - make cdt/dttree.c - prev cdt/dthdr.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icdt -Icomp -Iinclude -Istd -I${INSTALLROOT}/include/ast -c ${<} + exec - compile ${<} -Iport -Isfio -I${INSTALLROOT}/include + done + + make _sfgetu2.o + make sfio/_sfgetu2.c + prev sfio/sfhdr.h done - make dtuser.o - make cdt/dtuser.c - prev cdt/dthdr.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icdt -Icomp -Iinclude -Istd -I${INSTALLROOT}/include/ast -c ${<} + exec - compile ${<} -Iport -Isfio -I${INSTALLROOT}/include + done + + make _sfdlen.o + make sfio/_sfdlen.c + prev sfio/sfhdr.h done - make dtview.o - make cdt/dtview.c - prev cdt/dthdr.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icdt -Icomp -Iinclude -Istd -I${INSTALLROOT}/include/ast -c ${<} + exec - compile ${<} -Iport -Isfio -I${INSTALLROOT}/include + done + + make _sfllen.o + make sfio/_sfllen.c + prev sfio/sfhdr.h done - make dtwalk.o - make cdt/dtwalk.c - prev cdt/dthdr.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icdt -Icomp -Iinclude -Istd -I${INSTALLROOT}/include/ast -c ${<} + exec - compile ${<} -Iport -Isfio -I${INSTALLROOT}/include + done + + make _sfslen.o + make sfio/_sfslen.c + prev sfio/sfhdr.h done - make dtnew.o - make cdt/dtnew.c - prev include/dt.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Iinclude -Istd -c ${<} + exec - compile ${<} -Iport -Isfio -I${INSTALLROOT}/include + done + + make _sfulen.o + make sfio/_sfulen.c + prev sfio/sfhdr.h done - make dtcomp.o - make cdt/dtcomp.c - prev include/cdt.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Iinclude -Istd -c ${<} + exec - compile ${<} -Iport -Isfio -I${INSTALLROOT}/include + done + + make _sfputc.o + make sfio/_sfputc.c + prev sfio/sfhdr.h done - make sfclose.o - make sfio/sfclose.c - prev sfio/sfhdr.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Iport -Isfio -Iinclude -Istd -I${INSTALLROOT}/include -c ${<} + exec - compile ${<} -Iport -Isfio -I${INSTALLROOT}/include + done + + make _sfputd.o + make sfio/_sfputd.c + prev sfio/sfhdr.h done - make sfclrlock.o - make sfio/sfclrlock.c - prev sfio/sfhdr.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Iport -Isfio -Iinclude -Istd -I${INSTALLROOT}/include -c ${<} + exec - compile ${<} -Iport -Isfio -I${INSTALLROOT}/include + done + + make _sfputl.o + make sfio/_sfputl.c + prev sfio/sfhdr.h done - make sfdisc.o - make sfio/sfdisc.c - prev sfio/sfhdr.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Iport -Isfio -Iinclude -Istd -I${INSTALLROOT}/include -c ${<} + exec - compile ${<} -Iport -Isfio -I${INSTALLROOT}/include + done + + make _sfputm.o + make sfio/_sfputm.c + prev sfio/sfhdr.h done - make sfdlen.o - make sfio/sfdlen.c - prev sfio/sfhdr.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Iport -Isfio -Iinclude -Istd -I${INSTALLROOT}/include -c ${<} + exec - compile ${<} -Iport -Isfio -I${INSTALLROOT}/include + done + + make _sfputu.o + make sfio/_sfputu.c + prev sfio/sfhdr.h done - make sfexcept.o - make sfio/sfexcept.c + exec - compile ${<} -Iport -Isfio -I${INSTALLROOT}/include + done + + make clearerr.o + make stdio/clearerr.c + make stdio/stdhdr.h implicit + prev std/stdio.h prev sfio/sfhdr.h + prev ast_standards.h done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Iport -Isfio -Iinclude -Istd -I${INSTALLROOT}/include -c ${<} done - make sfgetl.o - make sfio/sfgetl.c - prev sfio/sfhdr.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Iport -Isfio -Iinclude -Istd -I${INSTALLROOT}/include -c ${<} + exec - compile ${<} -Iport -Isfio -Istdio -I${INSTALLROOT}/include + done + + make fclose.o + make stdio/fclose.c + prev stdio/stdhdr.h done - make sfgetu.o - make sfio/sfgetu.c - prev sfio/sfhdr.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Iport -Isfio -Iinclude -Istd -I${INSTALLROOT}/include -c ${<} + exec - compile ${<} -Iport -Isfio -Istdio -I${INSTALLROOT}/include + done + + make fdopen.o + make stdio/fdopen.c + prev stdio/stdhdr.h done - make sfcvt.o - make sfio/sfcvt.c - prev sfio/sfhdr.h - prev FEATURE/standards - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Iport -Isfio -Iinclude -Istd -I${INSTALLROOT}/include -c ${<} - done - make sfecvt.o - make sfio/sfecvt.c - prev sfio/sfhdr.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Iport -Isfio -Iinclude -Istd -I${INSTALLROOT}/include -c ${<} + exec - compile ${<} -Iport -Isfio -Istdio -I${INSTALLROOT}/include + done + + make fflush.o + make stdio/fflush.c + prev stdio/stdhdr.h done - make sffcvt.o - make sfio/sffcvt.c - prev sfio/sfhdr.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Iport -Isfio -Iinclude -Istd -I${INSTALLROOT}/include -c ${<} + exec - compile ${<} -Iport -Isfio -Istdio -I${INSTALLROOT}/include + done + + make fgetc.o + make stdio/fgetc.c + prev stdio/stdhdr.h done - make sfextern.o - make sfio/sfextern.c - prev sfio/sfhdr.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Iport -Isfio -Iinclude -Istd -I${INSTALLROOT}/include -c ${<} + exec - compile ${<} -Iport -Isfio -Istdio -I${INSTALLROOT}/include + done + + make fgetpos.o + make stdio/fgetpos.c + prev stdio/stdhdr.h done - make sffilbuf.o - make sfio/sffilbuf.c - prev sfio/sfhdr.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Iport -Isfio -Iinclude -Istd -I${INSTALLROOT}/include -c ${<} + exec - compile ${<} -Iport -Isfio -Istdio -I${INSTALLROOT}/include + done + + make fgets.o + make stdio/fgets.c + prev stdio/stdhdr.h done - make sfflsbuf.o - make sfio/sfflsbuf.c - prev sfio/sfhdr.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Iport -Isfio -Iinclude -Istd -I${INSTALLROOT}/include -c ${<} + exec - compile ${<} -Iport -Isfio -Istdio -I${INSTALLROOT}/include + done + + make fopen.o + make stdio/fopen.c + prev stdio/stdhdr.h done - make sfprints.o - make sfio/sfprints.c - prev sfio/sfhdr.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Iport -Isfio -Iinclude -Istd -I${INSTALLROOT}/include -c ${<} + exec - compile ${<} -Iport -Isfio -Istdio -I${INSTALLROOT}/include + done + + make fprintf.o + make stdio/fprintf.c + prev stdio/stdhdr.h done - make sfgetd.o - make sfio/sfgetd.c - prev sfio/sfhdr.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Iport -Isfio -Iinclude -Istd -I${INSTALLROOT}/include -c ${<} + exec - compile ${<} -Iport -Isfio -Istdio -I${INSTALLROOT}/include + done + + make fpurge.o + make stdio/fpurge.c + prev stdio/stdhdr.h done - make sfgetr.o - make sfio/sfgetr.c - prev sfio/sfhdr.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Iport -Isfio -Iinclude -Istd -I${INSTALLROOT}/include -c ${<} + exec - compile ${<} -Iport -Isfio -Istdio -I${INSTALLROOT}/include + done + + make fputs.o + make stdio/fputs.c + prev stdio/stdhdr.h done - make sfllen.o - make sfio/sfllen.c - prev sfio/sfhdr.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Iport -Isfio -Iinclude -Istd -I${INSTALLROOT}/include -c ${<} + exec - compile ${<} -Iport -Isfio -Istdio -I${INSTALLROOT}/include + done + + make fread.o + make stdio/fread.c + prev stdio/stdhdr.h done - make sfmode.o - make sfio/sfmode.c - prev include/wait.h - prev sig.h - prev sfio/sfhdr.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Iport -Isfio -Iinclude -Istd -I${INSTALLROOT}/include -c ${<} + exec - compile ${<} -Iport -Isfio -Istdio -I${INSTALLROOT}/include + done + + make freopen.o + make stdio/freopen.c + prev stdio/stdhdr.h done - make sfmove.o - make sfio/sfmove.c - prev sfio/sfhdr.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Iport -Isfio -Iinclude -Istd -I${INSTALLROOT}/include -c ${<} + exec - compile ${<} -Iport -Isfio -Istdio -I${INSTALLROOT}/include + done + + make fscanf.o + make stdio/fscanf.c + prev stdio/stdhdr.h done - make sfnew.o - make sfio/sfnew.c - prev sfio/sfhdr.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Iport -Isfio -Iinclude -Istd -I${INSTALLROOT}/include -c ${<} + exec - compile ${<} -Iport -Isfio -Istdio -I${INSTALLROOT}/include + done + + make fseek.o + make stdio/fseek.c + prev stdio/stdhdr.h done - make sfpkrd.o - make sfio/sfpkrd.c - prev sfio/sfhdr.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Iport -Isfio -Iinclude -Istd -I${INSTALLROOT}/include -c ${<} + exec - compile ${<} -Iport -Isfio -Istdio -I${INSTALLROOT}/include + done + + make fseeko.o + make stdio/fseeko.c + prev stdio/stdhdr.h done - make sfnotify.o - make sfio/sfnotify.c - prev sfio/sfhdr.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Iport -Isfio -Iinclude -Istd -I${INSTALLROOT}/include -c ${<} + exec - compile ${<} -Iport -Isfio -Istdio -I${INSTALLROOT}/include + done + + make fsetpos.o + make stdio/fsetpos.c + prev stdio/stdhdr.h done - make sfnputc.o - make sfio/sfnputc.c - prev sfio/sfhdr.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Iport -Isfio -Iinclude -Istd -I${INSTALLROOT}/include -c ${<} + exec - compile ${<} -Iport -Isfio -Istdio -I${INSTALLROOT}/include + done + + make ftell.o + make stdio/ftell.c + prev stdio/stdhdr.h done - make sfopen.o - make sfio/sfopen.c - prev sfio/sfhdr.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Iport -Isfio -Iinclude -Istd -I${INSTALLROOT}/include -c ${<} + exec - compile ${<} -Iport -Isfio -Istdio -I${INSTALLROOT}/include + done + + make ftello.o + make stdio/ftello.c + prev stdio/stdhdr.h done - make sfpeek.o - make sfio/sfpeek.c - prev sfio/sfhdr.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Iport -Isfio -Iinclude -Istd -I${INSTALLROOT}/include -c ${<} + exec - compile ${<} -Iport -Isfio -Istdio -I${INSTALLROOT}/include + done + + make fwrite.o + make stdio/fwrite.c + prev stdio/stdhdr.h done - make sfpoll.o - make sfio/sfpoll.c - prev sfio/sfhdr.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Iport -Isfio -Iinclude -Istd -I${INSTALLROOT}/include -c ${<} + exec - compile ${<} -Iport -Isfio -Istdio -I${INSTALLROOT}/include + done + + make getw.o + make stdio/getw.c + prev stdio/stdhdr.h done - make sfpool.o - make sfio/sfpool.c - prev sfio/sfhdr.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Iport -Isfio -Iinclude -Istd -I${INSTALLROOT}/include -c ${<} + exec - compile ${<} -Iport -Isfio -Istdio -I${INSTALLROOT}/include + done + + make pclose.o + make stdio/pclose.c + prev stdio/stdhdr.h done - make sfpopen.o - make sfio/sfpopen.c - prev include/proc.h - prev sfio/sfhdr.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Iport -Isfio -Iinclude -Istd -I${INSTALLROOT}/include -c ${<} + exec - compile ${<} -Iport -Isfio -Istdio -I${INSTALLROOT}/include + done + + make popen.o + make stdio/popen.c + prev stdio/stdhdr.h done - make sfprintf.o - make sfio/sfprintf.c - prev sfio/sfhdr.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} ${CCFLAGS.FORCE} ${mam_cc_NOPROTECT} -I. -Icomp -Iport -Isfio -Iinclude -Istd -I${INSTALLROOT}/include -c ${<} + exec - compile ${<} -Iport -Isfio -Istdio -I${INSTALLROOT}/include + done + + make printf.o + make stdio/printf.c + prev stdio/stdhdr.h done - make sfputd.o - make sfio/sfputd.c - prev sfio/sfhdr.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Iport -Isfio -Iinclude -Istd -I${INSTALLROOT}/include -c ${<} + exec - compile ${<} -Iport -Isfio -Istdio -I${INSTALLROOT}/include + done + + make putchar.o + make stdio/putchar.c + prev stdio/stdhdr.h done - make sfputl.o - make sfio/sfputl.c - prev sfio/sfhdr.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Iport -Isfio -Iinclude -Istd -I${INSTALLROOT}/include -c ${<} + exec - compile ${<} -Iport -Isfio -Istdio -I${INSTALLROOT}/include + done + + make puts.o + make stdio/puts.c + prev stdio/stdhdr.h done - make sfputr.o - make sfio/sfputr.c - prev sfio/sfhdr.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Iport -Isfio -Iinclude -Istd -I${INSTALLROOT}/include -c ${<} + exec - compile ${<} -Iport -Isfio -Istdio -I${INSTALLROOT}/include + done + + make putw.o + make stdio/putw.c + prev stdio/stdhdr.h done - make sfputu.o - make sfio/sfputu.c - prev sfio/sfhdr.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Iport -Isfio -Iinclude -Istd -I${INSTALLROOT}/include -c ${<} + exec - compile ${<} -Iport -Isfio -Istdio -I${INSTALLROOT}/include + done + + make rewind.o + make stdio/rewind.c + prev stdio/stdhdr.h done - make sfrd.o - make sfio/sfrd.c - prev sfio/sfhdr.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} ${-debug-symbols?1?${mam_cc_DEBUG} -D_BLD_DEBUG?${CCFLAGS.FORCE}?} ${DEBUG+-DDEBUG=${DEBUG}} -I. -Icomp -Iport -Isfio -Iinclude -Istd -I${INSTALLROOT}/include -c ${<} + exec - compile ${<} -Iport -Isfio -Istdio -I${INSTALLROOT}/include + done + + make scanf.o + make stdio/scanf.c + prev stdio/stdhdr.h done - make sfread.o - make sfio/sfread.c - prev sfio/sfhdr.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Iport -Isfio -Iinclude -Istd -I${INSTALLROOT}/include -c ${<} + exec - compile ${<} -Iport -Isfio -Istdio -I${INSTALLROOT}/include + done + + make setbuf.o + make stdio/setbuf.c + prev stdio/stdhdr.h done - make sfreserve.o - make sfio/sfreserve.c - prev sfio/sfhdr.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Iport -Isfio -Iinclude -Istd -I${INSTALLROOT}/include -c ${<} + exec - compile ${<} -Iport -Isfio -Istdio -I${INSTALLROOT}/include + done + + make setbuffer.o + make stdio/setbuffer.c + prev stdio/stdhdr.h done - make sfscanf.o - make sfio/sfscanf.c - prev sfio/sfhdr.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} ${CCFLAGS.FORCE} ${mam_cc_NOPROTECT} -I. -Icomp -Iport -Isfio -Iinclude -Istd -I${INSTALLROOT}/include -c ${<} + exec - compile ${<} -Iport -Isfio -Istdio -I${INSTALLROOT}/include + done + + make setlinebuf.o + make stdio/setlinebuf.c + prev stdio/stdhdr.h done - make sfseek.o - make sfio/sfseek.c - prev sfio/sfhdr.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Iport -Isfio -Iinclude -Istd -I${INSTALLROOT}/include -c ${<} + exec - compile ${<} -Iport -Isfio -Istdio -I${INSTALLROOT}/include + done + + make setvbuf.o + make stdio/setvbuf.c + prev stdio/stdhdr.h done - make sfset.o - make sfio/sfset.c - prev sfio/sfhdr.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} ${-debug-symbols?1?${mam_cc_DEBUG} -D_BLD_DEBUG?${CCFLAGS.FORCE}?} ${DEBUG+-DDEBUG=${DEBUG}} -I. -Icomp -Iport -Isfio -Iinclude -Istd -I${INSTALLROOT}/include -c ${<} + exec - compile ${<} -Iport -Isfio -Istdio -I${INSTALLROOT}/include + done + + make snprintf.o + make stdio/snprintf.c + prev stdio/stdhdr.h done - make sfsetbuf.o - make sfio/sfsetbuf.c - prev sfio/sfhdr.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Iport -Isfio -Iinclude -Istd -I${INSTALLROOT}/include -c ${<} + exec - compile ${<} -Iport -Isfio -Istdio -I${INSTALLROOT}/include + done + + make sprintf.o + make stdio/sprintf.c + prev stdio/stdhdr.h done - make sfsetfd.o - make sfio/sfsetfd.c - prev sfio/sfhdr.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Iport -Isfio -Iinclude -Istd -I${INSTALLROOT}/include -c ${<} + exec - compile ${<} -Iport -Isfio -Istdio -I${INSTALLROOT}/include + done + + make sscanf.o + make stdio/sscanf.c + prev stdio/stdhdr.h done - make sfsize.o - make sfio/sfsize.c - prev sfio/sfhdr.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Iport -Isfio -Iinclude -Istd -I${INSTALLROOT}/include -c ${<} + exec - compile ${<} -Iport -Isfio -Istdio -I${INSTALLROOT}/include + done + + make asprintf.o + make stdio/asprintf.c + prev stdio/stdhdr.h done - make sfsk.o - make sfio/sfsk.c - prev sfio/sfhdr.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Iport -Isfio -Iinclude -Istd -I${INSTALLROOT}/include -c ${<} + exec - compile ${<} -Iport -Isfio -Istdio -I${INSTALLROOT}/include + done + + make vasprintf.o + make stdio/vasprintf.c + prev stdio/stdhdr.h done - make sfstack.o - make sfio/sfstack.c - prev sfio/sfhdr.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Iport -Isfio -Iinclude -Istd -I${INSTALLROOT}/include -c ${<} + exec - compile ${<} -Iport -Isfio -Istdio -I${INSTALLROOT}/include + done + + make tmpfile.o + make stdio/tmpfile.c + prev stdio/stdhdr.h done - make sfstrtod.o - make sfio/sfstrtod.c - prev sfio/sfhdr.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Iport -Isfio -Iinclude -Istd -I${INSTALLROOT}/include -c ${<} + exec - compile ${<} -Iport -Isfio -Istdio -I${INSTALLROOT}/include + done + + make ungetc.o + make stdio/ungetc.c + prev stdio/stdhdr.h done - make sfsync.o - make sfio/sfsync.c - prev sfio/sfhdr.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Iport -Isfio -Iinclude -Istd -I${INSTALLROOT}/include -c ${<} + exec - compile ${<} -Iport -Isfio -Istdio -I${INSTALLROOT}/include + done + + make vfprintf.o + make stdio/vfprintf.c + prev stdio/stdhdr.h done - make sfswap.o - make sfio/sfswap.c - prev sfio/sfhdr.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Iport -Isfio -Iinclude -Istd -I${INSTALLROOT}/include -c ${<} + exec - compile ${<} -Iport -Isfio -Istdio -I${INSTALLROOT}/include + done + + make vfscanf.o + make stdio/vfscanf.c + prev stdio/stdhdr.h done - make sftable.o - make sfio/sftable.c - make FEATURE/sfinit implicit - make features/sfinit.c - prev FEATURE/float - prev FEATURE/common - done - exec - iffe ${IFFEFLAGS} -v -X ast -X std -c "${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Istd ${LDFLAGS}" run ${<} - done - prev FEATURE/float - prev sfio/sfhdr.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Iport -Isfio -Iinclude -Istd -I${INSTALLROOT}/include -c ${<} + exec - compile ${<} -Iport -Isfio -Istdio -I${INSTALLROOT}/include + done + + make vprintf.o + make stdio/vprintf.c + prev stdio/stdhdr.h done - make sftell.o - make sfio/sftell.c - prev sfio/sfhdr.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Iport -Isfio -Iinclude -Istd -I${INSTALLROOT}/include -c ${<} + exec - compile ${<} -Iport -Isfio -Istdio -I${INSTALLROOT}/include + done + + make vscanf.o + make stdio/vscanf.c + prev stdio/stdhdr.h done - make sftmp.o - make sfio/sftmp.c - prev sfio/sfhdr.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Iport -Isfio -Iinclude -Istd -I${INSTALLROOT}/include -c ${<} + exec - compile ${<} -Iport -Isfio -Istdio -I${INSTALLROOT}/include + done + + make vsnprintf.o + make stdio/vsnprintf.c + prev stdio/stdhdr.h done - make sfungetc.o - make sfio/sfungetc.c - prev sfio/sfhdr.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Iport -Isfio -Iinclude -Istd -I${INSTALLROOT}/include -c ${<} + exec - compile ${<} -Iport -Isfio -Istdio -I${INSTALLROOT}/include + done + + make vsprintf.o + make stdio/vsprintf.c + prev stdio/stdhdr.h done - make sfvprintf.o - make sfio/sfvprintf.c - prev include/ccode.h - prev sfio/sfhdr.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} ${-debug-symbols?1?${mam_cc_DEBUG} -D_BLD_DEBUG?${CCFLAGS.FORCE}?} ${mam_cc_NOPROTECT} ${DEBUG+-DDEBUG=${DEBUG}} -I. -Icomp -Iport -Isfio -Iinclude -Istd -I${INSTALLROOT}/include -c ${<} + exec - compile ${<} -Iport -Isfio -Istdio -I${INSTALLROOT}/include + done + + make vsscanf.o + make stdio/vsscanf.c + prev stdio/stdhdr.h done - make sfvscanf.o - make sfio/sfvscanf.c - prev sfio/sfstrtof.h - prev sfio/sfhdr.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} ${CCFLAGS.FORCE} ${mam_cc_NOPROTECT} -I. -Icomp -Iport -Isfio -Iinclude -Istd -I${INSTALLROOT}/include -c ${<} + exec - compile ${<} -Iport -Isfio -Istdio -I${INSTALLROOT}/include + done + + make _doprnt.o + make stdio/_doprnt.c + prev stdio/stdhdr.h done - make sfwr.o - make sfio/sfwr.c - prev sfio/sfhdr.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Iport -Isfio -Iinclude -Istd -I${INSTALLROOT}/include -c ${<} + exec - compile ${<} -Iport -Isfio -Istdio -I${INSTALLROOT}/include + done + + make _doscan.o + make stdio/_doscan.c + prev stdio/stdhdr.h done - make sfwrite.o - make sfio/sfwrite.c - prev sfio/sfhdr.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Iport -Isfio -Iinclude -Istd -I${INSTALLROOT}/include -c ${<} + exec - compile ${<} -Iport -Isfio -Istdio -I${INSTALLROOT}/include + done + + make _filbuf.o + make stdio/_filbuf.c + prev stdio/stdhdr.h done - make sfpurge.o - make sfio/sfpurge.c - prev sfio/sfhdr.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Iport -Isfio -Iinclude -Istd -I${INSTALLROOT}/include -c ${<} + exec - compile ${<} -Iport -Isfio -Istdio -I${INSTALLROOT}/include + done + + make _flsbuf.o + make stdio/_flsbuf.c + prev stdio/stdhdr.h done - make sfraise.o - make sfio/sfraise.c - prev sfio/sfhdr.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Iport -Isfio -Iinclude -Istd -I${INSTALLROOT}/include -c ${<} + exec - compile ${<} -Iport -Isfio -Istdio -I${INSTALLROOT}/include + done + + make _stdopen.o + make stdio/_stdopen.c + prev stdio/stdhdr.h done - make sfwalk.o - make sfio/sfwalk.c - prev sfio/sfhdr.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Iport -Isfio -Iinclude -Istd -I${INSTALLROOT}/include -c ${<} + exec - compile ${<} -Iport -Isfio -Istdio -I${INSTALLROOT}/include + done + + make _stdprintf.o + make stdio/_stdprintf.c + prev stdio/stdhdr.h done - make sfgetm.o - make sfio/sfgetm.c - prev sfio/sfhdr.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Iport -Isfio -Iinclude -Istd -I${INSTALLROOT}/include -c ${<} + exec - compile ${<} -Iport -Isfio -Istdio -I${INSTALLROOT}/include + done + + make _stdscanf.o + make stdio/_stdscanf.c + prev stdio/stdhdr.h done - make sfputm.o - make sfio/sfputm.c - prev sfio/sfhdr.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Iport -Isfio -Iinclude -Istd -I${INSTALLROOT}/include -c ${<} + exec - compile ${<} -Iport -Isfio -Istdio -I${INSTALLROOT}/include + done + + make _stdsprnt.o + make stdio/_stdsprnt.c + prev stdio/stdhdr.h done - make sfresize.o - make sfio/sfresize.c - prev sfio/sfhdr.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Iport -Isfio -Iinclude -Istd -I${INSTALLROOT}/include -c ${<} + exec - compile ${<} -Iport -Isfio -Istdio -I${INSTALLROOT}/include + done + + make _stdvbuf.o + make stdio/_stdvbuf.c + prev stdio/stdhdr.h done - make _sfclrerr.o - make sfio/_sfclrerr.c - prev sfio/sfhdr.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Iport -Isfio -Iinclude -Istd -I${INSTALLROOT}/include -c ${<} + exec - compile ${<} -Iport -Isfio -Istdio -I${INSTALLROOT}/include + done + + make _stdvsnprnt.o + make stdio/_stdvsnprnt.c + prev stdio/stdhdr.h done - make _sfeof.o - make sfio/_sfeof.c - prev sfio/sfhdr.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Iport -Isfio -Iinclude -Istd -I${INSTALLROOT}/include -c ${<} + exec - compile ${<} -Iport -Isfio -Istdio -I${INSTALLROOT}/include + done + + make _stdvsprnt.o + make stdio/_stdvsprnt.c + prev stdio/stdhdr.h done - make _sferror.o - make sfio/_sferror.c - prev sfio/sfhdr.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Iport -Isfio -Iinclude -Istd -I${INSTALLROOT}/include -c ${<} + exec - compile ${<} -Iport -Isfio -Istdio -I${INSTALLROOT}/include + done + + make _stdvsscn.o + make stdio/_stdvsscn.c + prev stdio/stdhdr.h done - make _sffileno.o - make sfio/_sffileno.c - prev sfio/sfhdr.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Iport -Isfio -Iinclude -Istd -I${INSTALLROOT}/include -c ${<} + exec - compile ${<} -Iport -Isfio -Istdio -I${INSTALLROOT}/include + done + + make fgetwc.o + make stdio/fgetwc.c + prev stdio/stdhdr.h done - make _sfopen.o - make sfio/_sfopen.c - prev sfio/sfhdr.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Iport -Isfio -Iinclude -Istd -I${INSTALLROOT}/include -c ${<} + exec - compile ${<} -Iport -Isfio -Istdio -I${INSTALLROOT}/include + done + + make fwprintf.o + make stdio/fwprintf.c + prev stdio/stdhdr.h done - make _sfstacked.o - make sfio/_sfstacked.c - prev sfio/sfhdr.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Iport -Isfio -Iinclude -Istd -I${INSTALLROOT}/include -c ${<} + exec - compile ${<} -Iport -Isfio -Istdio -I${INSTALLROOT}/include + done + + make putwchar.o + make stdio/putwchar.c + prev ast_wchar.h + prev stdio/stdhdr.h done - make _sfvalue.o - make sfio/_sfvalue.c - prev sfio/sfhdr.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Iport -Isfio -Iinclude -Istd -I${INSTALLROOT}/include -c ${<} + exec - compile ${<} -Iport -Isfio -Istdio -I${INSTALLROOT}/include + done + + make vfwscanf.o + make stdio/vfwscanf.c + prev stdio/stdhdr.h done - make _sfgetc.o - make sfio/_sfgetc.c - prev sfio/sfhdr.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Iport -Isfio -Iinclude -Istd -I${INSTALLROOT}/include -c ${<} + exec - compile ${<} -Iport -Isfio -Istdio -I${INSTALLROOT}/include + done + + make wprintf.o + make stdio/wprintf.c + prev stdio/stdhdr.h done - make _sfgetl.o - make sfio/_sfgetl.c - prev sfio/sfhdr.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Iport -Isfio -Iinclude -Istd -I${INSTALLROOT}/include -c ${<} + exec - compile ${<} -Iport -Isfio -Istdio -I${INSTALLROOT}/include + done + + make fgetws.o + make stdio/fgetws.c + prev stdio/stdhdr.h done - make _sfgetl2.o - make sfio/_sfgetl2.c - prev sfio/sfhdr.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Iport -Isfio -Iinclude -Istd -I${INSTALLROOT}/include -c ${<} + exec - compile ${<} -Iport -Isfio -Istdio -I${INSTALLROOT}/include + done + + make fwscanf.o + make stdio/fwscanf.c + prev stdio/stdhdr.h done - make _sfgetu.o - make sfio/_sfgetu.c - prev sfio/sfhdr.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Iport -Isfio -Iinclude -Istd -I${INSTALLROOT}/include -c ${<} + exec - compile ${<} -Iport -Isfio -Istdio -I${INSTALLROOT}/include + done + + make swprintf.o + make stdio/swprintf.c + prev stdio/stdhdr.h done - make _sfgetu2.o - make sfio/_sfgetu2.c - prev sfio/sfhdr.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Iport -Isfio -Iinclude -Istd -I${INSTALLROOT}/include -c ${<} + exec - compile ${<} -Iport -Isfio -Istdio -I${INSTALLROOT}/include + done + + make vswprintf.o + make stdio/vswprintf.c + prev stdio/stdhdr.h done - make _sfdlen.o - make sfio/_sfdlen.c - prev sfio/sfhdr.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Iport -Isfio -Iinclude -Istd -I${INSTALLROOT}/include -c ${<} + exec - compile ${<} -Iport -Isfio -Istdio -I${INSTALLROOT}/include + done + + make wscanf.o + make stdio/wscanf.c + prev stdio/stdhdr.h done - make _sfllen.o - make sfio/_sfllen.c - prev sfio/sfhdr.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Iport -Isfio -Iinclude -Istd -I${INSTALLROOT}/include -c ${<} + exec - compile ${<} -Iport -Isfio -Istdio -I${INSTALLROOT}/include + done + + make fputwc.o + make stdio/fputwc.c + prev stdio/stdhdr.h done - make _sfslen.o - make sfio/_sfslen.c - prev sfio/sfhdr.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Iport -Isfio -Iinclude -Istd -I${INSTALLROOT}/include -c ${<} + exec - compile ${<} -Iport -Isfio -Istdio -I${INSTALLROOT}/include + done + + make getwc.o + make stdio/getwc.c + prev ast_wchar.h + prev stdio/stdhdr.h done - make _sfulen.o - make sfio/_sfulen.c - prev sfio/sfhdr.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Iport -Isfio -Iinclude -Istd -I${INSTALLROOT}/include -c ${<} + exec - compile ${<} -Iport -Isfio -Istdio -I${INSTALLROOT}/include + done + + make swscanf.o + make stdio/swscanf.c + prev stdio/stdhdr.h done - make _sfputc.o - make sfio/_sfputc.c - prev sfio/sfhdr.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Iport -Isfio -Iinclude -Istd -I${INSTALLROOT}/include -c ${<} + exec - compile ${<} -Iport -Isfio -Istdio -I${INSTALLROOT}/include + done + + make vswscanf.o + make stdio/vswscanf.c + prev stdio/stdhdr.h done - make _sfputd.o - make sfio/_sfputd.c - prev sfio/sfhdr.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Iport -Isfio -Iinclude -Istd -I${INSTALLROOT}/include -c ${<} + exec - compile ${<} -Iport -Isfio -Istdio -I${INSTALLROOT}/include + done + + make fputws.o + make stdio/fputws.c + prev stdio/stdhdr.h done - make _sfputl.o - make sfio/_sfputl.c - prev sfio/sfhdr.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Iport -Isfio -Iinclude -Istd -I${INSTALLROOT}/include -c ${<} + exec - compile ${<} -Iport -Isfio -Istdio -I${INSTALLROOT}/include + done + + make getwchar.o + make stdio/getwchar.c + prev ast_wchar.h + prev stdio/stdhdr.h done - make _sfputm.o - make sfio/_sfputm.c - prev sfio/sfhdr.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Iport -Isfio -Iinclude -Istd -I${INSTALLROOT}/include -c ${<} + exec - compile ${<} -Iport -Isfio -Istdio -I${INSTALLROOT}/include + done + + make ungetwc.o + make stdio/ungetwc.c + prev stdio/stdhdr.h done - make _sfputu.o - make sfio/_sfputu.c - prev sfio/sfhdr.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Iport -Isfio -Iinclude -Istd -I${INSTALLROOT}/include -c ${<} - done - make clearerr.o - make stdio/clearerr.c - make stdio/stdhdr.h implicit - prev std/stdio.h - prev sfio/sfhdr.h - prev ast_standards.h - done - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Iport -Isfio -Istdio -Iinclude -Istd -I${INSTALLROOT}/include -c ${<} + exec - compile ${<} -Iport -Isfio -Istdio -I${INSTALLROOT}/include + done + + make vwprintf.o + make stdio/vwprintf.c + prev stdio/stdhdr.h done - make fclose.o - make stdio/fclose.c - prev stdio/stdhdr.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Iport -Isfio -Istdio -Iinclude -Istd -I${INSTALLROOT}/include -c ${<} + exec - compile ${<} -Iport -Isfio -Istdio -I${INSTALLROOT}/include + done + + make fwide.o + make stdio/fwide.c + prev stdio/stdhdr.h done - make fdopen.o - make stdio/fdopen.c - prev stdio/stdhdr.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Iport -Isfio -Istdio -Iinclude -Istd -I${INSTALLROOT}/include -c ${<} + exec - compile ${<} -Iport -Isfio -Istdio -I${INSTALLROOT}/include + done + + make putwc.o + make stdio/putwc.c + prev ast_wchar.h + prev stdio/stdhdr.h done - make fflush.o - make stdio/fflush.c - prev stdio/stdhdr.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Iport -Isfio -Istdio -Iinclude -Istd -I${INSTALLROOT}/include -c ${<} + exec - compile ${<} -Iport -Isfio -Istdio -I${INSTALLROOT}/include + done + + make vfwprintf.o + make stdio/vfwprintf.c + prev stdio/stdhdr.h done - make fgetc.o - make stdio/fgetc.c - prev stdio/stdhdr.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Iport -Isfio -Istdio -Iinclude -Istd -I${INSTALLROOT}/include -c ${<} + exec - compile ${<} -Iport -Isfio -Istdio -I${INSTALLROOT}/include + done + + make vwscanf.o + make stdio/vwscanf.c + prev stdio/stdhdr.h done - make fgetpos.o - make stdio/fgetpos.c - prev stdio/stdhdr.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Iport -Isfio -Istdio -Iinclude -Istd -I${INSTALLROOT}/include -c ${<} + exec - compile ${<} -Iport -Isfio -Istdio -I${INSTALLROOT}/include + done + + make stdio_c99.o + make stdio/stdio_c99.c + prev stdio/stdhdr.h done - make fgets.o - make stdio/fgets.c - prev stdio/stdhdr.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Iport -Isfio -Istdio -Iinclude -Istd -I${INSTALLROOT}/include -c ${<} + exec - compile ${<} -Iport -Isfio -Istdio -I${INSTALLROOT}/include + done + + make fcloseall.o + make stdio/fcloseall.c + prev stdio/stdhdr.h done - make fopen.o - make stdio/fopen.c - prev stdio/stdhdr.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Iport -Isfio -Istdio -Iinclude -Istd -I${INSTALLROOT}/include -c ${<} + exec - compile ${<} -Iport -Isfio -Istdio -I${INSTALLROOT}/include + done + + make fmemopen.o + make stdio/fmemopen.c + prev stdio/stdhdr.h done - make fprintf.o - make stdio/fprintf.c - prev stdio/stdhdr.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Iport -Isfio -Istdio -Iinclude -Istd -I${INSTALLROOT}/include -c ${<} + exec - compile ${<} -Iport -Isfio -Istdio -I${INSTALLROOT}/include + done + + make getdelim.o + make stdio/getdelim.c + prev stdio/stdhdr.h done - make fpurge.o - make stdio/fpurge.c - prev stdio/stdhdr.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Iport -Isfio -Istdio -Iinclude -Istd -I${INSTALLROOT}/include -c ${<} + exec - compile ${<} -Iport -Isfio -Istdio -I${INSTALLROOT}/include + done + + make getline.o + make stdio/getline.c + prev stdio/stdhdr.h done - make fputs.o - make stdio/fputs.c - prev stdio/stdhdr.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Iport -Isfio -Istdio -Iinclude -Istd -I${INSTALLROOT}/include -c ${<} + exec - compile ${<} -Iport -Isfio -Istdio -I${INSTALLROOT}/include + done + + make frexp.o + make comp/frexp.c + prev FEATURE/float + prev include/ast.h done - make fread.o - make stdio/fread.c - prev stdio/stdhdr.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Iport -Isfio -Istdio -Iinclude -Istd -I${INSTALLROOT}/include -c ${<} + exec - compile ${<} + done + + make frexpl.o + make comp/frexpl.c + prev FEATURE/float + prev include/ast.h done - make freopen.o - make stdio/freopen.c - prev stdio/stdhdr.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Iport -Isfio -Istdio -Iinclude -Istd -I${INSTALLROOT}/include -c ${<} - done - make fscanf.o - make stdio/fscanf.c - prev stdio/stdhdr.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Iport -Isfio -Istdio -Iinclude -Istd -I${INSTALLROOT}/include -c ${<} - done - make fseek.o - make stdio/fseek.c - prev stdio/stdhdr.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Iport -Isfio -Istdio -Iinclude -Istd -I${INSTALLROOT}/include -c ${<} - done - make fseeko.o - make stdio/fseeko.c - prev stdio/stdhdr.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Iport -Isfio -Istdio -Iinclude -Istd -I${INSTALLROOT}/include -c ${<} - done - make fsetpos.o - make stdio/fsetpos.c - prev stdio/stdhdr.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Iport -Isfio -Istdio -Iinclude -Istd -I${INSTALLROOT}/include -c ${<} - done - make ftell.o - make stdio/ftell.c - prev stdio/stdhdr.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Iport -Isfio -Istdio -Iinclude -Istd -I${INSTALLROOT}/include -c ${<} - done - make ftello.o - make stdio/ftello.c - prev stdio/stdhdr.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Iport -Isfio -Istdio -Iinclude -Istd -I${INSTALLROOT}/include -c ${<} - done - make fwrite.o - make stdio/fwrite.c - prev stdio/stdhdr.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Iport -Isfio -Istdio -Iinclude -Istd -I${INSTALLROOT}/include -c ${<} - done - make getw.o - make stdio/getw.c - prev stdio/stdhdr.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Iport -Isfio -Istdio -Iinclude -Istd -I${INSTALLROOT}/include -c ${<} - done - make pclose.o - make stdio/pclose.c - prev stdio/stdhdr.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Iport -Isfio -Istdio -Iinclude -Istd -I${INSTALLROOT}/include -c ${<} - done - make popen.o - make stdio/popen.c - prev stdio/stdhdr.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Iport -Isfio -Istdio -Iinclude -Istd -I${INSTALLROOT}/include -c ${<} - done - make printf.o - make stdio/printf.c - prev stdio/stdhdr.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Iport -Isfio -Istdio -Iinclude -Istd -I${INSTALLROOT}/include -c ${<} - done - make putchar.o - make stdio/putchar.c - prev stdio/stdhdr.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Iport -Isfio -Istdio -Iinclude -Istd -I${INSTALLROOT}/include -c ${<} - done - make puts.o - make stdio/puts.c - prev stdio/stdhdr.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Iport -Isfio -Istdio -Iinclude -Istd -I${INSTALLROOT}/include -c ${<} - done - make putw.o - make stdio/putw.c - prev stdio/stdhdr.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Iport -Isfio -Istdio -Iinclude -Istd -I${INSTALLROOT}/include -c ${<} - done - make rewind.o - make stdio/rewind.c - prev stdio/stdhdr.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Iport -Isfio -Istdio -Iinclude -Istd -I${INSTALLROOT}/include -c ${<} - done - make scanf.o - make stdio/scanf.c - prev stdio/stdhdr.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Iport -Isfio -Istdio -Iinclude -Istd -I${INSTALLROOT}/include -c ${<} - done - make setbuf.o - make stdio/setbuf.c - prev stdio/stdhdr.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Iport -Isfio -Istdio -Iinclude -Istd -I${INSTALLROOT}/include -c ${<} - done - make setbuffer.o - make stdio/setbuffer.c - prev stdio/stdhdr.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Iport -Isfio -Istdio -Iinclude -Istd -I${INSTALLROOT}/include -c ${<} - done - make setlinebuf.o - make stdio/setlinebuf.c - prev stdio/stdhdr.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Iport -Isfio -Istdio -Iinclude -Istd -I${INSTALLROOT}/include -c ${<} - done - make setvbuf.o - make stdio/setvbuf.c - prev stdio/stdhdr.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Iport -Isfio -Istdio -Iinclude -Istd -I${INSTALLROOT}/include -c ${<} - done - make snprintf.o - make stdio/snprintf.c - prev stdio/stdhdr.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Iport -Isfio -Istdio -Iinclude -Istd -I${INSTALLROOT}/include -c ${<} - done - make sprintf.o - make stdio/sprintf.c - prev stdio/stdhdr.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Iport -Isfio -Istdio -Iinclude -Istd -I${INSTALLROOT}/include -c ${<} - done - make sscanf.o - make stdio/sscanf.c - prev stdio/stdhdr.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Iport -Isfio -Istdio -Iinclude -Istd -I${INSTALLROOT}/include -c ${<} - done - make asprintf.o - make stdio/asprintf.c - prev stdio/stdhdr.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Iport -Isfio -Istdio -Iinclude -Istd -I${INSTALLROOT}/include -c ${<} - done - make vasprintf.o - make stdio/vasprintf.c - prev stdio/stdhdr.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Iport -Isfio -Istdio -Iinclude -Istd -I${INSTALLROOT}/include -c ${<} - done - make tmpfile.o - make stdio/tmpfile.c - prev stdio/stdhdr.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Iport -Isfio -Istdio -Iinclude -Istd -I${INSTALLROOT}/include -c ${<} - done - make ungetc.o - make stdio/ungetc.c - prev stdio/stdhdr.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Iport -Isfio -Istdio -Iinclude -Istd -I${INSTALLROOT}/include -c ${<} - done - make vfprintf.o - make stdio/vfprintf.c - prev stdio/stdhdr.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Iport -Isfio -Istdio -Iinclude -Istd -I${INSTALLROOT}/include -c ${<} - done - make vfscanf.o - make stdio/vfscanf.c - prev stdio/stdhdr.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Iport -Isfio -Istdio -Iinclude -Istd -I${INSTALLROOT}/include -c ${<} - done - make vprintf.o - make stdio/vprintf.c - prev stdio/stdhdr.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Iport -Isfio -Istdio -Iinclude -Istd -I${INSTALLROOT}/include -c ${<} - done - make vscanf.o - make stdio/vscanf.c - prev stdio/stdhdr.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Iport -Isfio -Istdio -Iinclude -Istd -I${INSTALLROOT}/include -c ${<} - done - make vsnprintf.o - make stdio/vsnprintf.c - prev stdio/stdhdr.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Iport -Isfio -Istdio -Iinclude -Istd -I${INSTALLROOT}/include -c ${<} - done - make vsprintf.o - make stdio/vsprintf.c - prev stdio/stdhdr.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Iport -Isfio -Istdio -Iinclude -Istd -I${INSTALLROOT}/include -c ${<} - done - make vsscanf.o - make stdio/vsscanf.c - prev stdio/stdhdr.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Iport -Isfio -Istdio -Iinclude -Istd -I${INSTALLROOT}/include -c ${<} - done - make _doprnt.o - make stdio/_doprnt.c - prev stdio/stdhdr.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Iport -Isfio -Istdio -Iinclude -Istd -I${INSTALLROOT}/include -c ${<} - done - make _doscan.o - make stdio/_doscan.c - prev stdio/stdhdr.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Iport -Isfio -Istdio -Iinclude -Istd -I${INSTALLROOT}/include -c ${<} - done - make _filbuf.o - make stdio/_filbuf.c - prev stdio/stdhdr.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Iport -Isfio -Istdio -Iinclude -Istd -I${INSTALLROOT}/include -c ${<} - done - make _flsbuf.o - make stdio/_flsbuf.c - prev stdio/stdhdr.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Iport -Isfio -Istdio -Iinclude -Istd -I${INSTALLROOT}/include -c ${<} - done - make _stdopen.o - make stdio/_stdopen.c - prev stdio/stdhdr.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Iport -Isfio -Istdio -Iinclude -Istd -I${INSTALLROOT}/include -c ${<} - done - make _stdprintf.o - make stdio/_stdprintf.c - prev stdio/stdhdr.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Iport -Isfio -Istdio -Iinclude -Istd -I${INSTALLROOT}/include -c ${<} - done - make _stdscanf.o - make stdio/_stdscanf.c - prev stdio/stdhdr.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Iport -Isfio -Istdio -Iinclude -Istd -I${INSTALLROOT}/include -c ${<} - done - make _stdsprnt.o - make stdio/_stdsprnt.c - prev stdio/stdhdr.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Iport -Isfio -Istdio -Iinclude -Istd -I${INSTALLROOT}/include -c ${<} - done - make _stdvbuf.o - make stdio/_stdvbuf.c - prev stdio/stdhdr.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Iport -Isfio -Istdio -Iinclude -Istd -I${INSTALLROOT}/include -c ${<} - done - make _stdvsnprnt.o - make stdio/_stdvsnprnt.c - prev stdio/stdhdr.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Iport -Isfio -Istdio -Iinclude -Istd -I${INSTALLROOT}/include -c ${<} - done - make _stdvsprnt.o - make stdio/_stdvsprnt.c - prev stdio/stdhdr.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Iport -Isfio -Istdio -Iinclude -Istd -I${INSTALLROOT}/include -c ${<} - done - make _stdvsscn.o - make stdio/_stdvsscn.c - prev stdio/stdhdr.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Iport -Isfio -Istdio -Iinclude -Istd -I${INSTALLROOT}/include -c ${<} - done - make fgetwc.o - make stdio/fgetwc.c - prev stdio/stdhdr.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Iport -Isfio -Istdio -Iinclude -Istd -I${INSTALLROOT}/include -c ${<} - done - make fwprintf.o - make stdio/fwprintf.c - prev stdio/stdhdr.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Iport -Isfio -Istdio -Iinclude -Istd -I${INSTALLROOT}/include -c ${<} - done - make putwchar.o - make stdio/putwchar.c - prev ast_wchar.h - prev stdio/stdhdr.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Iport -Isfio -Istdio -Iinclude -Istd -I${INSTALLROOT}/include -c ${<} - done - make vfwscanf.o - make stdio/vfwscanf.c - prev stdio/stdhdr.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Iport -Isfio -Istdio -Iinclude -Istd -I${INSTALLROOT}/include -c ${<} - done - make wprintf.o - make stdio/wprintf.c - prev stdio/stdhdr.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Iport -Isfio -Istdio -Iinclude -Istd -I${INSTALLROOT}/include -c ${<} - done - make fgetws.o - make stdio/fgetws.c - prev stdio/stdhdr.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Iport -Isfio -Istdio -Iinclude -Istd -I${INSTALLROOT}/include -c ${<} - done - make fwscanf.o - make stdio/fwscanf.c - prev stdio/stdhdr.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Iport -Isfio -Istdio -Iinclude -Istd -I${INSTALLROOT}/include -c ${<} - done - make swprintf.o - make stdio/swprintf.c - prev stdio/stdhdr.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Iport -Isfio -Istdio -Iinclude -Istd -I${INSTALLROOT}/include -c ${<} - done - make vswprintf.o - make stdio/vswprintf.c - prev stdio/stdhdr.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Iport -Isfio -Istdio -Iinclude -Istd -I${INSTALLROOT}/include -c ${<} - done - make wscanf.o - make stdio/wscanf.c - prev stdio/stdhdr.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Iport -Isfio -Istdio -Iinclude -Istd -I${INSTALLROOT}/include -c ${<} - done - make fputwc.o - make stdio/fputwc.c - prev stdio/stdhdr.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Iport -Isfio -Istdio -Iinclude -Istd -I${INSTALLROOT}/include -c ${<} - done - make getwc.o - make stdio/getwc.c - prev ast_wchar.h - prev stdio/stdhdr.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Iport -Isfio -Istdio -Iinclude -Istd -I${INSTALLROOT}/include -c ${<} - done - make swscanf.o - make stdio/swscanf.c - prev stdio/stdhdr.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Iport -Isfio -Istdio -Iinclude -Istd -I${INSTALLROOT}/include -c ${<} - done - make vswscanf.o - make stdio/vswscanf.c - prev stdio/stdhdr.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Iport -Isfio -Istdio -Iinclude -Istd -I${INSTALLROOT}/include -c ${<} - done - make fputws.o - make stdio/fputws.c - prev stdio/stdhdr.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Iport -Isfio -Istdio -Iinclude -Istd -I${INSTALLROOT}/include -c ${<} - done - make getwchar.o - make stdio/getwchar.c - prev ast_wchar.h - prev stdio/stdhdr.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Iport -Isfio -Istdio -Iinclude -Istd -I${INSTALLROOT}/include -c ${<} - done - make ungetwc.o - make stdio/ungetwc.c - prev stdio/stdhdr.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Iport -Isfio -Istdio -Iinclude -Istd -I${INSTALLROOT}/include -c ${<} - done - make vwprintf.o - make stdio/vwprintf.c - prev stdio/stdhdr.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Iport -Isfio -Istdio -Iinclude -Istd -I${INSTALLROOT}/include -c ${<} - done - make fwide.o - make stdio/fwide.c - prev stdio/stdhdr.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Iport -Isfio -Istdio -Iinclude -Istd -I${INSTALLROOT}/include -c ${<} - done - make putwc.o - make stdio/putwc.c - prev ast_wchar.h - prev stdio/stdhdr.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Iport -Isfio -Istdio -Iinclude -Istd -I${INSTALLROOT}/include -c ${<} - done - make vfwprintf.o - make stdio/vfwprintf.c - prev stdio/stdhdr.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Iport -Isfio -Istdio -Iinclude -Istd -I${INSTALLROOT}/include -c ${<} - done - make vwscanf.o - make stdio/vwscanf.c - prev stdio/stdhdr.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Iport -Isfio -Istdio -Iinclude -Istd -I${INSTALLROOT}/include -c ${<} - done - make stdio_c99.o - make stdio/stdio_c99.c - prev stdio/stdhdr.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Iport -Isfio -Istdio -Iinclude -Istd -I${INSTALLROOT}/include -c ${<} - done - make fcloseall.o - make stdio/fcloseall.c - prev stdio/stdhdr.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Iport -Isfio -Istdio -Iinclude -Istd -I${INSTALLROOT}/include -c ${<} - done - make fmemopen.o - make stdio/fmemopen.c - prev stdio/stdhdr.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Iport -Isfio -Istdio -Iinclude -Istd -I${INSTALLROOT}/include -c ${<} - done - make getdelim.o - make stdio/getdelim.c - prev stdio/stdhdr.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Iport -Isfio -Istdio -Iinclude -Istd -I${INSTALLROOT}/include -c ${<} - done - make getline.o - make stdio/getline.c - prev stdio/stdhdr.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Iport -Isfio -Istdio -Iinclude -Istd -I${INSTALLROOT}/include -c ${<} + exec - compile ${<} + done + + make astcopy.o + make port/astcopy.c + prev include/ls.h + prev ast_mmap.h + prev include/ast.h + done + exec - compile ${<} + done + + make astconf.o + make port/astconf.c + make FEATURE/libpath implicit + prev features/libpath.sh + exec - invoke_iffe ${<} + done + prev conftab.h + prev include/ls.h + prev include/proc.h + prev include/regex.h + prev include/error.h + prev include/ast.h + prev misc/univlib.h + done + exec - compile ${<} -Imisc -DCONF_LIBSUFFIX=\""${mam_cc_SUFFIX_DYNAMIC-${mam_cc_SUFFIX_SHARED}}"\" -DCONF_LIBPREFIX=\""${mam_cc_PREFIX_DYNAMIC-${mam_cc_PREFIX_SHARED}}"\" -DHOSTTYPE=\""${mam_cc_HOSTTYPE}"\" + done + + make astdynamic.o + make port/astdynamic.c + prev sfio/sfhdr.h + prev include/ast_windows.h + prev include/ast.h + prev include/sfio_t.h + done + exec - compile ${<} -Iport -Isfio -I${INSTALLROOT}/include + done + + make astquery.o + make port/astquery.c + prev include/error.h + prev include/ast.h done - make frexp.o - make comp/frexp.c - prev FEATURE/float - prev include/ast.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Iinclude -Istd -c ${<} + exec - compile ${<} + done + + make astwinsize.o + make port/astwinsize.c + prev ast_tty.h + prev include/ast.h done - make frexpl.o - make comp/frexpl.c - prev FEATURE/float - prev include/ast.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Iinclude -Istd -c ${<} + exec - compile ${<} + done + + make conftab.o + make conftab.c + prev conftab.h + prev FEATURE/param + prev FEATURE/common + prev FEATURE/standards + done + exec - compile ${<} + done + + make aststatic.o + make port/aststatic.c + prev include/ast.h done - make astcopy.o - make port/astcopy.c - prev include/ls.h - make ast_mmap.h implicit - prev FEATURE/mmap - exec - cp -f ${<} ${@} + exec - compile ${<} + done + + make getopt.o + make comp/getopt.c + prev include/option.h + prev include/error.h + prev include/ast.h + done + exec - compile ${<} + done + + make getoptl.o + make comp/getoptl.c + prev comp/getopt.h + prev include/option.h + prev include/error.h + prev include/ast_getopt.h + prev include/ast.h + done + exec - compile ${<} + done + + make aso.o + make aso/aso.c + prev std/stdio.h + prev FEATURE/aso + make aso/asohdr.h implicit + prev include/aso.h + make FEATURE/asometh implicit + prev features/asometh + exec - invoke_iffe ${<} done - prev include/ast.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Iinclude -Istd -c ${<} - done - make astconf.o - make port/astconf.c - make FEATURE/libpath implicit - prev features/libpath.sh - exec - iffe ${IFFEFLAGS} -v -X ast -X std -c "${CC} ${mam_cc_FLAGS} ${CCFLAGS} ${LDFLAGS}" run ${<} + make include/fnv.h implicit + prev ast_common.h done - prev conftab.h - prev include/ls.h - prev include/proc.h - prev include/regex.h - prev include/error.h - prev include/ast.h - prev misc/univlib.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Imisc -Iinclude -Istd -D__OBSOLETE__=20120101 -DCONF_LIBSUFFIX=\""${mam_cc_SUFFIX_DYNAMIC-${mam_cc_SUFFIX_SHARED}}"\" -DCONF_LIBPREFIX=\""${mam_cc_PREFIX_DYNAMIC-${mam_cc_PREFIX_SHARED}}"\" -DHOSTTYPE=\""${mam_cc_HOSTTYPE}"\" -c ${<} - done - make astdynamic.o - make port/astdynamic.c - prev sfio/sfhdr.h - prev include/ast_windows.h - prev include/ast.h - prev include/sfio_t.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Iport -Isfio -Iinclude -Istd -I${INSTALLROOT}/include -c ${<} - done - make astquery.o - make port/astquery.c prev include/error.h prev include/ast.h done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Iinclude -Istd -c ${<} - done - make astwinsize.o - make port/astwinsize.c - prev jioctl.h implicit dontcare virtual - prev ast_tty.h - prev include/ast.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Iinclude -Istd -c ${<} - done - make conftab.o - make conftab.c - prev conftab.h - prev FEATURE/param - prev FEATURE/common - prev FEATURE/standards - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Iinclude -Istd -c ${<} done - make aststatic.o - make port/aststatic.c - prev include/ast.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Iinclude -Istd -c ${<} - done - make getopt.o - make comp/getopt.c - prev include/option.h - prev include/error.h - prev include/ast.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Iinclude -Istd -c ${<} - done - make getoptl.o - make comp/getoptl.c - prev comp/getopt.h - prev include/option.h - prev include/error.h - prev include/ast_getopt.h - prev include/ast.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Iinclude -Istd -c ${<} - done - make aso.o - make aso/aso.c - prev std/stdio.h - prev FEATURE/aso - make aso/asohdr.h implicit - prev include/aso.h - make FEATURE/asometh implicit - prev features/asometh - exec - iffe ${IFFEFLAGS} -v -X ast -X std -c "${CC} ${mam_cc_FLAGS} ${CCFLAGS} ${LDFLAGS}" run ${<} - done - make include/fnv.h implicit - prev ast_common.h - done - prev include/error.h - prev include/ast.h - done - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Iaso -Icomp -Iinclude -Istd -c ${<} - done - make asolock.o - make aso/asolock.c - prev aso/asohdr.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Iaso -Icomp -Iinclude -Istd -c ${<} + exec - compile ${<} -Iaso + done + + make asolock.o + make aso/asolock.c + prev aso/asohdr.h done - make asometh.o - make aso/asometh.c - prev aso/asohdr.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Iaso -Icomp -Iinclude -Istd -c ${<} + exec - compile ${<} -Iaso + done + + make asometh.o + make aso/asometh.c + prev aso/asohdr.h done - make asorelax.o - make aso/asorelax.c - prev tv.h - prev aso/asohdr.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Iaso -Icomp -Iinclude -Istd -c ${<} + exec - compile ${<} -Iaso + done + + make asorelax.o + make aso/asorelax.c + prev tv.h + prev aso/asohdr.h done - make aso-sem.o - make aso/aso-sem.c - prev aso/asohdr.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Iaso -Icomp -Iinclude -Istd -c ${<} + exec - compile ${<} -Iaso + done + + make aso-sem.o + make aso/aso-sem.c + prev aso/asohdr.h done - make aso-fcntl.o - make aso/aso-fcntl.c - prev aso/asohdr.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Iaso -Icomp -Iinclude -Istd -c ${<} + exec - compile ${<} -Iaso + done + + make aso-fcntl.o + make aso/aso-fcntl.c + prev aso/asohdr.h done - make vmbest.o - make vmalloc/vmbest.c - prev windows.h + exec - compile ${<} -Iaso + done + + make vmbest.o + make vmalloc/vmbest.c + prev include/ast_windows.h + make vmalloc/vmhdr.h implicit + prev include/vmalloc.h prev include/ast_windows.h - make vmalloc/vmhdr.h implicit dontcare - prev include/vmalloc.h - prev include/ast_windows.h - prev include/aso.h - prev FEATURE/vmalloc - prev ast_common.h - prev include/ast.h - done - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Ivmalloc -Iinclude -Istd -c ${<} - done - make vmclear.o - make vmalloc/vmclear.c - prev vmalloc/vmhdr.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Ivmalloc -Iinclude -Istd -c ${<} - done - make vmclose.o - make vmalloc/vmclose.c - prev vmalloc/vmhdr.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Ivmalloc -Iinclude -Istd -c ${<} - done - make vmdcheap.o - make vmalloc/vmdcheap.c - prev vmalloc/vmhdr.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Ivmalloc -Iinclude -Istd -c ${<} - done - make vmdebug.o - make vmalloc/vmdebug.c - prev vmalloc/vmhdr.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Ivmalloc -Iinclude -Istd -c ${<} - done - make vmdisc.o - make vmalloc/vmdisc.c - prev vmalloc/vmhdr.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Ivmalloc -Iinclude -Istd -c ${<} - done - make vmlast.o - make vmalloc/vmlast.c - prev vmalloc/vmhdr.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Ivmalloc -Iinclude -Istd -c ${<} - done - make vmopen.o - make vmalloc/vmopen.c - prev vmalloc/vmhdr.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Ivmalloc -Iinclude -Istd -c ${<} - done - make vmpool.o - make vmalloc/vmpool.c - prev vmalloc/vmhdr.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Ivmalloc -Iinclude -Istd -c ${<} - done - make vmprivate.o - make vmalloc/vmprivate.c - prev vmalloc/vmhdr.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Ivmalloc -Iinclude -Istd -c ${<} - done - make vmprofile.o - make vmalloc/vmprofile.c - prev vmalloc/vmhdr.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Ivmalloc -Iinclude -Istd -c ${<} - done - make vmregion.o - make vmalloc/vmregion.c - prev vmalloc/vmhdr.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Ivmalloc -Iinclude -Istd -c ${<} - done - make vmsegment.o - make vmalloc/vmsegment.c - prev vmalloc/vmhdr.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Ivmalloc -Iinclude -Istd -c ${<} - done - make vmset.o - make vmalloc/vmset.c - prev vmalloc/vmhdr.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Ivmalloc -Iinclude -Istd -c ${<} - done - make vmstat.o - make vmalloc/vmstat.c - prev vmalloc/vmhdr.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Ivmalloc -Iinclude -Istd -c ${<} - done - make vmstrdup.o - make vmalloc/vmstrdup.c - prev vmalloc/vmhdr.h + prev include/aso.h + prev FEATURE/vmalloc + prev ast_common.h + prev include/ast.h done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Ivmalloc -Iinclude -Istd -c ${<} done - make vmtrace.o - make vmalloc/vmtrace.c - prev vmalloc/vmhdr.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Ivmalloc -Iinclude -Istd -c ${<} + exec - compile ${<} -Ivmalloc + done + + make vmclear.o + make vmalloc/vmclear.c + prev vmalloc/vmhdr.h done - make vmwalk.o - make vmalloc/vmwalk.c - prev vmalloc/vmhdr.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Ivmalloc -Iinclude -Istd -c ${<} + exec - compile ${<} -Ivmalloc + done + + make vmclose.o + make vmalloc/vmclose.c + prev vmalloc/vmhdr.h done - make vmmopen.o - make vmalloc/vmmopen.c - prev std/stdio.h - prev vmalloc/vmhdr.h - prev FEATURE/vmalloc - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Ivmalloc -Iinclude -Istd -c ${<} + exec - compile ${<} -Ivmalloc + done + + make vmdcheap.o + make vmalloc/vmdcheap.c + prev vmalloc/vmhdr.h done - make malloc.o - make vmalloc/malloc.c - prev include/ast_windows.h - prev std/stdio.h - prev vmalloc/vmhdr.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Ivmalloc -Iinclude -Istd -c ${<} + exec - compile ${<} -Ivmalloc + done + + make vmdebug.o + make vmalloc/vmdebug.c + prev vmalloc/vmhdr.h done - make vmgetmem.o - make vmalloc/vmgetmem.c - prev include/vmalloc.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Iinclude -Istd -c ${<} - done - exec - if test -f ${@} - exec - then ${AR} rc ${@} ${?} # add changed *.o - exec - else ${AR} rc ${@} ${^} # add all *.o - exec - fi || exit - exec - (ranlib ${@}) >/dev/null 2>&1 || true - done libast.a - done ast - prev libast.a - make ${INSTALLROOT}/lib - exec - mkdir -p ${@} - done - make ${INSTALLROOT}/lib/libast.a - prev libast.a - exec - cp -f ${<} ${@} || exit - exec - (ranlib ${@}) >/dev/null 2>&1 || true - done - make ${INSTALLROOT}/man/man3 - exec - mkdir -p ${@} - done - make ${INSTALLROOT}/man/man3/LIBAST.3 - prev man/LIBAST.3 - exec - cp -f ${<} ${@} - done - make ${INSTALLROOT}/man/man3/aso.3 - prev man/aso.3 - exec - cp -f ${<} ${@} - done - make ${INSTALLROOT}/man/man3/ast.3 - prev man/ast.3 - exec - cp -f ${<} ${@} - done - make ${INSTALLROOT}/man/man3/cdt.3 - prev man/cdt.3 - exec - cp -f ${<} ${@} - done - make ${INSTALLROOT}/man/man3/chr.3 - prev man/chr.3 - exec - cp -f ${<} ${@} - done - make ${INSTALLROOT}/man/man3/compat.3 - prev man/compat.3 - exec - cp -f ${<} ${@} - done - make ${INSTALLROOT}/man/man3/error.3 - prev man/error.3 - exec - cp -f ${<} ${@} - done - make ${INSTALLROOT}/man/man3/find.3 - prev man/find.3 - exec - cp -f ${<} ${@} - done - make ${INSTALLROOT}/man/man3/fmt.3 - prev man/fmt.3 - exec - cp -f ${<} ${@} - done - make ${INSTALLROOT}/man/man3/fmtls.3 - prev man/fmtls.3 - exec - cp -f ${<} ${@} - done - make ${INSTALLROOT}/man/man3/ftwalk.3 - prev man/ftwalk.3 - exec - cp -f ${<} ${@} - done - make ${INSTALLROOT}/man/man3/getcwd.3 - prev man/getcwd.3 - exec - cp -f ${<} ${@} - done - make ${INSTALLROOT}/man/man3/hash.3 - prev man/hash.3 - exec - cp -f ${<} ${@} - done - make ${INSTALLROOT}/man/man3/iblocks.3 - prev man/iblocks.3 - exec - cp -f ${<} ${@} - done - make ${INSTALLROOT}/man/man3/int.3 - prev man/int.3 - exec - cp -f ${<} ${@} - done - make ${INSTALLROOT}/man/man3/ip6.3 - prev man/ip6.3 - exec - cp -f ${<} ${@} - done - make ${INSTALLROOT}/man/man3/magic.3 - prev man/magic.3 - exec - cp -f ${<} ${@} - done - make ${INSTALLROOT}/man/man3/mem.3 - prev man/mem.3 - exec - cp -f ${<} ${@} - done - make ${INSTALLROOT}/man/man3/mime.3 - prev man/mime.3 - exec - cp -f ${<} ${@} - done - make ${INSTALLROOT}/man/man3/modecanon.3 - prev man/modecanon.3 - exec - cp -f ${<} ${@} - done - make ${INSTALLROOT}/man/man3/optget.3 - prev man/optget.3 - exec - cp -f ${<} ${@} - done - make ${INSTALLROOT}/man/man3/path.3 - prev man/path.3 - exec - cp -f ${<} ${@} - done - make ${INSTALLROOT}/man/man3/proc.3 - prev man/proc.3 - exec - cp -f ${<} ${@} - done - make ${INSTALLROOT}/man/man3/re.3 - prev man/re.3 - exec - cp -f ${<} ${@} - done - make ${INSTALLROOT}/man/man3/regex.3 - prev man/regex.3 - exec - cp -f ${<} ${@} - done - make ${INSTALLROOT}/man/man3/setenviron.3 - prev man/setenviron.3 - exec - cp -f ${<} ${@} - done - make ${INSTALLROOT}/man/man3/sfio.3 - prev man/sfio.3 - exec - cp -f ${<} ${@} - done - make ${INSTALLROOT}/man/man3/sig.3 - prev man/sig.3 - exec - cp -f ${<} ${@} - done - make ${INSTALLROOT}/man/man3/spawnveg.3 - prev man/spawnveg.3 - exec - cp -f ${<} ${@} - done - make ${INSTALLROOT}/man/man3/stk.3 - prev man/stk.3 - exec - cp -f ${<} ${@} - done - make ${INSTALLROOT}/man/man3/strcopy.3 - prev man/strcopy.3 - exec - cp -f ${<} ${@} - done - make ${INSTALLROOT}/man/man3/strdup.3 - prev man/strdup.3 - exec - cp -f ${<} ${@} - done - make ${INSTALLROOT}/man/man3/strelapsed.3 - prev man/strelapsed.3 - exec - cp -f ${<} ${@} - done - make ${INSTALLROOT}/man/man3/strerror.3 - prev man/strerror.3 - exec - cp -f ${<} ${@} - done - make ${INSTALLROOT}/man/man3/stresc.3 - prev man/stresc.3 - exec - cp -f ${<} ${@} - done - make ${INSTALLROOT}/man/man3/streval.3 - prev man/streval.3 - exec - cp -f ${<} ${@} - done - make ${INSTALLROOT}/man/man3/strgid.3 - prev man/strgid.3 - exec - cp -f ${<} ${@} - done - make ${INSTALLROOT}/man/man3/strmatch.3 - prev man/strmatch.3 - exec - cp -f ${<} ${@} - done - make ${INSTALLROOT}/man/man3/stropt.3 - prev man/stropt.3 - exec - cp -f ${<} ${@} - done - make ${INSTALLROOT}/man/man3/strperm.3 - prev man/strperm.3 - exec - cp -f ${<} ${@} - done - make ${INSTALLROOT}/man/man3/strsignal.3 - prev man/strsignal.3 - exec - cp -f ${<} ${@} - done - make ${INSTALLROOT}/man/man3/strsort.3 - prev man/strsort.3 - exec - cp -f ${<} ${@} - done - make ${INSTALLROOT}/man/man3/strtape.3 - prev man/strtape.3 - exec - cp -f ${<} ${@} - done - make ${INSTALLROOT}/man/man3/strton.3 - prev man/strton.3 - exec - cp -f ${<} ${@} - done - make ${INSTALLROOT}/man/man3/struid.3 - prev man/struid.3 - exec - cp -f ${<} ${@} - done - make ${INSTALLROOT}/man/man3/swap.3 - prev man/swap.3 - exec - cp -f ${<} ${@} - done - make ${INSTALLROOT}/man/man3/tab.3 - prev man/tab.3 - exec - cp -f ${<} ${@} - done - make ${INSTALLROOT}/man/man3/tm.3 - prev man/tm.3 - exec - cp -f ${<} ${@} - done - make ${INSTALLROOT}/man/man3/tmx.3 - prev man/tmx.3 - exec - cp -f ${<} ${@} - done - make ${INSTALLROOT}/man/man3/tok.3 - prev man/tok.3 - exec - cp -f ${<} ${@} - done - make ${INSTALLROOT}/man/man3/touch.3 - prev man/touch.3 - exec - cp -f ${<} ${@} - done - make ${INSTALLROOT}/man/man3/tv.3 - prev man/tv.3 - exec - cp -f ${<} ${@} - done - make ${INSTALLROOT}/man/man3/vecargs.3 - prev man/vecargs.3 - exec - cp -f ${<} ${@} - done - make ${INSTALLROOT}/man/man3/vmalloc.3 - prev man/vmalloc.3 - exec - cp -f ${<} ${@} + exec - compile ${<} -Ivmalloc + done + + make vmdisc.o + make vmalloc/vmdisc.c + prev vmalloc/vmhdr.h + done + exec - compile ${<} -Ivmalloc + done + + make vmlast.o + make vmalloc/vmlast.c + prev vmalloc/vmhdr.h + done + exec - compile ${<} -Ivmalloc + done + + make vmopen.o + make vmalloc/vmopen.c + prev vmalloc/vmhdr.h + done + exec - compile ${<} -Ivmalloc + done + + make vmpool.o + make vmalloc/vmpool.c + prev vmalloc/vmhdr.h + done + exec - compile ${<} -Ivmalloc + done + + make vmprivate.o + make vmalloc/vmprivate.c + prev vmalloc/vmhdr.h + done + exec - compile ${<} -Ivmalloc + done + + make vmprofile.o + make vmalloc/vmprofile.c + prev vmalloc/vmhdr.h + done + exec - compile ${<} -Ivmalloc + done + + make vmregion.o + make vmalloc/vmregion.c + prev vmalloc/vmhdr.h + done + exec - compile ${<} -Ivmalloc + done + + make vmsegment.o + make vmalloc/vmsegment.c + prev vmalloc/vmhdr.h + done + exec - compile ${<} -Ivmalloc + done + + make vmset.o + make vmalloc/vmset.c + prev vmalloc/vmhdr.h + done + exec - compile ${<} -Ivmalloc + done + + make vmstat.o + make vmalloc/vmstat.c + prev vmalloc/vmhdr.h + done + exec - compile ${<} -Ivmalloc + done + + make vmstrdup.o + make vmalloc/vmstrdup.c + prev vmalloc/vmhdr.h + done + exec - compile ${<} -Ivmalloc + done + + make vmtrace.o + make vmalloc/vmtrace.c + prev vmalloc/vmhdr.h + done + exec - compile ${<} -Ivmalloc + done + + make vmwalk.o + make vmalloc/vmwalk.c + prev vmalloc/vmhdr.h + done + exec - compile ${<} -Ivmalloc + done + + make vmmopen.o + make vmalloc/vmmopen.c + prev std/stdio.h + prev vmalloc/vmhdr.h + prev FEATURE/vmalloc + done + exec - compile ${<} -Ivmalloc + done + + make malloc.o + make vmalloc/malloc.c + prev include/ast_windows.h + prev std/stdio.h + prev vmalloc/vmhdr.h + done + exec - compile ${<} -Ivmalloc + done + + make vmgetmem.o + make vmalloc/vmgetmem.c + prev include/vmalloc.h + done + exec - compile ${<} + done + + note * + note * Link the library + note * + + exec - if test -f ${@} + exec - then ${AR} rc ${@} ${?} # add changed *.o + exec - else ${AR} rc ${@} ${^} # add all *.o + exec - fi || exit + exec - ranlib ${@} >/dev/null 2>&1 || true + done libast.a + + note * + note * pre-install libast in $INSTALLROOT + note * + + prev libast.a + + note * ensure preinstallation directories exist + loop DIR include/ast lib/lib lib/file man/man3 + make ${INSTALLROOT}/${DIR} + exec - mkdir -p ${@} + done done - make ${INSTALLROOT}/lib/lib - exec - mkdir -p ${@} + + note * the library and dependency information + make ${INSTALLROOT}/lib/libast.a + prev libast.a + exec - cp -f ${<} ${@} || exit + exec - ranlib ${@} >/dev/null 2>&1 || true done make ${INSTALLROOT}/lib/lib/ast prev ast.req exec - cp -f ${<} ${@} done - make ${INSTALLROOT}/include/ast - exec - mkdir -p ${@} - done - make ${INSTALLROOT}/include/ast/ast_common.h - prev ast_common.h - exec - cp -f ${<} ${@} - done - make ${INSTALLROOT}/include/ast/ast.h - prev include/ast.h - exec - cp -f ${<} ${@} - done - make ${INSTALLROOT}/include/ast/ast_dir.h - prev include/ast_dir.h - exec - cp -f ${<} ${@} - done - make ${INSTALLROOT}/include/ast/ast_getopt.h - prev include/ast_getopt.h - exec - cp -f ${<} ${@} - done - make ${INSTALLROOT}/include/ast/ast_std.h - prev include/ast_std.h - exec - cp -f ${<} ${@} - done - make ${INSTALLROOT}/include/ast/ast_windows.h - prev include/ast_windows.h - exec - cp -f ${<} ${@} - done - make ${INSTALLROOT}/include/ast/ccode.h - prev include/ccode.h - exec - cp -f ${<} ${@} - done - make ${INSTALLROOT}/include/ast/cdt.h - prev include/cdt.h - exec - cp -f ${<} ${@} - done - make ${INSTALLROOT}/include/ast/cdtlib.h - prev cdt/cdtlib.h - exec - cp -f ${<} ${@} - done - make ${INSTALLROOT}/include/ast/cmdarg.h - prev include/cmdarg.h - exec - cp -f ${<} ${@} - done - make ${INSTALLROOT}/include/ast/debug.h - prev include/debug.h - exec - cp -f ${<} ${@} - done - make ${INSTALLROOT}/include/ast/dt.h - prev include/dt.h - exec - cp -f ${<} ${@} - done - make ${INSTALLROOT}/include/ast/error.h - prev include/error.h - exec - cp -f ${<} ${@} - done - make ${INSTALLROOT}/include/ast/find.h - prev include/find.h - exec - cp -f ${<} ${@} - done - make ${INSTALLROOT}/include/ast/ftw.h - prev comp/ftw.h - exec - cp -f ${<} ${@} - done - make ${INSTALLROOT}/include/ast/ftwalk.h - prev include/ftwalk.h - exec - cp -f ${<} ${@} - done - make ${INSTALLROOT}/include/ast/fts.h - prev include/fts.h - exec - cp -f ${<} ${@} - done - make ${INSTALLROOT}/include/ast/getopt.h - prev comp/getopt.h - exec - cp -f ${<} ${@} - done - make ${INSTALLROOT}/include/ast/glob.h - prev include/glob.h - exec - cp -f ${<} ${@} - done - make ${INSTALLROOT}/include/ast/hash.h - prev include/hash.h - exec - cp -f ${<} ${@} - done - make ${INSTALLROOT}/include/ast/hashkey.h - prev include/hashkey.h - exec - cp -f ${<} ${@} - done - make ${INSTALLROOT}/include/ast/hashpart.h - prev include/hashpart.h - exec - cp -f ${<} ${@} - done - make ${INSTALLROOT}/include/ast/ip6.h - prev include/ip6.h - exec - cp -f ${<} ${@} - done - make ${INSTALLROOT}/include/ast/lc.h - prev lc.h - exec - cp -f ${<} ${@} - done - make ${INSTALLROOT}/include/ast/ls.h - prev include/ls.h - exec - cp -f ${<} ${@} - done - make ${INSTALLROOT}/include/ast/magic.h - prev include/magic.h - exec - cp -f ${<} ${@} - done - make ${INSTALLROOT}/include/ast/mc.h - prev include/mc.h - exec - cp -f ${<} ${@} - done - make ${INSTALLROOT}/include/ast/mime.h - prev include/mime.h - exec - cp -f ${<} ${@} - done - make ${INSTALLROOT}/include/ast/mnt.h - prev include/mnt.h - exec - cp -f ${<} ${@} - done - make ${INSTALLROOT}/include/ast/modecanon.h - prev include/modecanon.h - exec - cp -f ${<} ${@} - done - make ${INSTALLROOT}/include/ast/modex.h - prev include/modex.h - exec - cp -f ${<} ${@} - done - make ${INSTALLROOT}/include/ast/namval.h - prev include/namval.h - exec - cp -f ${<} ${@} - done - make ${INSTALLROOT}/include/ast/option.h - prev include/option.h - exec - cp -f ${<} ${@} - done - make ${INSTALLROOT}/include/ast/proc.h - prev include/proc.h - exec - cp -f ${<} ${@} - done - make ${INSTALLROOT}/include/ast/re_comp.h - prev comp/re_comp.h - exec - cp -f ${<} ${@} - done - make ${INSTALLROOT}/include/ast/recfmt.h - prev include/recfmt.h - exec - cp -f ${<} ${@} - done - make ${INSTALLROOT}/include/ast/regex.h - prev include/regex.h - exec - cp -f ${<} ${@} - done - make ${INSTALLROOT}/include/ast/regexp.h - prev comp/regexp.h - exec - cp -f ${<} ${@} - done - make ${INSTALLROOT}/include/ast/sfio.h - prev include/sfio.h - exec - cp -f ${<} ${@} - done - make ${INSTALLROOT}/include/ast/sfio_s.h - prev include/sfio_s.h - exec - cp -f ${<} ${@} - done - make ${INSTALLROOT}/include/ast/sfio_t.h - prev include/sfio_t.h - exec - cp -f ${<} ${@} - done - make ${INSTALLROOT}/include/ast/sfdisc.h - prev include/sfdisc.h - exec - cp -f ${<} ${@} - done - make ${INSTALLROOT}/include/ast/shcmd.h - prev include/shcmd.h - exec - cp -f ${<} ${@} - done - make ${INSTALLROOT}/include/ast/stk.h - prev include/stk.h - exec - cp -f ${<} ${@} - done - make ${INSTALLROOT}/include/ast/swap.h - prev include/swap.h - exec - cp -f ${<} ${@} - done - make ${INSTALLROOT}/include/ast/tar.h - prev include/tar.h - exec - cp -f ${<} ${@} - done - make ${INSTALLROOT}/include/ast/times.h - prev include/times.h - exec - cp -f ${<} ${@} - done - make ${INSTALLROOT}/include/ast/tm.h - prev include/tm.h - exec - cp -f ${<} ${@} - done - make ${INSTALLROOT}/include/ast/tok.h - prev include/tok.h - exec - cp -f ${<} ${@} - done - make ${INSTALLROOT}/include/ast/usage.h - prev include/usage.h - exec - cp -f ${<} ${@} - done - make ${INSTALLROOT}/include/ast/vdb.h - prev include/vdb.h - exec - cp -f ${<} ${@} - done - make ${INSTALLROOT}/include/ast/vecargs.h - prev include/vecargs.h - exec - cp -f ${<} ${@} - done - make ${INSTALLROOT}/include/ast/vmalloc.h - prev include/vmalloc.h - exec - cp -f ${<} ${@} - done - make ${INSTALLROOT}/include/ast/wait.h - prev include/wait.h - exec - cp -f ${<} ${@} - done - make ${INSTALLROOT}/include/ast/wordexp.h - prev comp/wordexp.h - exec - cp -f ${<} ${@} - done - make ${INSTALLROOT}/include/ast/bytesex.h - prev std/bytesex.h - exec - cp -f ${<} ${@} - done - make ${INSTALLROOT}/include/ast/endian.h - prev std/endian.h - exec - cp -f ${<} ${@} - done - make ${INSTALLROOT}/include/ast/fnmatch.h - prev comp/fnmatch.h - exec - cp -f ${<} ${@} - done - make ${INSTALLROOT}/include/ast/magicid.h - make include/magicid.h - prev ast_common.h + + note * section 3 manual pages + loop SECT3MAN LIBAST aso ast cdt chr compat error find fmt fmtls ftwalk getcwd hash iblocks int ip6 magic mem mime modecanon optget path proc re regex setenviron sfio sig spawnveg stk strcopy strdup strelapsed strerror stresc streval strgid strmatch stropt strperm strsignal strsort strtape strton struid swap tab tm tmx tok touch tv vecargs vmalloc + make ${INSTALLROOT}/man/man3/${SECT3MAN}.3 + prev man/${SECT3MAN}.3 + exec - cp -f ${<} ${@} done - exec - cp -f ${<} ${@} - done - make ${INSTALLROOT}/include/ast/fnv.h - prev include/fnv.h - exec - cp -f ${<} ${@} - done - make ${INSTALLROOT}/include/ast/aso.h - prev include/aso.h - exec - cp -f ${<} ${@} - done - make ${INSTALLROOT}/include/ast/dirent.h - prev std/dirent.h - exec - cp -f ${<} ${@} - done - make ${INSTALLROOT}/include/ast/iconv.h - prev std/iconv.h - exec - cp -f ${<} ${@} - done - make ${INSTALLROOT}/include/ast/nl_types.h - prev std/nl_types.h - exec - cp -f ${<} ${@} - done - make ${INSTALLROOT}/include/ast/stdio.h - prev std/stdio.h - exec - cp -f ${<} ${@} - done - make ${INSTALLROOT}/include/ast/wchar.h - prev std/wchar.h - exec - cp -f ${<} ${@} - done - make ${INSTALLROOT}/include/ast/wctype.h - prev std/wctype.h - exec - cp -f ${<} ${@} - done - make ${INSTALLROOT}/include/ast/align.h - prev align.h - exec - cp -f ${<} ${@} - done - make ${INSTALLROOT}/include/ast/sig.h - prev sig.h - exec - cp -f ${<} ${@} - done - make ${INSTALLROOT}/include/ast/tmx.h - prev tmx.h - exec - cp -f ${<} ${@} - done - make ${INSTALLROOT}/include/ast/tv.h - prev tv.h - exec - cp -f ${<} ${@} - done - make ${INSTALLROOT}/include/ast/ast_api.h - prev ast_api.h - exec - cp -f ${<} ${@} - done - make ${INSTALLROOT}/include/ast/ast_botch.h - prev ast_botch.h - exec - cp -f ${<} ${@} done - make ${INSTALLROOT}/include/ast/ast_ccode.h - prev ast_ccode.h - exec - cp -f ${<} ${@} - done - make ${INSTALLROOT}/include/ast/ast_fcntl.h - prev ast_fcntl.h - exec - cp -f ${<} ${@} - done - make ${INSTALLROOT}/include/ast/ast_float.h - make ast_float.h - prev ast_common.h - prev FEATURE/float + + note * #include headers + note * ...generated headers + loop HDR releaseflags ast_standards ast_common ast_lib ast_sys lc align sig tmx tv ast_api ast_botch ast_ccode ast_fcntl ast_float ast_fs ast_map ast_mmap ast_mode ast_ndbm ast_param ast_random ast_time ast_tty ast_wait ast_limits ast_sizeof ast_dirent ast_iconv ast_nl_types ast_stdio ast_wchar ast_wctype + make ${INSTALLROOT}/include/ast/${HDR}.h + prev ${HDR}.h exec - cp -f ${<} ${@} done - exec - cp -f ${<} ${@} - done - make ${INSTALLROOT}/include/ast/ast_fs.h - prev ast_fs.h - exec - cp -f ${<} ${@} - done - make ${INSTALLROOT}/include/ast/ast_lib.h - prev ast_lib.h - exec - cp -f ${<} ${@} - done - make ${INSTALLROOT}/include/ast/ast_map.h - prev ast_map.h - exec - cp -f ${<} ${@} - done - make ${INSTALLROOT}/include/ast/ast_mmap.h - prev ast_mmap.h - exec - cp -f ${<} ${@} done - make ${INSTALLROOT}/include/ast/ast_mode.h - prev ast_mode.h - exec - cp -f ${<} ${@} - done - make ${INSTALLROOT}/include/ast/ast_ndbm.h - make ast_ndbm.h - make FEATURE/ndbm - prev std/stdio.h - prev features/ndbm - exec - iffe ${IFFEFLAGS} -v -X ast -X std -c "${CC} ${mam_cc_FLAGS} ${CCFLAGS} ${LDFLAGS}" run ${<} - done + note * ...main AST headers + loop HDR ast ast_dir ast_getopt ast_std ast_windows ccode cdt cmdarg debug dt error find ftwalk fts glob hash hashkey hashpart ip6 ls magic mc mime mnt modecanon modex namval option proc recfmt regex sfio sfio_s sfio_t sfdisc shcmd stk swap tar times tm tok usage vdb vecargs vmalloc wait magicid fnv aso + make ${INSTALLROOT}/include/ast/${HDR}.h + prev include/${HDR}.h exec - cp -f ${<} ${@} done - exec - cp -f ${<} ${@} - done - make ${INSTALLROOT}/include/ast/ast_param.h - prev ast_param.h - exec - cp -f ${<} ${@} - done - make ${INSTALLROOT}/include/ast/ast_random.h - prev FEATURE/random - exec - cp -f ${<} ${@} - done - make ${INSTALLROOT}/include/ast/ast_sys.h - prev ast_sys.h - exec - cp -f ${<} ${@} - done - make ${INSTALLROOT}/include/ast/ast_time.h - prev ast_time.h - exec - cp -f ${<} ${@} - done - make ${INSTALLROOT}/include/ast/ast_tty.h - prev ast_tty.h - exec - cp -f ${<} ${@} - done - make ${INSTALLROOT}/include/ast/ast_wait.h - prev ast_wait.h - exec - cp -f ${<} ${@} - done - make ${INSTALLROOT}/include/ast/ast_limits.h - prev ast_limits.h - exec - cp -f ${<} ${@} - done - make ${INSTALLROOT}/include/ast/ast_standards.h - prev ast_standards.h - exec - cp -f ${<} ${@} done - make ${INSTALLROOT}/include/ast/ast_sizeof.h - make ast_sizeof.h - make FEATURE/sizeof - prev features/sizeof - exec - iffe ${IFFEFLAGS} -v -X ast -X std -c "${CC} ${mam_cc_FLAGS} ${CCFLAGS} ${LDFLAGS}" run ${<} - done + note * ...comp(atibility) + loop HDR ftw getopt re_comp regexp wordexp fnmatch + make ${INSTALLROOT}/include/ast/${HDR}.h + prev comp/${HDR}.h exec - cp -f ${<} ${@} done - exec - cp -f ${<} ${@} - done - make ${INSTALLROOT}/include/ast/ast_dirent.h - prev ast_dirent.h - exec - cp -f ${<} ${@} - done - make ${INSTALLROOT}/include/ast/ast_iconv.h - prev ast_iconv.h - exec - cp -f ${<} ${@} - done - make ${INSTALLROOT}/include/ast/ast_nl_types.h - prev ast_nl_types.h - exec - cp -f ${<} ${@} - done - make ${INSTALLROOT}/include/ast/ast_stdio.h - prev ast_stdio.h - exec - cp -f ${<} ${@} - done - make ${INSTALLROOT}/include/ast/ast_wchar.h - prev ast_wchar.h - exec - cp -f ${<} ${@} - done - make ${INSTALLROOT}/include/ast/ast_wctype.h - prev ast_wctype.h - exec - cp -f ${<} ${@} done - make ${INSTALLROOT}/lib/file - exec - mkdir -p ${@} + note * ...std + loop HDR bytesex endian dirent iconv nl_types stdio wchar wctype + make ${INSTALLROOT}/include/ast/${HDR}.h + prev std/${HDR}.h + exec - cp -f ${<} ${@} + done done + + note * misc stuff make ${INSTALLROOT}/lib/file/magic prev misc/magic.tab exec - cp -f ${<} ${@} done + make ${INSTALLROOT}/lib/package/gen/.asthdr_tstamp prev ast_lib.h prev comp/fmtmsg.h @@ -4984,34 +5078,32 @@ make install virtual exec - done exec - touch ${@} done - make ${INSTALLROOT}/include/ast/releaseflags.h - prev releaseflags.h - exec - cp -f ${<} ${@} - done + note * note * mamake was previously built by package.sh without libast; note * now rebuild it with libast, so we get 'mamake --man', etc. note * + make mamake make mamake.o make ${PACKAGEROOT}/src/cmd/INIT/mamake.c prev ${INSTALLROOT}/include/ast/error.h prev ${INSTALLROOT}/include/ast/ast.h done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I${INSTALLROOT}/include/ast -D_PACKAGE_ast -c ${<} + exec - compile ${<} -D_PACKAGE_ast done bind -last - exec - set -o errexit - exec - ${CC} ${CCLDFLAGS} ${mam_cc_FLAGS} ${CCFLAGS} ${LDFLAGS} ${mam_cc_L+-L${INSTALLROOT}/lib} -o ${@} ${<} ${mam_libast} + exec - ${CC} ${CCLDFLAGS} ${CCFLAGS} ${LDFLAGS} -o ${@} ${<} ${mam_libast} || exit note * note * We purposely do not have a make target of ${INSTALLROOT}/bin/mamake here; note * this helps to ensure that the package.sh-built version gets overwritten. note * note * macOS throws code signature error if 'cp' overwrites Mach-O binary; must remove first - exec - rm -rf ${INSTALLROOT}/bin/${@} ${INSTALLROOT}/bin/${@}.* + exec - (set +f; exec rm -rf ${INSTALLROOT}/bin/${@} ${INSTALLROOT}/bin/${@}.*) exec - cp ${@} ${INSTALLROOT}/bin/${@} done done install + make test dontcare virtual make test.mamake virtual prev ${PACKAGEROOT}/src/cmd/INIT/mamake.tst diff --git a/src/lib/libcmd/Mamfile b/src/lib/libcmd/Mamfile index 5f192d267424..21f702dcfc4d 100644 --- a/src/lib/libcmd/Mamfile +++ b/src/lib/libcmd/Mamfile @@ -1,594 +1,496 @@ note * -note * This build file is in the Make Abstract Machine (MAM) language. It was -note * first generated by nmake, but in the ksh 93u+m distribution we maintain -note * it manually because nmake had too many problems to keep using. The -note * Mamfiles are processed by mamake (src/cmd/INIT/mamake.c); we added -note * indentation to improve readability. The language is documented in -note * src/cmd/INIT/README-mamake.md. +note * This build script is in an extended Make Abstract Machine (MAM) +note * language. Documentation is at: src/cmd/INIT/README-mamake.md note * -setv MAMAKE_STRICT + +setv MAMAKE_STRICT 2 setv INSTALLROOT ../../.. setv PACKAGE_ast_INCLUDE ${INSTALLROOT}/include/ast -setv PACKAGEROOT ../../../../.. -setv AR ${mam_cc_AR} ${mam_cc_AR_ARFLAGS} setv CC cc -setv mam_cc_FLAGS ${mam_cc_DLL} -setv CCFLAGS ${-debug-symbols?1?${mam_cc_DEBUG} -D_BLD_DEBUG?${mam_cc_OPTIMIZE}?} +setv AR ${mam_cc_AR} ${mam_cc_AR_ARFLAGS} +setv mam_cc_FLAGS ${mam_cc_DLL} ${-debug-symbols?1?${mam_cc_DEBUG} -D_BLD_DEBUG?${mam_cc_OPTIMIZE}?} -DERROR_CATALOG=\""libcmd"\" -DHOSTTYPE=\""${mam_cc_HOSTTYPE}"\" -D_BLD_cmd +setv CCFLAGS setv IFFEFLAGS -setv LDFLAGS "" +setv LDFLAGS + make install virtual - make cmd virtual - make cmd.req - prev ${INSTALLROOT}/bin/mkreq - exec - mkreq ${CC} ${mam_cc_FLAGS} ${CCFLAGS} : ${LDFLAGS} : cmd fsg md util ast - done - make libcmd.a - make cmdinit.o - make cmdinit.c - prev ${PACKAGE_ast_INCLUDE}/shcmd.h implicit - make cmd.h implicit - make cmdext.h implicit dontcare - prev cmdinit.c - make basename.c - prev cmd.h - done - make cat.c - make ${PACKAGE_ast_INCLUDE}/endian.h implicit - make ${PACKAGE_ast_INCLUDE}/bytesex.h implicit - make ${PACKAGE_ast_INCLUDE}/ast_common.h implicit - prev ${PACKAGE_ast_INCLUDE}/ast_map.h implicit - done - done - done - prev cmd.h - done - make chgrp.c - make FEATURE/symlink implicit - prev features/symlink - bind -lutil - bind -last - exec - iffe ${IFFEFLAGS} -v -c "${CC} ${mam_cc_FLAGS} ${CCFLAGS} ${LDFLAGS}" ref ${mam_cc_L+-L${INSTALLROOT}/lib} -I${PACKAGE_ast_INCLUDE} -I${INSTALLROOT}/include ${mam_libutil} ${mam_libast} : run ${<} - done - make ${PACKAGE_ast_INCLUDE}/fts.h implicit - prev ${PACKAGE_ast_INCLUDE}/ast_mode.h implicit - prev ${PACKAGE_ast_INCLUDE}/ast_fs.h implicit - make ${PACKAGE_ast_INCLUDE}/ast_std.h implicit - make ${PACKAGE_ast_INCLUDE}/regex.h implicit - prev ${PACKAGE_ast_INCLUDE}/ast_api.h implicit - make ${PACKAGE_ast_INCLUDE}/ast_wchar.h implicit - make ${PACKAGE_ast_INCLUDE}/wctype.h implicit - make ${PACKAGE_ast_INCLUDE}/ast_wctype.h implicit - prev ${PACKAGE_ast_INCLUDE}/endian.h - make ${PACKAGE_ast_INCLUDE}/wchar.h implicit - prev ${PACKAGE_ast_INCLUDE}/ast_wchar.h - done - done - done - make ${PACKAGE_ast_INCLUDE}/stdio.h implicit - make ${PACKAGE_ast_INCLUDE}/ast_stdio.h implicit - prev ${PACKAGE_ast_INCLUDE}/sfio_s.h implicit - prev ${PACKAGE_ast_INCLUDE}/ast_std.h - done - done - prev ${PACKAGE_ast_INCLUDE}/ast_common.h - done - prev ${PACKAGE_ast_INCLUDE}/ast_common.h - done - make ${PACKAGE_ast_INCLUDE}/getopt.h implicit - prev ${PACKAGE_ast_INCLUDE}/ast_getopt.h implicit - done - prev ${PACKAGE_ast_INCLUDE}/ast_map.h - prev ${PACKAGE_ast_INCLUDE}/ast_botch.h implicit - prev ${PACKAGE_ast_INCLUDE}/ast_limits.h implicit - make ${PACKAGE_ast_INCLUDE}/ast_fcntl.h implicit - prev ${PACKAGE_ast_INCLUDE}/ast_fs.h - done - prev ${PACKAGE_ast_INCLUDE}/ast_getopt.h - make ${PACKAGE_ast_INCLUDE}/ast_sys.h implicit - prev ${PACKAGE_ast_INCLUDE}/getopt.h - prev ${PACKAGE_ast_INCLUDE}/endian.h - done - prev ${PACKAGE_ast_INCLUDE}/ast_lib.h implicit - prev ${PACKAGE_ast_INCLUDE}/ast_common.h - done - done - prev ${PACKAGE_ast_INCLUDE}/endian.h - make ${PACKAGE_ast_INCLUDE}/ls.h implicit - prev ${PACKAGE_ast_INCLUDE}/ast_mode.h - prev ${PACKAGE_ast_INCLUDE}/ast_fs.h - prev ${PACKAGE_ast_INCLUDE}/ast_std.h - done - make ${PACKAGE_ast_INCLUDE}/cdt.h implicit - prev ${PACKAGE_ast_INCLUDE}/ast_common.h - prev ${PACKAGE_ast_INCLUDE}/ast_std.h - done - prev cmd.h - done - make chmod.c - prev FEATURE/symlink - prev ${PACKAGE_ast_INCLUDE}/fts.h - prev ${PACKAGE_ast_INCLUDE}/ls.h - prev cmd.h - done - make chown.c - prev cmd.h - done - make cksum.c - make ${PACKAGE_ast_INCLUDE}/error.h implicit - make ${PACKAGE_ast_INCLUDE}/option.h implicit - make ${PACKAGE_ast_INCLUDE}/ast.h implicit - prev ${PACKAGE_ast_INCLUDE}/ast_api.h - make ${PACKAGE_ast_INCLUDE}/vmalloc.h implicit - prev ${PACKAGE_ast_INCLUDE}/ast_common.h - prev ${PACKAGE_ast_INCLUDE}/ast_std.h - done - make ${PACKAGE_ast_INCLUDE}/sfio.h implicit - prev ${PACKAGE_ast_INCLUDE}/sfio_s.h - prev ${PACKAGE_ast_INCLUDE}/ast_common.h - prev ${PACKAGE_ast_INCLUDE}/ast_std.h - done - prev ${PACKAGE_ast_INCLUDE}/ast_std.h - done - done - prev ${PACKAGE_ast_INCLUDE}/ast.h - done - prev ${PACKAGE_ast_INCLUDE}/fts.h - make ${PACKAGE_ast_INCLUDE}/modex.h implicit - prev ${PACKAGE_ast_INCLUDE}/modecanon.h implicit - prev ${PACKAGE_ast_INCLUDE}/ast_fs.h - done - prev ${PACKAGE_ast_INCLUDE}/ls.h - make ${PACKAGE_ast_INCLUDE}/sum.h implicit - prev ${PACKAGE_ast_INCLUDE}/ast.h - done - prev cmd.h - done - make cmp.c - make ${PACKAGE_ast_INCLUDE}/ccode.h implicit - prev ${PACKAGE_ast_INCLUDE}/ast_ccode.h implicit - prev ${PACKAGE_ast_INCLUDE}/ast_common.h - done - prev ${PACKAGE_ast_INCLUDE}/ls.h - prev cmd.h - done - make comm.c - prev cmd.h - done - make cp.c - make ${PACKAGE_ast_INCLUDE}/tmx.h implicit - make ${PACKAGE_ast_INCLUDE}/tv.h implicit - prev ${PACKAGE_ast_INCLUDE}/ast.h - done - make ${PACKAGE_ast_INCLUDE}/tm.h implicit - make ${PACKAGE_ast_INCLUDE}/times.h implicit - prev ${PACKAGE_ast_INCLUDE}/ast_time.h implicit - prev ${PACKAGE_ast_INCLUDE}/ast.h - done - prev ${PACKAGE_ast_INCLUDE}/ast.h - done - done - make ${PACKAGE_ast_INCLUDE}/stk.h implicit - prev ${PACKAGE_ast_INCLUDE}/sfio.h - done - prev ${PACKAGE_ast_INCLUDE}/hashkey.h implicit - prev ${PACKAGE_ast_INCLUDE}/fts.h - prev ${PACKAGE_ast_INCLUDE}/times.h - prev ${PACKAGE_ast_INCLUDE}/ls.h - prev cmd.h - done - make cut.c - prev cmd.h - done - make dirname.c - prev cmd.h - done - make date.c - prev ${PACKAGE_ast_INCLUDE}/times.h - prev ${PACKAGE_ast_INCLUDE}/tmx.h - make ${PACKAGE_ast_INCLUDE}/proc.h implicit - prev ${PACKAGE_ast_INCLUDE}/ast.h - done - prev ${PACKAGE_ast_INCLUDE}/ls.h - prev cmd.h - done - make expr.c - prev ${PACKAGE_ast_INCLUDE}/regex.h - prev cmd.h - done - make fds.c - prev ${PACKAGE_ast_INCLUDE}/endian.h - make FEATURE/sockets implicit - prev features/sockets - exec - iffe ${IFFEFLAGS} -v -c "${CC} ${mam_cc_FLAGS} ${CCFLAGS} ${LDFLAGS}" ref ${mam_cc_L+-L${INSTALLROOT}/lib} -I${PACKAGE_ast_INCLUDE} -I${INSTALLROOT}/include ${mam_libutil} ${mam_libast} : run ${<} - done - prev ${PACKAGE_ast_INCLUDE}/ls.h - prev cmd.h - done - make fmt.c - prev cmd.h - done - make fold.c - prev cmd.h - done - make getconf.c - prev ${PACKAGE_ast_INCLUDE}/ls.h - prev ${PACKAGE_ast_INCLUDE}/proc.h - prev cmd.h - done - make head.c - prev cmd.h - done - make id.c - prev fsg.h implicit dontcare virtual - prev ${PACKAGE_ast_INCLUDE}/stdio.h - make FEATURE/ids implicit - prev features/ids - exec - iffe ${IFFEFLAGS} -v -c "${CC} ${mam_cc_FLAGS} ${CCFLAGS} ${LDFLAGS}" ref ${mam_cc_L+-L${INSTALLROOT}/lib} -I${PACKAGE_ast_INCLUDE} -I${INSTALLROOT}/include ${mam_libutil} ${mam_libast} : run ${<} - done - prev cmd.h - done - make join.c - prev ${PACKAGE_ast_INCLUDE}/wctype.h - prev ${PACKAGE_ast_INCLUDE}/wchar.h - make ${PACKAGE_ast_INCLUDE}/sfdisc.h implicit - prev ${PACKAGE_ast_INCLUDE}/ast.h - done - prev cmd.h - done - make ln.c - prev cmd.h - done - make logname.c - prev cmd.h - done - make md5sum.c - prev cmd.h - done - make mkdir.c - prev ${PACKAGE_ast_INCLUDE}/ls.h - prev cmd.h - done - make mkfifo.c - prev ${PACKAGE_ast_INCLUDE}/ls.h - prev cmd.h - done - make mktemp.c - prev ${PACKAGE_ast_INCLUDE}/ls.h - prev cmd.h - done - make mv.c - prev cmd.h - done - make paste.c - prev cmd.h - done - make pathchk.c - prev ${PACKAGE_ast_INCLUDE}/ls.h - prev cmd.h - done - make pids.c - prev ${PACKAGE_ast_INCLUDE}/sfdisc.h - prev ${PACKAGE_ast_INCLUDE}/ast_tty.h implicit - prev cmd.h - done - make rev.c - prev rev.h implicit - prev cmd.h - done - make rm.c - prev ${PACKAGE_ast_INCLUDE}/fts.h - prev ${PACKAGE_ast_INCLUDE}/ls.h - prev cmd.h - done - make rmdir.c - prev cmd.h - done - make stty.c - prev ${PACKAGE_ast_INCLUDE}/ast_tty.h - prev ${PACKAGE_ast_INCLUDE}/ccode.h - prev cmd.h - done - make sum.c - prev cmd.h - done - make sync.c - prev ${PACKAGE_ast_INCLUDE}/ls.h - prev cmd.h - done - make tail.c - prev rev.h - prev ${PACKAGE_ast_INCLUDE}/tv.h - prev ${PACKAGE_ast_INCLUDE}/ls.h - prev cmd.h - done - make tee.c - prev ${PACKAGE_ast_INCLUDE}/sig.h implicit - prev ${PACKAGE_ast_INCLUDE}/ls.h - prev cmd.h - done - make tty.c - prev cmd.h - done - make uname.c - make FEATURE/utsname implicit - prev features/utsname - exec - iffe ${IFFEFLAGS} -v -c "${CC} ${mam_cc_FLAGS} ${CCFLAGS} ${LDFLAGS}" ref ${mam_cc_L+-L${INSTALLROOT}/lib} -I${PACKAGE_ast_INCLUDE} -I${INSTALLROOT}/include ${mam_libutil} ${mam_libast} : run ${<} - done - prev ${PACKAGE_ast_INCLUDE}/proc.h - prev cmd.h - done - make uniq.c - prev cmd.h - done - make vmstate.c - prev ${PACKAGE_ast_INCLUDE}/sfdisc.h - prev ${PACKAGE_ast_INCLUDE}/vmalloc.h - prev cmd.h - done - make wc.c - prev ${PACKAGE_ast_INCLUDE}/ls.h - make wc.h implicit - prev ${PACKAGE_ast_INCLUDE}/ast.h - done - prev cmd.h - done - make revlib.c - prev rev.h - prev cmd.h - done - make wclib.c - make ${PACKAGE_ast_INCLUDE}/lc.h implicit - prev ${PACKAGE_ast_INCLUDE}/ast.h - done - prev ${PACKAGE_ast_INCLUDE}/wctype.h - prev ${PACKAGE_ast_INCLUDE}/wchar.h - prev wc.h - prev cmd.h - done - make lib.c - prev cmd.h + note * + note * AST header dependencies + note * TODO: verify and centralise + note * + + make ${PACKAGE_ast_INCLUDE}/endian.h implicit + make ${PACKAGE_ast_INCLUDE}/bytesex.h implicit + make ${PACKAGE_ast_INCLUDE}/ast_common.h implicit + prev ${PACKAGE_ast_INCLUDE}/ast_map.h implicit + done + done + done + make ${PACKAGE_ast_INCLUDE}/fts.h implicit + prev ${PACKAGE_ast_INCLUDE}/ast_mode.h implicit + prev ${PACKAGE_ast_INCLUDE}/ast_fs.h implicit + make ${PACKAGE_ast_INCLUDE}/ast_std.h implicit + make ${PACKAGE_ast_INCLUDE}/regex.h implicit + prev ${PACKAGE_ast_INCLUDE}/ast_api.h implicit + make ${PACKAGE_ast_INCLUDE}/ast_wchar.h implicit + make ${PACKAGE_ast_INCLUDE}/wctype.h implicit + make ${PACKAGE_ast_INCLUDE}/ast_wctype.h implicit + prev ${PACKAGE_ast_INCLUDE}/endian.h + make ${PACKAGE_ast_INCLUDE}/wchar.h implicit + prev ${PACKAGE_ast_INCLUDE}/ast_wchar.h done - exec - { - exec - cat < - exec - - exec - ! - exec - sed \ - exec - -e '/^b_[a-z_][a-z_0-9]*(/!d' \ - exec - -e 's/^b_//' \ - exec - -e 's/(.*//' \ - exec - -e 's/.*/extern int b_&(int, char**, Shbltin_t*);/' \ - exec - ${^} | - exec - sort -u - exec - } > cmdext.h - prev ${PACKAGE_ast_INCLUDE}/shcmd.h done - prev ${PACKAGE_ast_INCLUDE}/shcmd.h - prev ${PACKAGE_ast_INCLUDE}/stk.h - prev ${PACKAGE_ast_INCLUDE}/error.h - prev ${PACKAGE_ast_INCLUDE}/ast.h - done cmd.h - done cmdinit.c - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -I${PACKAGE_ast_INCLUDE} -D_BLD_cmd -c ${<} - done cmdinit.o - make basename.o - prev basename.c - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -I${PACKAGE_ast_INCLUDE} -DERROR_CATALOG=\""libcmd"\" -D_BLD_cmd -c ${<} - done - make cat.o - prev cat.c - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -I${PACKAGE_ast_INCLUDE} -DERROR_CATALOG=\""libcmd"\" -D_BLD_cmd -c ${<} - done - make chgrp.o - prev chgrp.c - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -I${PACKAGE_ast_INCLUDE} -DERROR_CATALOG=\""libcmd"\" -D_BLD_cmd -c ${<} - done - make chmod.o - prev chmod.c - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -I${PACKAGE_ast_INCLUDE} -DERROR_CATALOG=\""libcmd"\" -D_BLD_cmd -c ${<} - done - make chown.o - prev chown.c - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -I${PACKAGE_ast_INCLUDE} -D_BLD_cmd -c ${<} - done - make cksum.o - prev cksum.c - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -I${PACKAGE_ast_INCLUDE} -DERROR_CATALOG=\""libcmd"\" -D_BLD_cmd -c ${<} - done - make cmp.o - prev cmp.c - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -I${PACKAGE_ast_INCLUDE} -DERROR_CATALOG=\""libcmd"\" -D_BLD_cmd -c ${<} - done - make comm.o - prev comm.c - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -I${PACKAGE_ast_INCLUDE} -DERROR_CATALOG=\""libcmd"\" -D_BLD_cmd -c ${<} - done - make cp.o - prev cp.c - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -I${PACKAGE_ast_INCLUDE} -DERROR_CATALOG=\""libcmd"\" -D_BLD_cmd -c ${<} - done - make cut.o - prev cut.c - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -I${PACKAGE_ast_INCLUDE} -DERROR_CATALOG=\""libcmd"\" -D_BLD_cmd -c ${<} - done - make dirname.o - prev dirname.c - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -I${PACKAGE_ast_INCLUDE} -DERROR_CATALOG=\""libcmd"\" -D_BLD_cmd -c ${<} - done - make date.o - prev date.c - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -I${PACKAGE_ast_INCLUDE} -DERROR_CATALOG=\""libcmd"\" -D_BLD_cmd -c ${<} - done - make expr.o - prev expr.c - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -I${PACKAGE_ast_INCLUDE} -DERROR_CATALOG=\""libcmd"\" -D_BLD_cmd -c ${<} - done - make fds.o - prev fds.c - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -I${PACKAGE_ast_INCLUDE} -DERROR_CATALOG=\""libcmd"\" -D_BLD_cmd -c ${<} - done - make fmt.o - prev fmt.c - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -I${PACKAGE_ast_INCLUDE} -DERROR_CATALOG=\""libcmd"\" -D_BLD_cmd -c ${<} - done - make fold.o - prev fold.c - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -I${PACKAGE_ast_INCLUDE} -DERROR_CATALOG=\""libcmd"\" -D_BLD_cmd -c ${<} - done - make getconf.o - prev getconf.c - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -I${PACKAGE_ast_INCLUDE} -DERROR_CATALOG=\""libcmd"\" -D_BLD_cmd -c ${<} - done - make head.o - prev head.c - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -I${PACKAGE_ast_INCLUDE} -DERROR_CATALOG=\""libcmd"\" -D_BLD_cmd -c ${<} - done - make id.o - prev id.c - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} ${-debug-symbols?1?${mam_cc_DEBUG} -D_BLD_DEBUG?${CCFLAGS.FORCE}?} -I. -I${PACKAGE_ast_INCLUDE} -DERROR_CATALOG=\""libcmd"\" -D_BLD_cmd -c ${<} - done - make join.o - prev join.c - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -I${PACKAGE_ast_INCLUDE} -DERROR_CATALOG=\""libcmd"\" -D_BLD_cmd -c ${<} - done - make ln.o - prev ln.c - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -I${PACKAGE_ast_INCLUDE} -D_BLD_cmd -c ${<} - done - make logname.o - prev logname.c - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -I${PACKAGE_ast_INCLUDE} -DERROR_CATALOG=\""libcmd"\" -D_BLD_cmd -c ${<} - done - make md5sum.o - prev md5sum.c - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -I${PACKAGE_ast_INCLUDE} -D_BLD_cmd -c ${<} - done - make mkdir.o - prev mkdir.c - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -I${PACKAGE_ast_INCLUDE} -DERROR_CATALOG=\""libcmd"\" -D_BLD_cmd -c ${<} - done - make mkfifo.o - prev mkfifo.c - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -I${PACKAGE_ast_INCLUDE} -DERROR_CATALOG=\""libcmd"\" -D_BLD_cmd -c ${<} - done - make mktemp.o - prev mktemp.c - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -I${PACKAGE_ast_INCLUDE} -DERROR_CATALOG=\""libcmd"\" -D_BLD_cmd -c ${<} - done - make mv.o - prev mv.c - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -I${PACKAGE_ast_INCLUDE} -D_BLD_cmd -c ${<} - done - make paste.o - prev paste.c - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -I${PACKAGE_ast_INCLUDE} -DERROR_CATALOG=\""libcmd"\" -D_BLD_cmd -c ${<} - done - make pathchk.o - prev pathchk.c - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -I${PACKAGE_ast_INCLUDE} -DERROR_CATALOG=\""libcmd"\" -D_BLD_cmd -c ${<} - done - make pids.o - prev pids.c - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -I${PACKAGE_ast_INCLUDE} -DERROR_CATALOG=\""libcmd"\" -D_BLD_cmd -c ${<} - done - make rev.o - prev rev.c - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -I${PACKAGE_ast_INCLUDE} -DERROR_CATALOG=\""libcmd"\" -D_BLD_cmd -c ${<} - done - make rm.o - prev rm.c - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -I${PACKAGE_ast_INCLUDE} -DERROR_CATALOG=\""libcmd"\" -D_BLD_cmd -c ${<} - done - make rmdir.o - prev rmdir.c - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -I${PACKAGE_ast_INCLUDE} -DERROR_CATALOG=\""libcmd"\" -D_BLD_cmd -c ${<} - done - make stty.o - prev stty.c - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -I${PACKAGE_ast_INCLUDE} -DERROR_CATALOG=\""libcmd"\" -D_BLD_cmd -c ${<} - done - make sum.o - prev sum.c - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -I${PACKAGE_ast_INCLUDE} -D_BLD_cmd -c ${<} + done + make ${PACKAGE_ast_INCLUDE}/stdio.h implicit + make ${PACKAGE_ast_INCLUDE}/ast_stdio.h implicit + prev ${PACKAGE_ast_INCLUDE}/sfio_s.h implicit + prev ${PACKAGE_ast_INCLUDE}/ast_std.h + done + done + prev ${PACKAGE_ast_INCLUDE}/ast_common.h + done + prev ${PACKAGE_ast_INCLUDE}/ast_common.h + done + make ${PACKAGE_ast_INCLUDE}/getopt.h implicit + prev ${PACKAGE_ast_INCLUDE}/ast_getopt.h implicit + done + prev ${PACKAGE_ast_INCLUDE}/ast_map.h + prev ${PACKAGE_ast_INCLUDE}/ast_botch.h implicit + prev ${PACKAGE_ast_INCLUDE}/ast_limits.h implicit + make ${PACKAGE_ast_INCLUDE}/ast_fcntl.h implicit + prev ${PACKAGE_ast_INCLUDE}/ast_fs.h + done + prev ${PACKAGE_ast_INCLUDE}/ast_getopt.h + make ${PACKAGE_ast_INCLUDE}/ast_sys.h implicit + prev ${PACKAGE_ast_INCLUDE}/getopt.h + prev ${PACKAGE_ast_INCLUDE}/endian.h + done + prev ${PACKAGE_ast_INCLUDE}/ast_lib.h implicit + prev ${PACKAGE_ast_INCLUDE}/ast_common.h + done + done + make ${PACKAGE_ast_INCLUDE}/ls.h implicit + prev ${PACKAGE_ast_INCLUDE}/ast_mode.h + prev ${PACKAGE_ast_INCLUDE}/ast_fs.h + prev ${PACKAGE_ast_INCLUDE}/ast_std.h + done + make ${PACKAGE_ast_INCLUDE}/cdt.h implicit + prev ${PACKAGE_ast_INCLUDE}/ast_common.h + prev ${PACKAGE_ast_INCLUDE}/ast_std.h + done + make ${PACKAGE_ast_INCLUDE}/error.h implicit + make ${PACKAGE_ast_INCLUDE}/option.h implicit + make ${PACKAGE_ast_INCLUDE}/ast.h implicit + prev ${PACKAGE_ast_INCLUDE}/ast_api.h + make ${PACKAGE_ast_INCLUDE}/vmalloc.h implicit + prev ${PACKAGE_ast_INCLUDE}/ast_common.h + prev ${PACKAGE_ast_INCLUDE}/ast_std.h + done + make ${PACKAGE_ast_INCLUDE}/sfio.h implicit + prev ${PACKAGE_ast_INCLUDE}/sfio_s.h + prev ${PACKAGE_ast_INCLUDE}/ast_common.h + prev ${PACKAGE_ast_INCLUDE}/ast_std.h + done + prev ${PACKAGE_ast_INCLUDE}/ast_std.h done - make sync.o - prev sync.c - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -I${PACKAGE_ast_INCLUDE} -DERROR_CATALOG=\""libcmd"\" -D_BLD_cmd -c ${<} + done + prev ${PACKAGE_ast_INCLUDE}/ast.h + done + make ${PACKAGE_ast_INCLUDE}/modex.h implicit + prev ${PACKAGE_ast_INCLUDE}/modecanon.h implicit + prev ${PACKAGE_ast_INCLUDE}/ast_fs.h + done + make ${PACKAGE_ast_INCLUDE}/sum.h implicit + prev ${PACKAGE_ast_INCLUDE}/ast.h + done + make ${PACKAGE_ast_INCLUDE}/ccode.h implicit + prev ${PACKAGE_ast_INCLUDE}/ast_ccode.h implicit + prev ${PACKAGE_ast_INCLUDE}/ast_common.h + done + make ${PACKAGE_ast_INCLUDE}/tmx.h implicit + make ${PACKAGE_ast_INCLUDE}/tv.h implicit + prev ${PACKAGE_ast_INCLUDE}/ast.h + done + make ${PACKAGE_ast_INCLUDE}/tm.h implicit + make ${PACKAGE_ast_INCLUDE}/times.h implicit + prev ${PACKAGE_ast_INCLUDE}/ast_time.h implicit + prev ${PACKAGE_ast_INCLUDE}/ast.h done - make tail.o - prev tail.c - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -I${PACKAGE_ast_INCLUDE} -DERROR_CATALOG=\""libcmd"\" -D_BLD_cmd -c ${<} + prev ${PACKAGE_ast_INCLUDE}/ast.h + done + done + make ${PACKAGE_ast_INCLUDE}/stk.h implicit + prev ${PACKAGE_ast_INCLUDE}/sfio.h + done + make ${PACKAGE_ast_INCLUDE}/proc.h implicit + prev ${PACKAGE_ast_INCLUDE}/ast.h + done + make ${PACKAGE_ast_INCLUDE}/sfdisc.h implicit + prev ${PACKAGE_ast_INCLUDE}/ast.h + done + make ${PACKAGE_ast_INCLUDE}/lc.h implicit + prev ${PACKAGE_ast_INCLUDE}/ast.h + done + prev ${PACKAGE_ast_INCLUDE}/shcmd.h implicit + prev ${PACKAGE_ast_INCLUDE}/hashkey.h implicit + prev ${PACKAGE_ast_INCLUDE}/ast_tty.h implicit + prev ${PACKAGE_ast_INCLUDE}/sig.h implicit + + note * + note * Library dependencies + note * + + bind -lutil + bind -last + bind -lsum + make cmd.req + prev ${INSTALLROOT}/bin/mkreq + exec - mkreq ${CC} ${mam_cc_FLAGS} ${CCFLAGS} : ${LDFLAGS} : cmd fsg md util ast + done + + note * + note * Header dependencies and feature tests + note * + + setv run_iffe iffe ${IFFEFLAGS} -v -c "${CC} ${mam_cc_FLAGS} ${CCFLAGS} ${LDFLAGS}" ref ${mam_cc_L+-L${INSTALLROOT}/lib} -I${PACKAGE_ast_INCLUDE} -I${INSTALLROOT}/include ${mam_libutil} ${mam_libast} : run + + make deps virtual + make cmdinit.c + prev ${PACKAGE_ast_INCLUDE}/shcmd.h + make cmd.h implicit + prev ${PACKAGE_ast_INCLUDE}/shcmd.h + prev ${PACKAGE_ast_INCLUDE}/stk.h + prev ${PACKAGE_ast_INCLUDE}/error.h + prev ${PACKAGE_ast_INCLUDE}/ast.h + done cmd.h + done cmdinit.c + make basename.c + prev cmd.h + done + make cat.c + prev ${PACKAGE_ast_INCLUDE}/endian.h + prev cmd.h + done + make chgrp.c + make FEATURE/symlink implicit + prev features/symlink + exec - ${run_iffe} ${<} + done + prev ${PACKAGE_ast_INCLUDE}/fts.h + prev ${PACKAGE_ast_INCLUDE}/endian.h + prev ${PACKAGE_ast_INCLUDE}/ls.h + prev ${PACKAGE_ast_INCLUDE}/cdt.h + prev cmd.h + done + make chmod.c + prev FEATURE/symlink + prev ${PACKAGE_ast_INCLUDE}/fts.h + prev ${PACKAGE_ast_INCLUDE}/ls.h + prev cmd.h + done + make chown.c + prev cmd.h + done + make cksum.c + prev ${PACKAGE_ast_INCLUDE}/error.h + prev ${PACKAGE_ast_INCLUDE}/fts.h + prev ${PACKAGE_ast_INCLUDE}/modex.h + prev ${PACKAGE_ast_INCLUDE}/ls.h + prev ${PACKAGE_ast_INCLUDE}/sum.h + prev cmd.h + done + make cmp.c + prev ${PACKAGE_ast_INCLUDE}/ccode.h + prev ${PACKAGE_ast_INCLUDE}/ls.h + prev cmd.h + done + make comm.c + prev cmd.h + done + make cp.c + prev ${PACKAGE_ast_INCLUDE}/tmx.h + prev ${PACKAGE_ast_INCLUDE}/stk.h + prev ${PACKAGE_ast_INCLUDE}/hashkey.h + prev ${PACKAGE_ast_INCLUDE}/fts.h + prev ${PACKAGE_ast_INCLUDE}/times.h + prev ${PACKAGE_ast_INCLUDE}/ls.h + prev cmd.h + done + make cut.c + prev cmd.h + done + make dirname.c + prev cmd.h + done + make date.c + prev ${PACKAGE_ast_INCLUDE}/times.h + prev ${PACKAGE_ast_INCLUDE}/tmx.h + prev ${PACKAGE_ast_INCLUDE}/proc.h + prev ${PACKAGE_ast_INCLUDE}/ls.h + prev cmd.h + done + make expr.c + prev ${PACKAGE_ast_INCLUDE}/regex.h + prev cmd.h + done + make fds.c + prev ${PACKAGE_ast_INCLUDE}/endian.h + make FEATURE/sockets implicit + prev features/sockets + exec - ${run_iffe} ${<} + done + prev ${PACKAGE_ast_INCLUDE}/ls.h + prev cmd.h + done + make fmt.c + prev cmd.h + done + make fold.c + prev cmd.h + done + make getconf.c + prev ${PACKAGE_ast_INCLUDE}/ls.h + prev ${PACKAGE_ast_INCLUDE}/proc.h + prev cmd.h + done + make head.c + prev cmd.h + done + make id.c + prev ${PACKAGE_ast_INCLUDE}/stdio.h + make FEATURE/ids implicit + prev features/ids + exec - ${run_iffe} ${<} done - make tee.o - prev tee.c - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -I${PACKAGE_ast_INCLUDE} -DERROR_CATALOG=\""libcmd"\" -D_BLD_cmd -c ${<} + prev cmd.h + done + make join.c + prev ${PACKAGE_ast_INCLUDE}/wctype.h + prev ${PACKAGE_ast_INCLUDE}/wchar.h + prev ${PACKAGE_ast_INCLUDE}/sfdisc.h + prev cmd.h + done + make ln.c + prev cmd.h + done + make logname.c + prev cmd.h + done + make md5sum.c + prev cmd.h + done + make mkdir.c + prev ${PACKAGE_ast_INCLUDE}/ls.h + prev cmd.h + done + make mkfifo.c + prev ${PACKAGE_ast_INCLUDE}/ls.h + prev cmd.h + done + make mktemp.c + prev ${PACKAGE_ast_INCLUDE}/ls.h + prev cmd.h + done + make mv.c + prev cmd.h + done + make paste.c + prev cmd.h + done + make pathchk.c + prev ${PACKAGE_ast_INCLUDE}/ls.h + prev cmd.h + done + make pids.c + prev ${PACKAGE_ast_INCLUDE}/sfdisc.h + prev ${PACKAGE_ast_INCLUDE}/ast_tty.h + prev cmd.h + done + make rev.c + prev rev.h implicit + prev cmd.h + done + make rm.c + prev ${PACKAGE_ast_INCLUDE}/fts.h + prev ${PACKAGE_ast_INCLUDE}/ls.h + prev cmd.h + done + make rmdir.c + prev cmd.h + done + make stty.c + prev ${PACKAGE_ast_INCLUDE}/ast_tty.h + prev ${PACKAGE_ast_INCLUDE}/ccode.h + prev cmd.h + done + make sum.c + prev cmd.h + done + make sync.c + prev ${PACKAGE_ast_INCLUDE}/ls.h + prev cmd.h + done + make tail.c + prev rev.h + prev ${PACKAGE_ast_INCLUDE}/tv.h + prev ${PACKAGE_ast_INCLUDE}/ls.h + prev cmd.h + done + make tee.c + prev ${PACKAGE_ast_INCLUDE}/sig.h + prev ${PACKAGE_ast_INCLUDE}/ls.h + prev cmd.h + done + make tty.c + prev cmd.h + done + make uname.c + make FEATURE/utsname implicit + prev features/utsname + exec - ${run_iffe} ${<} done - make tty.o - prev tty.c - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -I${PACKAGE_ast_INCLUDE} -DERROR_CATALOG=\""libcmd"\" -D_BLD_cmd -c ${<} + prev ${PACKAGE_ast_INCLUDE}/proc.h + prev cmd.h + done + make uniq.c + prev cmd.h + done + make vmstate.c + prev ${PACKAGE_ast_INCLUDE}/sfdisc.h + prev ${PACKAGE_ast_INCLUDE}/vmalloc.h + prev cmd.h + done + make wc.c + prev ${PACKAGE_ast_INCLUDE}/ls.h + make wc.h implicit + prev ${PACKAGE_ast_INCLUDE}/ast.h done - make uname.o - prev uname.c + prev cmd.h + done + make revlib.c + prev rev.h + prev cmd.h + done + make wclib.c + prev ${PACKAGE_ast_INCLUDE}/lc.h + prev ${PACKAGE_ast_INCLUDE}/wctype.h + prev ${PACKAGE_ast_INCLUDE}/wchar.h + prev wc.h + prev cmd.h + done + make lib.c + prev cmd.h + done + done deps + + make cmdext.h implicit + prev cmdinit.c + prev basename.c + prev cat.c + prev chgrp.c + prev chmod.c + prev chown.c + prev cksum.c + prev cmp.c + prev comm.c + prev cp.c + prev cut.c + prev dirname.c + prev date.c + prev expr.c + prev fds.c + prev fmt.c + prev fold.c + prev getconf.c + prev head.c + prev id.c + prev join.c + prev ln.c + prev logname.c + prev md5sum.c + prev mkdir.c + prev mkfifo.c + prev mktemp.c + prev mv.c + prev paste.c + prev pathchk.c + prev pids.c + prev rev.c + prev rm.c + prev rmdir.c + prev stty.c + prev sum.c + prev sync.c + prev tail.c + prev tee.c + prev tty.c + prev uname.c + prev uniq.c + prev vmstate.c + prev wc.c + prev revlib.c + prev wclib.c + prev lib.c + exec - { + exec - cat < + exec - + exec - ! + exec - sed \ + exec - -e '/^b_[a-z_][a-z_0-9]*(/!d' \ + exec - -e 's/^b_//' \ + exec - -e 's/(.*//' \ + exec - -e 's/.*/extern int b_&(int, char**, Shbltin_t*);/' \ + exec - ${^} | + exec - sort -u + exec - } > cmdext.h + prev ${PACKAGE_ast_INCLUDE}/shcmd.h + done + + note * + note * Build the library + note * + + make libcmd.a + loop OBJ cmdinit basename cat chgrp chmod chown cksum cmp comm cp cut dirname date expr fds fmt fold getconf head id join ln logname md5sum mkdir mkfifo mktemp mv paste pathchk pids rev rm rmdir stty sum sync tail tee tty uname uniq vmstate wc revlib wclib lib + make ${OBJ}.o + prev ${OBJ}.c exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -I${PACKAGE_ast_INCLUDE} -DERROR_CATALOG=\""libcmd"\" -DHOSTTYPE=\""${mam_cc_HOSTTYPE}"\" -D_BLD_cmd -c ${<} done - make uniq.o - prev uniq.c - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -I${PACKAGE_ast_INCLUDE} -DERROR_CATALOG=\""libcmd"\" -D_BLD_cmd -c ${<} - done - make vmstate.o - prev vmstate.c - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -I${PACKAGE_ast_INCLUDE} -DERROR_CATALOG=\""libcmd"\" -D_BLD_cmd -c ${<} - done - make wc.o - prev wc.c - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -I${PACKAGE_ast_INCLUDE} -DERROR_CATALOG=\""libcmd"\" -D_BLD_cmd -c ${<} - done - make revlib.o - prev revlib.c - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -I${PACKAGE_ast_INCLUDE} -D_BLD_cmd -c ${<} - done - make wclib.o - prev wclib.c - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -I${PACKAGE_ast_INCLUDE} -D_BLD_cmd -c ${<} - done - make sumlib.o - bind -lsum - exec - ${AR} x ${mam_libsum} sumlib.o - done - make lib.o - prev lib.c - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -I${PACKAGE_ast_INCLUDE} -D_BLD_cmd -c ${<} - done - exec - if test -f ${@} - exec - then ${AR} rc ${@} ${?} # add changed *.o - exec - else ${AR} rc ${@} ${^} # add all *.o - exec - fi || exit - exec - (ranlib ${@}) >/dev/null 2>&1 || true - done libcmd.a - done cmd - prev libcmd.a - make ${INSTALLROOT}/lib - exec - mkdir -p ${@} + done + make sumlib.o + exec - set -- ${mam_libsum} + exec - ${AR} x "$1" sumlib.o + done + exec - if test -f ${@} + exec - then ${AR} rc ${@} ${?} # add changed *.o + exec - else ${AR} rc ${@} ${^} # add all *.o + exec - fi || exit + exec - ranlib ${@} >/dev/null 2>&1 || true + done libcmd.a + + note * + note * pre-install + note * + + loop DIR make ${INSTALLROOT}/lib/lib ${PACKAGE_ast_INCLUDE} + make ${DIR} + exec - mkdir -p ${@} + done done make ${INSTALLROOT}/lib/libcmd.a prev libcmd.a exec - cp -f ${<} ${@} || exit - exec - (ranlib ${@}) >/dev/null 2>&1 || true - done - make ${INSTALLROOT}/lib/lib - exec - mkdir -p ${@} + exec - ranlib ${@} >/dev/null 2>&1 || true done make ${INSTALLROOT}/lib/lib/cmd prev cmd.req exec - cp -f ${<} ${@} done - make ${PACKAGE_ast_INCLUDE} - exec - mkdir -p ${PACKAGE_ast_INCLUDE} - done make ${PACKAGE_ast_INCLUDE}/cmd.h prev cmd.h exec - cp -f ${<} ${@} @@ -654,16 +556,17 @@ make install virtual exec - exec - ! exec - sed \ - exec - -e '/^b_[a-z_][a-z_0-9]*(/!d' \ - exec - -e 's/^b_//' \ - exec - -e 's/(.*//' \ - exec - -e 's/.*/CMDLIST(&)/' \ - exec - ${^} | + exec - -e '/^b_[a-z_][a-z_0-9]*(/!d' \ + exec - -e 's/^b_//' \ + exec - -e 's/(.*//' \ + exec - -e 's/.*/CMDLIST(&)/' \ + exec - ${^} | exec - sort -u exec - } > ${@} done cmdlist.h exec - cp -f ${<} ${@} done ${PACKAGE_ast_INCLUDE}/cmdlist.h done install + make test dontcare virtual done test diff --git a/src/lib/libdll/Mamfile b/src/lib/libdll/Mamfile index 29040587a38f..e2717f021d04 100644 --- a/src/lib/libdll/Mamfile +++ b/src/lib/libdll/Mamfile @@ -1,215 +1,210 @@ note * -note * This build file is in the Make Abstract Machine (MAM) language. It was -note * first generated by nmake, but in the ksh 93u+m distribution we maintain -note * it manually because nmake had too many problems to keep using. The -note * Mamfiles are processed by mamake (src/cmd/INIT/mamake.c); we added -note * indentation to improve readability. The language is documented in -note * src/cmd/INIT/README-mamake.md. +note * This build script is in an extended Make Abstract Machine (MAM) +note * language. Documentation is at: src/cmd/INIT/README-mamake.md note * -setv MAMAKE_STRICT + +setv MAMAKE_STRICT 2 setv INSTALLROOT ../../.. setv PACKAGE_ast_INCLUDE ${INSTALLROOT}/include/ast -setv AR ${mam_cc_AR} ${mam_cc_AR_ARFLAGS} setv CC cc -setv mam_cc_FLAGS ${mam_cc_DLL} -setv CCFLAGS ${-debug-symbols?1?${mam_cc_DEBUG} -D_BLD_DEBUG?${mam_cc_OPTIMIZE}?} +setv AR ${mam_cc_AR} ${mam_cc_AR_ARFLAGS} +setv mam_cc_FLAGS ${mam_cc_DLL} ${-debug-symbols?1?${mam_cc_DEBUG} -D_BLD_DEBUG?${mam_cc_OPTIMIZE}?} +setv CCFLAGS setv IFFEFLAGS setv LDFLAGS + make install virtual - make dll virtual - make dll.req - prev ${INSTALLROOT}/bin/mkreq - exec - mkreq ${CC} ${mam_cc_FLAGS} ${CCFLAGS} : ${LDFLAGS} : dll dl dld ast - done - make libdll.a - make dlfcn.o - make dlfcn.c - prev dll.h implicit dontcare virtual - prev xcoff.h implicit dontcare virtual - prev dl.h implicit dontcare virtual - make ${PACKAGE_ast_INCLUDE}/error.h implicit - make ${PACKAGE_ast_INCLUDE}/option.h implicit - make ${PACKAGE_ast_INCLUDE}/ast.h implicit - prev ${PACKAGE_ast_INCLUDE}/ast_api.h implicit - make ${PACKAGE_ast_INCLUDE}/vmalloc.h implicit - make ${PACKAGE_ast_INCLUDE}/ast_common.h implicit - prev ${PACKAGE_ast_INCLUDE}/ast_map.h implicit - make ${PACKAGE_ast_INCLUDE}/endian.h implicit - make ${PACKAGE_ast_INCLUDE}/bytesex.h implicit - prev ${PACKAGE_ast_INCLUDE}/ast_common.h - done - done - done - make ${PACKAGE_ast_INCLUDE}/ast_std.h implicit - make ${PACKAGE_ast_INCLUDE}/regex.h implicit - prev ${PACKAGE_ast_INCLUDE}/ast_api.h - make ${PACKAGE_ast_INCLUDE}/ast_wchar.h implicit - make ${PACKAGE_ast_INCLUDE}/wctype.h implicit - make ${PACKAGE_ast_INCLUDE}/ast_wctype.h implicit - prev ${PACKAGE_ast_INCLUDE}/endian.h - make ${PACKAGE_ast_INCLUDE}/wchar.h implicit - prev ${PACKAGE_ast_INCLUDE}/ast_wchar.h - done - done - done - make ${PACKAGE_ast_INCLUDE}/stdio.h implicit - make ${PACKAGE_ast_INCLUDE}/ast_stdio.h implicit - prev ${PACKAGE_ast_INCLUDE}/sfio_s.h implicit - prev ${PACKAGE_ast_INCLUDE}/ast_std.h - done - done - prev ${PACKAGE_ast_INCLUDE}/ast_common.h - done - prev ${PACKAGE_ast_INCLUDE}/ast_common.h - done - make ${PACKAGE_ast_INCLUDE}/getopt.h implicit - prev ${PACKAGE_ast_INCLUDE}/ast_getopt.h implicit - done - prev ${PACKAGE_ast_INCLUDE}/ast_map.h - prev ${PACKAGE_ast_INCLUDE}/ast_botch.h implicit - prev ${PACKAGE_ast_INCLUDE}/ast_limits.h implicit - make ${PACKAGE_ast_INCLUDE}/ast_fcntl.h implicit - prev ${PACKAGE_ast_INCLUDE}/ast_fs.h implicit - done - prev ${PACKAGE_ast_INCLUDE}/ast_getopt.h - make ${PACKAGE_ast_INCLUDE}/ast_sys.h implicit - prev ${PACKAGE_ast_INCLUDE}/getopt.h - prev ${PACKAGE_ast_INCLUDE}/endian.h + note * + note * AST header dependencies + note * TODO: verify and centralise + note * + + make ${PACKAGE_ast_INCLUDE}/error.h implicit + make ${PACKAGE_ast_INCLUDE}/option.h implicit + make ${PACKAGE_ast_INCLUDE}/ast.h implicit + prev ${PACKAGE_ast_INCLUDE}/ast_api.h implicit + make ${PACKAGE_ast_INCLUDE}/vmalloc.h implicit + make ${PACKAGE_ast_INCLUDE}/ast_common.h implicit + prev ${PACKAGE_ast_INCLUDE}/ast_map.h implicit + make ${PACKAGE_ast_INCLUDE}/endian.h implicit + make ${PACKAGE_ast_INCLUDE}/bytesex.h implicit + prev ${PACKAGE_ast_INCLUDE}/ast_common.h + done + done + done + make ${PACKAGE_ast_INCLUDE}/ast_std.h implicit + make ${PACKAGE_ast_INCLUDE}/regex.h implicit + prev ${PACKAGE_ast_INCLUDE}/ast_api.h + make ${PACKAGE_ast_INCLUDE}/ast_wchar.h implicit + make ${PACKAGE_ast_INCLUDE}/wctype.h implicit + make ${PACKAGE_ast_INCLUDE}/ast_wctype.h implicit + prev ${PACKAGE_ast_INCLUDE}/endian.h + make ${PACKAGE_ast_INCLUDE}/wchar.h implicit + prev ${PACKAGE_ast_INCLUDE}/ast_wchar.h done - prev ${PACKAGE_ast_INCLUDE}/ast_lib.h implicit - prev ${PACKAGE_ast_INCLUDE}/ast_common.h done done - make ${PACKAGE_ast_INCLUDE}/sfio.h implicit - prev ${PACKAGE_ast_INCLUDE}/sfio_s.h - prev ${PACKAGE_ast_INCLUDE}/ast_common.h - prev ${PACKAGE_ast_INCLUDE}/ast_std.h + make ${PACKAGE_ast_INCLUDE}/stdio.h implicit + make ${PACKAGE_ast_INCLUDE}/ast_stdio.h implicit + prev ${PACKAGE_ast_INCLUDE}/sfio_s.h implicit + prev ${PACKAGE_ast_INCLUDE}/ast_std.h + done done - prev ${PACKAGE_ast_INCLUDE}/ast_std.h + prev ${PACKAGE_ast_INCLUDE}/ast_common.h done + prev ${PACKAGE_ast_INCLUDE}/ast_common.h done - prev ${PACKAGE_ast_INCLUDE}/ast.h - done - make dlldefs.h implicit - make FEATURE/dll - prev features/dll - bind -ldl dontcare - bind -last - exec - iffe ${IFFEFLAGS} -v -c "${CC} ${mam_cc_FLAGS} ${CCFLAGS} ${LDFLAGS}" ref ${mam_cc_L+-L.} ${mam_cc_L+-L${INSTALLROOT}/lib} -I${PACKAGE_ast_INCLUDE} -I${INSTALLROOT}/include ${mam_libdl} ${mam_libast} : run ${<} + make ${PACKAGE_ast_INCLUDE}/getopt.h implicit + prev ${PACKAGE_ast_INCLUDE}/ast_getopt.h implicit done - exec - cp -f ${<} ${@} - done - prev ${PACKAGE_ast_INCLUDE}/ast.h - done dlfcn.c - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -I${PACKAGE_ast_INCLUDE} -D_BLD_dll -c ${<} - done dlfcn.o - make dllopen.o - make dllopen.c - make dlllib.h implicit - prev ${PACKAGE_ast_INCLUDE}/error.h - prev dlldefs.h - prev ${PACKAGE_ast_INCLUDE}/ast.h - done - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -I${PACKAGE_ast_INCLUDE} -D_BLD_dll -c ${<} - done - make dllfind.o - make dllfind.c - prev ${PACKAGE_ast_INCLUDE}/error.h - prev dlldefs.h - prev ${PACKAGE_ast_INCLUDE}/ast.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -I${PACKAGE_ast_INCLUDE} -D_BLD_dll -c ${<} - done - make dllplug.o - make dllplug.c - prev dlllib.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -I${PACKAGE_ast_INCLUDE} -D_BLD_dll -c ${<} - done - make dll_lib.o - make dll_lib.c - prev dlllib.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -I${PACKAGE_ast_INCLUDE} -D_BLD_dll -c ${<} - done - make dllnext.o - make dllnext.c - prev rld_interface.h implicit dontcare virtual - prev dlldefs.h - prev ${PACKAGE_ast_INCLUDE}/ast.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -I${PACKAGE_ast_INCLUDE} -D_BLD_dll -c ${<} - done - make dlllook.o - make dlllook.c - prev dlldefs.h - prev ${PACKAGE_ast_INCLUDE}/error.h - prev ${PACKAGE_ast_INCLUDE}/ast.h - done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -I${PACKAGE_ast_INCLUDE} -D_BLD_dll -c ${<} - done - make dllscan.o - make dllscan.c - prev dlldefs.h - prev ${PACKAGE_ast_INCLUDE}/vmalloc.h - make ${PACKAGE_ast_INCLUDE}/fts.h implicit - prev ${PACKAGE_ast_INCLUDE}/ast_mode.h implicit - prev ${PACKAGE_ast_INCLUDE}/ast_fs.h - prev ${PACKAGE_ast_INCLUDE}/ast_std.h - done - prev ${PACKAGE_ast_INCLUDE}/error.h - prev ${PACKAGE_ast_INCLUDE}/endian.h - make ${PACKAGE_ast_INCLUDE}/cdt.h implicit + prev ${PACKAGE_ast_INCLUDE}/ast_map.h + prev ${PACKAGE_ast_INCLUDE}/ast_botch.h implicit + prev ${PACKAGE_ast_INCLUDE}/ast_limits.h implicit + make ${PACKAGE_ast_INCLUDE}/ast_fcntl.h implicit + prev ${PACKAGE_ast_INCLUDE}/ast_fs.h implicit + done + prev ${PACKAGE_ast_INCLUDE}/ast_getopt.h + make ${PACKAGE_ast_INCLUDE}/ast_sys.h implicit + prev ${PACKAGE_ast_INCLUDE}/getopt.h + prev ${PACKAGE_ast_INCLUDE}/endian.h + done + prev ${PACKAGE_ast_INCLUDE}/ast_lib.h implicit prev ${PACKAGE_ast_INCLUDE}/ast_common.h - prev ${PACKAGE_ast_INCLUDE}/ast_std.h done - prev ${PACKAGE_ast_INCLUDE}/ast.h done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} ${-debug-symbols?1?${mam_cc_DEBUG} -D_BLD_DEBUG?${CCFLAGS.FORCE}?} -I. -I${PACKAGE_ast_INCLUDE} -D_BLD_dll -c ${<} - done - make dllcheck.o - make dllcheck.c - prev dlllib.h + make ${PACKAGE_ast_INCLUDE}/sfio.h implicit + prev ${PACKAGE_ast_INCLUDE}/sfio_s.h + prev ${PACKAGE_ast_INCLUDE}/ast_common.h + prev ${PACKAGE_ast_INCLUDE}/ast_std.h done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -I${PACKAGE_ast_INCLUDE} -D_BLD_dll -c ${<} + prev ${PACKAGE_ast_INCLUDE}/ast_std.h done - make dllerror.o - make dllerror.c - prev dlllib.h - done + done + prev ${PACKAGE_ast_INCLUDE}/ast.h + done + make ${PACKAGE_ast_INCLUDE}/fts.h implicit + prev ${PACKAGE_ast_INCLUDE}/ast_mode.h implicit + prev ${PACKAGE_ast_INCLUDE}/ast_fs.h + prev ${PACKAGE_ast_INCLUDE}/ast_std.h + done + make ${PACKAGE_ast_INCLUDE}/cdt.h implicit + prev ${PACKAGE_ast_INCLUDE}/ast_common.h + prev ${PACKAGE_ast_INCLUDE}/ast_std.h + done + + note * + note * Library dependencies + note * + + bind -ldl dontcare + bind -last + make dll.req + prev ${INSTALLROOT}/bin/mkreq + exec - mkreq ${CC} ${mam_cc_FLAGS} ${CCFLAGS} : ${LDFLAGS} : dll dl dld ast + done + + note * + note * Header dependencies and feature tests + note * + + make dlfcn.c + prev ${PACKAGE_ast_INCLUDE}/error.h + make dlldefs.h implicit + make FEATURE/dll + prev features/dll + exec - iffe ${IFFEFLAGS} -v -c '${CC} ${mam_cc_FLAGS} ${CCFLAGS} ${LDFLAGS}' \ + exec - ref ${mam_cc_L+-L.} ${mam_cc_L+-L${INSTALLROOT}/lib} \ + exec - -I${PACKAGE_ast_INCLUDE} -I${INSTALLROOT}/include \ + exec - ${mam_libdl} ${mam_libast} : run ${<} + done + exec - cp -f ${<} ${@} + done + prev ${PACKAGE_ast_INCLUDE}/ast.h + done + make dllopen.c + make dlllib.h implicit + prev ${PACKAGE_ast_INCLUDE}/error.h + prev dlldefs.h + prev ${PACKAGE_ast_INCLUDE}/ast.h + done + done + make dllfind.c + prev ${PACKAGE_ast_INCLUDE}/error.h + prev dlldefs.h + prev ${PACKAGE_ast_INCLUDE}/ast.h + done + make dllplug.c + prev dlllib.h + done + make dll_lib.c + prev dlllib.h + done + make dllnext.c + prev dlldefs.h + prev ${PACKAGE_ast_INCLUDE}/ast.h + done + make dlllook.c + prev dlldefs.h + prev ${PACKAGE_ast_INCLUDE}/error.h + prev ${PACKAGE_ast_INCLUDE}/ast.h + done + make dllscan.c + prev dlldefs.h + prev ${PACKAGE_ast_INCLUDE}/vmalloc.h + prev ${PACKAGE_ast_INCLUDE}/fts.h + prev ${PACKAGE_ast_INCLUDE}/error.h + prev ${PACKAGE_ast_INCLUDE}/endian.h + prev ${PACKAGE_ast_INCLUDE}/cdt.h + prev ${PACKAGE_ast_INCLUDE}/ast.h + done + make dllcheck.c + prev dlllib.h + done + make dllerror.c + prev dlllib.h + done + + note * + note * Make the library + note * + + make libdll.a + loop OBJ dlfcn dllopen dllfind dllplug dll_lib dllnext dlllook dllscan dllcheck dllerror + make ${OBJ}.o + prev ${OBJ}.c exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -I${PACKAGE_ast_INCLUDE} -D_BLD_dll -c ${<} done - exec - if test -f ${@} - exec - then ${AR} rc ${@} ${?} # add changed *.o - exec - else ${AR} rc ${@} ${^} # add all *.o - exec - fi || exit - exec - (ranlib ${@}) >/dev/null 2>&1 || true - done libdll.a - done dll - prev libdll.a - make ${INSTALLROOT}/lib - exec - mkdir -p ${@} + done + exec - if test -f ${@} + exec - then ${AR} rc ${@} ${?} # add changed *.o + exec - else ${AR} rc ${@} ${^} # add all *.o + exec - fi || exit + exec - ranlib ${@} >/dev/null 2>&1 || true + done libdll.a + + note * + note * pre-install + note * + + loop DIR ${INSTALLROOT}/lib/lib ${PACKAGE_ast_INCLUDE} + make ${DIR} + exec - mkdir -p ${@} + done done make ${INSTALLROOT}/lib/libdll.a prev libdll.a exec - cp -f ${<} ${@} || exit - exec - (ranlib ${@}) >/dev/null 2>&1 || true - done - make ${INSTALLROOT}/lib/lib - exec - mkdir -p ${@} + exec - ranlib ${@} >/dev/null 2>&1 || true done make ${INSTALLROOT}/lib/lib/dll prev dll.req exec - cp -f ${<} ${@} done - make ${PACKAGE_ast_INCLUDE} - exec - mkdir -p ${PACKAGE_ast_INCLUDE} - done make ${PACKAGE_ast_INCLUDE}/dlldefs.h prev dlldefs.h exec - cp -f ${<} ${@} done done install + make test dontcare virtual done test diff --git a/src/lib/libsum/Mamfile b/src/lib/libsum/Mamfile index ae187fb9ea75..662957ffc060 100644 --- a/src/lib/libsum/Mamfile +++ b/src/lib/libsum/Mamfile @@ -1,156 +1,168 @@ note * -note * This build file is in the Make Abstract Machine (MAM) language. It was -note * first generated by nmake, but in the ksh 93u+m distribution we maintain -note * it manually because nmake had too many problems to keep using. The -note * Mamfiles are processed by mamake (src/cmd/INIT/mamake.c); we added -note * indentation to improve readability. The language is documented in -note * src/cmd/INIT/README-mamake.md. +note * This build script is in an extended Make Abstract Machine (MAM) +note * language. Documentation is at: src/cmd/INIT/README-mamake.md note * -setv MAMAKE_STRICT + +setv MAMAKE_STRICT 2 setv INSTALLROOT ../../.. setv PACKAGE_ast_INCLUDE ${INSTALLROOT}/include/ast -setv AR ${mam_cc_AR} ${mam_cc_AR_ARFLAGS} setv CC cc -setv mam_cc_FLAGS ${mam_cc_PIC} -setv CCFLAGS ${-debug-symbols?1?${mam_cc_DEBUG} -D_BLD_DEBUG?${mam_cc_OPTIMIZE}?} +setv AR ${mam_cc_AR} ${mam_cc_AR_ARFLAGS} +setv mam_cc_FLAGS ${mam_cc_PIC} ${-debug-symbols?1?${mam_cc_DEBUG} -D_BLD_DEBUG?${mam_cc_OPTIMIZE}?} +setv CCFLAGS setv IFFEFLAGS setv LDFLAGS + make install virtual - make sum virtual - make sum.req - prev ${INSTALLROOT}/bin/mkreq - exec - mkreq ${CC} ${mam_cc_FLAGS} ${CCFLAGS} : ${LDFLAGS} : sum md ast + note * + note * AST header dependencies + note * TODO: verify and centralise + note * + + make ${PACKAGE_ast_INCLUDE}/endian.h implicit + make ${PACKAGE_ast_INCLUDE}/bytesex.h implicit + make ${PACKAGE_ast_INCLUDE}/ast_common.h implicit + prev ${PACKAGE_ast_INCLUDE}/ast_map.h implicit + prev ${PACKAGE_ast_INCLUDE}/endian.h + done done - make libsum.a - make sumlib.o - make sumlib.c - make sum-sha2.c implicit dontcare - make ${PACKAGE_ast_INCLUDE}/endian.h implicit - make ${PACKAGE_ast_INCLUDE}/bytesex.h implicit - make ${PACKAGE_ast_INCLUDE}/ast_common.h implicit - prev ${PACKAGE_ast_INCLUDE}/ast_map.h implicit - prev ${PACKAGE_ast_INCLUDE}/endian.h + done + make ${PACKAGE_ast_INCLUDE}/fnv.h implicit + prev ${PACKAGE_ast_INCLUDE}/ast_common.h + done + make ${PACKAGE_ast_INCLUDE}/swap.h implicit + prev ${PACKAGE_ast_INCLUDE}/ast_common.h + done + make ${PACKAGE_ast_INCLUDE}/ast.h implicit + prev ${PACKAGE_ast_INCLUDE}/ast_api.h implicit + make ${PACKAGE_ast_INCLUDE}/vmalloc.h implicit + prev ${PACKAGE_ast_INCLUDE}/ast_common.h + make ${PACKAGE_ast_INCLUDE}/ast_std.h implicit + make ${PACKAGE_ast_INCLUDE}/regex.h implicit + prev ${PACKAGE_ast_INCLUDE}/ast_api.h + make ${PACKAGE_ast_INCLUDE}/ast_wchar.h implicit + make ${PACKAGE_ast_INCLUDE}/wctype.h implicit + make ${PACKAGE_ast_INCLUDE}/ast_wctype.h implicit + prev ${PACKAGE_ast_INCLUDE}/endian.h + make ${PACKAGE_ast_INCLUDE}/wchar.h implicit + prev ${PACKAGE_ast_INCLUDE}/ast_wchar.h done done done - done - prev sum-sha1.c implicit dontcare - prev sum-md5.c implicit dontcare - make sum-lmd.c implicit dontcare - prev sha2.h implicit dontcare virtual - prev sha1.h implicit dontcare virtual - prev md5.h implicit dontcare virtual - prev md4.h implicit dontcare virtual - done - make sum-prng.c implicit - make ${PACKAGE_ast_INCLUDE}/fnv.h implicit - prev ${PACKAGE_ast_INCLUDE}/ast_common.h - done - done - prev sum-bsd.c implicit - prev sum-ast4.c implicit - make FEATURE/sum implicit - prev features/sum - bind -last - exec - iffe ${IFFEFLAGS} -v -c "${CC} ${mam_cc_FLAGS} ${CCFLAGS} ${LDFLAGS}" ref ${mam_cc_L+-L${INSTALLROOT}/lib} -I${PACKAGE_ast_INCLUDE} -I${INSTALLROOT}/include ${mam_libast} : run ${<} - done - prev ${PACKAGE_ast_INCLUDE}/hashpart.h implicit - make ${PACKAGE_ast_INCLUDE}/swap.h implicit - prev ${PACKAGE_ast_INCLUDE}/ast_common.h - done - prev ${PACKAGE_ast_INCLUDE}/endian.h - make sum.h implicit - make ${PACKAGE_ast_INCLUDE}/ast.h implicit - prev ${PACKAGE_ast_INCLUDE}/ast_api.h implicit - make ${PACKAGE_ast_INCLUDE}/vmalloc.h implicit - prev ${PACKAGE_ast_INCLUDE}/ast_common.h - make ${PACKAGE_ast_INCLUDE}/ast_std.h implicit - make ${PACKAGE_ast_INCLUDE}/regex.h implicit - prev ${PACKAGE_ast_INCLUDE}/ast_api.h - make ${PACKAGE_ast_INCLUDE}/ast_wchar.h implicit - make ${PACKAGE_ast_INCLUDE}/wctype.h implicit - make ${PACKAGE_ast_INCLUDE}/ast_wctype.h implicit - prev ${PACKAGE_ast_INCLUDE}/endian.h - make ${PACKAGE_ast_INCLUDE}/wchar.h implicit - prev ${PACKAGE_ast_INCLUDE}/ast_wchar.h - done - done - done - make ${PACKAGE_ast_INCLUDE}/stdio.h implicit - make ${PACKAGE_ast_INCLUDE}/ast_stdio.h implicit - prev ${PACKAGE_ast_INCLUDE}/sfio_s.h implicit - prev ${PACKAGE_ast_INCLUDE}/ast_std.h - done - done - prev ${PACKAGE_ast_INCLUDE}/ast_common.h - done - prev ${PACKAGE_ast_INCLUDE}/ast_common.h - done - make ${PACKAGE_ast_INCLUDE}/getopt.h implicit - prev ${PACKAGE_ast_INCLUDE}/ast_getopt.h implicit - done - prev ${PACKAGE_ast_INCLUDE}/ast_map.h - prev ${PACKAGE_ast_INCLUDE}/ast_botch.h implicit - prev ${PACKAGE_ast_INCLUDE}/ast_limits.h implicit - make ${PACKAGE_ast_INCLUDE}/ast_fcntl.h implicit - prev ${PACKAGE_ast_INCLUDE}/ast_fs.h implicit - done - prev ${PACKAGE_ast_INCLUDE}/ast_getopt.h - make ${PACKAGE_ast_INCLUDE}/ast_sys.h implicit - prev ${PACKAGE_ast_INCLUDE}/getopt.h - prev ${PACKAGE_ast_INCLUDE}/endian.h - done - prev ${PACKAGE_ast_INCLUDE}/ast_lib.h implicit - prev ${PACKAGE_ast_INCLUDE}/ast_common.h - done - done - make ${PACKAGE_ast_INCLUDE}/sfio.h implicit - prev ${PACKAGE_ast_INCLUDE}/sfio_s.h - prev ${PACKAGE_ast_INCLUDE}/ast_common.h + make ${PACKAGE_ast_INCLUDE}/stdio.h implicit + make ${PACKAGE_ast_INCLUDE}/ast_stdio.h implicit + prev ${PACKAGE_ast_INCLUDE}/sfio_s.h implicit prev ${PACKAGE_ast_INCLUDE}/ast_std.h done - prev ${PACKAGE_ast_INCLUDE}/ast_std.h done + prev ${PACKAGE_ast_INCLUDE}/ast_common.h done - make sum-att.c implicit - prev ${PACKAGE_ast_INCLUDE}/ast.h - done - make sum-crc.c implicit - prev ${PACKAGE_ast_INCLUDE}/ast.h - done + prev ${PACKAGE_ast_INCLUDE}/ast_common.h done - exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -I${PACKAGE_ast_INCLUDE} -c ${<} - done sumlib.o - exec - if test -f ${@} - exec - then ${AR} rc ${@} ${?} # add changed *.o - exec - else ${AR} rc ${@} ${^} # add all *.o - exec - fi || exit - exec - (ranlib ${@}) >/dev/null 2>&1 || true - done libsum.a - done sum + make ${PACKAGE_ast_INCLUDE}/getopt.h implicit + prev ${PACKAGE_ast_INCLUDE}/ast_getopt.h implicit + done + prev ${PACKAGE_ast_INCLUDE}/ast_map.h + prev ${PACKAGE_ast_INCLUDE}/ast_botch.h implicit + prev ${PACKAGE_ast_INCLUDE}/ast_limits.h implicit + make ${PACKAGE_ast_INCLUDE}/ast_fcntl.h implicit + prev ${PACKAGE_ast_INCLUDE}/ast_fs.h implicit + done + prev ${PACKAGE_ast_INCLUDE}/ast_getopt.h + make ${PACKAGE_ast_INCLUDE}/ast_sys.h implicit + prev ${PACKAGE_ast_INCLUDE}/getopt.h + prev ${PACKAGE_ast_INCLUDE}/endian.h + done + prev ${PACKAGE_ast_INCLUDE}/ast_lib.h implicit + prev ${PACKAGE_ast_INCLUDE}/ast_common.h + done + done + make ${PACKAGE_ast_INCLUDE}/sfio.h implicit + prev ${PACKAGE_ast_INCLUDE}/sfio_s.h + prev ${PACKAGE_ast_INCLUDE}/ast_common.h + prev ${PACKAGE_ast_INCLUDE}/ast_std.h + done + prev ${PACKAGE_ast_INCLUDE}/ast_std.h + done + prev ${PACKAGE_ast_INCLUDE}/hashpart.h implicit + + note * + note * Library dependencies + note * + + bind -last + make sum.req + prev ${INSTALLROOT}/bin/mkreq + exec - mkreq ${CC} ${mam_cc_FLAGS} ${CCFLAGS} : ${LDFLAGS} : sum md ast + done + + note * + note * Build the library + note * + + make libsum.a + make sumlib.o + make sumlib.c + make sum-sha2.c implicit + prev ${PACKAGE_ast_INCLUDE}/endian.h + done + prev sum-sha1.c implicit + prev sum-md5.c implicit + prev sum-lmd.c implicit + make sum-prng.c implicit + prev ${PACKAGE_ast_INCLUDE}/fnv.h + done + prev sum-bsd.c implicit + prev sum-ast4.c implicit + make FEATURE/sum implicit + prev features/sum + exec - iffe ${IFFEFLAGS} -v -c '${CC} ${mam_cc_FLAGS} ${CCFLAGS} ${LDFLAGS}' \ + exec - ref ${mam_cc_L+-L${INSTALLROOT}/lib} -I${PACKAGE_ast_INCLUDE} \ + exec - -I${INSTALLROOT}/include ${mam_libast} : run ${<} + done + prev ${PACKAGE_ast_INCLUDE}/hashpart.h + prev ${PACKAGE_ast_INCLUDE}/swap.h + prev ${PACKAGE_ast_INCLUDE}/endian.h + make sum.h implicit + prev ${PACKAGE_ast_INCLUDE}/ast.h + done + make sum-att.c implicit + prev ${PACKAGE_ast_INCLUDE}/ast.h + done + make sum-crc.c implicit + prev ${PACKAGE_ast_INCLUDE}/ast.h + done + done + exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -I${PACKAGE_ast_INCLUDE} -c ${<} + done sumlib.o + exec - ${AR} rc ${@} ${<} || exit + exec - ranlib ${@} >/dev/null 2>&1 || true + done libsum.a + + note * + note * pre-install + note * + prev libsum.a - make ${INSTALLROOT}/lib - exec - mkdir -p ${@} + loop DIR ${INSTALLROOT}/lib/lib ${PACKAGE_ast_INCLUDE} + make ${DIR} + exec - mkdir -p ${@} + done done make ${INSTALLROOT}/lib/libsum.a prev libsum.a exec - cp -f ${<} ${@} || exit - exec - (ranlib ${@}) >/dev/null 2>&1 || true - done - make ${INSTALLROOT}/lib/lib - exec - mkdir -p ${@} + exec - ranlib ${@} >/dev/null 2>&1 || true done make ${INSTALLROOT}/lib/lib/sum prev sum.req exec - cp -f ${<} ${@} done - make ${PACKAGE_ast_INCLUDE} - exec - mkdir -p ${PACKAGE_ast_INCLUDE} - done make ${PACKAGE_ast_INCLUDE}/sum.h prev sum.h exec - cp -f ${<} ${@} done done install + make test dontcare virtual done test