fix pdc20xx compile for linux 2.6
[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 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
18
19 define Host/Install
20 $(CP) $(HOST_BUILD_DIR)/mkimage $(STAGING_DIR_HOST)/bin/
21 endef
22
23 define Host/Clean
24 rm -f $(STAGING_DIR_HOST)/bin/mkimage
25 endef
26
27 $(eval $(call HostBuild))
This page took 0.049801 seconds and 5 git commands to generate.