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