Expand PMF_FN_* macros.
[netbsd-mini2440.git] / usr.bin / xlint / lint1 / Makefile
blob8a97edec990fe3852752d9273942a1dcf07fe282
1 # $NetBSD: Makefile,v 1.42 2009/04/14 09:10:00 lukem Exp $
3 .include <bsd.own.mk>
5 PROG= lint1
6 SRCS= cgram.y scan.l mem1.c mem.c err.c main1.c decl.c tree.c func.c \
7 init.c emit.c emit1.c inittyp.c tyname.c print.c
8 MAN= lint.7
9 YHEADER=
10 #CFLAGS+=-g
11 #CPPFLAGS+=-DYYDEBUG=1
13 CPPFLAGS+= -I${.CURDIR} -I. -DPASS=\"${PROG}.h\"
15 .if ${OBJECT_FMT} == "a.out"
16 CPPFLAGS+= -DTARGET_OBJFMT_AOUT
17 .elif ${OBJECT_FMT} == "COFF"
18 CPPFLAGS+= -DTARGET_OBJFMT_COFF
19 .elif ${OBJECT_FMT} == "ELF"
20 CPPFLAGS+= -DTARGET_OBJFMT_ELF
21 .else
22 .BEGIN:
23 @echo "Unrecognized OBJECT_FMT ${OBJECT_FMT}"
24 @false
25 .endif
27 LINTFLAGS= -aehpz
28 BINDIR= /usr/libexec
30 CLEANFILES+= ${MAN}
32 .if ${USETOOLS} == "yes"
33 LINT1= ${TOOLDIR}/libexec/${MACHINE_GNU_PLATFORM}-lint1
34 .endif
35 LINT1?= ./${PROG}
37 ${MAN}: makeman ${LINT1:C/^\.\///} Makefile
38 ${_MKTARGET_CREATE}
39 ${HOST_SH} ${.ALLSRC:M*makeman} ${LINT1} -m >${.TARGET}
41 LDADD+= -lm
42 .ifndef HOSTPROG
43 DPADD+= ${LIBM}
45 LDADD+= -ll
46 DPADD+= ${LIBL}
47 .endif
49 .include <bsd.prog.mk>