source: trunk/bootcode/airboot.gmk@ 188

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

Updated the simple build commands [v1.1.1-testing]

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.5 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: build
19
20# Show information on how to use this Makefile
21info:
22 $(info )
23 $(info [$@])
24
25# Redirect to 'build' target
26all: build
27
28# Build AiR-BOOT and its components
29build: dev
30
31# Cleanup the generated files
32clean:
33 $(info )
34 $(info [$@])
35 $(call owc.env)
36 wmake -h clean rmbin
37
38# Build AiR-BOOT development version
39dev:
40 $(info )
41 $(info [$@])
42 $(call owc.env)
43 wmake -h dev DEV_BLD_LANG=$(DEV_BLD_LANG)
44
45#
46# Open Watcom Environment
47#
48define owc.env
49$(call owc19.env)
50endef
51define owc19.env
52$(eval export WATCOM:=/vol/devtools/owc19)
53$(eval export PATH:=$(WATCOM)/binl:$(PATH))
54$(eval export INCLUDE:=$(WATCOM)/lh:$(INCLUDE))
55$(eval export EDPATH:=$(WATCOM)/eddat)
56$(eval export WIPFC:=$(WATCOM)/wipfc)
57$(eval CC=owcc)
58endef
Note: See TracBrowser for help on using the repository browser.