-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
63 lines (55 loc) · 1.53 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
#
# Toplevel makefile for OS/161.
#
#
# Rules:
# all (default): depend, compile, and install system.
# build: depend, compile, and install system from scratch.
# compile: compile and install binaries.
# includes: install header files.
# tags: generate/regenerate "tags" files.
# depend: update make dependency information.
# clean: remove generated files.
#
# The "compile" rule subsumes both compilation and installation,
# because certain parts must be installed before subsequent parts
# can be built. Note that it does *not* install include files.
#
# The "includes" rule installs header files from the kernel and
# libraries into the include directory of the system tree.
#
all:
$(MAKE) includes
$(MAKE) depend
$(MAKE) compile
build:
$(MAKE) clean
$(MAKE) all
compile:
(cd lib && $(MAKE))
(cd lib && $(MAKE) install)
(cd bin && $(MAKE))
(cd sbin && $(MAKE))
(cd testbin && $(MAKE))
(cd bin && $(MAKE) install)
(cd sbin && $(MAKE) install)
(cd testbin && $(MAKE) install)
(cd man && $(MAKE) install)
(cd kern && $(MAKE))
(cd kern && $(MAKE) install)
includes:
(cd kern && $(MAKE) includes)
(cd include && $(MAKE) includes)
(cd lib/hostcompat && $(MAKE) includes)
tags depend clean:
(cd include && $(MAKE) $@)
(cd lib && $(MAKE) $@)
(cd bin && $(MAKE) $@)
(cd sbin && $(MAKE) $@)
(cd testbin && $(MAKE) $@)
(cd man && $(MAKE) $@)
(cd kern && $(MAKE) $@)
clean: cleanhere
cleanhere:
rm -f *~ mk/*~
.PHONY: all build compile includes tags depend clean cleanhere