You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

Makefile 944B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. # Code size reduction.
  2. #
  3. CFLAGS += -fstrength-reduce -fomit-frame-pointer
  4. # Code size reduction. gcc3 needs a different syntax to gcc2 if you
  5. # want to avoid spurious warnings.
  6. #
  7. CFLAGS += -falign-jumps=1 -falign-loops=1 -falign-functions=1
  8. # Use %rip-relative addressing wherever possible.
  9. #
  10. CFLAGS += -fpie
  11. # Force 64-bit code
  12. #
  13. CFLAGS += -m64
  14. ASFLAGS += --64
  15. LDFLAGS += -m elf_x86_64
  16. # EFI requires -fshort-wchar, and nothing else currently uses wchar_t
  17. #
  18. CFLAGS += -fshort-wchar
  19. # We need to undefine the default macro "i386" when compiling .S
  20. # files, otherwise ".arch i386" translates to ".arch 1"...
  21. #
  22. CFLAGS += -Ui386
  23. # x86_64-specific directories containing source files
  24. #
  25. SRCDIRS += arch/x86_64/prefix
  26. # Include common x86 Makefile
  27. #
  28. MAKEDEPS += arch/x86/Makefile
  29. include arch/x86/Makefile
  30. # Include platform-specific Makefile
  31. #
  32. MAKEDEPS += arch/x86_64/Makefile.$(PLATFORM)
  33. include arch/x86_64/Makefile.$(PLATFORM)