1# $NetBSD: Makefile,v 1.2 2011/04/15 19:41:11 elric Exp $ 2 3NOMAN= # defined 4 5.include <bsd.own.mk> 6.include <${.CURDIR}/../../../Makefile.inc> 7 8.PATH: ${HEIMDIST}/lib/sl ${HEIMDIST}/lib/roken ${HEIMDIST}/lib/vers 9 10PROG=slc 11 12SRCS+= slc-gram.y slc-lex.l getarg.c rand.c get_window_size.c \ 13 strupr.c print_version.c 14 15YHEADER= # defined 16 17HOST_CPPFLAGS+= -I. \ 18 -I${HEIMBASE}/include \ 19 -I${HEIMBASE}/include/krb5 \ 20 -I${HEIMDIST}/lib/sl \ 21 -I${HEIMDIST}/lib/roken \ 22 -I${HEIMDIST}/lib/vers \ 23 -DHAVE_CONFIG_H 24 25DPSRCS= print_version.h 26 27make-print-version.lo: ${HEIMBASE}/include/version.h 28 29make-print-version: make-print-version.lo 30 ${HOST_CC} ${HOST_LDFLAGS} -o ${.TARGET} ${.ALLSRC} 31 32print_version.h: make-print-version 33 ./make-print-version print_version.h 34 35.NOPATH: print_version.h make-print-version 36 37beforedepend: 38 [ -h krb5 ] || ln -sf . krb5 39 ln -sf ${HEIMBASE}/include/roken.h 40 ln -sf ${HEIMBASE}/dist/lib/roken/roken-common.h 41 ln -sf ${HEIMBASE}/dist/lib/roken/getarg.h 42 43CLEANFILES+= krb5 roken.h roken-common.h getarg.h \ 44 print_version.h make-print-version \ 45 make-print-version.lo 46 47# HOSTPROG will be set already if this is a src/tools build. 48.ifndef HOSTPROG 49HOSTPROG= ${PROG} 50.include <bsd.hostprog.mk> 51.endif 52