re-establish kernel assert()s.
[minix.git] / Makefile
bloba58c642546fbe19b77937e8ec59f85dfbe7ebf2f
1 # Master Makefile to compile everything in /usr/src except the system.
3 MAKE=make
5 usage:
6 @echo ""
7 @echo "Master Makefile for MINIX commands and utilities."
8 @echo "Root privileges are required for some actions."
9 @echo ""
10 @echo "Usage:"
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"
20 @echo ""
21 @echo "Run 'make' in tools/ to create a new MINIX configuration."
22 @echo ""
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
34 mkfiles:
35 cp etc/mk/*.mk /etc/mk/
37 includes:
38 cd include && $(MAKE) includes
40 libraries:
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
49 gnu-libraries:
50 cd lib && sh gnu_build.sh obj depend all install
52 commands:
53 cd commands && $(MAKE) all
55 depend::
56 mkdep kernel
57 mkdep servers
58 mkdep drivers
59 cd kernel && $(MAKE) $@
60 cd servers && $(MAKE) $@
61 cd drivers && $(MAKE) $@
63 etcfiles::
64 cd etc && $(MAKE) install
66 all::
67 cd boot && $(MAKE) all
68 cd man && $(MAKE) all
69 cd commands && $(MAKE) all
70 cd tools && $(MAKE) all
71 cd servers && $(MAKE) all
73 install::
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
80 clean::
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
91 postinstall:
92 cd etc && $(MAKE) $@