]> CyberLeo.Net >> Repos - FreeBSD/releng/8.1.git/blob - sys/dev/aic7xxx/aicasm/Makefile
Copy stable/8 to releng/8.1 in preparation for 8.1-RC1.
[FreeBSD/releng/8.1.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?= 6
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 .if ${CC} == "icc"
28 CFLAGS+=        -restrict
29 NOSTDINC=       -X
30 .else
31 NOSTDINC=       -nostdinc
32 .endif
33 CFLAGS+= ${NOSTDINC} -I/usr/include -I.
34 .ifdef MAKESRCPATH
35 CFLAGS+= -I${MAKESRCPATH}
36 .endif
37 NO_MAN=
38 YFLAGS= -b ${.TARGET:R} ${.TARGET:M*macro*:S/$(.TARGET)/-p mm/} -d
39 LFLAGS+= ${.TARGET:M*macro*:S/$(.TARGET)/-Pmm/}
40
41 .ifdef AICASM_DEBUG
42 CFLAGS+= -DDEBUG -g
43 YFLAGS+= -t -v
44 LFLAGS+= -d
45 .endif
46
47 .include <bsd.prog.mk>