1 | # DO NOT EDIT. This file is generated from Kbuild.src
|
---|
2 | # Makefile for busybox
|
---|
3 | #
|
---|
4 | # Copyright (C) 1999-2005 by Erik Andersen <andersen@codepoet.org>
|
---|
5 | #
|
---|
6 | # Licensed under GPLv2, see file LICENSE in this source tree.
|
---|
7 |
|
---|
8 | obj-y :=
|
---|
9 | obj-y += applets.o
|
---|
10 |
|
---|
11 | hostprogs-y:=
|
---|
12 | hostprogs-y += usage usage_pod applet_tables
|
---|
13 |
|
---|
14 | always:= $(hostprogs-y)
|
---|
15 |
|
---|
16 | # Generated files need additional love
|
---|
17 |
|
---|
18 | # This trick decreases amount of rebuilds
|
---|
19 | # if tree is merely renamed/copied
|
---|
20 | ifeq ($(srctree),$(objtree))
|
---|
21 | srctree_slash =
|
---|
22 | else
|
---|
23 | srctree_slash = $(srctree)/
|
---|
24 | endif
|
---|
25 |
|
---|
26 | HOSTCFLAGS_usage.o = -I$(srctree_slash)include -Iinclude
|
---|
27 | HOSTCFLAGS_usage_pod.o = -I$(srctree_slash)include -Iinclude
|
---|
28 |
|
---|
29 | applets/applets.o: include/usage_compressed.h include/applet_tables.h
|
---|
30 |
|
---|
31 | applets/applet_tables: .config include/applets.h
|
---|
32 | applets/usage: .config include/applets.h
|
---|
33 | applets/usage_pod: .config include/applet_tables.h include/applets.h
|
---|
34 |
|
---|
35 | quiet_cmd_gen_usage_compressed = GEN include/usage_compressed.h
|
---|
36 | cmd_gen_usage_compressed = $(srctree_slash)applets/usage_compressed include/usage_compressed.h applets
|
---|
37 |
|
---|
38 | include/usage_compressed.h: applets/usage $(srctree_slash)applets/usage_compressed
|
---|
39 | $(call cmd,gen_usage_compressed)
|
---|
40 |
|
---|
41 | quiet_cmd_gen_applet_tables = GEN include/applet_tables.h
|
---|
42 | cmd_gen_applet_tables = applets/applet_tables include/applet_tables.h include/NUM_APPLETS.h
|
---|
43 |
|
---|
44 | include/applet_tables.h: applets/applet_tables
|
---|
45 | $(call cmd,gen_applet_tables)
|
---|