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
|
---|
9 | uuid:=95b9bf74-70d3-11e6-bae9-df2b17e2701d
|
---|
10 |
|
---|
11 | # Get the name of this Makefile
|
---|
12 | self:=$(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
|
---|
18 | default: build
|
---|
19 |
|
---|
20 | # Show information on how to use this Makefile
|
---|
21 | info:
|
---|
22 | $(info )
|
---|
23 | $(info [$@])
|
---|
24 |
|
---|
25 | # Redirect to 'build' target
|
---|
26 | all: build
|
---|
27 |
|
---|
28 | # Build AiR-BOOT and its components
|
---|
29 | build: dev
|
---|
30 |
|
---|
31 | # Cleanup the generated files
|
---|
32 | clean:
|
---|
33 | $(info )
|
---|
34 | $(info [$@])
|
---|
35 | $(call owc.env)
|
---|
36 | wmake -h clean rmbin
|
---|
37 |
|
---|
38 | # Build AiR-BOOT development version
|
---|
39 | dev:
|
---|
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
|
---|
46 | devinfo:
|
---|
47 | $(info )
|
---|
48 | $(info [$@])
|
---|
49 | @less devinfo.txt
|
---|
50 | @echo
|
---|
51 |
|
---|
52 | #
|
---|
53 | # Open Watcom Environment
|
---|
54 | #
|
---|
55 | define owc.env
|
---|
56 | $(call owc19.env)
|
---|
57 | endef
|
---|
58 | define 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)
|
---|
65 | endef
|
---|
Note:
See
TracBrowser
for help on using the repository browser.