1#	$NetBSD$
2
37XXX_SEQ=	aic7xxx.seq
47XXX_SEQHDR=	aic7xxx_seq.h
57XXX_REGHDR=	aic7xxx_reg.h
6
779XX_SEQ=	aic79xx.seq
879XX_SEQHDR=	aic79xx_seq.h
979XX_REGHDR=	aic79xx_reg.h
10
11AICASMINCS=-I/usr/include -I${.CURDIR}/../../.. -I.
12
13PROG=	aicasm
14
15SRCS=	aicasm.c aicasm_symbol.c aicasm_scan.l aicasm_macro_scan.l \
16	aicasm_gram.y aicasm_macro_gram.y
17
18YHEADER=1
19
20DPADD+= ${LIBL} ${LIBY}
21LDADD+= -ll -ly
22
23NOSHARE=# defined
24
25.include <bsd.prog.mk>
26
27#
28# XXXfvdl must come after the .include. Yes, it's ugly.
29#
30LFLAGS+= ${.TARGET:M*macro*:S/$(.TARGET)/-Pmm/}
31YFLAGS+= ${.TARGET:M*macro*:S/$(.TARGET)/-p mm/}
32
33regen: 7xxx_headers 79xx_headers
34
357xxx_headers: ${PROG} ${7XXX_SEQ}
36	./${PROG} ${AICASMINCS} -o ${7XXX_SEQHDR} -r ${7XXX_REGHDR} ${7XXX_SEQ}
37
3879xx_headers: ${PROG} ${79XX_SEQ}
39	./${PROG} ${AICASMINCS} -o ${79XX_SEQHDR} -r ${79XX_REGHDR} ${79XX_SEQ}
40