ubsec ssb is only available on brcm47xx
[openwrt.git] / tools / mkimage / Makefile
1 #
2 # Copyright (C) 2006 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7 include $(TOPDIR)/rules.mk
8
9 PKG_NAME:=mkimage
10
11 include $(INCLUDE_DIR)/host-build.mk
12
13 define Build/Compile
14 $(HOSTCC) $(HOST_CFLAGS) -O -c src/crc32.c -o $(PKG_BUILD_DIR)/crc32.o
15 $(HOSTCC) $(HOST_CFLAGS) -O -c src/mkimage.c -o $(PKG_BUILD_DIR)/mkimage.o
16 $(HOSTCC) $(HOST_CFLAGS) -O -o $(PKG_BUILD_DIR)/mkimage $(PKG_BUILD_DIR)/mkimage.o $(PKG_BUILD_DIR)/crc32.o
17 endef
18
19 define Build/Install
20 $(CP) $(PKG_BUILD_DIR)/mkimage $(STAGING_DIR_HOST)/bin/
21 endef
22
23 define Build/Clean
24 rm -f $(STAGING_DIR_HOST)/bin/mkimage
25 endef
26
27 $(eval $(call HostBuild))
This page took 0.039729 seconds and 5 git commands to generate.