try multiple reset methods
[minix3.git] / Makefile
blobe9e111758a74bc3389fe8a80e107c4e6c269da14
1 # Master Makefile to compile everything in /usr/src except the system.
3 .include <bsd.own.mk>
5 MAKE=make
7 usage:
8 @echo ""
9 @echo "Master Makefile for MINIX commands and utilities."
10 @echo "Root privileges are required for some actions."
11 @echo ""
12 @echo "Usage:"
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"
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 etcfiles includes libraries dep-all install etcforce
34 mkfiles:
35 make -C share/mk install
37 includes:
38 $(MAKE) -C include includes
39 $(MAKE) -C lib includes NBSD_LIBC=yes
41 MKHEADERSS=/usr/pkg/gcc*/libexec/gcc/*/*/install-tools/mkheaders
42 gnu-includes: includes
43 SHELL=/bin/sh; for d in $(MKHEADERSS); do if [ -f $$d ] ; then sh -e $$d ; fi; done
45 libraries: includes
46 $(MAKE) -C lib dependall install
48 commands: includes libraries
49 $(MAKE) -C commands all
50 $(MAKE) -C bin all
51 $(MAKE) -C sbin all
52 $(MAKE) -C usr.bin all
53 $(MAKE) -C libexec all
54 $(MAKE) -C usr.sbin all
56 dep-all:
57 $(MAKE) -C sys dependall
58 $(MAKE) -C commands dependall
59 $(MAKE) -C bin dependall
60 $(MAKE) -C sbin dependall
61 $(MAKE) -C usr.bin dependall
62 $(MAKE) -C libexec dependall
63 $(MAKE) -C usr.sbin dependall
64 $(MAKE) -C kernel dependall
65 $(MAKE) -C servers dependall
66 $(MAKE) -C drivers dependall
68 etcfiles:
69 $(MAKE) -C etc install
71 etcforce:
72 $(MAKE) -C etc installforce
74 all:
75 $(MAKE) -C sys all
76 $(MAKE) -C commands all
77 $(MAKE) -C bin all
78 $(MAKE) -C sbin all
79 $(MAKE) -C usr.bin all
80 $(MAKE) -C libexec all
81 $(MAKE) -C usr.sbin all
82 $(MAKE) -C tools all
84 install:
85 $(MAKE) -C sys install
86 $(MAKE) -C libexec install
87 $(MAKE) -C man install makedb
88 $(MAKE) -C commands install
89 $(MAKE) -C bin install
90 $(MAKE) -C sbin install
91 $(MAKE) -C usr.bin install
92 $(MAKE) -C usr.sbin install
93 $(MAKE) -C servers install
94 $(MAKE) -C share install
95 $(MAKE) -C tools install
97 clean: mkfiles
98 $(MAKE) -C sys clean
99 $(MAKE) -C commands clean
100 $(MAKE) -C bin clean
101 $(MAKE) -C sbin clean
102 $(MAKE) -C usr.bin clean
103 $(MAKE) -C libexec clean
104 $(MAKE) -C usr.sbin clean
105 $(MAKE) -C share clean
106 $(MAKE) -C tools clean
107 $(MAKE) -C lib clean
108 $(MAKE) -C test clean
110 cleandepend: mkfiles
111 $(MAKE) -C lib cleandepend
112 $(MAKE) -C sys cleandepend
113 $(MAKE) -C commands cleandepend
114 $(MAKE) -C bin cleandepend
115 $(MAKE) -C sbin cleandepend
116 $(MAKE) -C usr.bin cleandepend
117 $(MAKE) -C libexec cleandepend
118 $(MAKE) -C usr.sbin cleandepend
119 $(MAKE) -C tools cleandepend
121 # Warn usage change
122 elf-libraries:
123 echo "That target is just libraries now."
124 false