aboutsummaryrefslogtreecommitdiff
path: root/Makefile
AgeCommit message (Collapse)Author
2014-09-20Forgot to check in the updated makefile when I moved the testsuite.Rob Landley
(Did you know you can test individual commands with scripts/test.sh command? Now you do...)
2014-09-11Create a generated/build.sh with a single compiler command line to rebuild ↵Rob Landley
the toybox_unstripped binary using the existing generated/*.h files. This way we can snapshot the generated/*.{h,sh} from a defconfig build into a "shipped" directory or something, and then people can maybe build on crazy crippled environments like pcbsd that haven't got gmake and put bash under /usr/local so none of the #!/scripts can find it. This solves at least part of the "toybox can build with itself but you need to build toybox first to have the tools to run the build scripts" problem. Next up: work out the minimal config to provide the build tools needed to run an actual build. (This should, eventually, include a "make" command if freebsd's kernel is going to refuse to build with netbsd's "make" and we don't just write off the whole thing as crazy. But it probably shouldn't include commands that #include <linux/*.h> if we are trying to make that work.)
2014-09-09Make tweaks: collate generated/*.o files into their own subdirectory, add ↵Rob Landley
PIPEFAIL for better error reporting, and simpler regex to select toys/*/*.c list based on NEWTOY/OLDTOY macros.
2014-08-10Update clean to clean up after new parallel build.Rob Landley
2014-04-15Probes for O_NOFOLLOW that compile and run something aren't compatible with ↵Rob Landley
cross compiling, so just #define it to 0 if it's not in fcntl.h where posix-2008 says.
2014-02-28Fix two bugs reported by Ashwini Sharma.Rob Landley
2014-01-03Replace python help converter with C implementation.Rob Landley
2013-11-10distclean was missing singleconfig.old.Rob Landley
2013-10-03Switch flag generation from shell to C.Rob Landley
This should actually generate FLAG_longopt 0 #defines for disabled bare longopts (ala ls without --color). Put temporary executables under "generated" (including instlist for install).
2013-08-30Add scripts/single.sh to build individual non-multiplexed standalone commands.Rob Landley
Alas, you can't quite do this yet: make defconfig make for i in $(./toybox) do echo $i PREFIX=singles/ scripts/single.sh $i || break done Because the OLDTOY() aliases for commands won't build without the base command. And I can't just skip them because chown/chmod or mv/cp aren't the same thing.
2013-08-12More grep cleanup, and make OPTSTR_command macros for use with OLDTOY()Rob Landley
2012-08-25Move commands into "posix", "lsb", and "other" menus/directories.Rob Landley
2012-06-18Replace CCFLAGS with description of how to add flags to HOSTCC.Rob Landley
2012-02-28Now that generated/Config.probed is its own file, add it to build dependencies.Rob Landley
2012-02-21Replace GPL python debug script with BSD shell script.Rob Landley
2012-02-19Set HOSTCC only if it isn't already set as an environment variable.Rob Landley
2012-02-04Add a basic README and an example to "make help".Rob Landley
2012-02-03Add autodetect for container support.Rob Landley
2011-12-28Fix "make help".Rob Landley
2009-03-28Regenerate Config.in when toys/*.c changes.Rob Landley
2008-05-04Try to convince make to be less stupid about rebuilding.Rob Landley
2008-03-29Wow is make stupid. (Ahem, full of "magic, implicit rules". Which are stupid.)Rob Landley
The directory scripts/test is not related to the script scripts/test.sh. If the shell script is newer than the directory, IT DOESN'T MATTER.
2008-03-28Update help, move test.sh to scripts, and fix "make test" to call right script.Rob Landley
2008-03-28Add uninstall and uninstall_flat.Rob Landley
2008-03-28Add install target, and make install_flat use scripts/install.shRob Landley
2008-02-23Don't delete testdir after running test.sh. Add it to make clean instead.Rob Landley
2008-02-17Yet more build dependency tweaks...Rob Landley
2008-01-22Might as well make the dependencies slightly more paranoid.Rob Landley
(The only reason to have dependencies at all is so "make install" doesn't trigger a rebuild. A rebuild is always a build all anyway.)
2008-01-21Hit makefile dependencies so install step doesn't rebuild toybox.Rob Landley
2008-01-20Zap toylist.h, moving contents of global structures into DEFINE_GLOBALS()Rob Landley
macros in each C file, and making generated/globals.h from that. Rename "toy" to "this" along the way to avoid toy/toys confusion.
2008-01-19Move NEWTOY() list from end of toylist.h to generated/newtoys.h.Rob Landley
2008-01-19Zap toys/Config.in and instead create generated/Config.in from contents ofRob Landley
toys/*.c. Move relevant info into comment at the top of each toys/*.c. Also convert more of Makefile into a thin wrapper around shell scripts that actually do the work. (Makefile is only still there for the user interface.)
2008-01-10Move some generated files into the "generated" subdirectory.Rob Landley
2007-12-09Add some more .PHONY targets.Rob Landley
2007-11-27Add a comment about a case that made me stop and think.Rob Landley
2007-11-25Rebuild toybox when a header file changesCharlie Shepherd
2007-11-10Make toybox_unstripped depend upon toys/help.h (so it will be rebuilt when ↵Charlie Shepherd
toys/Config.in is updated)
2007-11-12Patch fromm Roberto Foglietta: distclean should remove toys/help.hRob Landley
2007-11-06Move toybox_old delete (for bloatcheck) from clean to distclean.Rob Landley
2007-09-04Move optimizer flags to OPTIMIZE, so "make CC=tcc OPTIMIZE=" is an option.Rob Landley
2007-08-29Add "help" command. (Building help/help.h requires python, but I'll shipRob Landley
that file with release versions.)
2007-06-18Fix makefile to defconfig properly, and leak in a bit of the new test0.0.3Rob Landley
infrastructure so I don't have to revert it to check this in. :)
2007-06-07More cross compiling infrastructure.Rob Landley
2007-05-29Make it easier to specify which compiler to use.Rob Landley
2007-03-12Convert HOST_CC to HOSTCC to be more like uClibc build.Rob Landley
2007-02-13MacOS X has a defective sed with no -r.Rob Landley
2007-02-03Teach build to build only the toys/*.c selected in .config, and teachRob Landley
CFG_TOYSH_DEBUG to shut up the spurious "gcc can't tell that this is never actually used uninitialized because gcc is stupid" warnings.
2007-01-31Missing comma, and slight simplification in defconfig sed invocation.Rob Landley
2007-01-31Add "make defconfig". Modify global options to start with CONFIG_TOYBOX_.Rob Landley
2007-01-31Add make install_flat.Rob Landley