diff options
author | Matthieu Herrb <matthieu@cvs.openbsd.org> | 2008-03-25 23:28:21 +0000 |
---|---|---|
committer | Matthieu Herrb <matthieu@cvs.openbsd.org> | 2008-03-25 23:28:21 +0000 |
commit | d0296cb2dca77008ac87984bf5fff52ca809195d (patch) | |
tree | fc3efa1cdc819e3b49ab897140fd0d351629af1c /proto/x11proto | |
parent | fbf05e173266062c6e106a82d6341c46a01dc274 (diff) |
Replace autotools based build by native BSD Makefiles in proto/.
tested by naddy@ and oga@. ok oga@.
Diffstat (limited to 'proto/x11proto')
-rw-r--r-- | proto/x11proto/Makefile | 32 | ||||
-rw-r--r-- | proto/x11proto/Makefile.bsd-wrapper | 3 |
2 files changed, 32 insertions, 3 deletions
diff --git a/proto/x11proto/Makefile b/proto/x11proto/Makefile new file mode 100644 index 000000000..7d688e7de --- /dev/null +++ b/proto/x11proto/Makefile @@ -0,0 +1,32 @@ +# $OpenBSD: Makefile,v 1.1 2008/03/25 23:28:20 matthieu Exp $ + +HEADERS_SUBDIR= X11/ +HEADERS= ap_keysym.h DECkeysym.h HPkeysym.h keysymdef.h keysym.h \ + Sunkeysym.h Xalloca.h Xarch.h Xatom.h Xdefs.h XF86keysym.h \ + Xfuncs.h X.h Xmd.h Xosdefs.h Xos.h Xos_r.h Xproto.h \ + Xprotostr.h Xthreads.h Xw32defs.h XWDFile.h Xwindows.h \ + Xwinsock.h +GENERATED_HEADERS= Xfuncproto.h Xpoll.h +PKGCONFIG= xproto.pc + +all:: ${GENERATED_HEADERS} + +Xfuncproto.h: Xfuncproto.h.in + @sed -e 's,^#undef NARROWPROTO,#define NARROWPROTO,' \ + -e 's,^#undef FUNCPROTO,#define FUNCPROTO 15,' \ + ${.CURDIR}/Xfuncproto.h.in > $@ + +Xpoll.h: Xpoll.h.in + @sed -e 's#@USE_FDS_BITS@#fds_bits#g' ${.CURDIR}/Xpoll.h.in > $@ + +install:: ${GENERATED_HEADERS} + @echo installing ${GENERATED_HEADERS} in ${INCSDIR}/${HEADERS_SUBDIR} + @for i in ${GENERATED_HEADERS}; do \ + cmp -s $$i ${DESTDIR}${INCSDIR}/$$i || \ + ${INSTALL_DATA} $$i ${DESTDIR}${INCSDIR}/${HEADERS_SUBDIR}$$i;\ + done + +clean:: + rm -f ${GENERATED_HEADERS} + +.include <bsd.xorg.mk> diff --git a/proto/x11proto/Makefile.bsd-wrapper b/proto/x11proto/Makefile.bsd-wrapper deleted file mode 100644 index da466804b..000000000 --- a/proto/x11proto/Makefile.bsd-wrapper +++ /dev/null @@ -1,3 +0,0 @@ -# $OpenBSD: Makefile.bsd-wrapper,v 1.2 2006/11/27 19:28:25 matthieu Exp $ - -.include <bsd.xorg.mk> |