summaryrefslogtreecommitdiff
path: root/sys/external/bsd/drm2/include/radeon/Makefile
blob: b35dacad1c62f7194ae64c61c194182ed91ddf82 (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
27
28
29
30
31
32
33
34
35
#	$NetBSD: Makefile,v 1.1 2014/07/16 20:59:58 riastradh Exp $

.include <bsd.own.mk>

DRMSRCDIR=	../../dist/drm
RADEONSRCDIR=	${DRMSRCDIR}/radeon
MKREGTABLE=	../../radeon/mkregtable.awk

RADEON_REGS=
RADEON_REGS+=	rn50
RADEON_REGS+=	r100
RADEON_REGS+=	r200
RADEON_REGS+=	rv515
RADEON_REGS+=	r300
RADEON_REGS+=	r420
RADEON_REGS+=	rs600
RADEON_REGS+=	r600
RADEON_REGS+=	evergreen
RADEON_REGS+=	cayman

default-target: all

all: .PHONY

.for _regs_ in ${RADEON_REGS}
all: ${_regs_}_reg_safe.h
CLEANFILES+=	${_regs_}_reg_safe.h
${_regs_}_reg_safe.h: ${MKREGTABLE} ${RADEONSRCDIR}/reg_srcs/${_regs_}
	${TOOL_AWK} -f ${MKREGTABLE} < ${RADEONSRCDIR}/reg_srcs/${_regs_} \
	  > $@.tmp && \
	mv -f $@.tmp $@
.endfor

clean:
	rm -f ${CLEANFILES}