do not put all <applet>_main() declarations
[oweals/busybox.git] / applets / Kbuild
1 # 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 obj-y:=
8 obj-y   += applets.o
9 obj-y   += busybox.o
10
11 # Generated file needs additional love
12
13 applets/applets.o: .config include/usage_compressed.h
14
15 hostprogs-y += usage
16 always := $(hostprogs-y)
17 HOSTCFLAGS_usage.o = -I$(srctree)/include
18
19 quiet_cmd_gen_usage_compressed = GEN     include/usage_compressed.h
20       cmd_gen_usage_compressed = $(srctree)/applets/usage_compressed include/usage_compressed.h applets
21 include/usage_compressed.h: $(srctree)/include/usage.h applets/usage
22         $(call cmd,gen_usage_compressed)