summaryrefslogtreecommitdiff
path: root/usr.sbin/fw_update/Makefile
blob: fd6c2e614626cbf2eb30c724ef9dc953d5bec1d4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#	$OpenBSD: Makefile,v 1.5 2022/01/06 13:18:36 anton Exp $

PROG=	patterns
MAN=	fw_update.8
CC=	${HOSTCC}
CFLAGS+=-I ${.CURDIR}/../../sys/dev/pci/drm/amd/amdgpu \
	-I ${.CURDIR}/../../sys/dev/pci/drm/i915 \
	-I ${.CURDIR}/../../sys/dev/pci/drm/radeon

CLEANFILES+=firmware_patterns

firmware_patterns: patterns
	${.OBJDIR}/patterns | sort | uniq > $@

realinstall:

all:	firmware_patterns

afterinstall: firmware_patterns
	${INSTALL} ${INSTALL_COPY} -o ${BINOWN} -g ${BINGRP} -m ${BINMODE} \
		${.CURDIR}/fw_update.sh ${DESTDIR}${BINDIR}/fw_update
	${INSTALL} ${INSTALL_COPY} -o ${SHAREOWN} -g ${SHAREGRP} \
		-m ${SHAREMODE} ${.OBJDIR}/firmware_patterns \
		${DESTDIR}${SHAREDIR}/misc/firmware_patterns

.include <bsd.prog.mk>