Makefile 970 Bytes
Newer Older
Linus Torvalds's avatar
Linus Torvalds committed
1 2 3 4 5 6 7 8 9 10
#
# ia64/boot/Makefile
#
# This file is subject to the terms and conditions of the GNU General Public
# License.  See the file "COPYING" in the main directory of this archive
# for more details.
#
# Copyright (C) 1998 by David Mosberger-Tang <davidm@hpl.hp.com>
#

11
EXTRA_TARGETS := vmlinux.bin vmlinux.gz
Linus Torvalds's avatar
Linus Torvalds committed
12

13 14 15
targets-$(CONFIG_IA64_HP_SIM)  += bootloader
targets-$(CONFIG_IA64_GENERIC) += bootloader
EXTRA_TARGETS += $(sort $(targets-y))
Linus Torvalds's avatar
Linus Torvalds committed
16

17 18
quiet_cmd_cptotop = LN      $@
      cmd_cptotop = ln $< $@
19

20 21 22
vmlinux.gz: $(obj)/vmlinux.gz $(targets-y)
	$(call cmd,cptotop)
	@echo '  Kernel: $@ is ready'
Linus Torvalds's avatar
Linus Torvalds committed
23

24 25
boot: bootloader

26 27
bootloader: $(obj)/bootloader
	$(call cmd,cptotop)
Linus Torvalds's avatar
Linus Torvalds committed
28

29 30
$(obj)/vmlinux.gz: $(obj)/vmlinux.bin FORCE
	$(call if_changed,gzip)
Linus Torvalds's avatar
Linus Torvalds committed
31

32 33 34 35 36 37 38 39 40
$(obj)/vmlinux.bin: vmlinux FORCE
	$(call if_changed,objcopy)


LDFLAGS_bootloader = -static -T

$(obj)/bootloader: $(src)/bootloader.lds $(obj)/bootloader.o \
                   lib/lib.a arch/ia64/lib/lib.a FORCE
	$(call if_changed,ld)