Makefile 514 B

12345678910111213141516171819
  1. # define which architecture you're targeting
  2. ARCH = x86_64
  3. # define your target file here
  4. TARGET = helloworld.efi
  5. #define your sources here
  6. SRCS = $(wildcard *.c)
  7. # define your default compiler flags
  8. CFLAGS = -pedantic -Wall -Wextra -Werror --ansi -O2
  9. # define your default linker flags
  10. #LDFLAGS =
  11. # define your additional libraries here
  12. #LIBS = -lm
  13. # leave the hard work and all the rest to posix-uefi
  14. # set this if you want GNU gcc + ld + objcopy instead of LLVM Clang + Lld
  15. #USE_GCC = 1
  16. include uefi/Makefile