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
56 cd kernel
&& $(MAKE
) $@
57 cd servers
&& $(MAKE
) $@
58 cd drivers
&& $(MAKE
) $@
61 cd etc
&& $(MAKE
) install
64 cd boot
&& $(MAKE
) all
65 cd commands
&& $(MAKE
) all
66 cd tools
&& $(MAKE
) all
67 cd servers
&& $(MAKE
) all
68 cd drivers
&& $(MAKE
) all
71 cd boot
&& $(MAKE
) all install
72 cd man
&& $(MAKE
) all install makedb
73 cd commands
&& $(MAKE
) all install
74 cd tools
&& $(MAKE
) all install
75 cd servers
&& $(MAKE
) all install
76 cd drivers
&& $(MAKE
) all install
79 cd boot
&& $(MAKE
) clean
80 cd commands
&& $(MAKE
) clean
81 cd tools
&& $(MAKE
) clean
82 cd servers
&& $(MAKE
) clean
83 cd lib
&& sh ack_build.sh
clean
84 cd lib
&& sh gnu_build.sh
clean
85 cd commands
&& $(MAKE
) clean
86 cd
test && $(MAKE
) clean