1 # $NetBSD: Makefile,v 1.7 2007/04/21 00:41:19 matt Exp $
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 \
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
31 CPPFLAGS.
${_S}= ${X11FLAGS.CONNECTION
} \
32 ${X11FLAGS.OS_DEFINES
}
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
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}
54 .
include <bsd.prog.mk
>