2 # $Id: //depot/aic7xxx/freebsd/dev/aic7xxx/aicasm/Makefile#2 $
8 CSRCS= aicasm.c aicasm_symbol.c
9 YSRCS= aicasm_gram.y aicasm_macro_gram.y
10 LSRCS= aicasm_scan.l aicasm_macro_scan.l
12 GENHDRS= aicasm_gram.h aicasm_macro_gram.h
14 SRCS= ${GENHDRS} ${CSRCS} ${YSRCS} ${LSRCS}
15 CLEANFILES+= ${GENHDRS} ${YSRCS:R:C/(.*)/\1.output/g}
19 # Correct path for kernel builds
20 # Don't rely on the kernel's .depend file
23 DEPENDFILE= .depend_aicasm
28 CFLAGS+= -I${MAKESRCPATH}
31 YFLAGS= -b ${.TARGET:R} ${.TARGET:M*macro*:S/$(.TARGET)/-p mm/} -d
32 LFLAGS+= ${.TARGET:M*macro*:S/$(.TARGET)/-Pmm/}
44 .include <bsd.prog.mk>
45 CFLAGS+= -Wno-missing-prototypes