]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - sys/dev/aic7xxx/aicasm/Makefile
MFV r354582: file 5.37.
[FreeBSD/FreeBSD.git] / sys / dev / aic7xxx / aicasm / Makefile
1 #
2 # $Id: //depot/aic7xxx/freebsd/dev/aic7xxx/aicasm/Makefile#2 $
3 #
4 # $FreeBSD$
5
6 PROG=   aicasm
7
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
11
12 GENHDRS=        aicasm_gram.h aicasm_macro_gram.h
13
14 SRCS=   ${GENHDRS} ${CSRCS} ${YSRCS} ${LSRCS}
15 CLEANFILES+= ${GENHDRS} ${YSRCS:R:C/(.*)/\1.output/g}
16 LIBADD= l
17 WARNS?= 0
18
19 # Correct path for kernel builds
20 # Don't rely on the kernel's .depend file
21 .ifdef MAKESRCPATH
22 .PATH: ${MAKESRCPATH}
23 DEPENDFILE=     .depend_aicasm
24 .endif
25
26 CFLAGS+= -I${.CURDIR}
27 .ifdef MAKESRCPATH
28 CFLAGS+= -I${MAKESRCPATH}
29 .endif
30 MAN=
31 YFLAGS= -b ${.TARGET:R} ${.TARGET:M*macro*:S/$(.TARGET)/-p mm/} -d
32 LFLAGS+= ${.TARGET:M*macro*:S/$(.TARGET)/-Pmm/}
33
34 .ifdef AICASM_DEBUG
35 CFLAGS+= -DDEBUG -g
36 YFLAGS+= -t -v
37 LFLAGS+= -d
38 .endif
39
40 BINDIR=/usr/bin
41
42 build-tools: ${PROG}
43
44 .include <bsd.prog.mk>
45 CFLAGS+= -Wno-missing-prototypes