106d6e4fcSTom Rhodes# 24ff10146SJustin T. Gibbs# $Id: //depot/aic7xxx/freebsd/dev/aic7xxx/aicasm/Makefile#2 $ 332da3127SJustin T. Gibbs# 4c5cb3888SJustin T. Gibbs 5c66dbc92SJustin T. GibbsPROG= aicasm 6c5cb3888SJustin T. Gibbs 7c66dbc92SJustin T. GibbsCSRCS= aicasm.c aicasm_symbol.c 87ce72dbaSJustin T. GibbsYSRCS= aicasm_gram.y aicasm_macro_gram.y 97ce72dbaSJustin T. GibbsLSRCS= aicasm_scan.l aicasm_macro_scan.l 10c5cb3888SJustin T. Gibbs 117ce72dbaSJustin T. GibbsGENHDRS= aicasm_gram.h aicasm_macro_gram.h 12c5cb3888SJustin T. Gibbs 137ce72dbaSJustin T. GibbsSRCS= ${GENHDRS} ${CSRCS} ${YSRCS} ${LSRCS} 147ce72dbaSJustin T. GibbsCLEANFILES+= ${GENHDRS} ${YSRCS:R:C/(.*)/\1.output/g} 15f827d58eSIan LeporeWARNS?= 0 16cbc7db3bSJustin T. Gibbs 17c66dbc92SJustin T. Gibbs# Correct path for kernel builds 18c66dbc92SJustin T. Gibbs# Don't rely on the kernel's .depend file 19c66dbc92SJustin T. Gibbs.ifdef MAKESRCPATH 20c66dbc92SJustin T. Gibbs.PATH: ${MAKESRCPATH} 2195ec61c0SRuslan ErmilovDEPENDFILE= .depend_aicasm 22c66dbc92SJustin T. Gibbs.endif 23c66dbc92SJustin T. Gibbs 24f827d58eSIan LeporeCFLAGS+= -I${.CURDIR} 2549d89985SPeter Wemm.ifdef MAKESRCPATH 2649d89985SPeter WemmCFLAGS+= -I${MAKESRCPATH} 2749d89985SPeter Wemm.endif 28*3bdf7758SWarner LoshMAN= 297ce72dbaSJustin T. GibbsYFLAGS= -b ${.TARGET:R} ${.TARGET:M*macro*:S/$(.TARGET)/-p mm/} -d 307ce72dbaSJustin T. GibbsLFLAGS+= ${.TARGET:M*macro*:S/$(.TARGET)/-Pmm/} 3137507c1bSJustin T. Gibbs 327ce72dbaSJustin T. Gibbs.ifdef AICASM_DEBUG 3337507c1bSJustin T. GibbsCFLAGS+= -DDEBUG -g 3432da3127SJustin T. GibbsYFLAGS+= -t -v 3537507c1bSJustin T. GibbsLFLAGS+= -d 3637507c1bSJustin T. Gibbs.endif 3737507c1bSJustin T. Gibbs 38f827d58eSIan LeporeBINDIR=/usr/bin 39f827d58eSIan Lepore 40f827d58eSIan Leporebuild-tools: ${PROG} 41f827d58eSIan Lepore 42c5cb3888SJustin T. Gibbs.include <bsd.prog.mk> 43c0159affSWarner LoshCFLAGS+= -Wno-missing-prototypes 44