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