Magellan Linux

Contents of /trunk/mkinitrd-magellan/klibc/usr/utils/Kbuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 815 - (show annotations) (download)
Fri Apr 24 18:32:46 2009 UTC (15 years ago) by niro
File size: 2244 byte(s)
-updated to klibc-1.5.15
1 #
2 # Kbuild file for klib utils
3 #
4
5 progs := chroot dd mkdir mkfifo mknod mount pivot_root umount
6 progs += true false sleep ln nuke minips cat
7 progs += uname halt kill readlink cpio sync dmesg
8
9 static-y := $(addprefix static/, $(progs))
10 shared-y := $(addprefix shared/, $(progs))
11
12 # The binary is placed in a subdir, so we need to tell kbuild this
13 static/chroot-y := chroot.o
14 shared/chroot-y := chroot.o
15 static/dd-y := dd.o
16 shared/dd-y := dd.o
17 static/dmesg-y := dmesg.o
18 shared/dmesg-y := dmesg.o
19 static/mkdir-y := mkdir.o file_mode.o
20 shared/mkdir-y := mkdir.o file_mode.o
21 static/mkfifo-y := mkfifo.o file_mode.o
22 shared/mkfifo-y := mkfifo.o file_mode.o
23 static/mknod-y := mknod.o file_mode.o
24 shared/mknod-y := mknod.o file_mode.o
25 static/mount-y := mount_main.o mount_opts.o
26 shared/mount-y := mount_main.o mount_opts.o
27 static/pivot_root-y := pivot_root.o
28 shared/pivot_root-y := pivot_root.o
29 static/umount-y := umount.o
30 shared/umount-y := umount.o
31 static/true-y := true.o
32 shared/true-y := true.o
33 static/false-y := false.o
34 shared/false-y := false.o
35 static/sleep-y := sleep.o
36 shared/sleep-y := sleep.o
37 static/ln-y := ln.o
38 shared/ln-y := ln.o
39 static/nuke-y := nuke.o
40 shared/nuke-y := nuke.o
41 static/minips-y := minips.o
42 shared/minips-y := minips.o
43 static/cat-y := cat.o
44 shared/cat-y := cat.o
45 static/uname-y := uname.o
46 shared/uname-y := uname.o
47 static/halt-y := halt.o
48 shared/halt-y := halt.o
49 static/kill-y := kill.o
50 shared/kill-y := kill.o
51 static/readlink-y := readlink.o
52 shared/readlink-y := readlink.o
53 static/cpio-y := cpio.o
54 shared/cpio-y := cpio.o
55 static/sync-y := sync.o
56 shared/sync-y := sync.o
57
58 # Additionally linked targets
59 always := static/reboot static/poweroff shared/reboot shared/poweroff
60
61 $(obj)/static/reboot $(obj)/static/poweroff: $(obj)/static/halt
62 $(call cmd,ln)
63 $(obj)/shared/reboot $(obj)/shared/poweroff: $(obj)/shared/halt
64 $(call cmd,ln)
65
66 # Clean deletes the static and shared dir
67 clean-dirs := static shared
68
69 # install only install the shared binaries
70 install-y := $(shared-y) shared/reboot shared/poweroff