1# 2# $Id: //depot/aic7xxx/freebsd/dev/aic7xxx/aicasm/Makefile#2 $ 3# 4# $FreeBSD$ 5 6PROG= aicasm 7 8CSRCS= aicasm.c aicasm_symbol.c 9YSRCS= aicasm_gram.y aicasm_macro_gram.y 10LSRCS= aicasm_scan.l aicasm_macro_scan.l 11 12GENHDRS= aicasm_gram.h aicasm_macro_gram.h 13 14SRCS= ${GENHDRS} ${CSRCS} ${YSRCS} ${LSRCS} 15CLEANFILES+= ${GENHDRS} ${YSRCS:R:C/(.*)/\1.output/g} 16WARNS?= 0 17 18# Correct path for kernel builds 19# Don't rely on the kernel's .depend file 20.ifdef MAKESRCPATH 21.PATH: ${MAKESRCPATH} 22DEPENDFILE= .depend_aicasm 23.endif 24 25CFLAGS+= -I${.CURDIR} 26.ifdef MAKESRCPATH 27CFLAGS+= -I${MAKESRCPATH} 28.endif 29MAN= 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 39BINDIR=/usr/bin 40 41build-tools: ${PROG} 42 43.include <bsd.prog.mk> 44CFLAGS+= -Wno-missing-prototypes 45