Makefile revision 225736
163437Ssheldonh# 263437Ssheldonh# $Id: //depot/aic7xxx/freebsd/dev/aic7xxx/aicasm/Makefile#2 $ 363437Ssheldonh# 463437Ssheldonh# $FreeBSD: stable/9/sys/dev/aic7xxx/aicasm/Makefile 220863 2011-04-19 18:09:21Z dim $ 563437Ssheldonh 663437SsheldonhPROG= aicasm 763437Ssheldonh 863437SsheldonhCSRCS= aicasm.c aicasm_symbol.c 963437SsheldonhYSRCS= aicasm_gram.y aicasm_macro_gram.y 1063437SsheldonhLSRCS= aicasm_scan.l aicasm_macro_scan.l 1163437Ssheldonh 1263437SsheldonhGENHDRS= aicasm_gram.h aicasm_macro_gram.h 1363437Ssheldonh 1463437SsheldonhSRCS= ${GENHDRS} ${CSRCS} ${YSRCS} ${LSRCS} 1563437SsheldonhCLEANFILES+= ${GENHDRS} ${YSRCS:R:C/(.*)/\1.output/g} 1663437SsheldonhDPADD= ${LIBL} 1763437SsheldonhLDADD= -ll 1863437SsheldonhWARNS?= 5 1963437Ssheldonh 2063437Ssheldonh# Correct path for kernel builds 2163437Ssheldonh# Don't rely on the kernel's .depend file 2263437Ssheldonh.ifdef MAKESRCPATH 2363437Ssheldonh.PATH: ${MAKESRCPATH} 2463437SsheldonhDEPENDFILE= .depend_aicasm 2563437Ssheldonh.endif 2663437Ssheldonh 2763437SsheldonhNOSTDINC= -nostdinc 2863437SsheldonhCFLAGS+= ${NOSTDINC} -I/usr/include -I. 2963437Ssheldonh.ifdef MAKESRCPATH 3063437SsheldonhCFLAGS+= -I${MAKESRCPATH} 3163437Ssheldonh.endif 3263437SsheldonhNO_MAN= 3363437SsheldonhYFLAGS= -b ${.TARGET:R} ${.TARGET:M*macro*:S/$(.TARGET)/-p mm/} -d 3463437SsheldonhLFLAGS+= ${.TARGET:M*macro*:S/$(.TARGET)/-Pmm/} 3563437Ssheldonh 3663437Ssheldonh.ifdef AICASM_DEBUG 3763437SsheldonhCFLAGS+= -DDEBUG -g 3863437SsheldonhYFLAGS+= -t -v 3963437SsheldonhLFLAGS+= -d 4063437Ssheldonh.endif 4163437Ssheldonh 4263437Ssheldonh.include <bsd.prog.mk> 4363437Ssheldonh