1
0

Makefile 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  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. # MBR
  13. #
  14. # Abstract:
  15. #
  16. # This module implements the Master Boot Record that is installed at
  17. # sector 0 of PC/AT disks.
  18. #
  19. # Author:
  20. #
  21. # Evan Green 4-Feb-2014
  22. #
  23. # Environment:
  24. #
  25. # Boot
  26. #
  27. ################################################################################
  28. BINARY = mbr
  29. BINARYTYPE = staticapp
  30. BINPLACE = bin
  31. X86_OBJS = mbr.o
  32. X64_OBJS := $(X86_OBJS)
  33. TEXT_ADDRESS = 0x0600
  34. LDFLAGS += -Wl,-zmax-page-size=1 -nodefaultlibs -nostartfiles -nostdlib
  35. include $(SRCROOT)/os/minoca.mk
  36. postbuild: $(BINROOT)/$(BINARY).bin
  37. $(BINROOT)/$(BINARY).bin: $(BINARY)
  38. @cd $(BINROOT) && $(OBJCOPY) -O binary $^ $@