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