]> CyberLeo.Net >> Repos - FreeBSD/releng/9.0.git/blob - sys/dev/aic7xxx/aicasm/Makefile
Copy stable/9 to releng/9.0 as part of the FreeBSD 9.0-RELEASE release
[FreeBSD/releng/9.0.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 DPADD=  ${LIBL}
17 LDADD=  -ll
18 WARNS?= 5
19
20 # Correct path for kernel builds
21 # Don't rely on the kernel's .depend file
22 .ifdef MAKESRCPATH
23 .PATH: ${MAKESRCPATH}
24 DEPENDFILE=     .depend_aicasm
25 .endif
26
27 NOSTDINC=       -nostdinc
28 CFLAGS+= ${NOSTDINC} -I/usr/include -I.
29 .ifdef MAKESRCPATH
30 CFLAGS+= -I${MAKESRCPATH}
31 .endif
32 NO_MAN=
33 YFLAGS= -b ${.TARGET:R} ${.TARGET:M*macro*:S/$(.TARGET)/-p mm/} -d
34 LFLAGS+= ${.TARGET:M*macro*:S/$(.TARGET)/-Pmm/}
35
36 .ifdef AICASM_DEBUG
37 CFLAGS+= -DDEBUG -g
38 YFLAGS+= -t -v
39 LFLAGS+= -d
40 .endif
41
42 .include <bsd.prog.mk>