cosmopolitan/tool/build
Justine Tunney cf93ecbbb2 Prove that Makefile is fully defined
The whole repository is now buildable with GNU Make Landlock sandboxing.
This proves that no Makefile targets exist which touch files other than
their declared prerequisites. In order to do this, we had to:

  1. Stop code morphing GCC output in package.com and instead run a
     newly introduced FIXUPOBJ.COM command after GCC invocations.

  2. Disable all the crumby Python unit tests that do things like create
     files in the current directory, or rename() files between folders.
     This ended up being a lot of tests, but most of them are still ok.

  3. Introduce an .UNSANDBOXED variable to GNU Make to disable Landlock.
     We currently only do this for things like `make tags`.

  4. This change deletes some GNU Make code that was preventing the
     execve() optimization from working. This means it should no longer
     be necessary in most cases for command invocations to be indirected
     through the cocmd interpreter.

  5. Missing dependencies had to be declared in certain places, in cases
     where they couldn't be automatically determined by MKDEPS.COM

  6. The libcxx header situation has finally been tamed. One of the
     things that makes this difficult is MKDEPS.COM only wants to
     consider the first 64kb of a file, in order to go fast. But libcxx
     likes to have #include lines buried after huge documentation.

  7. An .UNVEIL variable has been introduced to GNU Make just in case
     we ever wish to explicitly specify additional things that need to
     be whitelisted which aren't strictly prerequisites. This works in
     a manner similar to the recently introduced .EXTRA_PREREQS feature.

There's now a new build/bootstrap/make.com prebuilt binary available. It
should no longer be possible to write invalid Makefile code.
2022-08-06 04:05:08 -07:00
..
emubin Improve synchronization 2022-04-15 15:31:55 -07:00
emucrt Prove that Makefile is fully defined 2022-08-06 04:05:08 -07:00
lib Prove that Makefile is fully defined 2022-08-06 04:05:08 -07:00
ar.c Reduce makefile dependencies by 10% 2022-06-08 20:01:28 -07:00
assimilate.c Remove plenty of makefile misconfigurations 2022-07-21 09:20:59 -07:00
bigmul.c Add SNI support to redbean and improve SSL perf 2021-07-23 13:56:13 -07:00
blinkenlights.c Improve redbean 2022-04-25 08:30:14 -07:00
build.mk Remove plenty of makefile misconfigurations 2022-07-21 09:20:59 -07:00
calculator.c Strengthen the pledge() polyfill 2022-06-27 13:02:17 -07:00
calculator.ctest Add cpu / mem / fsz limits to build system 2021-08-13 23:40:53 -07:00
calculator.inc Add SSL to redbean 2021-06-24 13:20:50 -07:00
chmod.c Remove plenty of makefile misconfigurations 2022-07-21 09:20:59 -07:00
cocmd.c Add pipelining to cocmd 2022-07-15 20:47:20 -07:00
compile.c WIP: Correct all typos (#498) 2022-07-20 14:01:15 -07:00
cp.c Reduce makefile dependencies by 10% 2022-06-08 20:01:28 -07:00
dd.c Remove plenty of makefile misconfigurations 2022-07-21 09:20:59 -07:00
deltaify.c Reduce makefile dependencies by 10% 2022-06-08 20:01:28 -07:00
dis.c Restart CI for New Technology and UBSAN hunting 2022-03-21 04:32:57 -07:00
dropcache.c Change license 2020-12-27 17:18:44 -08:00
echo.c Make build hermetic without shell scripts 2022-05-25 13:55:57 -07:00
fixupobj.c Prove that Makefile is fully defined 2022-08-06 04:05:08 -07:00
gzip.c Make build hermetic without shell scripts 2022-05-25 13:55:57 -07:00
helpop.c WIP: Correct all typos (#498) 2022-07-20 14:01:15 -07:00
lz4toasm.c Restart CI for New Technology and UBSAN hunting 2022-03-21 04:32:57 -07:00
mkdeps.c Prove that Makefile is fully defined 2022-08-06 04:05:08 -07:00
mkdir.c Make build hermetic without shell scripts 2022-05-25 13:55:57 -07:00
mv.c Remove plenty of makefile misconfigurations 2022-07-21 09:20:59 -07:00
ocat.c Remove plenty of makefile misconfigurations 2022-07-21 09:20:59 -07:00
package.c Prove that Makefile is fully defined 2022-08-06 04:05:08 -07:00
pledge.c Release pledge.com v1.4 2022-07-25 00:02:42 -07:00
printf.c Remove plenty of makefile misconfigurations 2022-07-21 09:20:59 -07:00
pstrace.c Reduce makefile dependencies by 10% 2022-06-08 20:01:28 -07:00
pwd.c Make build hermetic without shell scripts 2022-05-25 13:55:57 -07:00
refactor.c Remove garbage collector macro from header (#114) 2021-03-07 20:23:29 -08:00
rle.c Make improvements 2022-04-28 09:57:07 -07:00
rm.c Make build hermetic without shell scripts 2022-05-25 13:55:57 -07:00
rollup.c Prove that Makefile is fully defined 2022-08-06 04:05:08 -07:00
runit.c WIP: Correct all typos (#498) 2022-07-20 14:01:15 -07:00
runit.h Fix bugs and add security features to redbean 2022-04-18 00:01:26 -07:00
runitd.c Prove that Makefile is fully defined 2022-08-06 04:05:08 -07:00
strace.c Change type of errnos to errno_t 2022-08-05 02:13:10 -07:00
summy.c Fix build and delete superfluous files 2021-08-09 06:57:14 -07:00
symtab.c Add support for symbol table in .com files 2022-03-23 06:34:46 -07:00
tinyemu.c Fix our remarkable 184kb x86_64 emulator 2021-01-27 20:02:23 -08:00
touch.c Make build hermetic without shell scripts 2022-05-25 13:55:57 -07:00
unbundle.c Reduce makefile dependencies by 10% 2022-06-08 20:01:28 -07:00
unveil.c Make unveil() improvements (#493) 2022-07-18 08:26:40 -07:00
x86combos.c Remove more nonstandard stuff from cosmopolitan.h 2021-03-01 00:18:23 -08:00
xlat.c Update experiment with tty audio 2022-07-15 23:07:32 -07:00
zipobj.c Reduce makefile dependencies by 10% 2022-06-08 20:01:28 -07:00