1 | # Makefile for the kernel image.
|
---|
2 |
|
---|
3 | u=/usr
|
---|
4 | CC= exec cc
|
---|
5 | CFLAGS= -O -D_MINIX -D_POSIX_SOURCE
|
---|
6 | MDEC= /usr/mdec
|
---|
7 | MAKE= exec make -$(MAKEFLAGS)
|
---|
8 |
|
---|
9 | # Specify the programs that are part of the system image.
|
---|
10 | # Multiple boot medium drivers can be included in the image,
|
---|
11 | # but only one is actually be loaded. The driver to load is
|
---|
12 | # determined by the 'label=...' boot monitor parameter.
|
---|
13 | PROGRAMS= ../kernel/kernel \
|
---|
14 | ../servers/pm/pm \
|
---|
15 | ../servers/fs/fs \
|
---|
16 | ../servers/rs/rs \
|
---|
17 | ../drivers/tty/tty \
|
---|
18 | ../drivers/memory/memory \
|
---|
19 | ../drivers/log/log \
|
---|
20 | AT:../drivers/at_wini/at_wini \
|
---|
21 | ../servers/init/init \
|
---|
22 | # bootdev.img
|
---|
23 |
|
---|
24 |
|
---|
25 | usage:
|
---|
26 | @echo " " >&2
|
---|
27 | @echo "This is the Makefile to recompile the MINIX 3 BOOK version." >& 2
|
---|
28 | @echo "Change to the standard /usr/include/src directory to compile" >& 2
|
---|
29 | @echo "system libraries, user commands, or a full Minix 3 system." >& 2
|
---|
30 | @echo "You should be logged in as bin to recompile Minix 3." >&2
|
---|
31 | @echo " " >&2
|
---|
32 | @echo "Usage:" >&2
|
---|
33 | @echo " make includes # Install BOOK version include files" >&2
|
---|
34 | @echo " make image # Make needed services and create boot image" >&2
|
---|
35 | @echo " make clean # Remove all compiler results, except libs" >&2
|
---|
36 | @echo " " >&2
|
---|
37 | @echo " " >&2
|
---|
38 |
|
---|
39 | all: services image
|
---|
40 |
|
---|
41 | image: includes
|
---|
42 | cd ../kernel && $(MAKE)
|
---|
43 | cd ../servers && $(MAKE) image
|
---|
44 | cd ../drivers && $(MAKE) image
|
---|
45 | installboot -image $@ $(PROGRAMS)
|
---|
46 |
|
---|
47 | includes:
|
---|
48 | cd ../include && $(MAKE) install
|
---|
49 |
|
---|
50 | services: includes
|
---|
51 | cd ../kernel && $(MAKE)
|
---|
52 | cd ../servers && $(MAKE) install
|
---|
53 | cd ../drivers && $(MAKE) install
|
---|
54 |
|
---|
55 | # clean up compile results
|
---|
56 | clean:
|
---|
57 | cd ../kernel && $(MAKE) $@
|
---|
58 | cd ../servers && $(MAKE) $@
|
---|
59 | cd ../drivers && $(MAKE) $@
|
---|
60 | rm -f *.bak image image_small *.iso *.iso.gz cdfdimage rootimage
|
---|