Home | History | Annotate | Line # | Download | only in compile_et
      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 
     10 PROG= compile_et
     11 
     12 SRCS+=	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 
     16 YHEADER=	# defined
     17 
     18 BINDIR=		/usr/bin
     19 
     20 LIBROKEN!=	cd ${HEIMBASE}/lib/libroken && ${PRINTOBJDIR}
     21 
     22 CPPFLAGS+=				\
     23 	 -I${HEIMDIST}/lib/roken
     24 
     25 #	-I${DESTDIR}/usr/include	\
     26 
     27 HOST_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 
     36 DPSRCS=		print_version.h
     37 
     38 make-print-version.lo: ${HEIMBASE}/include/version.h
     39 
     40 make-print-version: make-print-version.lo
     41 	${HOST_CC} ${HOST_LDFLAGS} -o ${.TARGET} ${.ALLSRC}
     42 
     43 print_version.h: make-print-version
     44 	./make-print-version print_version.h
     45 
     46 CLEANFILES+=	print_version.h make-print-version make-print-version.lo
     47 
     48 beforedepend:
     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 
     55 CLEANFILES+=	krb5 roken.h krb5-types.h roken-common.h getarg.h
     56 
     57 .ifndef HOSTPROG
     58 HOSTPROG=	${PROG}
     59 .include <bsd.hostprog.mk>
     60 .endif
     61