bd42830f0f
(See commit log for usr.bin/xlint/Makefile,v 1.11 for what was wrong with enabling build of lint libraries in rev. 1.12.) This fixes cross-arch compiles (running binaries for a different arch when generating lint.7 and lint libraries) and cross-branch compiles (4.x -> 5.0 buildworld should be working again).
24 lines
513 B
Makefile
24 lines
513 B
Makefile
# $NetBSD: Makefile,v 1.3 1995/07/04 01:53:05 cgd Exp $
|
|
# $FreeBSD$
|
|
|
|
PROG= lint1
|
|
SRCS= cgram.y scan.l mem1.c mem.c err.c main1.c decl.c tree.c func.c \
|
|
init.c emit.c emit1.c inittyp.c
|
|
MAN= lint.7
|
|
CLEANFILES= lint.7
|
|
|
|
LDADD+= -ll -lm
|
|
DPADD+= ${LIBL} ${LIBM}
|
|
CFLAGS+= -I. -I${.CURDIR}
|
|
LINTFLAGS=-aehpz
|
|
|
|
BINDIR= /usr/libexec
|
|
OBJFORMAT_PATH?= ${BINDIR} # src/Makefile.inc1 sets this
|
|
|
|
.PATH: ${.CURDIR}/../common
|
|
|
|
lint.7: makeman
|
|
sh ${.CURDIR}/makeman ${OBJFORMAT_PATH}/${PROG} -m >${.TARGET}
|
|
|
|
.include <bsd.prog.mk>
|