FreeCalypso > hg > fc-am-toolkit
annotate bootmatch/Makefile @ 25:afd760eb1f8d
doc/C1xx-updates: new article
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Sun, 11 Jun 2023 20:57:23 +0000 |
parents | 39b921d851fb |
children |
rev | line source |
---|---|
9
bfcc8180cf3c
bootmatch compiler written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1 CC= gcc |
bfcc8180cf3c
bootmatch compiler written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
2 CFLAGS= -O2 |
bfcc8180cf3c
bootmatch compiler written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
3 BMC_PROG=bm-comp |
bfcc8180cf3c
bootmatch compiler written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
4 BMC_OBJS=comp_main.o comp_output.o comp_ranges.o comp_readbin.o |
10
39b921d851fb
bootmatch: generating C outputs
Mychaela Falconia <falcon@freecalypso.org>
parents:
9
diff
changeset
|
5 OUTPUTS=c11x_lockable.c c11x_nolock.c c139_lockable.c c139_nolock.c \ |
39b921d851fb
bootmatch: generating C outputs
Mychaela Falconia <falcon@freecalypso.org>
parents:
9
diff
changeset
|
6 c155_boot.c fc_patched_boot.c |
9
bfcc8180cf3c
bootmatch compiler written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
7 |
10
39b921d851fb
bootmatch: generating C outputs
Mychaela Falconia <falcon@freecalypso.org>
parents:
9
diff
changeset
|
8 C11XNEW_BIN= ../bootref/c11x-lockable.bin |
39b921d851fb
bootmatch: generating C outputs
Mychaela Falconia <falcon@freecalypso.org>
parents:
9
diff
changeset
|
9 C11XNEW_RNG= ../bootref/c11x-lockable.ranges |
39b921d851fb
bootmatch: generating C outputs
Mychaela Falconia <falcon@freecalypso.org>
parents:
9
diff
changeset
|
10 C11XOLD_BIN= ../bootref/c11x-nolock.bin |
39b921d851fb
bootmatch: generating C outputs
Mychaela Falconia <falcon@freecalypso.org>
parents:
9
diff
changeset
|
11 C11XOLD_RNG= ../bootref/c11x-nolock.ranges |
39b921d851fb
bootmatch: generating C outputs
Mychaela Falconia <falcon@freecalypso.org>
parents:
9
diff
changeset
|
12 C139NEW_BIN= ../bootref/c139-lockable.bin |
39b921d851fb
bootmatch: generating C outputs
Mychaela Falconia <falcon@freecalypso.org>
parents:
9
diff
changeset
|
13 C139NEW_RNG= ../bootref/c139-lockable.ranges |
39b921d851fb
bootmatch: generating C outputs
Mychaela Falconia <falcon@freecalypso.org>
parents:
9
diff
changeset
|
14 C139OLD_BIN= ../bootref/c139-nolock.bin |
39b921d851fb
bootmatch: generating C outputs
Mychaela Falconia <falcon@freecalypso.org>
parents:
9
diff
changeset
|
15 C139OLD_RNG= ../bootref/c139-nolock.ranges |
39b921d851fb
bootmatch: generating C outputs
Mychaela Falconia <falcon@freecalypso.org>
parents:
9
diff
changeset
|
16 C155BOOT_BIN= ../bootref/c156-boot.bin |
39b921d851fb
bootmatch: generating C outputs
Mychaela Falconia <falcon@freecalypso.org>
parents:
9
diff
changeset
|
17 C155BOOT_RNG= ../bootref/c156-boot.ranges |
39b921d851fb
bootmatch: generating C outputs
Mychaela Falconia <falcon@freecalypso.org>
parents:
9
diff
changeset
|
18 FCPATCH_BIN= ../target-bin/compal-flash-boot-for-fc.bin |
39b921d851fb
bootmatch: generating C outputs
Mychaela Falconia <falcon@freecalypso.org>
parents:
9
diff
changeset
|
19 |
39b921d851fb
bootmatch: generating C outputs
Mychaela Falconia <falcon@freecalypso.org>
parents:
9
diff
changeset
|
20 all: ${BMC_PROG} ${OUTPUTS} |
9
bfcc8180cf3c
bootmatch compiler written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
21 |
bfcc8180cf3c
bootmatch compiler written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
22 ${BMC_PROG}: ${BMC_OBJS} |
bfcc8180cf3c
bootmatch compiler written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
23 ${CC} ${CFLAGS} -o $@ ${BMC_OBJS} |
bfcc8180cf3c
bootmatch compiler written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
24 |
10
39b921d851fb
bootmatch: generating C outputs
Mychaela Falconia <falcon@freecalypso.org>
parents:
9
diff
changeset
|
25 c11x_lockable.c: ${BMC_PROG} ${C11XNEW_BIN} ${C11XNEW_RNG} |
39b921d851fb
bootmatch: generating C outputs
Mychaela Falconia <falcon@freecalypso.org>
parents:
9
diff
changeset
|
26 ./${BMC_PROG} ${C11XNEW_BIN} ${C11XNEW_RNG} bootmatch_c11x_lockable $@ |
39b921d851fb
bootmatch: generating C outputs
Mychaela Falconia <falcon@freecalypso.org>
parents:
9
diff
changeset
|
27 |
39b921d851fb
bootmatch: generating C outputs
Mychaela Falconia <falcon@freecalypso.org>
parents:
9
diff
changeset
|
28 c11x_nolock.c: ${BMC_PROG} ${C11XOLD_BIN} ${C11XOLD_RNG} |
39b921d851fb
bootmatch: generating C outputs
Mychaela Falconia <falcon@freecalypso.org>
parents:
9
diff
changeset
|
29 ./${BMC_PROG} ${C11XOLD_BIN} ${C11XOLD_RNG} bootmatch_c11x_nolock $@ |
39b921d851fb
bootmatch: generating C outputs
Mychaela Falconia <falcon@freecalypso.org>
parents:
9
diff
changeset
|
30 |
39b921d851fb
bootmatch: generating C outputs
Mychaela Falconia <falcon@freecalypso.org>
parents:
9
diff
changeset
|
31 c139_lockable.c: ${BMC_PROG} ${C139NEW_BIN} ${C139NEW_RNG} |
39b921d851fb
bootmatch: generating C outputs
Mychaela Falconia <falcon@freecalypso.org>
parents:
9
diff
changeset
|
32 ./${BMC_PROG} ${C139NEW_BIN} ${C139NEW_RNG} bootmatch_c139_lockable $@ |
39b921d851fb
bootmatch: generating C outputs
Mychaela Falconia <falcon@freecalypso.org>
parents:
9
diff
changeset
|
33 |
39b921d851fb
bootmatch: generating C outputs
Mychaela Falconia <falcon@freecalypso.org>
parents:
9
diff
changeset
|
34 c139_nolock.c: ${BMC_PROG} ${C139OLD_BIN} ${C139OLD_RNG} |
39b921d851fb
bootmatch: generating C outputs
Mychaela Falconia <falcon@freecalypso.org>
parents:
9
diff
changeset
|
35 ./${BMC_PROG} ${C139OLD_BIN} ${C139OLD_RNG} bootmatch_c139_nolock $@ |
39b921d851fb
bootmatch: generating C outputs
Mychaela Falconia <falcon@freecalypso.org>
parents:
9
diff
changeset
|
36 |
39b921d851fb
bootmatch: generating C outputs
Mychaela Falconia <falcon@freecalypso.org>
parents:
9
diff
changeset
|
37 c155_boot.c: ${BMC_PROG} ${C155BOOT_BIN} ${C155BOOT_RNG} |
39b921d851fb
bootmatch: generating C outputs
Mychaela Falconia <falcon@freecalypso.org>
parents:
9
diff
changeset
|
38 ./${BMC_PROG} ${C155BOOT_BIN} ${C155BOOT_RNG} bootmatch_c155 $@ |
39b921d851fb
bootmatch: generating C outputs
Mychaela Falconia <falcon@freecalypso.org>
parents:
9
diff
changeset
|
39 |
39b921d851fb
bootmatch: generating C outputs
Mychaela Falconia <falcon@freecalypso.org>
parents:
9
diff
changeset
|
40 fc_patched_boot.c: ${BMC_PROG} ${FCPATCH_BIN} ${C11XOLD_RNG} |
39b921d851fb
bootmatch: generating C outputs
Mychaela Falconia <falcon@freecalypso.org>
parents:
9
diff
changeset
|
41 ./${BMC_PROG} ${FCPATCH_BIN} ${C11XOLD_RNG} bootmatch_fc_patch $@ |
39b921d851fb
bootmatch: generating C outputs
Mychaela Falconia <falcon@freecalypso.org>
parents:
9
diff
changeset
|
42 |
9
bfcc8180cf3c
bootmatch compiler written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
43 clean: |
10
39b921d851fb
bootmatch: generating C outputs
Mychaela Falconia <falcon@freecalypso.org>
parents:
9
diff
changeset
|
44 rm -f *.o ${BMC_PROG} ${OUTPUTS} |