blob: e6c5bd506f6ad9f2ae7eb890dfe3d9a3b9fe8401 [file] [log] [blame]
Denis Vlasenko7d219aa2006-10-05 10:17:08 +00001# 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
7obj-y:=
Denis Vlasenko432d69c2007-06-14 21:41:15 +00008obj-y += applets.o
Denis Vlasenko52b5eba2006-10-19 22:11:06 +00009
Denis Vlasenko432d69c2007-06-14 21:41:15 +000010hostprogs-y:=
Denis Vlasenkob5605772006-10-19 22:12:47 +000011hostprogs-y += usage
Denis Vlasenko432d69c2007-06-14 21:41:15 +000012
13always:= $(hostprogs-y)
14
15# Generated files need additional love
Denis Vlasenkob5605772006-10-19 22:12:47 +000016
Mike Frysingere5c09532007-01-02 05:42:35 +000017quiet_cmd_gen_usage_compressed = GEN include/usage_compressed.h
18 cmd_gen_usage_compressed = $(srctree)/applets/usage_compressed include/usage_compressed.h applets
Denis Vlasenko432d69c2007-06-14 21:41:15 +000019
20HOSTCFLAGS_usage.o = -I$(srctree)/include
21
22applets/applets.o: include/usage_compressed.h
23applets/usage: .config
24include/usage_compressed.h: applets/usage
Mike Frysingere5c09532007-01-02 05:42:35 +000025 $(call cmd,gen_usage_compressed)