2002-02-01 08:44:40 +03:00
|
|
|
# $NetBSD: Makefile,v 1.26 2002/02/01 05:44:40 lukem Exp $
|
2001-10-24 04:42:35 +04:00
|
|
|
|
|
|
|
.include <bsd.own.mk>
|
1995-07-04 00:56:35 +04:00
|
|
|
|
2001-11-13 02:16:17 +03:00
|
|
|
PROG= lint1
|
|
|
|
SRCS= cgram.y scan.l mem1.c mem.c err.c main1.c decl.c tree.c func.c \
|
2002-01-19 00:01:38 +03:00
|
|
|
init.c emit.c emit1.c inittyp.c
|
2001-11-13 02:16:17 +03:00
|
|
|
MAN= lint.7
|
|
|
|
YHEADER=
|
|
|
|
|
|
|
|
CPPFLAGS+= -I${.CURDIR} -I.
|
2001-10-24 06:31:09 +04:00
|
|
|
|
2001-10-24 04:42:35 +04:00
|
|
|
.if ${OBJECT_FMT} == "a.out"
|
2001-11-13 02:16:17 +03:00
|
|
|
CPPFLAGS+= -DTARGET_OBJFMT_AOUT
|
2001-10-24 04:42:35 +04:00
|
|
|
.elif ${OBJECT_FMT} == "COFF"
|
2001-11-13 02:16:17 +03:00
|
|
|
CPPFLAGS+= -DTARGET_OBJFMT_COFF
|
2001-10-24 04:42:35 +04:00
|
|
|
.elif ${OBJECT_FMT} == "ELF"
|
2001-11-13 02:16:17 +03:00
|
|
|
CPPFLAGS+= -DTARGET_OBJFMT_ELF
|
2001-10-24 04:42:35 +04:00
|
|
|
.else
|
|
|
|
.BEGIN:
|
|
|
|
@echo "Unrecognized OBJECT_FMT ${OBJECT_FMT}"
|
|
|
|
@false
|
|
|
|
.endif
|
|
|
|
|
2001-11-13 02:16:17 +03:00
|
|
|
LINTFLAGS= -aehpz
|
2000-10-11 18:46:00 +04:00
|
|
|
WFORMAT=1 #hopeless
|
2001-11-13 02:16:17 +03:00
|
|
|
BINDIR= /usr/libexec
|
1995-07-04 00:56:35 +04:00
|
|
|
|
1998-04-09 04:32:31 +04:00
|
|
|
scan.c: cgram.h
|
|
|
|
|
2001-11-13 02:16:17 +03:00
|
|
|
CLEANFILES+= ${MAN}
|
2001-12-19 21:10:40 +03:00
|
|
|
|
|
|
|
.if ${USETOOLS} == "yes"
|
|
|
|
LINT1= ${TOOLDIR}/libexec/${MACHINE_GNU_PLATFORM}-lint1
|
|
|
|
.endif
|
|
|
|
LINT1?= ./${PROG}
|
|
|
|
|
|
|
|
${MAN}: makeman ${LINT1:C/^\.\///} Makefile
|
|
|
|
sh ${.ALLSRC:M*makeman} ${LINT1} -m >${.TARGET}
|
2000-07-06 05:21:46 +04:00
|
|
|
|
2002-02-01 08:44:40 +03:00
|
|
|
LDADD+= -lm
|
|
|
|
DPADD+= ${LIBM}
|
|
|
|
|
2001-08-14 14:18:26 +04:00
|
|
|
.ifndef HOSTPROG
|
2002-02-01 08:44:40 +03:00
|
|
|
LDADD+= -ll
|
|
|
|
DPADD+= ${LIBL}
|
2002-02-01 01:43:33 +03:00
|
|
|
|
1995-07-04 00:56:35 +04:00
|
|
|
.include <bsd.prog.mk>
|
2001-08-14 14:18:26 +04:00
|
|
|
.endif
|