# Copyright status: this file is in the public domain. # Filename prefix: req- REQUESTS = AllocColor AllocColorCells AllocColorPlanes AllocNamedColor\ AllowEvents Bell ChangeActivePointerGrab ChangeGC ChangeHosts\ ChangeKeyboardControl ChangeKeyboardMapping ChangePointerControl\ ChangeProperty ChangeSaveSet ChangeWindowAttributes CirculateWindow\ ClearArea CloseFont ConfigureWindow ConvertSelection CopyArea\ CopyColormapAndFree CopyGC CopyPlane CreateColormap CreateCursor\ CreateGC CreateGlyphCursor CreatePixmap CreateWindow DeleteProperty\ DestroySubwindows DestroyWindow FillPoly ForceScreenSaver FreeColormap\ FreeColors FreeCursor FreeGC FreePixmap GetAtomName GetFontPath\ GetGeometry GetImage GetInputFocus GetKeyboardControl\ GetKeyboardMapping GetModifierMapping GetMotionEvents GetPointerControl\ GetPointerMapping GetProperty GetScreenSaver GetSelectionOwner\ GetWindowAttributes GrabButton GrabKey GrabKeyboard GrabPointer\ GrabServer ImageText16 ImageText8 InstallColormap InternAtom KillClient\ ListExtensions ListFonts ListFontsWithInfo ListHosts\ ListInstalledColormaps ListProperties LookupColor MapSubwindows\ MapWindow NoOperation OpenFont PolyArc PolyFillArc PolyFillRectangle\ PolyLine PolyPoint PolyRectangle PolySegment PolyText16 PolyText8\ PutImage QueryBestSize QueryColors QueryExtension QueryFont QueryKeymap\ QueryPointer QueryTextExtents QueryTree RecolorCursor ReparentWindow\ RotateProperties SendEvent SetAccessControl SetClipRectangles\ SetCloseDownMode SetDashes SetFontPath SetInputFocus SetModifierMapping\ SetPointerMapping SetScreenSaver SetSelectionOwner StoreColors\ StoreNamedColor TranslateCoordinates UngrabButton UngrabKey\ UngrabKeyboard UngrabPointer UngrabServer UninstallColormap\ UnmapSubwindows UnmapWindow WarpPointer # Filename prefix: sgc- SGCCALLS = ChangeSGC CreateSGC SGC_GC # Filename prefix: local- LOCALCALLS = default-screen fontinfo-charinfo fontinfo-free\ fontinfo-recache map-visuals max-keycode min-keycode nscreens root\ root-colormap root-depth root-height root-visual root-width xc-udata # Filename prefix: conv- CONVCALLS = apply-geometry draw-line draw-point draw-rectangle fill-arc\ fill-rectangle kbmap lookup-color parse-geometry text-extents-8 EXTS = SHAPE SHAPE_FILEPREFIX = shape SHAPE_FILES = Combine GetRectangles InputSelected Mask Offset\ QueryExtents Rectangles SelectInput map query CC_ADD = -g CFLAGS_ADD = -I. BUILDLIBS = liblx.a OBJ_liblx = $(CONVCALLS:S/$/.o/:S/^/conv-/)\ $(LOCALCALLS:S/$/.o/:S/^/local-/) $(REQUESTS:S/$/.o/:S/^/req-/)\ $(SGCCALLS:S/$/.o/:S/^/sgc-/) auth.o chain.o close.o cvt.o errs.o\ events.o hostlist.o initial.o keysym-tables.o lx-xi.o lx_abort.o map.o\ priv.o proto.o req-simple-none.o req-simple-single.o resmgr.o\ resource.o sgc.o str_tconc.o strlist.o vars.o xidlist.o .for x in $(EXTS) OBJ_liblx += $($(x)_FILES:S/$/.o/:S/^/lx-$($(x)_FILEPREFIX)-/) .endfor INSTALLHDR = lx-keysyms.h lx-shape.h lx.h INSTALLMAN = liblx.3 TESTS = 1 2 3 TESTBINS = $(TESTS:S/^/rmtest-/) BUILDBINS = $(TESTBINS) INSTALLBIN = .for p in $(TESTBINS) OBJ_$p = $p.o LIBS_$p = liblx.a .endfor LIBS_rmtest-1 += -les VERSION = 0.1 .MAIN: $(BUILDLIBS) .PHONY: tests tests: $(TESTBINS) $(TESTBINS): resmgr.o liblx.a $(TESTBINS:S/$/.o/) resmgr.o: lx.h lx-keysyms.h keysym-tables.c: keysyms process-keysyms ./process-keysyms PREDEPEND += lx-keysyms.h keysym-tables.c CLEANFILES += lx-keysyms.h keysym-tables.c # defaults the package-with-version string to be # $(.CURDIR:T), which is wrong for us. VERSION != eval "`mcgrep -1 VER= ../TRANSCRIPT`"; echo liblx-$$VER .include