Home | History | Annotate | Line # | Download | only in lint1
Makefile revision 1.52
      1 #	$NetBSD: Makefile,v 1.52 2015/04/04 19:32:06 christos Exp $
      2 
      3 .include <bsd.own.mk>
      4 
      5 PROG=		lint1
      6 SRCS=		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 
      9 MAN=		lint.7
     10 YHEADER=
     11 #DBG=-g
     12 #CPPFLAGS+=-DYYDEBUG=1
     13 #YFLAGS+=-v
     14 #LFLAGS+=-d
     15 
     16 CPPFLAGS+=	-I${.CURDIR} -I. -DPASS=\"${PROG}.h\"
     17 
     18 LINTFLAGS=	-aehpz
     19 BINDIR=		/usr/libexec
     20 
     21 CLEANFILES+=	${MAN}
     22 
     23 .if ${USETOOLS} == "yes"
     24 LINT1=		${TOOLDIR}/libexec/${MACHINE_GNU_PLATFORM}-lint1
     25 .endif
     26 LINT1?=		./${PROG}
     27 
     28 ${MAN}:		makeman ${LINT1:C/^\.\///} Makefile
     29 	${_MKTARGET_CREATE}
     30 	${HOST_SH} ${.ALLSRC:M*makeman} ${LINT1} -m >${.TARGET}
     31 
     32 LDADD+=		-lm
     33 .ifndef HOSTPROG
     34 DPADD+=		${LIBM}
     35 
     36 LDADD+=		-ll
     37 DPADD+=		${LIBL}
     38 .endif
     39 
     40 .include "Makefile.ops-h"
     41 .include "Makefile.ops-c"
     42 
     43 .include <bsd.prog.mk>
     44 
     45 ${SRCS}: ops.h
     46