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