1 # Master Makefile to compile everything in /usr/src except the system.
9 @echo
"Master Makefile for MINIX commands and utilities."
10 @echo
"Root privileges are required for some actions."
13 @echo
" make world # Compile everything (libraries & commands)"
14 @echo
" make includes # Install include files from src/"
15 @echo
" make libraries # Compile and install libraries (ack)"
16 @echo
" make elf-libraries # Compile and install gcc/clang elf libs"
17 @echo
" make commands # Compile all, commands, but don't install"
18 @echo
" make install # Compile and install commands"
19 @echo
" make gnu-includes # Install include files for GCC"
20 @echo
" make clean # Remove all compiler results"
22 @echo
"Run 'make' in tools/ to create a new MINIX configuration."
25 # world has to be able to make a new system, even if there
26 # is no complete old system. it has to install commands, for which
27 # it has to install libraries, for which it has to install includes,
28 # for which it has to install /etc (for users and ownerships).
29 # etcfiles also creates a directory hierarchy in its
30 # 'make install' target.
32 # etcfiles has to be done first.
33 .if
${COMPILER_TYPE} == "ack"
34 world
: mkfiles etcfiles includes libraries elf-libraries dep-all
install etcforce
36 world
: mkfiles etcfiles includes elf-libraries dep-all
install etcforce
40 make
-C share
/mk
install
43 $(MAKE
) -C nbsd_include includes
44 $(MAKE
) -C
include includes
45 $(MAKE
) -C lib includes NBSD_LIBC
=yes
46 .if
${COMPILER_TYPE} == "ack"
47 $(MAKE
) -C lib includes NBSD_LIBC
=no
51 $(MAKE
) -C lib build_ack
53 MKHEADERSS
=/usr
/pkg
/gcc
*/libexec
/gcc
/*/*/install-tools
/mkheaders
54 gnu-includes
: includes
55 SHELL
=/bin
/sh
; for d in
$(MKHEADERSS
); do if
[ -f
$$d ] ; then sh
-e
$$d ; fi
; done
57 elf-libraries
: includes
58 $(MAKE
) -C lib build_elf
60 commands
: includes libraries
61 $(MAKE
) -C commands
all
64 $(MAKE
) -C usr.bin
all
65 $(MAKE
) -C libexec
all
66 $(MAKE
) -C usr.sbin
all
69 $(MAKE
) CC
=cc -C boot dependall
70 $(MAKE
) CC
=clang
-C sys dependall
71 $(MAKE
) -C commands dependall
72 $(MAKE
) -C bin dependall
73 $(MAKE
) -C sbin dependall
74 $(MAKE
) -C usr.bin dependall
75 $(MAKE
) -C libexec dependall
76 $(MAKE
) -C usr.sbin dependall
77 $(MAKE
) -C kernel dependall
78 $(MAKE
) -C servers dependall
79 $(MAKE
) -C drivers dependall
82 $(MAKE
) -C etc
install
85 $(MAKE
) -C etc installforce
88 $(MAKE
) CC
=cc -C boot
all
89 $(MAKE
) CC
=clang
-C sys
all
90 $(MAKE
) -C commands
all
93 $(MAKE
) -C usr.bin
all
94 $(MAKE
) -C libexec
all
95 $(MAKE
) -C usr.sbin
all
99 $(MAKE
) CC
=cc -C boot
install
100 $(MAKE
) CC
=clang
-C sys
install
101 $(MAKE
) -C libexec
install
102 $(MAKE
) -C man
install makedb
103 $(MAKE
) -C commands
install
104 $(MAKE
) -C bin
install
105 $(MAKE
) -C sbin
install
106 $(MAKE
) -C usr.bin
install
107 $(MAKE
) -C usr.sbin
install
108 $(MAKE
) -C servers
install
109 $(MAKE
) -C share
install
110 $(MAKE
) -C tools
install
113 $(MAKE
) -C boot
clean
115 $(MAKE
) -C commands
clean
117 $(MAKE
) -C sbin
clean
118 $(MAKE
) -C usr.bin
clean
119 $(MAKE
) -C libexec
clean
120 $(MAKE
) -C usr.sbin
clean
121 $(MAKE
) -C tools
clean
122 $(MAKE
) -C lib clean_all
123 $(MAKE
) -C
test clean
126 $(MAKE
) -C lib cleandepend_all
127 $(MAKE
) -C boot cleandepend
128 $(MAKE
) -C sys cleandepend
129 $(MAKE
) -C commands cleandepend
130 $(MAKE
) -C bin cleandepend
131 $(MAKE
) -C sbin cleandepend
132 $(MAKE
) -C usr.bin cleandepend
133 $(MAKE
) -C libexec cleandepend
134 $(MAKE
) -C usr.sbin cleandepend
135 $(MAKE
) -C tools cleandepend