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"
16 @echo
" make commands # Compile all, commands, but don't install"
17 @echo
" make install # Compile and install commands"
18 @echo
" make gnu-includes # Install include files for GCC"
19 @echo
" make clean # Remove all compiler results"
21 @echo
"Run 'make' in tools/ to create a new MINIX configuration."
24 # world has to be able to make a new system, even if there
25 # is no complete old system. it has to install commands, for which
26 # it has to install libraries, for which it has to install includes,
27 # for which it has to install /etc (for users and ownerships).
28 # etcfiles also creates a directory hierarchy in its
29 # 'make install' target.
31 # etcfiles has to be done first.
32 world
: mkfiles etcfiles includes libraries dep-all
install etcforce
35 make
-C share
/mk
install
38 $(MAKE
) -C
include includes
39 $(MAKE
) -C lib includes NBSD_LIBC
=yes
40 $(MAKE
) -C sys includes
42 MKHEADERSS
=/usr
/pkg
/gcc
*/libexec
/gcc
/*/*/install-tools
/mkheaders
43 gnu-includes
: includes
44 SHELL
=/bin
/sh
; for d in
$(MKHEADERSS
); do if
[ -f
$$d ] ; then sh
-e
$$d ; fi
; done
47 $(MAKE
) -C lib dependall
install
49 commands
: includes libraries
50 $(MAKE
) -C commands
all
53 $(MAKE
) -C usr.bin
all
54 $(MAKE
) -C external
all
55 $(MAKE
) -C libexec
all
56 $(MAKE
) -C usr.sbin
all
59 $(MAKE
) -C sys dependall
60 $(MAKE
) -C commands dependall
61 $(MAKE
) -C bin dependall
62 $(MAKE
) -C sbin dependall
63 $(MAKE
) -C usr.bin dependall
64 $(MAKE
) -C external dependall
65 $(MAKE
) -C libexec dependall
66 $(MAKE
) -C usr.sbin dependall
67 $(MAKE
) -C kernel dependall
68 $(MAKE
) -C servers dependall
69 $(MAKE
) -C drivers dependall
72 $(MAKE
) -C etc
install
75 $(MAKE
) -C etc installforce
79 $(MAKE
) -C commands
all
82 $(MAKE
) -C usr.bin
all
83 $(MAKE
) -C external
all
84 $(MAKE
) -C libexec
all
85 $(MAKE
) -C usr.sbin
all
89 $(MAKE
) -C sys
install
90 $(MAKE
) -C libexec
install
91 $(MAKE
) -C man
install makedb
92 $(MAKE
) -C commands
install
93 $(MAKE
) -C bin
install
94 $(MAKE
) -C sbin
install
95 $(MAKE
) -C usr.bin
install
96 $(MAKE
) -C external
install
97 $(MAKE
) -C usr.sbin
install
98 $(MAKE
) -C servers
install
99 $(MAKE
) -C share
install
100 $(MAKE
) -C tools
install
104 $(MAKE
) -C commands
clean
106 $(MAKE
) -C sbin
clean
107 $(MAKE
) -C usr.bin
clean
108 $(MAKE
) -C external
clean
109 $(MAKE
) -C libexec
clean
110 $(MAKE
) -C usr.sbin
clean
111 $(MAKE
) -C share
clean
112 $(MAKE
) -C tools
clean
114 $(MAKE
) -C
test clean
117 $(MAKE
) -C lib cleandepend
118 $(MAKE
) -C sys cleandepend
119 $(MAKE
) -C commands cleandepend
120 $(MAKE
) -C bin cleandepend
121 $(MAKE
) -C sbin cleandepend
122 $(MAKE
) -C usr.bin cleandepend
123 $(MAKE
) -C external cleandepend
124 $(MAKE
) -C libexec cleandepend
125 $(MAKE
) -C usr.sbin cleandepend
126 $(MAKE
) -C tools cleandepend
130 echo
"That target is just libraries now."