Home | History | Annotate | Line # | Download | only in lint1
Makefile revision 1.48
      1 #	$NetBSD: Makefile,v 1.48 2013/05/10 15:31:22 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 
     15 CPPFLAGS+=	-I${.CURDIR} -I. -DPASS=\"${PROG}.h\"
     16 
     17 LINTFLAGS=	-aehpz
     18 BINDIR=		/usr/libexec
     19 
     20 CLEANFILES+=	${MAN}
     21 
     22 .if ${USETOOLS} == "yes"
     23 LINT1=		${TOOLDIR}/libexec/${MACHINE_GNU_PLATFORM}-lint1
     24 .endif
     25 LINT1?=		./${PROG}
     26 
     27 ${MAN}:		makeman ${LINT1:C/^\.\///} Makefile
     28 	${_MKTARGET_CREATE}
     29 	${HOST_SH} ${.ALLSRC:M*makeman} ${LINT1} -m >${.TARGET}
     30 
     31 LDADD+=		-lm
     32 .ifndef HOSTPROG
     33 DPADD+=		${LIBM}
     34 
     35 LDADD+=		-ll
     36 DPADD+=		${LIBL}
     37 .endif
     38 
     39 .include "Makefile.ops-h"
     40 .include "Makefile.ops-c"
     41 
     42 .include <bsd.prog.mk>
     43