diff bootutil/Makefile @ 14:09c18549921b

add install of bootutil
author Mychaela Falconia <falcon@freecalypso.org>
date Sat, 10 Jun 2023 05:09:38 +0000
parents fe5f7ba7f154
children 36e65605d16a
line wrap: on
line diff
--- a/bootutil/Makefile	Sat Jun 10 05:00:20 2023 +0000
+++ b/bootutil/Makefile	Sat Jun 10 05:09:38 2023 +0000
@@ -5,6 +5,10 @@
 C139ANB_OBJS=	c11x_lockable.o c11x_nolock.o c139_lockable.o c139_main.o \
 		c139_nolock.o do_match.o fc_patched_boot.o
 
+INSTALL_PREFIX=	/opt/freecalypso
+
+INSTBIN=${INSTALL_PREFIX}/bin
+
 all:	${PROGS}
 
 c139-analyze-boot:	${C139ANB_OBJS}
@@ -25,5 +29,9 @@
 fc_patched_boot.o:	../bootmatch/fc_patched_boot.c
 	${CC} ${CFLAGS} -c -o $@ $<
 
+install:
+	mkdir -p ${INSTBIN}
+	install -c ${PROGS} ${INSTBIN}
+
 clean:
 	rm -f *.o ${PROGS}