source: branches/minix3-book/tools/Makefile@ 4

Last change on this file since 4 was 4, checked in by Mattia Monga, 14 years ago

Importazione sorgenti libro

File size: 1.7 KB
Line 
1# Makefile for the kernel image.
2
3u=/usr
4CC= exec cc
5CFLAGS= -O -D_MINIX -D_POSIX_SOURCE
6MDEC= /usr/mdec
7MAKE= 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.
13PROGRAMS= ../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
25usage:
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
39all: services image
40
41image: includes
42 cd ../kernel && $(MAKE)
43 cd ../servers && $(MAKE) image
44 cd ../drivers && $(MAKE) image
45 installboot -image $@ $(PROGRAMS)
46
47includes:
48 cd ../include && $(MAKE) install
49
50services: includes
51 cd ../kernel && $(MAKE)
52 cd ../servers && $(MAKE) install
53 cd ../drivers && $(MAKE) install
54
55# clean up compile results
56clean:
57 cd ../kernel && $(MAKE) $@
58 cd ../servers && $(MAKE) $@
59 cd ../drivers && $(MAKE) $@
60 rm -f *.bak image image_small *.iso *.iso.gz cdfdimage rootimage
Note: See TracBrowser for help on using the repository browser.