replace a few unnecessary $(shell) calls
[openwrt/mini2440.git] / tools / mkimage / Makefile
blobda13c5b81de34571c4d1429152218dad68d113a4
1 #
2 # Copyright (C) 2006 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
7 include $(TOPDIR)/rules.mk
9 PKG_NAME:=mkimage
11 include $(INCLUDE_DIR)/host-build.mk
13 define Host/Compile
14 $(HOSTCC) $(HOST_CFLAGS) -O -c src/crc32.c -o $(HOST_BUILD_DIR)/crc32.o
15 $(HOSTCC) $(HOST_CFLAGS) -O -c src/mkimage.c -o $(HOST_BUILD_DIR)/mkimage.o
16 $(HOSTCC) $(HOST_CFLAGS) -O -o $(HOST_BUILD_DIR)/mkimage $(HOST_BUILD_DIR)/mkimage.o $(HOST_BUILD_DIR)/crc32.o
17 endef
19 define Host/Install
20 $(CP) $(HOST_BUILD_DIR)/mkimage $(STAGING_DIR_HOST)/bin/
21 endef
23 define Host/Clean
24 rm -f $(STAGING_DIR_HOST)/bin/mkimage
25 endef
27 $(eval $(call HostBuild))