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