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