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