libutil: add O_NOCTTY to old pty open code
[minix3.git] / Makefile
blobfa49ec775761e90d5f39a0f4cafd0a546de2d96d
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
40 $(MAKE) -C sys includes
42 MKHEADERSS=/usr/pkg/gcc*/libexec/gcc/*/*/install-tools/mkheaders
43 gnu-includes: includes
44 SHELL=/bin/sh; for d in $(MKHEADERSS); do if [ -f $$d ] ; then sh -e $$d ; fi; done
46 libraries: includes
47 $(MAKE) -C lib dependall install
49 commands: includes libraries
50 $(MAKE) -C commands all
51 $(MAKE) -C bin all
52 $(MAKE) -C sbin all
53 $(MAKE) -C usr.bin all
54 $(MAKE) -C external all
55 $(MAKE) -C libexec all
56 $(MAKE) -C usr.sbin all
58 dep-all:
59 $(MAKE) -C sys dependall
60 $(MAKE) -C commands dependall
61 $(MAKE) -C bin dependall
62 $(MAKE) -C sbin dependall
63 $(MAKE) -C usr.bin dependall
64 $(MAKE) -C external dependall
65 $(MAKE) -C libexec dependall
66 $(MAKE) -C usr.sbin dependall
67 $(MAKE) -C kernel dependall
68 $(MAKE) -C servers dependall
69 $(MAKE) -C drivers dependall
71 etcfiles:
72 $(MAKE) -C etc install
74 etcforce:
75 $(MAKE) -C etc installforce
77 all:
78 $(MAKE) -C sys all
79 $(MAKE) -C commands all
80 $(MAKE) -C bin all
81 $(MAKE) -C sbin all
82 $(MAKE) -C usr.bin all
83 $(MAKE) -C external all
84 $(MAKE) -C libexec all
85 $(MAKE) -C usr.sbin all
86 $(MAKE) -C tools all
88 install:
89 $(MAKE) -C sys install
90 $(MAKE) -C libexec install
91 $(MAKE) -C man install makedb
92 $(MAKE) -C commands install
93 $(MAKE) -C bin install
94 $(MAKE) -C sbin install
95 $(MAKE) -C usr.bin install
96 $(MAKE) -C external install
97 $(MAKE) -C usr.sbin install
98 $(MAKE) -C servers install
99 $(MAKE) -C share install
100 $(MAKE) -C tools install
102 clean: mkfiles
103 $(MAKE) -C sys clean
104 $(MAKE) -C commands clean
105 $(MAKE) -C bin clean
106 $(MAKE) -C sbin clean
107 $(MAKE) -C usr.bin clean
108 $(MAKE) -C external clean
109 $(MAKE) -C libexec clean
110 $(MAKE) -C usr.sbin clean
111 $(MAKE) -C share clean
112 $(MAKE) -C tools clean
113 $(MAKE) -C lib clean
114 $(MAKE) -C test clean
116 cleandepend: mkfiles
117 $(MAKE) -C lib cleandepend
118 $(MAKE) -C sys cleandepend
119 $(MAKE) -C commands cleandepend
120 $(MAKE) -C bin cleandepend
121 $(MAKE) -C sbin cleandepend
122 $(MAKE) -C usr.bin cleandepend
123 $(MAKE) -C external cleandepend
124 $(MAKE) -C libexec cleandepend
125 $(MAKE) -C usr.sbin cleandepend
126 $(MAKE) -C tools cleandepend
128 # Warn usage change
129 elf-libraries:
130 echo "That target is just libraries now."
131 false