1 # $NetBSD: Makefile,v 1.4 2015/06/26 02:43:26 matt Exp $
7 .PATH
: ${X11SRCDIR.X11
}/src
/util
11 .if
!make
(obj
) && !exists
(${DESTDIR}${X11INCDIR}/X.h
)
14 XPINCS
= X.h Xarch.h Xos.h Xosdefs.h keysymdef.h
15 X11INCS
= Xlib.h Xresource.h
16 CLEANFILES
+= ${XPINCS} ${X11INCS} Xfuncproto.h
17 .if
!make
(clean) && !make
(cleandir
)
19 @
rm -f
${.OBJDIR
}/X11
&& ln
-s . X11
21 @
rm -f
$i && ln
-s
${X11SRCDIR.xproto
}/$i .
24 @
rm -f
$i && ln
-s
${X11SRCDIR.X11
}/include/X11
/$i .
28 Xfuncproto.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
}
33 makekeys.lo makekeys.o makekeys.d
: Xfuncproto.h
36 CPPFLAGS
+= -I
${DESTDIR}${X11INCDIR}
40 .
include <bsd.prog.mk
>