Makefile 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. ################################################################################
  2. #
  3. # Copyright (c) 2014 Minoca Corp. All Rights Reserved
  4. #
  5. # Binary Name:
  6. #
  7. # Boot Manager (PC/AT)
  8. #
  9. # Abstract:
  10. #
  11. # This module implements the Boot Manager that can load a Minoca OS
  12. # loader. It is targeted for BIOS (non-UEFI) platforms.
  13. #
  14. # Author:
  15. #
  16. # Evan Green 21-Feb-2014
  17. #
  18. # Environment:
  19. #
  20. # Boot
  21. #
  22. ################################################################################
  23. include $(SRCDIR)/../sources
  24. VPATH += $(SRCDIR)/..:
  25. OBJS += bootxfr.o \
  26. main.o \
  27. X86_OBJS = x86/entry.o \
  28. TEXT_ADDRESS = 0x100000
  29. LDFLAGS += -nodefaultlibs -nostartfiles -nostdlib
  30. INCLUDES += $(SRCROOT)/os/boot/lib/include;$(SRCDIR)/..;
  31. TARGETLIBS += $(OBJROOT)/os/boot/lib/pcat/bootpcat.a \
  32. $(OBJROOT)/os/lib/partlib/partlib.a \
  33. EXTRA_SRC_DIRS = x86
  34. include $(SRCROOT)/os/minoca.mk
  35. postbuild: $(BINROOT)/$(BINARY).bin
  36. $(BINROOT)/$(BINARY).bin: $(BINARY)
  37. @cd $(BINROOT) && $(OBJCOPY) -O binary $^ $@