Makefile 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. ################################################################################
  2. #
  3. # Copyright (c) 2014 Minoca Corp.
  4. #
  5. # This file is licensed under the terms of the GNU General Public License
  6. # version 3. Alternative licensing terms are available. Contact
  7. # info@minocacorp.com for details. See the LICENSE file at the root of this
  8. # project for complete licensing information.
  9. #
  10. # Binary Name:
  11. #
  12. # efiboot
  13. #
  14. # Abstract:
  15. #
  16. # This executable implements support for the efiboot program, which is a
  17. # user mode utility that can be used to change EFI boot options.
  18. #
  19. # Author:
  20. #
  21. # Evan Green 9-Dec-2014
  22. #
  23. # Environment:
  24. #
  25. # User
  26. #
  27. ################################################################################
  28. BINARY = efiboot
  29. BINPLACE = bin
  30. BINARYTYPE = app
  31. INCLUDES += $(SRCROOT)/os/apps/libc/include; \
  32. OBJS = efiboot.o \
  33. CFLAGS += -fshort-wchar
  34. ifeq ($(ARCH), $(filter armv7 armv6,$(ARCH)))
  35. LDFLAGS += -Wl,--no-wchar-size-warning
  36. endif
  37. DYNLIBS = -lminocaos
  38. include $(SRCROOT)/os/minoca.mk
  39. postbuild:
  40. @mkdir -p $(BINROOT)/skel/bin
  41. @$(STRIP) -p -o $(BINROOT)/skel/bin/$(BINARY) $(BINROOT)/$(BINARY)