1 1.19 thorpej # $NetBSD: Makefile,v 1.19 2001/10/24 02:31:09 thorpej Exp $ 2 1.17 thorpej 3 1.17 thorpej .include <bsd.own.mk> 4 1.1 cgd 5 1.19 thorpej .if !defined(XLINT_TARGET_PREFIX) 6 1.19 thorpej XLINT_TARGET_PREFIX= 7 1.19 thorpej .endif 8 1.19 thorpej 9 1.1 cgd PROG= lint1 10 1.19 thorpej PROGNAME=${XLINT_TARGET_PREFIX}${PROG} 11 1.6 tv SRCS= cgram.y scan.l mem1.c mem.c err.c main1.c decl.c tree.c func.c \ 12 1.1 cgd init.c emit.c emit1.c 13 1.19 thorpej MAN= ${XLINT_TARGET_PREFIX}lint.7 14 1.1 cgd LDADD+= -ll 15 1.1 cgd DPADD+= ${LIBL} 16 1.6 tv YHEADER=1 17 1.17 thorpej 18 1.18 tv CPPFLAGS+=-I${.CURDIR} -I. 19 1.17 thorpej .if ${OBJECT_FMT} == "a.out" 20 1.17 thorpej CPPFLAGS+=-DTARGET_OBJFMT_AOUT 21 1.17 thorpej .elif ${OBJECT_FMT} == "COFF" 22 1.17 thorpej CPPFLAGS+=-DTARGET_OBJFMT_COFF 23 1.17 thorpej .elif ${OBJECT_FMT} == "ELF" 24 1.17 thorpej CPPFLAGS+=-DTARGET_OBJFMT_ELF 25 1.17 thorpej .else 26 1.17 thorpej .BEGIN: 27 1.17 thorpej @echo "Unrecognized OBJECT_FMT ${OBJECT_FMT}" 28 1.17 thorpej @false 29 1.17 thorpej .endif 30 1.17 thorpej 31 1.1 cgd LINTFLAGS=-aehpz 32 1.12 is WFORMAT=1 #hopeless 33 1.1 cgd BINDIR= /usr/libexec 34 1.6 tv 35 1.6 tv scan.c: cgram.h 36 1.9 christos 37 1.19 thorpej ${XLINT_TARGET_PREFIX}lint.7: ${PROG} 38 1.9 christos sh ${.CURDIR}/makeman ${.OBJDIR}/${PROG} -m > ${.TARGET} 39 1.10 christos 40 1.10 christos CLEANFILES+=${MAN} 41 1.1 cgd 42 1.13 tv .ifndef HOSTPROG 43 1.1 cgd .include <bsd.prog.mk> 44 1.13 tv .endif 45