2005-04-21 16:53:53 +02:00
|
|
|
# Master Makefile to compile everything in /usr/src except the system.
|
|
|
|
|
|
|
|
MAKE = exec make -$(MAKEFLAGS)
|
|
|
|
|
|
|
|
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:"
|
|
|
|
@echo " make world # Compile everything (libraries & commands)"
|
|
|
|
@echo " make includes # Install include files from src/"
|
|
|
|
@echo " make libraries # Compile and install libraries"
|
|
|
|
@echo " make cmds # Compile all, commands, but don't install"
|
|
|
|
@echo " make install # Compile and install commands"
|
|
|
|
@echo " make depend # Generate required .depend files"
|
|
|
|
@echo " make clean # Remove all compiler results"
|
|
|
|
@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.
|
2008-11-19 13:26:10 +01:00
|
|
|
world: includes depend cmds install postinstall
|
2005-04-21 16:53:53 +02:00
|
|
|
|
2005-05-02 16:30:04 +02:00
|
|
|
includes:
|
2005-10-21 20:31:45 +02:00
|
|
|
cd include && $(MAKE) install gcc
|
2005-05-02 16:30:04 +02:00
|
|
|
|
2005-04-21 16:53:53 +02:00
|
|
|
libraries:
|
2006-01-17 16:09:15 +01:00
|
|
|
cd lib && $(MAKE) all install
|
2005-04-21 16:53:53 +02:00
|
|
|
|
2005-06-17 15:42:06 +02:00
|
|
|
cmds:
|
2005-09-12 16:17:09 +02:00
|
|
|
if [ -f commands/Makefile ] ; then cd commands && $(MAKE) all; fi
|
2005-04-21 16:53:53 +02:00
|
|
|
|
2005-04-22 17:53:24 +02:00
|
|
|
install::
|
2005-09-12 16:17:09 +02:00
|
|
|
if [ -f commands/Makefile ] ; then cd commands && $(MAKE) install; fi
|
2005-04-21 16:53:53 +02:00
|
|
|
|
2005-06-24 18:25:12 +02:00
|
|
|
depend::
|
2005-07-22 20:38:20 +02:00
|
|
|
mkdep kernel
|
|
|
|
mkdep servers
|
|
|
|
mkdep drivers
|
|
|
|
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
|
|
|
clean::
|
2006-01-17 16:09:15 +01:00
|
|
|
cd lib && $(MAKE) $@
|
2005-04-21 16:53:53 +02:00
|
|
|
test ! -f commands/Makefile || { cd commands && $(MAKE) $@; }
|
|
|
|
|
|
|
|
etcfiles::
|
|
|
|
cd etc && $(MAKE) install
|
|
|
|
|
2005-07-26 15:50:58 +02:00
|
|
|
clean::
|
|
|
|
cd test && $(MAKE) $@
|
|
|
|
|
2005-04-21 16:53:53 +02:00
|
|
|
all install clean::
|
|
|
|
cd boot && $(MAKE) $@
|
2005-06-27 13:59:36 +02:00
|
|
|
cd man && $(MAKE) $@ # First manpages, then commands
|
2005-04-21 16:53:53 +02:00
|
|
|
test ! -f commands/Makefile || { cd commands && $(MAKE) $@; }
|
|
|
|
cd tools && $(MAKE) $@
|
2005-05-03 10:48:26 +02:00
|
|
|
cd servers && $(MAKE) $@
|
2005-04-21 16:53:53 +02:00
|
|
|
|
2005-08-29 21:38:19 +02:00
|
|
|
postinstall:
|
|
|
|
cd etc && $(MAKE) $@
|