NetBSD/x11/lib/Xt/Makefile

57 lines
2.0 KiB
Makefile

# $NetBSD: Makefile,v 1.3 2003/09/13 20:18:51 lukem Exp $
.include <bsd.own.mk>
LIB= Xt
.PATH: ${X11SRCDIR.xc}/lib/${LIB}
SUBDIR= makestrs
SRCS= ActionHook.c Alloc.c ArgList.c Callback.c ClickTime.c \
Composite.c Constraint.c Convert.c Converters.c Core.c \
Create.c Destroy.c Display.c Error.c Event.c EventUtil.c \
Functions.c GCManager.c Geometry.c GetActKey.c GetResList.c \
GetValues.c HookObj.c Hooks.c Initialize.c Intrinsic.c \
Keyboard.c Manage.c NextEvent.c Object.c PassivGrab.c \
Pointer.c Popup.c PopupCB.c RectObj.c ResConfig.c Resources.c \
Selection.c SetSens.c SetValues.c SetWMCW.c Shell.c \
StringDefs.c TMaction.c TMgrab.c TMkey.c TMparse.c TMprint.c \
TMstate.c Threads.c VarCreate.c VarGet.c Varargs.c Vendor.c
INCS= Composite.h CompositeP.h ConstrainP.h Constraint.h Core.h \
CoreP.h Intrinsic.h IntrinsicP.h Object.h ObjectP.h RectObj.h \
RectObjP.h Shell.h ShellP.h StringDefs.h Vendor.h VendorP.h
INCSDIR=${X11INCDIR}/X11
CPPFLAGS+= ${X11FLAGS.THREADLIB}
CPPFLAGS+= -DUSE_POLL -DUSE_SNPRINTF -DLIBXT -I.
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\"
CPPFLAGS.Error.c= -DERRORDB=\"${X11LIBDIR}/XtErrorDB\" \
-DXTERROR_PREFIX=\"\" -DXTWARNING_PREFIX=\"\"
CPPFLAGS.TMkey.c= -DXKB
LDADD+= -lX11 -lSM -lICE
DPADD+= ${LIBX11} ${LIBSM} ${LIBICE}
MAKESTRSDIR!= cd ${.CURDIR}/makestrs && ${PRINTOBJDIR}
MAKESTRS= ${MAKESTRSDIR}/makestrs
${MAKESTRS}:
(cd ${.CURDIR}/makestrs && ${MAKE})
STRINGS_FILES= StringDefs.c StringDefs.h Shell.h
STRINGS_TMPLS= util/StrDefs.ct util/StrDefs.ht util/Shell.ht
STRINGS_LIST= util/string.list
${STRINGS_FILES}: ${MAKESTRS} ${STRINGS_LIST} ${STRINGS_TMPLS}
rm -f ${.TARGET} util
ln -s ${X11SRCDIR.xc}/lib/${LIB}/util util
${MAKESTRS} < ${STRINGS_LIST} > StringDefs.c
CLEANFILES+= ${STRINGS_FILES} util
DPSRCS+= ${STRINGS_FILES}
.include <bsd.x11.mk>
.include <bsd.lib.mk>
.include <bsd.subdir.mk>