Makefile.am revision 264fa531
1# 2# Copyright 2005 Red Hat, Inc. 3# 4# Permission to use, copy, modify, distribute, and sell this software and its 5# documentation for any purpose is hereby granted without fee, provided that 6# the above copyright notice appear in all copies and that both that 7# copyright notice and this permission notice appear in supporting 8# documentation, and that the name of Red Hat not be used in 9# advertising or publicity pertaining to distribution of the software without 10# specific, written prior permission. Red Hat makes no 11# representations about the suitability of this software for any purpose. It 12# is provided "as is" without express or implied warranty. 13# 14# RED HAT DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, 15# INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO 16# EVENT SHALL RED HAT BE LIABLE FOR ANY SPECIAL, INDIRECT OR 17# CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, 18# DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER 19# TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR 20# PERFORMANCE OF THIS SOFTWARE. 21 22bin_PROGRAMS = x11perf 23 24bin_SCRIPTS = x11perfcomp 25 26LIBPATH = $(libdir)/X11/x11perfcomp 27 28x11perfcompdir = $(LIBPATH) 29dist_x11perfcomp_SCRIPTS = fillblnk perfboth perfratio Xmark 30 31AM_CFLAGS = $(XEXT_CFLAGS) $(XFT_CFLAGS) $(XRENDER_CFLAGS) $(X11PERF_CFLAGS) 32x11perf_LDADD = $(XEXT_LIBS) $(XFT_LIBS) $(XRENDER_LIBS) $(X11PERF_LIBS) -lm 33 34x11perf_SOURCES = \ 35 bitmaps.c \ 36 bitmaps.h \ 37 do_arcs.c \ 38 do_blt.c \ 39 do_complex.c \ 40 do_dots.c \ 41 do_lines.c \ 42 do_movewin.c \ 43 do_rects.c \ 44 do_segs.c \ 45 do_simple.c \ 46 do_tests.c \ 47 do_text.c \ 48 do_traps.c \ 49 do_tris.c \ 50 do_valgc.c \ 51 do_windows.c \ 52 x11perf.c \ 53 x11perf.h 54 55appman_PRE = \ 56 x11perfcomp.man \ 57 x11perf.man \ 58 Xmark.man 59 60x11perfcomp: x11pcomp.cpp 61 $(SED) s/LIBPATH/`echo $(LIBPATH) | sed -e s/\\\\//\\\\\\\\\\\\\//g`/ < $(srcdir)/x11pcomp.cpp | \ 62 $(SED) s/XCOMM/\#/ > $@ 63 64 65CLEANFILES = $(bin_SCRIPTS) x11perfcomp 66 67EXTRA_DIST = x11pcomp.cpp 68 69appmandir = $(APP_MAN_DIR) 70 71appman_DATA = $(appman_PRE:man=@APP_MAN_SUFFIX@) 72 73EXTRA_DIST += $(appman_PRE) 74CLEANFILES += $(appman_DATA) 75 76SED = sed 77 78# Strings to replace in man pages 79XORGRELSTRING = @PACKAGE_STRING@ 80 XORGMANNAME = X Version 11 81 82MAN_SUBSTS = \ 83 -e 's|__vendorversion__|"$(XORGRELSTRING)" "$(XORGMANNAME)"|' \ 84 -e 's|__xorgversion__|"$(XORGRELSTRING)" "$(XORGMANNAME)"|' \ 85 -e 's|__xservername__|Xorg|g' \ 86 -e 's|__xconfigfile__|xorg.conf|g' \ 87 -e 's|__projectroot__|$(prefix)|g' \ 88 -e 's|__apploaddir__|$(appdefaultdir)|' \ 89 -e 's|__appmansuffix__|$(APP_MAN_SUFFIX)|g' \ 90 -e 's|__libmansuffix__|$(LIB_MAN_SUFFIX)|g' \ 91 -e 's|__adminmansuffix__|$(ADMIN_MAN_SUFFIX)|g' \ 92 -e 's|__miscmansuffix__|$(MISC_MAN_SUFFIX)|g' \ 93 -e 's|__filemansuffix__|$(FILE_MAN_SUFFIX)|g' 94 95SUFFIXES = .$(APP_MAN_SUFFIX) .man 96 97.man.$(APP_MAN_SUFFIX): 98 sed $(MAN_SUBSTS) < $< > $@ 99