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 .if
${COMPILER_TYPE} == "ack"
33 world
: mkfiles includes depend libraries
install
34 .elif
${COMPILER_TYPE} == "gnu"
35 world
: mkfiles includes depend gnu-libraries
install
39 cp etc
/mk
/*.mk
/etc
/mk
/
42 cd
include && $(MAKE
) includes
45 cd lib
&& sh ack_build.sh obj depend
all install
47 MKHEADERS411
=/usr
/gnu
/libexec
/gcc
/i386-pc-minix
/4.1.1/install-tools
/mkheaders
48 MKHEADERS443
=/usr
/gnu
/libexec
/gcc
/i686-pc-minix
/4.4.3/install-tools
/mkheaders
49 gnu-includes
: includes
50 SHELL
=/bin
/sh
; if
[ -f
$(MKHEADERS411
) ] ; then sh
-e
$(MKHEADERS411
) ; fi
51 SHELL
=/bin
/sh
; if
[ -f
$(MKHEADERS443
) ] ; then sh
-e
$(MKHEADERS443
) ; fi
54 cd lib
&& sh gnu_build.sh obj depend
all install
57 cd commands
&& $(MAKE
) all
60 cd boot
&& $(MAKE
) depend
61 cd commands
&& $(MAKE
) depend
62 cd kernel
&& $(MAKE
) depend
63 cd servers
&& $(MAKE
) depend
64 cd drivers
&& $(MAKE
) depend
67 cd etc
&& $(MAKE
) install
70 cd boot
&& $(MAKE
) all
71 cd commands
&& $(MAKE
) all
72 cd tools
&& $(MAKE
) all
75 cd boot
&& $(MAKE
) install
76 cd man
&& $(MAKE
) install makedb
77 cd commands
&& $(MAKE
) install
78 cd share
&& $(MAKE
) install
79 cd tools
&& $(MAKE
) install
82 cd boot
&& $(MAKE
) clean
83 cd commands
&& $(MAKE
) clean
84 cd tools
&& $(MAKE
) clean
85 cd lib
&& sh ack_build.sh
clean
86 cd lib
&& sh gnu_build.sh
clean
87 cd
test && $(MAKE
) clean
90 cd boot
&& $(MAKE
) cleandepend
91 cd commands
&& $(MAKE
) cleandepend
92 cd tools
&& $(MAKE
) cleandepend