2942c8eb34ca758a15d1dcdb33baeddba03e109d
[openwrt/svn-archive/archive.git] / target / linux / brcm-2.4 / files / arch / mips / bcm947xx / compressed / Makefile
1 #
2 # Makefile for Broadcom BCM947XX boards
3 #
4 # Copyright 2001-2003, Broadcom Corporation
5 # All Rights Reserved.
6 #
7 # THIS SOFTWARE IS OFFERED "AS IS", AND BROADCOM GRANTS NO WARRANTIES OF ANY
8 # KIND, EXPRESS OR IMPLIED, BY STATUTE, COMMUNICATION OR OTHERWISE. BROADCOM
9 # SPECIFICALLY DISCLAIMS ANY IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS
10 # FOR A SPECIFIC PURPOSE OR NONINFRINGEMENT CONCERNING THIS SOFTWARE.
11 #
12 # $Id: Makefile,v 1.2 2005/04/02 12:12:57 wbx Exp $
13 #
14
15 OBJCOPY_ARGS = -O binary -R .reginfo -R .note -R .comment -R .mdebug -S
16 SYSTEM ?= $(TOPDIR)/vmlinux
17
18 all: vmlinuz
19
20 # Don't build dependencies, this may die if $(CC) isn't gcc
21 dep:
22
23 # Create a gzipped version named vmlinuz for compatibility
24 vmlinuz: piggy
25 gzip -c9 $< > $@
26
27 piggy: $(SYSTEM)
28 $(OBJCOPY) $(OBJCOPY_ARGS) $< $@
29
30 mrproper: clean
31
32 clean:
33 rm -f vmlinuz piggy