view bootutil/Makefile @ 13:f232fb350e1c

top Makefile: add bootutil
author Mychaela Falconia <falcon@freecalypso.org>
date Sat, 10 Jun 2023 05:00:20 +0000
parents fe5f7ba7f154
children 09c18549921b
line wrap: on
line source

CC=	gcc
CFLAGS=	-O2
PROGS=	c139-analyze-boot

C139ANB_OBJS=	c11x_lockable.o c11x_nolock.o c139_lockable.o c139_main.o \
		c139_nolock.o do_match.o fc_patched_boot.o

all:	${PROGS}

c139-analyze-boot:	${C139ANB_OBJS}
	${CC} ${CFLAGS} -o $@ ${C139ANB_OBJS}

c11x_lockable.o:	../bootmatch/c11x_lockable.c
	${CC} ${CFLAGS} -c -o $@ $<

c11x_nolock.o:	../bootmatch/c11x_nolock.c
	${CC} ${CFLAGS} -c -o $@ $<

c139_lockable.o:	../bootmatch/c139_lockable.c
	${CC} ${CFLAGS} -c -o $@ $<

c139_nolock.o:	../bootmatch/c139_nolock.c
	${CC} ${CFLAGS} -c -o $@ $<

fc_patched_boot.o:	../bootmatch/fc_patched_boot.c
	${CC} ${CFLAGS} -c -o $@ $<

clean:
	rm -f *.o ${PROGS}