Makefile revision 139103
1126890Strhodes# 2104019Sgibbs# $Id: //depot/aic7xxx/freebsd/dev/aic7xxx/aicasm/Makefile#2 $ 365943Sgibbs# 450477Speter# $FreeBSD: head/sys/dev/aic7xxx/aicasm/Makefile 139103 2004-12-21 08:47:35Z ru $ 523925Sgibbs 629050SgibbsPROG= aicasm 723925Sgibbs 829050SgibbsCSRCS= aicasm.c aicasm_symbol.c 995376SgibbsYSRCS= aicasm_gram.y aicasm_macro_gram.y 1095376SgibbsLSRCS= aicasm_scan.l aicasm_macro_scan.l 1123925Sgibbs 1295376SgibbsGENHDRS= aicasm_gram.h aicasm_macro_gram.h 1323925Sgibbs 1495376SgibbsSRCS= ${GENHDRS} ${CSRCS} ${YSRCS} ${LSRCS} 1595376SgibbsCLEANFILES+= ${GENHDRS} ${YSRCS:R:C/(.*)/\1.output/g} 16125503SruDPADD= ${LIBL} 17125503SruLDADD= -ll 1824571Sgibbs 1929050Sgibbs# Correct path for kernel builds 2029050Sgibbs# Don't rely on the kernel's .depend file 2129050Sgibbs.ifdef MAKESRCPATH 2229050Sgibbs.PATH: ${MAKESRCPATH} 2329050SgibbsDEPENDFILE= 2429050Sgibbs.endif 2529050Sgibbs 26126890Strhodes.if ${CC} == "icc" 27126890StrhodesCFLAGS+= -restrict 28126890StrhodesNOSTDINC= -X 29126890Strhodes.else 30126890StrhodesNOSTDINC= -nostdinc 31126890Strhodes.endif 32126890StrhodesCFLAGS+= ${NOSTDINC} -I/usr/include -I. 3395862Speter.ifdef MAKESRCPATH 3495862SpeterCFLAGS+= -I${MAKESRCPATH} 3595862Speter.endif 36139103SruNO_MAN= 3795376SgibbsYFLAGS= -b ${.TARGET:R} ${.TARGET:M*macro*:S/$(.TARGET)/-p mm/} -d 3895376SgibbsLFLAGS+= ${.TARGET:M*macro*:S/$(.TARGET)/-Pmm/} 3929897Sgibbs 4095376Sgibbs.ifdef AICASM_DEBUG 4129897SgibbsCFLAGS+= -DDEBUG -g 4265943SgibbsYFLAGS+= -t -v 4329897SgibbsLFLAGS+= -d 4429897Sgibbs.endif 4529897Sgibbs 4623925Sgibbs.include <bsd.prog.mk> 47