Sync usage with man page.
[netbsd-mini2440.git] / x11 / bin / lbxproxy / Makefile
blob4160fc731be562ff3ea5076bcd37fda8b0c4a350
1 # $NetBSD: Makefile,v 1.7 2007/04/21 00:41:19 matt Exp $
3 .include <bsd.own.mk>
5 PROG= lbxproxy
8 .PATH: ${X11SRCDIR.xc}/programs/${PROG}/di
9 SRCS+= atomcache.c cache.c cmap.c cmaputil.c dispatch.c extensions.c \
10 gfx.c globals.c init.c lbxfuncs.c lbxutil.c main.c options.c \
11 pm.c props.c reqtype.c resource.c swaprep.c swapreq.c \
12 tables.c tags.c unsquish.c utils.c wire.c zeropad.c
14 CPPFLAGS+= -I${DESTDIR}${X11INCDIR}/X11 \
15 -I${DESTDIR}${X11INCDIR}/X11/extensions \
16 -I${X11SRCDIR.xc}/programs/${PROG}/include \
17 ${X11FLAGS.SERVER}
19 LBXPROXYDIR= ${X11ETCDIR}/lbxproxy
21 CPPFLAGS.dispatch.c= ${X11FLAGS.EXTENSION}
22 CPPFLAGS.utils.c= -DDEF_ATOMS_FILE=\"${LBXPROXYDIR}/AtomControl\" \
23 -DRGB_DB=\"${X11LIBDIR}/rgb\"
26 .PATH: ${X11SRCDIR.xc}/programs/${PROG}/os
27 .PATH: ${X11SRCDIR.xc}/lib/xtrans
28 SRCS.os= WaitFor.c connection.c io.c osinit.c transport.c
29 SRCS+= ${SRCS.os}
30 .for _S in ${SRCS.os}
31 CPPFLAGS.${_S}= ${X11FLAGS.CONNECTION} \
32 ${X11FLAGS.OS_DEFINES}
33 .endfor
35 CPPFLAGS.connection.c+= -DLBXPROXY_t -DTRANS_SERVER -DBSD44SOCKETS
36 CPPFLAGS.io.c+= -DLBXPROXY_t -DTRANS_SERVER ${X11FLAGS.EXTENSION}
37 CPPFLAGS.transport.c+= -DLBXPROXY_t -DTRANS_SERVER -DBSD44SOCKETS \
38 -I${X11SRCDIR.xc}/lib/xtrans
40 .if ${MACHINE_ARCH} == "vax"
41 COPTS.connection.c+= -O2
42 .endif
44 .PATH: ${X11SRCDIR.xc}/programs/${PROG}/config
45 CONFIGFILES= AtomControl
46 FILESDIR= ${LBXPROXYDIR}
48 LDADD+= -llbxutil -lICE -lXext -lX11 -lz
49 DPADD+= ${LIBLBXUTIL} ${LIBICE} ${LIBXEXT} ${LIBX11} ${LIBZ}
51 .PATH: ${X11SRCDIR.xc}/programs/${PROG}
53 .include <bsd.x11.mk>
54 .include <bsd.prog.mk>