]> CyberLeo.Net >> Repos - FreeBSD/releng/10.0.git/blob - sys/dev/aic7xxx/aicasm/Makefile
- Copy stable/10 (r259064) to releng/10.0 as part of the
[FreeBSD/releng/10.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 CFLAGS+= -I.
28 .ifdef MAKESRCPATH
29 CFLAGS+= -I${MAKESRCPATH}
30 .endif
31 NO_MAN=
32 YFLAGS= -b ${.TARGET:R} ${.TARGET:M*macro*:S/$(.TARGET)/-p mm/} -d
33 LFLAGS+= ${.TARGET:M*macro*:S/$(.TARGET)/-Pmm/}
34
35 .ifdef AICASM_DEBUG
36 CFLAGS+= -DDEBUG -g
37 YFLAGS+= -t -v
38 LFLAGS+= -d
39 .endif
40
41 .include <bsd.prog.mk>