comparison bootmatch/Makefile @ 10:39b921d851fb

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