1# $Id$ 2#
| 1# $Id$ 2#
|
3# $FreeBSD: head/sys/dev/aic7xxx/aicasm/Makefile 92065 2002-03-11 06:45:31Z obrien $
| 3# $FreeBSD: head/sys/dev/aic7xxx/aicasm/Makefile 95376 2002-04-24 16:24:43Z gibbs $
|
4 5PROG= aicasm 6 7CSRCS= aicasm.c aicasm_symbol.c
| 4 5PROG= aicasm 6 7CSRCS= aicasm.c aicasm_symbol.c
|
8GENSRCS= aicasm_gram.c aicasm_scan.c
| 8YSRCS= aicasm_gram.y aicasm_macro_gram.y 9LSRCS= aicasm_scan.l aicasm_macro_scan.l
|
9
| 10
|
10GENHDRS= y.tab.h
| 11GENHDRS= aicasm_gram.h aicasm_macro_gram.h
|
11
| 12
|
12SRCS= ${GENSRCS} ${CSRCS} 13CLEANFILES+= ${GENSRCS} ${GENHDRS} y.output
| 13SRCS= ${GENHDRS} ${CSRCS} ${YSRCS} ${LSRCS} 14CLEANFILES+= ${GENHDRS} ${YSRCS:R:C/(.*)/\1.output/g}
|
14DPADD+= ${LIBL} 15LDADD+= -ll 16 17# Correct path for kernel builds 18# Don't rely on the kernel's .depend file 19.ifdef MAKESRCPATH 20.PATH: ${MAKESRCPATH} 21DEPENDFILE= 22.endif 23
| 15DPADD+= ${LIBL} 16LDADD+= -ll 17 18# Correct path for kernel builds 19# Don't rely on the kernel's .depend file 20.ifdef MAKESRCPATH 21.PATH: ${MAKESRCPATH} 22DEPENDFILE= 23.endif 24
|
24CFLAGS+= -I/usr/include -I. -I../../../dev/aic7xxx/aicasm
| 25CFLAGS+= -I/usr/include -I.
|
25NOMAN= noman
| 26NOMAN= noman
|
| 27YFLAGS= -b ${.TARGET:R} ${.TARGET:M*macro*:S/$(.TARGET)/-p mm/} -d 28LFLAGS+= ${.TARGET:M*macro*:S/$(.TARGET)/-Pmm/}
|
26
| 29
|
27.ifdef DEBUG
| 30.ifdef AICASM_DEBUG
|
28CFLAGS+= -DDEBUG -g 29YFLAGS+= -t -v 30LFLAGS+= -d 31.endif 32 33.include <bsd.prog.mk>
| 31CFLAGS+= -DDEBUG -g 32YFLAGS+= -t -v 33LFLAGS+= -d 34.endif 35 36.include <bsd.prog.mk>
|