Drop main() prototype. Syncs with NetBSD-8
[minix.git] / external / mit / xorg / tools / makekeys / Makefile
bloba7f086ce731be27b8b3cf2d3a79f40ee63c4265e
1 # $NetBSD: Makefile,v 1.4 2015/06/26 02:43:26 matt Exp $
3 NOMAN= 1
5 .include <bsd.own.mk>
7 .PATH: ${X11SRCDIR.X11}/src/util
9 PROG?= makekeys
10 SRCS= makekeys.c
11 .if !make(obj) && !exists(${DESTDIR}${X11INCDIR}/X.h)
12 CLEANFILES+= X11
13 CPPFLAGS+= -I.
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)
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
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
35 .else
36 CPPFLAGS+= -I${DESTDIR}${X11INCDIR}
37 .endif
39 .include <bsd.x11.mk>
40 .include <bsd.prog.mk>