xref: /openbsd/sys/dev/microcode/tigon/Makefile (revision 4cfece93)
1# $OpenBSD: Makefile,v 1.9 2016/09/01 10:40:38 tedu Exp $
2
3NOPROG=
4NOMAN=
5CC=${HOSTCC}
6
7# PCI & SBus capable systems only
8.if (${MACHINE} == "i386") || (${MACHINE} == "amd64") || \
9    (${MACHINE} == "alpha") || (${MACHINE} == "sparc64") || \
10    (${MACHINE_ARCH} == "powerpc") || \
11    (${MACHINE} == "hppa") || (${MACHINE} == "sgi")
12
13FIRM= 	tigon1 tigon2
14
15PROG=	build
16
17CLEANFILES+= ${FIRM} ${PROG}
18
19all: ${FIRM}
20
21${FIRM}: build
22	${.OBJDIR}/build
23
24realinstall:
25
26afterinstall:
27	${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 \
28	    ${FIRM} ${DESTDIR}/etc/firmware
29	${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 \
30	    ${.CURDIR}/tigon-license ${DESTDIR}/etc/firmware
31.endif
32
33.include <bsd.prog.mk>
34