1 # $NetBSD: Makefile,v 1.1 2014/07/16 20:59:58 riastradh Exp $ 2 3 .include <bsd.own.mk> 4 5 DRMSRCDIR= ../../dist/drm 6 RADEONSRCDIR= ${DRMSRCDIR}/radeon 7 MKREGTABLE= ../../radeon/mkregtable.awk 8 9 RADEON_REGS= 10 RADEON_REGS+= rn50 11 RADEON_REGS+= r100 12 RADEON_REGS+= r200 13 RADEON_REGS+= rv515 14 RADEON_REGS+= r300 15 RADEON_REGS+= r420 16 RADEON_REGS+= rs600 17 RADEON_REGS+= r600 18 RADEON_REGS+= evergreen 19 RADEON_REGS+= cayman 20 21 default-target: all 22 23 all: .PHONY 24 25 .for _regs_ in ${RADEON_REGS} 26 all: ${_regs_}_reg_safe.h 27 CLEANFILES+= ${_regs_}_reg_safe.h 28 ${_regs_}_reg_safe.h: ${MKREGTABLE} ${RADEONSRCDIR}/reg_srcs/${_regs_} 29 ${TOOL_AWK} -f ${MKREGTABLE} < ${RADEONSRCDIR}/reg_srcs/${_regs_} \ 30 > $@.tmp && \ 31 mv -f $@.tmp $@ 32 .endfor 33 34 clean: 35 rm -f ${CLEANFILES} 36