Prep for GCC 3.x kernel compiles, stage 2/2: Remove bad __asm embedded-newline
[dragonfly.git] / sys / dev / disk / aic7xxx / aicasm / Makefile
1 # $Id: //depot/aic7xxx/freebsd/dev/aic7xxx/aicasm/Makefile#2 $
2 #
3 # $FreeBSD: src/sys/dev/aic7xxx/aicasm/Makefile,v 1.8.2.5 2002/09/27 15:46:28 gibbs Exp $
4 # $DragonFly: src/sys/dev/disk/aic7xxx/aicasm/Makefile,v 1.4 2003/11/14 22:58:31 dillon Exp $
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=
24 .endif
25
26 CFLAGS+= -nostdinc -I/usr/include -I. -I${.CURDIR}
27 .ifdef MAKESRCPATH
28 CFLAGS+= -I${MAKESRCPATH}
29 .endif
30 NOMAN=  noman
31 YFLAGS= -b ${.TARGET:R} ${.TARGET:M*macro*:S/$(.TARGET)/-p mm/} -d
32 LFLAGS+= ${.TARGET:M*macro*:S/$(.TARGET)/-Pmm/}
33
34 .ifdef AICASM_DEBUG
35 CFLAGS+= -DDEBUG -g
36 YFLAGS+= -t -v
37 LFLAGS+= -d
38 .endif
39
40 # aicasm is used in place, it is not installed anywhere
41 #
42 install:
43
44 .include <bsd.prog.mk>