source: trunk/bootcode/airboot.gmk@ 201

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

Initial AiR-BOOT Development Information [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.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: 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# Show information on AiR-BOOT development
46devinfo:
47 $(info )
48 $(info [$@])
49 @less devinfo.txt
50 @echo
51
52#
53# Open Watcom Environment
54#
55define owc.env
56$(call owc19.env)
57endef
58define owc19.env
59$(eval export WATCOM:=/vol/devtools/owc19)
60$(eval export PATH:=$(WATCOM)/binl:$(PATH))
61$(eval export INCLUDE:=$(WATCOM)/lh:$(INCLUDE))
62$(eval export EDPATH:=$(WATCOM)/eddat)
63$(eval export WIPFC:=$(WATCOM)/wipfc)
64$(eval CC=owcc)
65endef
Note: See TracBrowser for help on using the repository browser.