minix/Makefile
Arun Thomas 2a8fabf4ad Include directory reorg and makefile updates.
-Convert the include directory over to using bsdmake
 syntax
-Update/add mkfiles
-Modify install(1) so that it can create symlinks
-Update makefiles to use new install(1) options
-Rename /usr/include/ibm to /usr/include/i386
-Create /usr/include/machine symlink to arch header files
-Move vm_i386.h to its new home in the /usr/include/i386
-Update source files to #include the header files at their
 new homes.
-Add new gnu-includes target for building GCC headers
2010-03-08 11:04:59 +00:00

91 lines
2.5 KiB
Makefile

# Master Makefile to compile everything in /usr/src except the system.
MAKE=make
usage:
@echo ""
@echo "Master Makefile for MINIX commands and utilities."
@echo "Root privileges are required for some actions."
@echo ""
@echo "Usage:"
@echo " make world # Compile everything (libraries & commands)"
@echo " make includes # Install include files from src/"
@echo " make libraries # Compile and install libraries"
@echo " make commands # Compile all, commands, but don't install"
@echo " make install # Compile and install commands"
@echo " make depend # Generate required .depend files"
@echo " make gnu-includes # Install include files for GCC"
@echo " make gnu-libraries # Compile and install libraries for GCC"
@echo " make clean # Remove all compiler results"
@echo ""
@echo "Run 'make' in tools/ to create a new MINIX configuration."
@echo ""
# world has to be able to make a new system, even if there
# is no complete old system. it has to install commands, for which
# it has to install libraries, for which it has to install includes,
# for which it has to install /etc (for users and ownerships).
# etcfiles also creates a directory hierarchy in its
# 'make install' target.
#
# etcfiles has to be done first.
world: mkfiles includes depend libraries install postinstall
mkfiles:
cp etc/mk/*.mk /etc/mk/
includes:
cd include && $(MAKE) includes
libraries:
cd lib && sh ack_build.sh obj depend all install
MKHEADERS411=/usr/gnu/libexec/gcc/i386-pc-minix/4.1.1/install-tools/mkheaders
gnu-includes: includes
SHELL=/bin/sh; if [ -f $(MKHEADERS411) ] ; then sh -e $(MKHEADERS411) ; fi
gnu-libraries:
cd lib && sh gnu_build.sh obj depend all install
commands:
cd commands && $(MAKE) all
depend::
mkdep kernel
mkdep servers
mkdep drivers
cd kernel && $(MAKE) $@
cd servers && $(MAKE) $@
cd drivers && $(MAKE) $@
etcfiles::
cd etc && $(MAKE) install
all::
cd boot && $(MAKE) all
cd man && $(MAKE) all
cd commands && $(MAKE) all
cd tools && $(MAKE) all
cd servers && $(MAKE) all
install::
cd boot && $(MAKE) all install
cd man && $(MAKE) all install
cd commands && $(MAKE) all install
cd tools && $(MAKE) all install
cd servers && $(MAKE) all install
clean::
cd boot && $(MAKE) clean
cd man && $(MAKE) clean
cd commands && $(MAKE) clean
cd tools && $(MAKE) clean
cd servers && $(MAKE) clean
cd lib && sh ack_build.sh clean
cd lib && sh gnu_build.sh clean
cd commands && $(MAKE) clean
cd test && $(MAKE) clean
postinstall:
cd etc && $(MAKE) $@