removed some verbose messages
[minix3.git] / tools / Makefile
blob9d3d2ba835f97c04f95bd674297b5a95d9e849e2
1 # Makefile for the kernel image.
3 u=/usr
4 CC= exec cc
5 CFLAGS= -O -D_MINIX -D_POSIX_SOURCE
6 MDEC= /usr/mdec
8 # Specify the programs that are part of the system image.
9 PROGRAMS= ../kernel/kernel \
10 ../servers/pm/pm \
11 ../servers/vfs/vfs \
12 ../servers/rs/rs \
13 ../servers/ds/ds \
14 ../drivers/tty/tty \
15 ../drivers/memory/memory \
16 ../drivers/log/log \
17 ../servers/mfs/mfs \
18 ../servers/init/init
20 usage:
21 @echo " " >&2
22 @echo "Master Makefile to create new MINIX configuration." >& 2
23 @echo "Root privileges are required." >&2
24 @echo " " >&2
25 @echo "Usage:" >&2
26 @echo " make includes # Install include files" >&2
27 @echo " make depend # Generate dependency files" >&2
28 @echo " make libraries # Make system libraries" >&2
29 @echo " make services # Compile and install all services" >&2
30 @echo " make fresh # Make clean, libraries, and services" >&2
31 @echo " make image # Make needed services and create boot image" >&2
32 @echo " make install # Make image, and install to hard disk" >&2
33 @echo " make hdboot # Make image, and install to hard disk" >&2
34 @echo " make fdboot # Make image, and install to floppy disk" >&2
35 @echo " make bootable # Make hard disk bootable" >&2
36 @echo " make clean # Remove all compiler results, except libs" >&2
37 @echo " " >&2
38 @echo "To create a fresh MINIX configuration, try:" >&2
39 @echo " make clean install # new boot image" >&2
40 @echo " make fresh install # new everything" >&2
41 @echo " " >&2
43 # create a fresh configuration or system image
44 fresh:
45 cd ../lib && $(MAKE) clean
46 $(MAKE) clean
47 $(MAKE) libraries services
49 all: services image
51 image: includes
52 cd ../kernel && $(MAKE)
53 cd ../servers && $(MAKE) image
54 cd ../drivers && $(MAKE) image
55 installboot -image $@ $(PROGRAMS)
57 image_small: includes
58 cd ../kernel && $(MAKE)
59 cd ../servers && $(MAKE) EXTRA_OPTS=-D_MINIX_SMALL=1 image
60 cd ../drivers && $(MAKE) EXTRA_OPTS=$(EXTRA_OPTS) image
61 installboot -image $@ $(PROGRAMS)
63 # rebuild the program or system libraries
64 includes:
65 cd ../include && $(MAKE) install
67 depend: includes
68 cd ../ && $(MAKE) depend
70 services: includes
71 cd ../kernel && $(MAKE)
72 cd ../servers && $(MAKE) install
73 cd ../drivers && $(MAKE) install
75 libraries: includes
76 cd ../lib && $(MAKE) clean
77 cd ../lib && $(MAKE) all
78 cd ../lib && $(MAKE) install
81 # make bootable and place system images
82 bootable:
83 exec su root mkboot bootable
85 hdboot: image
86 exec sh mkboot $@
87 @sync
89 fdboot: image
90 exec su root mkboot $@
91 @sync
93 install: includes services hdboot
95 # clean up compile results
96 clean:
97 cd ../kernel && $(MAKE) $@
98 cd ../servers && $(MAKE) $@
99 cd ../drivers && $(MAKE) $@
100 rm -rf *.bak image image_small *.iso *.iso.gz cdfdimage rootimage src