comparison bootutil/Makefile @ 15:36e65605d16a

bootutil: add c155-analyze-boot
author Mychaela Falconia <falcon@freecalypso.org>
date Sat, 10 Jun 2023 05:35:37 +0000
parents 09c18549921b
children 6b0d533046e5
comparison
equal deleted inserted replaced
14:09c18549921b 15:36e65605d16a
1 CC= gcc 1 CC= gcc
2 CFLAGS= -O2 2 CFLAGS= -O2
3 PROGS= c139-analyze-boot 3 PROGS= c139-analyze-boot c155-analyze-boot
4 4
5 C139ANB_OBJS= c11x_lockable.o c11x_nolock.o c139_lockable.o c139_main.o \ 5 C139ANB_OBJS= c11x_lockable.o c11x_nolock.o c139_lockable.o c139_main.o \
6 c139_nolock.o do_match.o fc_patched_boot.o 6 c139_nolock.o do_match.o fc_patched_boot.o
7 C155ANB_OBJS= c155_boot.o c155_main.o do_match.o
7 8
8 INSTALL_PREFIX= /opt/freecalypso 9 INSTALL_PREFIX= /opt/freecalypso
9 10
10 INSTBIN=${INSTALL_PREFIX}/bin 11 INSTBIN=${INSTALL_PREFIX}/bin
11 12
12 all: ${PROGS} 13 all: ${PROGS}
13 14
14 c139-analyze-boot: ${C139ANB_OBJS} 15 c139-analyze-boot: ${C139ANB_OBJS}
15 ${CC} ${CFLAGS} -o $@ ${C139ANB_OBJS} 16 ${CC} ${CFLAGS} -o $@ ${C139ANB_OBJS}
17
18 c155-analyze-boot: ${C155ANB_OBJS}
19 ${CC} ${CFLAGS} -o $@ ${C155ANB_OBJS}
16 20
17 c11x_lockable.o: ../bootmatch/c11x_lockable.c 21 c11x_lockable.o: ../bootmatch/c11x_lockable.c
18 ${CC} ${CFLAGS} -c -o $@ $< 22 ${CC} ${CFLAGS} -c -o $@ $<
19 23
20 c11x_nolock.o: ../bootmatch/c11x_nolock.c 24 c11x_nolock.o: ../bootmatch/c11x_nolock.c
24 ${CC} ${CFLAGS} -c -o $@ $< 28 ${CC} ${CFLAGS} -c -o $@ $<
25 29
26 c139_nolock.o: ../bootmatch/c139_nolock.c 30 c139_nolock.o: ../bootmatch/c139_nolock.c
27 ${CC} ${CFLAGS} -c -o $@ $< 31 ${CC} ${CFLAGS} -c -o $@ $<
28 32
33 c155_boot.o: ../bootmatch/c155_boot.c
34 ${CC} ${CFLAGS} -c -o $@ $<
35
29 fc_patched_boot.o: ../bootmatch/fc_patched_boot.c 36 fc_patched_boot.o: ../bootmatch/fc_patched_boot.c
30 ${CC} ${CFLAGS} -c -o $@ $< 37 ${CC} ${CFLAGS} -c -o $@ $<
31 38
32 install: 39 install:
33 mkdir -p ${INSTBIN} 40 mkdir -p ${INSTBIN}