1 # Master Makefile to compile everything in /usr/src except the system.
7 @echo
"Master Makefile for MINIX commands and utilities."
8 @echo
"Root privileges are required for some actions."
11 @echo
" make world # Compile everything (libraries & commands)"
12 @echo
" make includes # Install include files from src/"
13 @echo
" make libraries # Compile and install libraries"
14 @echo
" make commands # Compile all, commands, but don't install"
15 @echo
" make install # Compile and install commands"
16 @echo
" make depend # Generate required .depend files"
17 @echo
" make gnu-includes # Install include files for GCC"
18 @echo
" make gnu-libraries # Compile and install libraries 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 includes depend libraries
install postinstall
35 cp etc
/mk
/*.mk
/etc
/mk
/
38 cd
include && $(MAKE
) includes
41 cd lib
&& sh ack_build.sh obj depend
all install
43 MKHEADERS411
=/usr
/gnu
/libexec
/gcc
/i386-pc-minix
/4.1.1/install-tools
/mkheaders
44 MKHEADERS443
=/usr
/gnu
/libexec
/gcc
/i686-pc-minix
/4.4.3/install-tools
/mkheaders
45 gnu-includes
: includes
46 SHELL
=/bin
/sh
; if
[ -f
$(MKHEADERS411
) ] ; then sh
-e
$(MKHEADERS411
) ; fi
47 SHELL
=/bin
/sh
; if
[ -f
$(MKHEADERS443
) ] ; then sh
-e
$(MKHEADERS443
) ; fi
50 cd lib
&& sh gnu_build.sh obj depend
all install
53 cd commands
&& $(MAKE
) all
59 cd kernel
&& $(MAKE
) $@
60 cd servers
&& $(MAKE
) $@
61 cd drivers
&& $(MAKE
) $@
64 cd etc
&& $(MAKE
) install
67 cd boot
&& $(MAKE
) all
69 cd commands
&& $(MAKE
) all
70 cd tools
&& $(MAKE
) all
71 cd servers
&& $(MAKE
) all
74 cd boot
&& $(MAKE
) all install
75 cd man
&& $(MAKE
) all install
76 cd commands
&& $(MAKE
) all install
77 cd tools
&& $(MAKE
) all install
78 cd servers
&& $(MAKE
) all install
81 cd boot
&& $(MAKE
) clean
82 cd man
&& $(MAKE
) clean
83 cd commands
&& $(MAKE
) clean
84 cd tools
&& $(MAKE
) clean
85 cd servers
&& $(MAKE
) clean
86 cd lib
&& sh ack_build.sh
clean
87 cd lib
&& sh gnu_build.sh
clean
88 cd commands
&& $(MAKE
) clean
89 cd
test && $(MAKE
) clean