Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153
  1. ###############################################################################
  2. #
  3. # Initialise various variables
  4. #
  5. CLEANUP :=
  6. CFLAGS :=
  7. ASFLAGS :=
  8. LDFLAGS :=
  9. MAKEDEPS := Makefile
  10. ###############################################################################
  11. #
  12. # Locations of tools
  13. #
  14. HOST_CC := gcc
  15. RM := rm -f
  16. TOUCH := touch
  17. MKDIR := mkdir
  18. CP := cp
  19. ECHO := echo
  20. PRINTF := printf
  21. PERL := /usr/bin/perl
  22. CC := $(CROSS_COMPILE)gcc
  23. CPP := $(CC) -E
  24. AS := $(CROSS_COMPILE)as
  25. LD := $(CROSS_COMPILE)ld
  26. SIZE := $(CROSS_COMPILE)size
  27. AR := $(CROSS_COMPILE)ar
  28. RANLIB := $(CROSS_COMPILE)ranlib
  29. OBJCOPY := $(CROSS_COMPILE)objcopy
  30. NM := $(CROSS_COMPILE)nm
  31. OBJDUMP := $(CROSS_COMPILE)objdump
  32. PARSEROM := $(PERL) ./util/parserom.pl
  33. MAKEROM := $(PERL) ./util/makerom.pl
  34. SYMCHECK := $(PERL) ./util/symcheck.pl
  35. SORTOBJDUMP := $(PERL) ./util/sortobjdump.pl
  36. PADIMG := $(PERL) ./util/padimg.pl
  37. LICENCE := $(PERL) ./util/licence.pl
  38. NRV2B := ./util/nrv2b
  39. ZBIN := ./util/zbin
  40. ELF2EFI32 := ./util/elf2efi32
  41. ELF2EFI64 := ./util/elf2efi64
  42. EFIROM := ./util/efirom
  43. ICCFIX := ./util/iccfix
  44. DOXYGEN := doxygen
  45. BINUTILS_DIR := /usr
  46. BFD_DIR := $(BINUTILS_DIR)
  47. ###############################################################################
  48. #
  49. # SRCDIRS lists all directories containing source files.
  50. #
  51. SRCDIRS :=
  52. SRCDIRS += libgcc
  53. SRCDIRS += core
  54. SRCDIRS += net net/tcp net/udp net/infiniband net/80211
  55. SRCDIRS += image
  56. SRCDIRS += drivers/bus
  57. SRCDIRS += drivers/net
  58. SRCDIRS += drivers/net/e1000
  59. SRCDIRS += drivers/net/e1000e
  60. SRCDIRS += drivers/net/igb
  61. SRCDIRS += drivers/net/phantom
  62. SRCDIRS += drivers/net/rtl818x
  63. SRCDIRS += drivers/net/ath5k
  64. SRCDIRS += drivers/net/vxge
  65. SRCDIRS += drivers/block
  66. SRCDIRS += drivers/nvs
  67. SRCDIRS += drivers/bitbash
  68. SRCDIRS += drivers/infiniband
  69. SRCDIRS += interface/pxe interface/efi interface/smbios
  70. SRCDIRS += tests
  71. SRCDIRS += crypto crypto/axtls crypto/matrixssl
  72. SRCDIRS += hci hci/commands hci/tui
  73. SRCDIRS += hci/mucurses hci/mucurses/widgets
  74. SRCDIRS += usr
  75. SRCDIRS += config
  76. # NON_AUTO_SRCS lists files that are excluded from the normal
  77. # automatic build system.
  78. #
  79. NON_AUTO_SRCS :=
  80. NON_AUTO_SRCS += drivers/net/prism2.c
  81. # INCDIRS lists the include path
  82. #
  83. INCDIRS :=
  84. INCDIRS += include .
  85. ###############################################################################
  86. #
  87. # Default build target: build the most common targets and print out a
  88. # helpfully suggestive message
  89. #
  90. all : bin/blib.a bin/gpxe.dsk bin/gpxe.iso bin/gpxe.usb bin/undionly.kpxe
  91. @$(ECHO) '==========================================================='
  92. @$(ECHO)
  93. @$(ECHO) 'To create a bootable floppy, type'
  94. @$(ECHO) ' cat bin/gpxe.dsk > /dev/fd0'
  95. @$(ECHO) 'where /dev/fd0 is your floppy drive. This will erase any'
  96. @$(ECHO) 'data already on the disk.'
  97. @$(ECHO)
  98. @$(ECHO) 'To create a bootable USB key, type'
  99. @$(ECHO) ' cat bin/gpxe.usb > /dev/sdX'
  100. @$(ECHO) 'where /dev/sdX is your USB key, and is *not* a real hard'
  101. @$(ECHO) 'disk on your system. This will erase any data already on'
  102. @$(ECHO) 'the USB key.'
  103. @$(ECHO)
  104. @$(ECHO) 'To create a bootable CD-ROM, burn the ISO image '
  105. @$(ECHO) 'bin/gpxe.iso to a blank CD-ROM.'
  106. @$(ECHO)
  107. @$(ECHO) 'These images contain drivers for all supported cards. You'
  108. @$(ECHO) 'can build more customised images, and ROM images, using'
  109. @$(ECHO) ' make bin/<rom-name>.<output-format>'
  110. @$(ECHO)
  111. @$(ECHO) '==========================================================='
  112. ###############################################################################
  113. #
  114. # Build targets that do nothing but might be tried by users
  115. #
  116. configure :
  117. @$(ECHO) "No configuration needed."
  118. install :
  119. @$(ECHO) "No installation required."
  120. ###############################################################################
  121. #
  122. # Version number calculations
  123. #
  124. VERSION_MAJOR = 1
  125. VERSION_MINOR = 0
  126. VERSION_PATCH = 0
  127. EXTRAVERSION = +
  128. MM_VERSION = $(VERSION_MAJOR).$(VERSION_MINOR)
  129. VERSION = $(MM_VERSION).$(VERSION_PATCH)$(EXTRAVERSION)
  130. CFLAGS += -DVERSION_MAJOR=$(VERSION_MAJOR) \
  131. -DVERSION_MINOR=$(VERSION_MINOR) \
  132. -DVERSION_PATCH=$(VERSION_PATCH) \
  133. -DVERSION=\"$(VERSION)\"
  134. IDENT = '$(@F) $(VERSION) (GPL) etherboot.org'
  135. version :
  136. @$(ECHO) $(VERSION)
  137. ###############################################################################
  138. #
  139. # Drag in the bulk of the build system
  140. #
  141. MAKEDEPS += Makefile.housekeeping
  142. include Makefile.housekeeping