1# $NetBSD: Makefile,v 1.4 2015/06/26 02:43:26 matt Exp $ 2 3NOMAN= 1 4 5.include <bsd.own.mk> 6 7.PATH: ${X11SRCDIR.X11}/src/util 8 9PROG?= makekeys 10SRCS= makekeys.c 11.if !make(obj) && !exists(${DESTDIR}${X11INCDIR}/X.h) 12CLEANFILES+= X11 13CPPFLAGS+= -I. 14XPINCS= X.h Xarch.h Xos.h Xosdefs.h keysymdef.h 15X11INCS= Xlib.h Xresource.h 16CLEANFILES+= ${XPINCS} ${X11INCS} Xfuncproto.h 17.if !make(clean) && !make(cleandir) 18.BEGIN: 19 @rm -f ${.OBJDIR}/X11 && ln -s . X11 20.for i in ${XPINCS} 21 @rm -f $i && ln -s ${X11SRCDIR.xproto}/$i . 22.endfor 23.for i in ${X11INCS} 24 @rm -f $i && ln -s ${X11SRCDIR.X11}/include/X11/$i . 25.endfor 26.endif 27 28Xfuncproto.h: ${X11SRCDIR.xproto}/Xfuncproto.h.in 29 ${TOOL_SED} -e 's/#undef NARROWPROTO/#define NARROWPROTO/' \ 30 -e 's/#undef FUNCPROTO/#define FUNCPROTO 15/' \ 31 < ${.ALLSRC} > ${.TARGET} 32 33makekeys.lo makekeys.o makekeys.d: Xfuncproto.h 34 35.else 36CPPFLAGS+= -I${DESTDIR}${X11INCDIR} 37.endif 38 39.include <bsd.x11.mk> 40.include <bsd.prog.mk> 41