1# $NetBSD: Makefile,v 1.53 2019/11/11 22:45:32 joerg Exp $ 2 3.include <bsd.own.mk> 4 5PROG= lint1 6SRCS= cgram.y decl.c emit.c emit1.c err.c func.c init.c inittyp.c \ 7 main1.c mem.c mem1.c print.c scan.l tree.c tyname.c 8 9MAN= lint.7 10YHEADER= 11#DBG=-g 12#CPPFLAGS+=-DYYDEBUG=1 13#YFLAGS+=-v 14#LFLAGS+=-d 15 16CWARNFLAGS.clang+= -Wno-error=implicit-int-float-conversion 17 18CPPFLAGS+= -I${.CURDIR} -I. -DPASS=\"${PROG}.h\" 19 20LINTFLAGS= -aehpz 21BINDIR= /usr/libexec 22 23CLEANFILES+= ${MAN} 24 25.if ${USETOOLS} == "yes" 26LINT1= ${TOOLDIR}/libexec/${MACHINE_GNU_PLATFORM}-lint1 27.endif 28LINT1?= ./${PROG} 29 30${MAN}: makeman ${LINT1:C/^\.\///} Makefile 31 ${_MKTARGET_CREATE} 32 ${HOST_SH} ${.ALLSRC:M*makeman} ${LINT1} -m >${.TARGET} 33 34LDADD+= -lm 35.ifndef HOSTPROG 36DPADD+= ${LIBM} 37 38LDADD+= -ll 39DPADD+= ${LIBL} 40.endif 41 42.include "Makefile.ops-h" 43.include "Makefile.ops-c" 44 45.include <bsd.prog.mk> 46 47${SRCS}: ops.h 48