Home | History | Annotate | Line # | Download | only in slc
Makefile revision 1.1
      1 # $NetBSD: Makefile,v 1.1 2011/04/13 19:16:55 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 LDADD=-lfl -ly
     18 
     19 HOST_CPPFLAGS+= -I.			\
     20 	-I${HEIMBASE}/include		\
     21 	-I${HEIMBASE}/include/krb5	\
     22 	-I${HEIMDIST}/lib/sl		\
     23 	-I${HEIMDIST}/lib/roken		\
     24 	-I${HEIMDIST}/lib/vers		\
     25 	-DHAVE_CONFIG_H
     26 
     27 DPSRCS=		print_version.h
     28 
     29 make-print-version.lo: ${HEIMBASE}/include/version.h
     30 
     31 make-print-version: make-print-version.lo
     32 	${HOST_CC} ${HOST_LDFLAGS} -o ${.TARGET} ${.ALLSRC}
     33 
     34 print_version.h: make-print-version
     35 	./make-print-version print_version.h
     36 
     37 .NOPATH: print_version.h make-print-version
     38 
     39 .BEGIN:
     40 	[ -h krb5 ] || ln -sf . krb5
     41 	ln -sf ${HEIMBASE}/include/roken.h
     42 	ln -sf ${HEIMBASE}/dist/lib/roken/roken-common.h
     43 	ln -sf ${HEIMBASE}/dist/lib/roken/getarg.h
     44 
     45 CLEANFILES+=	krb5 roken.h roken-common.h getarg.h	\
     46 		print_version.h make-print-version	\
     47 		make-print-version.lo
     48 
     49 # HOSTPROG will be set already if this is a src/tools build.
     50 .ifndef HOSTPROG
     51 HOSTPROG=	${PROG}
     52 .include <bsd.hostprog.mk>
     53 .endif
     54