1# 2# $Id: //depot/aic7xxx/freebsd/dev/aic7xxx/aicasm/Makefile#2 $ 3# 4# $FreeBSD: releng/11.0/sys/dev/aic7xxx/aicasm/Makefile 291738 2015-12-04 03:17:47Z bdrewery $ 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} 16LIBADD= l 17WARNS?= 0 18 19# Correct path for kernel builds 20# Don't rely on the kernel's .depend file 21.ifdef MAKESRCPATH 22.PATH: ${MAKESRCPATH} 23DEPENDFILE= .depend_aicasm 24.endif 25 26CFLAGS+= -I${.CURDIR} 27.ifdef MAKESRCPATH 28CFLAGS+= -I${MAKESRCPATH} 29.endif 30MAN= 31YFLAGS= -b ${.TARGET:R} ${.TARGET:M*macro*:S/$(.TARGET)/-p mm/} -d 32LFLAGS+= ${.TARGET:M*macro*:S/$(.TARGET)/-Pmm/} 33 34.ifdef AICASM_DEBUG 35CFLAGS+= -DDEBUG -g 36YFLAGS+= -t -v 37LFLAGS+= -d 38.endif 39 40BINDIR=/usr/bin 41 42build-tools: ${PROG} 43 44.include <bsd.prog.mk> 45CFLAGS+= -Wno-missing-prototypes 46