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} 16DPADD= ${LIBL} 17LDADD= -ll 18WARNS?= 0 19 20# Correct path for kernel builds 21# Don't rely on the kernel's .depend file 22.ifdef MAKESRCPATH 23.PATH: ${MAKESRCPATH} 24DEPENDFILE= .depend_aicasm 25.endif 26 27CFLAGS+= -I${.CURDIR} 28.ifdef MAKESRCPATH 29CFLAGS+= -I${MAKESRCPATH} 30.endif 31MAN= 32YFLAGS= -b ${.TARGET:R} ${.TARGET:M*macro*:S/$(.TARGET)/-p mm/} -d 33LFLAGS+= ${.TARGET:M*macro*:S/$(.TARGET)/-Pmm/} 34 35.ifdef AICASM_DEBUG 36CFLAGS+= -DDEBUG -g 37YFLAGS+= -t -v 38LFLAGS+= -d 39.endif 40 41BINDIR=/usr/bin 42 43build-tools: ${PROG} 44 45.include <bsd.prog.mk> 46CFLAGS+= -Wno-missing-prototypes 47