source: freewrt/tools/mkimage/Makefile@ 393d6b8

Last change on this file since 393d6b8 was 393d6b8, checked in by Thorsten Glaser <tg@…>, 18 years ago

apple workaround

git-svn-id: svn://www.freewrt.org/trunk/freewrt@3077 afb5a338-a214-0410-bd46-81f09a774fd1

  • Property mode set to 100644
File size: 1.1 KB
Line 
1# $FreeWRT$
2#-
3# This file is part of the FreeWRT project. FreeWRT is copyrighted
4# material, please see the LICENCE file in the top-level directory
5# or at http://www.freewrt.org/licence for details.
6
7PKG_NAME:= u-boot
8PKG_VERSION:= 1.1.4
9PKG_MD5SUM:= 096cac66046326659b97eeded007ec73
10DISTFILES:= $(PKG_NAME)-$(PKG_VERSION).tar.bz2
11MASTER_SITES:= ftp://ftp.denx.de/pub/u-boot/
12
13include $(TOPDIR)/rules.mk
14include ../rules.mk
15#include ${TOPDIR}/mk/fetch.mk
16
17DEFS= -idirafter ../include -DTEXT_BASE= -DUSE_HOSTCC
18ifeq (${OStype},Darwin)
19DEFS+= -D__FreeBSD__
20endif
21
22$(WRKBUILD)/tools/mkimage: $(WRKBUILD)/.prepared
23 cd ${WRKBUILD}/tools && \
24 ${HOSTCC} -O -g -Wall -pedantic ${DEFS} -c mkimage.c && \
25 ${HOSTCC} -O -g -Wall -pedantic ${DEFS} -c ../lib_generic/crc32.c && \
26 ${HOSTCC} ${DEFS} -o mkimage mkimage.o crc32.o
27
28$(STAGING_TOOLS)/bin/mkimage: $(WRKBUILD)/tools/mkimage
29 $(CP) $< $@
30
31source: ${_CHECKSUM_COOKIE}
32prepare: $(WRKBUILD)/.prepared
33compile: $(WRKBUILD)/tools/mkimage $(STAGING_TOOLS)/bin/mkimage
34install: $(STAGING_TOOLS)/bin/mkimage
35clean:
36 rm -rf $(WRKBUILD)
Note: See TracBrowser for help on using the repository browser.