Magellan Linux

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1122 - (show annotations) (download)
Wed Aug 18 21:11:40 2010 UTC (13 years, 8 months ago) by niro
File size: 2377 byte(s)
-updated to klibc-1.5.19
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 ls losetup
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/ls-y := ls.o
40 shared/ls-y := ls.o
41 static/nuke-y := nuke.o
42 shared/nuke-y := nuke.o
43 static/minips-y := minips.o
44 shared/minips-y := minips.o
45 static/cat-y := cat.o
46 shared/cat-y := cat.o
47 static/uname-y := uname.o
48 shared/uname-y := uname.o
49 static/halt-y := halt.o
50 shared/halt-y := halt.o
51 static/kill-y := kill.o
52 shared/kill-y := kill.o
53 static/readlink-y := readlink.o
54 shared/readlink-y := readlink.o
55 static/cpio-y := cpio.o
56 shared/cpio-y := cpio.o
57 static/sync-y := sync.o
58 shared/sync-y := sync.o
59 static/losetup-y := losetup.o
60 shared/losetup-y := losetup.o
61
62 # Additionally linked targets
63 always := static/reboot static/poweroff shared/reboot shared/poweroff
64
65 $(obj)/static/reboot $(obj)/static/poweroff: $(obj)/static/halt
66 $(call cmd,ln)
67 $(obj)/shared/reboot $(obj)/shared/poweroff: $(obj)/shared/halt
68 $(call cmd,ln)
69
70 # Clean deletes the static and shared dir
71 clean-dirs := static shared
72
73 # install only install the shared binaries
74 install-y := $(shared-y) shared/reboot shared/poweroff