diff options
author | ru <ru@FreeBSD.org> | 2002-03-20 18:25:50 +0000 |
---|---|---|
committer | ru <ru@FreeBSD.org> | 2002-03-20 18:25:50 +0000 |
commit | 333c1d4d25cf8c0498e4324502d4ed90dcffd2e3 (patch) | |
tree | 203191190a1d45e1fe5ab202024032a4bae4048d /usr.bin/xlint/lint1 | |
parent | f239d72864df9d8c684c4985d0266ae8e4e0c0b1 (diff) | |
download | FreeBSD-src-333c1d4d25cf8c0498e4324502d4ed90dcffd2e3.zip FreeBSD-src-333c1d4d25cf8c0498e4324502d4ed90dcffd2e3.tar.gz |
Make lint(1) a cross-tool.
(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).
Diffstat (limited to 'usr.bin/xlint/lint1')
-rw-r--r-- | usr.bin/xlint/lint1/Makefile | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/usr.bin/xlint/lint1/Makefile b/usr.bin/xlint/lint1/Makefile index c6d39b9..6371c94 100644 --- a/usr.bin/xlint/lint1/Makefile +++ b/usr.bin/xlint/lint1/Makefile @@ -5,6 +5,7 @@ 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} @@ -12,10 +13,11 @@ CFLAGS+= -I. -I${.CURDIR} LINTFLAGS=-aehpz BINDIR= /usr/libexec +OBJFORMAT_PATH?= ${BINDIR} # src/Makefile.inc1 sets this -.include <bsd.prog.mk> +.PATH: ${.CURDIR}/../common -.PATH: ../common +lint.7: makeman + sh ${.CURDIR}/makeman ${OBJFORMAT_PATH}/${PROG} -m >${.TARGET} -lint.7: makeman - sh ${.CURDIR}/makeman ${.OBJDIR}/${PROG} -m >${.TARGET} +.include <bsd.prog.mk> |