xref: /openbsd/sys/dev/microcode/yds/Makefile (revision 43a70795)
1*43a70795Sderaadt# $OpenBSD: Makefile,v 1.7 2021/10/03 00:48:46 deraadt Exp $
265b5a2beSderaadt
365b5a2beSderaadtNOPROG=
465b5a2beSderaadtNOMAN=
51bf3fce5SdrahnCC=${HOSTCC}
665b5a2beSderaadt
765b5a2beSderaadtFIRM= 	yds
865b5a2beSderaadt
979303afcSmarkusPROG=	build
1065b5a2beSderaadt
1179303afcSmarkusCLEANFILES+= ${FIRM} ${PROG}
1279303afcSmarkus
1379303afcSmarkusall: ${FIRM}
1479303afcSmarkus
1579303afcSmarkus${FIRM}: build
1665b5a2beSderaadt	${.OBJDIR}/build
1765b5a2beSderaadt
1879303afcSmarkusrealinstall:
1979303afcSmarkus
2065b5a2beSderaadtafterinstall:
2165b5a2beSderaadt	${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 \
2265b5a2beSderaadt	    ${FIRM} ${DESTDIR}/etc/firmware
2365b5a2beSderaadt	${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 \
2465b5a2beSderaadt	    ${.CURDIR}/yds-license ${DESTDIR}/etc/firmware
2565b5a2beSderaadt
2665b5a2beSderaadt.include <bsd.prog.mk>
27