Makefile 955 B

123456789101112131415161718192021222324252627282930313233
  1. #
  2. # arch/x86/kernel/acpi/realmode/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. always := wakeup.o
  9. wakeup-y += wakeup_asm.o wakemain.o video-mode.o
  10. wakeup-y += copy.o bioscall.o regs.o
  11. # The link order of the video-*.o modules can matter. In particular,
  12. # video-vga.o *must* be listed first, followed by video-vesa.o.
  13. # Hardware-specific drivers should follow in the order they should be
  14. # probed, and video-bios.o should typically be last.
  15. wakeup-y += video-vga.o
  16. wakeup-y += video-vesa.o
  17. wakeup-y += video-bios.o
  18. targets += $(wakeup-y)
  19. WAKEUP_OBJS = $(addprefix $(obj)/,$(wakeup-y))
  20. LDFLAGS_wakeup.o := -m elf_i386 -r
  21. $(obj)/wakeup.o: $(WAKEUP_OBJS) FORCE
  22. $(call if_changed,ld)
  23. bootsrc := $(src)/../../../boot
  24. ccflags-y += -D_WAKEUP -I$(srctree)/$(bootsrc)
  25. asflags-y += -D_WAKEUP -I$(srctree)/$(bootsrc)