1# $Id: //depot/aic7xxx/freebsd/dev/aic7xxx/aicasm/Makefile#2 $ 2# 3# $FreeBSD$ 4 5PROG= aicasm 6 7CSRCS= aicasm.c aicasm_symbol.c 8YSRCS= aicasm_gram.y aicasm_macro_gram.y 9LSRCS= aicasm_scan.l aicasm_macro_scan.l 10 11GENHDRS= aicasm_gram.h aicasm_macro_gram.h 12 13SRCS= ${GENHDRS} ${CSRCS} ${YSRCS} ${LSRCS} 14CLEANFILES+= ${GENHDRS} ${YSRCS:R:C/(.*)/\1.output/g} 15DPADD+= ${LIBL} 16LDADD+= -ll 17 18# Correct path for kernel builds 19# Don't rely on the kernel's .depend file 20.ifdef MAKESRCPATH 21.PATH: ${MAKESRCPATH} 22DEPENDFILE= 23.endif 24 25CFLAGS+= -nostdinc -I/usr/include -I. 26.ifdef MAKESRCPATH 27CFLAGS+= -I${MAKESRCPATH} 28.endif 29NOMAN= noman 30YFLAGS= -b ${.TARGET:R} ${.TARGET:M*macro*:S/$(.TARGET)/-p mm/} -d 31LFLAGS+= ${.TARGET:M*macro*:S/$(.TARGET)/-Pmm/} 32 33.ifdef AICASM_DEBUG 34CFLAGS+= -DDEBUG -g 35YFLAGS+= -t -v 36LFLAGS+= -d 37.endif 38 39.include <bsd.prog.mk> 40