source: trunk/bootcode/airboot.gmk@ 185

Last change on this file since 185 was 183, checked in by Ben Rietbroek, 8 years ago

Minor changes to GNU Make front-end (maintainer only) [v1.1.1-testing]

In time, WMake will be replaced by GNU Make.
This transition will take place 'behind the scenes' and put into effect
when it is completed. This commit only affects building on Linux using
the FCL menus.

CAUTION:
This is a testbuild !
AirBoot uses the BIOS to access disks and a small coding error can trash
partition tables or other vital disk structures. You are advised to make
backups of TRACK0 and EBRs before using this testbuild. More info at:
https://rousseaux.github.io/netlabs.air-boot/pdf/AirBoot-v1.1.0-manual.pdf

File size: 1.6 KB
Line 
1###############################################################################
2# airboot.gmk :: GNU Makefile for the Boot Loader (airboot.bin) #
3# --------------------------------------------------------------------------- #
4# This Makefile builds the AiR-BOOT Boot Loader. #
5# This is the small ~31kB binary that resides in track0. #
6###############################################################################
7
8# UUID of this Makefile
9uuid:=95b9bf74-70d3-11e6-bae9-df2b17e2701d
10
11# Get the name of this Makefile
12self:=$(lastword $(MAKEFILE_LIST))
13
14# Delegate to target 'default' which can specify more than one dependency
15.DEFAULT_GOAL:=default
16
17# Inform the user on how to build AiR-BOOT
18default: info
19
20# Show information on how to use this Makefile
21info:
22 $(info )
23 $(info [$@])
24 @echo "### Master AiR-BOOT Makefile ###"
25 @echo "Use make build to build AiR-BOOT for all languages."
26 @echo
27
28# Redirect to 'build' target
29all: build
30
31# Build AiR-BOOT and its components
32build: dev
33#~ $(info )
34#~ $(info [$@])
35#~ $(call owc.env)
36#~ wmake -h
37
38# Cleanup the generated files
39clean:
40 $(info )
41 $(info [$@])
42 $(call owc.env)
43 wmake -h clean
44
45# Build AiR-BOOT development version
46dev:
47 $(info )
48 $(info [$@])
49 $(call owc.env)
50 @echo "VV:$(__VENDOR_BUILD__)"
51 wmake -h dev DEV_BLD_LANG=$(DEV_BLD_LANG)
52
53#
54# Open Watcom Environment
55#
56define owc.env
57$(call owc19.env)
58endef
59define owc19.env
60$(eval export WATCOM:=/vol/devtools/owc19)
61$(eval export PATH:=$(WATCOM)/binl:$(PATH))
62$(eval export INCLUDE:=$(WATCOM)/lh:$(INCLUDE))
63$(eval export EDPATH:=$(WATCOM)/eddat)
64$(eval export WIPFC:=$(WATCOM)/wipfc)
65$(eval CC=owcc)
66endef
Note: See TracBrowser for help on using the repository browser.