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