Makefile 804 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. ################################################################################
  2. #
  3. # Copyright (c) 2012 Minoca Corp. All Rights Reserved
  4. #
  5. # Binary Name:
  6. #
  7. # OS Loader (UEFI)
  8. #
  9. # Abstract:
  10. #
  11. # This module implements the UEFI operating system loader that loads the
  12. # kernel.
  13. #
  14. # Author:
  15. #
  16. # Evan Green 10-Feb-2014
  17. #
  18. # Environment:
  19. #
  20. # Boot
  21. #
  22. ################################################################################
  23. include $(SRCDIR)/../sources
  24. BINARY := loadefi
  25. VPATH += $(SRCDIR)/..:
  26. OBJS += memory.o \
  27. INCLUDES += $(SRCROOT)/os/boot/lib/include;$(SRCDIR)/..;
  28. TARGETLIBS += $(OBJROOT)/os/boot/lib/efi/bootefi.a \
  29. ENTRY = BoMain
  30. ifneq ($(ARCH), x86)
  31. LDFLAGS += -Wl,--no-wchar-size-warning
  32. endif
  33. LDFLAGS += -pie
  34. include $(SRCROOT)/os/minoca.mk