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