import of upstream 2.4.34.4 from kernel.org
[linux-2.4.git] / arch / ia64 / boot / Makefile
1 #
2 # ia64/boot/Makefile
3 #
4 # This file is subject to the terms and conditions of the GNU General Public
5 # License.  See the file "COPYING" in the main directory of this archive
6 # for more details.
7 #
8 # Copyright (C) 1998 by David Mosberger-Tang <davidm@hpl.hp.com>
9 #
10
11 LINKFLAGS = -static -T bootloader.lds
12
13 .S.s:
14         $(CPP) $(AFLAGS) -traditional -o $*.o $<
15 .S.o:
16         $(CC) $(AFLAGS) -traditional -c -o $*.o $<
17
18 OBJECTS = bootloader.o
19
20 targets-$(CONFIG_IA64_HP_SIM) += bootloader
21 targets-$(CONFIG_IA64_GENERIC) += bootloader
22
23 all:    $(targets-y)
24
25 bootloader: $(OBJECTS)
26         $(LD) $(LINKFLAGS) $(OBJECTS) $(TOPDIR)/lib/lib.a $(TOPDIR)/arch/$(ARCH)/lib/lib.a \
27         -o bootloader
28
29 clean:
30         rm -f $(targets-y) $(OBJECTS)
31
32 dep: