2005-04-21 16:53:53 +02:00
|
|
|
# Master Makefile to compile everything in /usr/src except the system.
|
|
|
|
|
2010-02-16 15:41:33 +01:00
|
|
|
MAKE=make
|
2005-04-21 16:53:53 +02:00
|
|
|
|
|
|
|
usage:
|
2005-10-21 20:31:45 +02:00
|
|
|
@echo ""
|
|
|
|
@echo "Master Makefile for MINIX commands and utilities."
|
|
|
|
@echo "Root privileges are required for some actions."
|
|
|
|
@echo ""
|
|
|
|
@echo "Usage:"
|
2010-03-08 12:04:59 +01:00
|
|
|
@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"
|
2005-10-21 20:31:45 +02:00
|
|
|
@echo ""
|
|
|
|
@echo "Run 'make' in tools/ to create a new MINIX configuration."
|
|
|
|
@echo ""
|
2005-04-21 16:53:53 +02:00
|
|
|
|
|
|
|
# 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.
|
2005-09-16 15:10:56 +02:00
|
|
|
#
|
|
|
|
# etcfiles has to be done first.
|
2010-02-25 23:10:48 +01:00
|
|
|
world: mkfiles includes depend libraries install postinstall
|
|
|
|
|
|
|
|
mkfiles:
|
|
|
|
cp etc/mk/*.mk /etc/mk/
|
2005-04-21 16:53:53 +02:00
|
|
|
|
2005-05-02 16:30:04 +02:00
|
|
|
includes:
|
2010-03-08 12:04:59 +01:00
|
|
|
cd include && $(MAKE) includes
|
2005-05-02 16:30:04 +02:00
|
|
|
|
2005-04-21 16:53:53 +02:00
|
|
|
libraries:
|
2010-02-16 15:41:33 +01:00
|
|
|
cd lib && sh ack_build.sh obj depend all install
|
2005-04-21 16:53:53 +02:00
|
|
|
|
2010-03-08 12:04:59 +01:00
|
|
|
MKHEADERS411=/usr/gnu/libexec/gcc/i386-pc-minix/4.1.1/install-tools/mkheaders
|
2010-03-08 15:51:00 +01:00
|
|
|
MKHEADERS443=/usr/gnu/libexec/gcc/i686-pc-minix/4.4.3/install-tools/mkheaders
|
2010-03-08 12:04:59 +01:00
|
|
|
gnu-includes: includes
|
|
|
|
SHELL=/bin/sh; if [ -f $(MKHEADERS411) ] ; then sh -e $(MKHEADERS411) ; fi
|
2010-03-08 15:51:00 +01:00
|
|
|
SHELL=/bin/sh; if [ -f $(MKHEADERS443) ] ; then sh -e $(MKHEADERS443) ; fi
|
2010-03-08 12:04:59 +01:00
|
|
|
|
2010-02-16 15:41:33 +01:00
|
|
|
gnu-libraries:
|
|
|
|
cd lib && sh gnu_build.sh obj depend all install
|
2005-04-21 16:53:53 +02:00
|
|
|
|
2010-02-16 15:41:33 +01:00
|
|
|
commands:
|
|
|
|
cd commands && $(MAKE) all
|
2005-04-21 16:53:53 +02:00
|
|
|
|
2005-06-24 18:25:12 +02:00
|
|
|
depend::
|
2010-05-12 18:28:54 +02:00
|
|
|
cd boot && $(MAKE) $@
|
|
|
|
cd commands && $(MAKE) $@
|
2005-07-22 20:38:20 +02:00
|
|
|
cd kernel && $(MAKE) $@
|
|
|
|
cd servers && $(MAKE) $@
|
|
|
|
cd drivers && $(MAKE) $@
|
2005-06-24 18:25:12 +02:00
|
|
|
|
2005-04-21 16:53:53 +02:00
|
|
|
etcfiles::
|
|
|
|
cd etc && $(MAKE) install
|
|
|
|
|
2010-02-16 15:41:33 +01:00
|
|
|
all::
|
|
|
|
cd boot && $(MAKE) all
|
|
|
|
cd commands && $(MAKE) all
|
|
|
|
cd tools && $(MAKE) all
|
|
|
|
cd servers && $(MAKE) all
|
2010-03-22 22:25:22 +01:00
|
|
|
cd drivers && $(MAKE) all
|
2005-07-26 15:50:58 +02:00
|
|
|
|
2010-02-16 15:41:33 +01:00
|
|
|
install::
|
|
|
|
cd boot && $(MAKE) all install
|
2010-03-16 01:15:43 +01:00
|
|
|
cd man && $(MAKE) all install makedb
|
2010-02-16 15:41:33 +01:00
|
|
|
cd commands && $(MAKE) all install
|
2010-05-12 18:28:54 +02:00
|
|
|
cd share && $(MAKE) all install
|
2010-02-16 15:41:33 +01:00
|
|
|
cd tools && $(MAKE) all install
|
|
|
|
cd servers && $(MAKE) all install
|
2010-03-22 22:25:22 +01:00
|
|
|
cd drivers && $(MAKE) all install
|
2010-02-16 15:41:33 +01:00
|
|
|
|
|
|
|
clean::
|
|
|
|
cd boot && $(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
|
2005-04-21 16:53:53 +02:00
|
|
|
|
2005-08-29 21:38:19 +02:00
|
|
|
postinstall:
|
|
|
|
cd etc && $(MAKE) $@
|