Sync usage with man page.
[netbsd-mini2440.git] / x11 / lib / Xt / Makefile
blobc9c2c6d9cb286c3643e60270bbc9c77d50f3bcc4
1 # $NetBSD: Makefile,v 1.12 2004/08/05 01:28:48 lukem Exp $
3 .include <bsd.own.mk>
5 LIB= Xt
6 .PATH: ${X11SRCDIR.xc}/lib/${LIB}
8 SRCS= ActionHook.c Alloc.c ArgList.c Callback.c ClickTime.c \
9 Composite.c Constraint.c Convert.c Converters.c Core.c \
10 Create.c Destroy.c Display.c Error.c Event.c EventUtil.c \
11 Functions.c GCManager.c Geometry.c GetActKey.c GetResList.c \
12 GetValues.c HookObj.c Hooks.c Initialize.c Intrinsic.c \
13 Keyboard.c Manage.c NextEvent.c Object.c PassivGrab.c \
14 Pointer.c Popup.c PopupCB.c RectObj.c ResConfig.c Resources.c \
15 Selection.c SetSens.c SetValues.c SetWMCW.c Shell.c \
16 StringDefs.c TMaction.c TMgrab.c TMkey.c TMparse.c TMprint.c \
17 TMstate.c Threads.c VarCreate.c VarGet.c Varargs.c Vendor.c
19 INCS= Composite.h CompositeP.h ConstrainP.h Constraint.h Core.h \
20 CoreP.h Intrinsic.h IntrinsicP.h Object.h ObjectP.h RectObj.h \
21 RectObjP.h Shell.h ShellP.h StringDefs.h Vendor.h VendorP.h
22 INCSDIR=${X11INCDIR}/X11
24 CPPFLAGS+= ${X11FLAGS.THREADS}
25 CPPFLAGS+= -DUSE_POLL -DUSE_SNPRINTF -DLIBXT -I.
27 CPPFLAGS.Intrinsic.c= -DXFILESEARCHPATHDEFAULT=\"${X11LIBDIR}/%L/%T/%N%C%S:${X11LIBDIR}/%l/%T/%N%C%S:${X11LIBDIR}/%T/%N%C%S:${X11LIBDIR}/%L/%T/%N%S:${X11LIBDIR}/%l/%T/%N%S:${X11LIBDIR}/%T/%N%S\"
28 CPPFLAGS.Error.c= -DERRORDB=\"${X11LIBDIR}/XtErrorDB\" \
29 -DXTERROR_PREFIX=\"\" -DXTWARNING_PREFIX=\"\"
30 CPPFLAGS.TMkey.c= -DXKB
32 LIBDPLIBS=\
33 X11 ${.CURDIR}/../X11/dynamic \
34 SM ${.CURDIR}/../SM \
35 ICE ${.CURDIR}/../ICE
37 .include "${NETBSDSRCDIR}/x11/tools/makestrs/Makefile.makestrs"
39 STRINGS_FILES= StringDefs.c StringDefs.h Shell.h
40 STRINGS_TMPLS= util/StrDefs.ct util/StrDefs.ht util/Shell.ht
41 STRINGS_LIST= util/string.list
43 ${STRINGS_FILES}: strings_files.stamp
44 strings_files.stamp: ${MAKESTRS} ${STRINGS_LIST} ${STRINGS_TMPLS}
45 ${_MKMSG_CREATE} ${STRINGS_FILES}
46 rm -f ${.TARGET} util ${STRINGS_FILES}
47 ln -s ${X11SRCDIR.xc}/lib/${LIB}/util util
48 ${MAKESTRS} < ${STRINGS_LIST} > StringDefs.c
49 touch ${.TARGET}
50 CLEANFILES+= ${STRINGS_FILES} util strings_files.stamp
51 DPSRCS+= ${STRINGS_FILES}
53 .include <bsd.x11.mk>
54 .include <bsd.lib.mk>