1# $NetBSD: Makefile,v 1.5 2018/05/01 19:59:42 christos Exp $ 2 3.include <bsd.hostinit.mk> 4.include <${.CURDIR}/../../../Makefile.inc> 5 6.PATH: ${HEIMDIST}/lib/com_err \ 7 ${HEIMDIST}/lib/roken \ 8 ${HEIMDIST}/lib/vers 9 10PROG= compile_et 11 12SRCS+= compile_et.c parse.y lex.l \ 13 getarg.c print_version.c warnerr.c strupr.c get_window_size.c \ 14 rand.c 15 16YHEADER= # defined 17 18BINDIR= /usr/bin 19 20LIBROKEN!= cd ${HEIMBASE}/lib/libroken && ${PRINTOBJDIR} 21 22CPPFLAGS+= \ 23 -I${HEIMDIST}/lib/roken 24 25# -I${DESTDIR}/usr/include \ 26 27HOST_CPPFLAGS+= -I. \ 28 -I${HEIMBASE}/include \ 29 -I${HEIMBASE}/include/krb5 \ 30 -I${LIBROKEN} \ 31 -I${HEIMDIST}/lib/com_err \ 32 -I${HEIMDIST}/lib/roken \ 33 -DKRB5=1 \ 34 -DHAVE_CONFIG_H 35 36DPSRCS= print_version.h 37 38make-print-version.lo: ${HEIMBASE}/include/version.h 39 40make-print-version: make-print-version.lo 41 ${HOST_CC} ${HOST_LDFLAGS} -o ${.TARGET} ${.ALLSRC} 42 43print_version.h: make-print-version 44 ./make-print-version print_version.h 45 46CLEANFILES+= print_version.h make-print-version make-print-version.lo 47 48beforedepend: 49 [ -h krb5 ] || ln -sf . krb5 50 ln -sf ${HEIMBASE}/include/roken.h 51 ln -sf ${HEIMBASE}/include/krb5-types.h 52 ln -sf ${HEIMBASE}/dist/lib/roken/roken-common.h 53 ln -sf ${HEIMBASE}/dist/lib/roken/getarg.h 54 55CLEANFILES+= krb5 roken.h krb5-types.h roken-common.h getarg.h 56 57.ifndef HOSTPROG 58HOSTPROG= ${PROG} 59.include <bsd.hostprog.mk> 60.endif 61