2005-04-21 16:53:53 +02:00
|
|
|
# Master Makefile to compile everything in /usr/src except the system.
|
|
|
|
|
2010-12-10 23:20:12 +01:00
|
|
|
.include <bsd.own.mk>
|
|
|
|
|
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/"
|
2011-06-07 14:48:31 +02:00
|
|
|
@echo " make libraries # Compile and install libraries (ack)"
|
|
|
|
@echo " make elf-libraries # Compile and install gcc/clang elf libs"
|
2010-03-08 12:04:59 +01:00
|
|
|
@echo " make commands # Compile all, commands, but don't install"
|
|
|
|
@echo " make install # Compile and install commands"
|
|
|
|
@echo " make gnu-includes # Install include files 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.
|
2011-07-24 18:46:51 +02:00
|
|
|
.if ${COMPILER_TYPE} == "ack"
|
2011-07-22 14:57:55 +02:00
|
|
|
world: mkfiles etcfiles includes libraries elf-libraries dep-all install etcforce
|
2011-07-24 18:46:51 +02:00
|
|
|
.else
|
|
|
|
world: mkfiles etcfiles includes elf-libraries dep-all install etcforce
|
|
|
|
.endif
|
2010-09-15 16:18:39 +02:00
|
|
|
|
2010-02-25 23:10:48 +01:00
|
|
|
mkfiles:
|
2010-06-25 21:33:56 +02:00
|
|
|
make -C share/mk install
|
2005-04-21 16:53:53 +02:00
|
|
|
|
2005-05-02 16:30:04 +02:00
|
|
|
includes:
|
2011-04-27 15:00:52 +02:00
|
|
|
$(MAKE) -C nbsd_include includes
|
2010-06-22 14:03:09 +02:00
|
|
|
$(MAKE) -C include includes
|
2011-04-27 15:00:52 +02:00
|
|
|
$(MAKE) -C lib includes NBSD_LIBC=yes
|
2011-07-24 18:46:51 +02:00
|
|
|
.if ${COMPILER_TYPE} == "ack"
|
2011-04-27 15:00:52 +02:00
|
|
|
$(MAKE) -C lib includes NBSD_LIBC=no
|
2011-07-24 18:46:51 +02:00
|
|
|
.endif
|
2005-05-02 16:30:04 +02:00
|
|
|
|
2010-06-22 14:03:09 +02:00
|
|
|
libraries: includes
|
|
|
|
$(MAKE) -C lib build_ack
|
2005-04-21 16:53:53 +02:00
|
|
|
|
2011-06-29 18:24:16 +02:00
|
|
|
MKHEADERSS=/usr/pkg/gcc*/libexec/gcc/*/*/install-tools/mkheaders
|
2010-03-08 12:04:59 +01:00
|
|
|
gnu-includes: includes
|
2011-06-29 18:24:16 +02:00
|
|
|
SHELL=/bin/sh; for d in $(MKHEADERSS); do if [ -f $$d ] ; then sh -e $$d ; fi; done
|
2010-03-08 12:04:59 +01:00
|
|
|
|
2011-06-07 14:48:31 +02:00
|
|
|
elf-libraries: includes
|
2010-12-10 23:20:12 +01:00
|
|
|
$(MAKE) -C lib build_elf
|
|
|
|
|
2010-06-22 14:03:09 +02:00
|
|
|
commands: includes libraries
|
|
|
|
$(MAKE) -C commands all
|
2011-07-01 18:43:15 +02:00
|
|
|
$(MAKE) -C bin all
|
2011-06-29 00:15:19 +02:00
|
|
|
$(MAKE) -C usr.bin all
|
2011-09-26 18:19:29 +02:00
|
|
|
$(MAKE) -C libexec all
|
2011-09-30 12:18:10 +02:00
|
|
|
$(MAKE) -C usr.sbin all
|
2005-04-21 16:53:53 +02:00
|
|
|
|
2011-07-19 15:26:25 +02:00
|
|
|
dep-all:
|
|
|
|
$(MAKE) CC=cc -C boot dependall
|
|
|
|
$(MAKE) -C commands dependall
|
|
|
|
$(MAKE) -C bin dependall
|
|
|
|
$(MAKE) -C usr.bin dependall
|
2011-09-26 18:19:29 +02:00
|
|
|
$(MAKE) -C libexec dependall
|
2011-09-30 12:18:10 +02:00
|
|
|
$(MAKE) -C usr.sbin dependall
|
2011-07-19 15:26:25 +02:00
|
|
|
$(MAKE) -C kernel dependall
|
|
|
|
$(MAKE) -C servers dependall
|
|
|
|
$(MAKE) -C drivers dependall
|
2005-06-24 18:25:12 +02:00
|
|
|
|
2010-12-10 23:20:12 +01:00
|
|
|
etcfiles:
|
2010-06-22 14:03:09 +02:00
|
|
|
$(MAKE) -C etc install
|
2005-04-21 16:53:53 +02:00
|
|
|
|
2010-12-10 23:20:12 +01:00
|
|
|
etcforce:
|
2010-08-27 12:09:06 +02:00
|
|
|
$(MAKE) -C etc installforce
|
|
|
|
|
2010-12-10 23:20:12 +01:00
|
|
|
all:
|
2011-04-27 15:00:52 +02:00
|
|
|
$(MAKE) CC=cc -C boot all
|
2010-06-22 14:03:09 +02:00
|
|
|
$(MAKE) -C commands all
|
2011-07-01 18:43:15 +02:00
|
|
|
$(MAKE) -C bin all
|
2011-06-29 00:15:19 +02:00
|
|
|
$(MAKE) -C usr.bin all
|
2011-09-26 18:19:29 +02:00
|
|
|
$(MAKE) -C libexec all
|
2011-09-30 12:18:10 +02:00
|
|
|
$(MAKE) -C usr.sbin all
|
2010-06-22 14:03:09 +02:00
|
|
|
$(MAKE) -C tools all
|
2005-07-26 15:50:58 +02:00
|
|
|
|
2010-12-10 23:20:12 +01:00
|
|
|
install:
|
2011-04-27 15:00:52 +02:00
|
|
|
$(MAKE) CC=cc -C boot install
|
2011-09-26 18:19:29 +02:00
|
|
|
$(MAKE) -C libexec install
|
2010-06-22 14:03:09 +02:00
|
|
|
$(MAKE) -C man install makedb
|
|
|
|
$(MAKE) -C commands install
|
2011-07-01 18:43:15 +02:00
|
|
|
$(MAKE) -C bin install
|
2011-06-29 00:15:19 +02:00
|
|
|
$(MAKE) -C usr.bin install
|
2011-09-30 12:18:10 +02:00
|
|
|
$(MAKE) -C usr.sbin install
|
2011-07-19 15:26:25 +02:00
|
|
|
$(MAKE) -C servers install
|
2010-06-22 14:03:09 +02:00
|
|
|
$(MAKE) -C share install
|
|
|
|
$(MAKE) -C tools install
|
2010-02-16 15:41:33 +01:00
|
|
|
|
2011-07-27 18:01:44 +02:00
|
|
|
clean: mkfiles
|
2010-06-22 14:03:09 +02:00
|
|
|
$(MAKE) -C boot clean
|
|
|
|
$(MAKE) -C commands clean
|
2011-07-01 18:43:15 +02:00
|
|
|
$(MAKE) -C bin clean
|
2011-06-29 00:15:19 +02:00
|
|
|
$(MAKE) -C usr.bin clean
|
2011-09-26 18:19:29 +02:00
|
|
|
$(MAKE) -C libexec clean
|
2011-09-30 12:18:10 +02:00
|
|
|
$(MAKE) -C usr.sbin clean
|
2010-06-22 14:03:09 +02:00
|
|
|
$(MAKE) -C tools clean
|
2011-06-07 14:48:31 +02:00
|
|
|
$(MAKE) -C lib clean_all
|
2010-06-22 14:03:09 +02:00
|
|
|
$(MAKE) -C test clean
|
2010-06-01 16:44:36 +02:00
|
|
|
|
2011-07-27 18:01:44 +02:00
|
|
|
cleandepend: mkfiles
|
2011-07-01 15:57:43 +02:00
|
|
|
$(MAKE) -C lib cleandepend_all
|
2010-06-22 14:03:09 +02:00
|
|
|
$(MAKE) -C boot cleandepend
|
|
|
|
$(MAKE) -C commands cleandepend
|
2011-07-01 18:43:15 +02:00
|
|
|
$(MAKE) -C bin cleandepend
|
2011-06-29 00:15:19 +02:00
|
|
|
$(MAKE) -C usr.bin cleandepend
|
2011-09-26 18:19:29 +02:00
|
|
|
$(MAKE) -C libexec cleandepend
|
2011-09-30 12:18:10 +02:00
|
|
|
$(MAKE) -C usr.sbin cleandepend
|
2010-06-22 14:03:09 +02:00
|
|
|
$(MAKE) -C tools cleandepend
|