* added 0.99 linux version
[mascara-docs.git] / i386 / linux / linux-2.3.21 / arch / mips / boot / Makefile
blobe22627cc3f558ebed8350d5ee5cca46549364d55
1 # $Id: Makefile,v 1.9 1999/04/07 18:45:23 harald Exp $
3 # This file is subject to the terms and conditions of the GNU General Public
4 # License. See the file "COPYING" in the main directory of this archive
5 # for more details.
7 # Copyright (C) 1995, 1998 by Ralf Baechle
10 .S.s:
11 $(CPP) $(CFLAGS) $< -o $*.s
12 .S.o:
13 $(CC) $(CFLAGS) -c $< -o $*.o
15 OBJS = milo.o a.out.o
18 # Some DECstations need all possible sections of an ECOFF executable
20 ifdef CONFIG_DECSTATION
21 E2EFLAGS = -a
22 else
23 E2EFLAGS =
24 endif
27 # Drop some uninteresting sections in the kernel.
28 # This is only relevant for ELF kernels but doesn't hurt a.out
30 drop-sections = .reginfo .mdebug
31 strip-flags = $(addprefix --remove-section=,$(drop-sections))
33 all: vmlinux.ecoff addinitrd
35 vmlinux.ecoff: $(CONFIGURE) elf2ecoff $(TOPDIR)/vmlinux
36 ./elf2ecoff $(TOPDIR)/vmlinux vmlinux.ecoff $(E2EFLAGS)
38 elf2ecoff: elf2ecoff.c
39 $(HOSTCC) -o $@ $^
41 addinitrd: addinitrd.c
42 $(HOSTCC) -o $@ $^
44 # Don't build dependencies, this may die if $(CC) isn't gcc
45 dep:
47 clean:
48 rm -f vmlinux.ecoff
50 dummy:
52 include $(TOPDIR)/Rules.make