Magellan Linux

Annotation of /trunk/mkinitrd-magellan/busybox/applets/Kbuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 984 - (hide annotations) (download)
Sun May 30 11:32:42 2010 UTC (13 years, 11 months ago) by niro
File size: 1401 byte(s)
-updated to busybox-1.16.1 and enabled blkid/uuid support in default config
1 niro 532 # Makefile for busybox
2     #
3     # Copyright (C) 1999-2005 by Erik Andersen <andersen@codepoet.org>
4     #
5     # Licensed under the GPL v2, see the file LICENSE in this tarball.
6    
7 niro 816 obj-y :=
8     obj-y += applets.o
9 niro 532
10 niro 816 hostprogs-y:=
11 niro 984 hostprogs-y += usage usage_pod applet_tables
12 niro 532
13 niro 816 always:= $(hostprogs-y)
14 niro 532
15 niro 816 # Generated files need additional love
16    
17 niro 984 # This trick decreases amount of rebuilds
18     # if tree is merely renamed/copied
19     ifeq ($(srctree),$(objtree))
20     srctree_slash =
21     else
22     srctree_slash = $(srctree)/
23     endif
24 niro 532
25 niro 984 HOSTCFLAGS_usage.o = -I$(srctree_slash)include -Iinclude
26     HOSTCFLAGS_usage_pod.o = -I$(srctree_slash)include -Iinclude
27    
28 niro 816 applets/applets.o: include/usage_compressed.h include/applet_tables.h
29    
30 niro 984 applets/applet_tables: .config $(srctree_slash)include/applets.h
31     applets/usage: .config $(srctree_slash)include/applets.h
32     applets/usage_pod: .config include/applet_tables.h $(srctree_slash)include/applets.h
33 niro 816
34 niro 532 quiet_cmd_gen_usage_compressed = GEN include/usage_compressed.h
35 niro 984 cmd_gen_usage_compressed = $(srctree_slash)applets/usage_compressed include/usage_compressed.h applets
36 niro 816
37 niro 984 include/usage_compressed.h: applets/usage $(srctree_slash)applets/usage_compressed
38 niro 532 $(call cmd,gen_usage_compressed)
39 niro 816
40     quiet_cmd_gen_applet_tables = GEN include/applet_tables.h
41     cmd_gen_applet_tables = applets/applet_tables include/applet_tables.h
42    
43     include/applet_tables.h: applets/applet_tables
44     $(call cmd,gen_applet_tables)