Deleted Added
sdiff udiff text old ( 126890 ) new ( 136910 )
full compact
1#
2# $Id: //depot/aic7xxx/freebsd/dev/aic7xxx/aicasm/Makefile#2 $
3#
4# $FreeBSD: head/sys/dev/aic7xxx/aicasm/Makefile 126890 2004-03-12 21:36:12Z trhodes $
5
6PROG= aicasm
7
8CSRCS= aicasm.c aicasm_symbol.c
9YSRCS= aicasm_gram.y aicasm_macro_gram.y
10LSRCS= aicasm_scan.l aicasm_macro_scan.l
11
12GENHDRS= aicasm_gram.h aicasm_macro_gram.h
13
14SRCS= ${GENHDRS} ${CSRCS} ${YSRCS} ${LSRCS}
15CLEANFILES+= ${GENHDRS} ${YSRCS:R:C/(.*)/\1.output/g}
16DPADD= ${LIBL}
17LDADD= -ll
18
19# Correct path for kernel builds
20# Don't rely on the kernel's .depend file
21.ifdef MAKESRCPATH
22.PATH: ${MAKESRCPATH}
23DEPENDFILE=
24.endif
25
26.if ${CC} == "icc"
27CFLAGS+= -restrict
28NOSTDINC= -X
29.else
30NOSTDINC= -nostdinc
31.endif
32CFLAGS+= ${NOSTDINC} -I/usr/include -I.
33.ifdef MAKESRCPATH
34CFLAGS+= -I${MAKESRCPATH}
35.endif
36NOMAN= noman
37YFLAGS= -b ${.TARGET:R} ${.TARGET:M*macro*:S/$(.TARGET)/-p mm/} -d
38LFLAGS+= ${.TARGET:M*macro*:S/$(.TARGET)/-Pmm/}
39
40.ifdef AICASM_DEBUG
41CFLAGS+= -DDEBUG -g
42YFLAGS+= -t -v
43LFLAGS+= -d
44.endif
45
46.include <bsd.prog.mk>