Makefile.am revision bbe1b32b
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 22configdir = $(sysconfdir)/X11/fs 23 24bin_PROGRAMS = xfs 25 26FONT_FLAGS = -DFONT_PCF -DFONT_FS -DFONT_SPEEDO 27 28AM_CPPFLAGS = $(XFS_CFLAGS) -I$(top_srcdir)/include -DXFSPIDDIR=\"/var/run\" \ 29 $(FONT_FLAGS) -D_BSD_SOURCE -DFONT_t -DTRANS_SERVER -DTRANS_REOPEN 30 31LDADD = $(XFS_LIBS) 32 33xfs_SOURCES = \ 34 difs/atom.c \ 35 difs/cache.c \ 36 difs/charinfo.c \ 37 difs/difsutils.c \ 38 difs/dispatch.c \ 39 difs/events.c \ 40 difs/extensions.c \ 41 difs/fontinfo.c \ 42 difs/fonts.c \ 43 difs/globals.c \ 44 difs/initfonts.c \ 45 difs/main.c \ 46 difs/resource.c \ 47 difs/swaprep.c \ 48 difs/swapreq.c \ 49 difs/tables.c \ 50 os/access.c \ 51 os/config.c \ 52 os/config.h \ 53 os/configstr.h \ 54 os/connection.c \ 55 os/daemon.c \ 56 os/error.c \ 57 os/io.c \ 58 os/osdep.h \ 59 os/osglue.c \ 60 os/osinit.c \ 61 os/utils.c \ 62 os/waitfor.c \ 63 os/xfstrans.c \ 64 include/access.h \ 65 include/accstr.h \ 66 include/assert.h \ 67 include/auth.h \ 68 include/authstr.h \ 69 include/cache.h \ 70 include/cachestr.h \ 71 include/client.h \ 72 include/clientstr.h \ 73 include/closestr.h \ 74 include/closure.h \ 75 include/difsfn.h \ 76 include/difsfnst.h \ 77 include/difs.h \ 78 include/difsutils.h \ 79 include/dispatch.h \ 80 include/extentst.h \ 81 include/fsevents.h \ 82 include/fsresource.h \ 83 include/globals.h \ 84 include/misc.h \ 85 include/os.h \ 86 include/osstruct.h \ 87 include/servermd.h \ 88 include/site.h \ 89 include/swaprep.h \ 90 include/swapreq.h 91 92appman_PRE = \ 93 xfs.man 94 95FSERRORS = /var/log/xfs.log 96 97FONTDIR = $(libdir)/X11/fonts 98 99FONTPATH = $(FONTDIR)/misc/,$(FONTDIR)/TTF/,$(FONTDIR)/Type1/,$(FONTDIR)/CID/,$(FONTDIR)/100dpi/,$(FONTDIR)/75dpi/ 100 101config: config.cpp 102 sed -e s/XCOMM/\#/ -e s@DEFAULTFONTPATH@$(FONTPATH)@ -e s@FSERRORS@$(FSERRORS)@ < $(top_srcdir)/config.cpp > config 103 104config_DATA = config 105 106EXTRA_DIST = xfs.def config.cpp 107CLEANFILES = config 108 109appmandir = $(APP_MAN_DIR) 110 111appman_DATA = $(appman_PRE:man=@APP_MAN_SUFFIX@) 112 113EXTRA_DIST += $(appman_PRE) 114CLEANFILES += $(appman_DATA) 115 116SED = sed 117 118# Strings to replace in man pages 119XORGRELSTRING = @PACKAGE_STRING@ 120 XORGMANNAME = X Version 11 121 122MAN_SUBSTS = \ 123 -e 's|__vendorversion__|"$(XORGRELSTRING)" "$(XORGMANNAME)"|' \ 124 -e 's|__xorgversion__|"$(XORGRELSTRING)" "$(XORGMANNAME)"|' \ 125 -e 's|__xservername__|Xorg|g' \ 126 -e 's|__xconfigfile__|xorg.conf|g' \ 127 -e 's|__projectroot__|$(prefix)|g' \ 128 -e 's|__apploaddir__|$(appdefaultdir)|' \ 129 -e 's|__configdir__|$(configdir)|' \ 130 -e 's|__appmansuffix__|$(APP_MAN_SUFFIX)|g' \ 131 -e 's|__libmansuffix__|$(LIB_MAN_SUFFIX)|g' \ 132 -e 's|__adminmansuffix__|$(ADMIN_MAN_SUFFIX)|g' \ 133 -e 's|__miscmansuffix__|$(MISC_MAN_SUFFIX)|g' \ 134 -e 's|__filemansuffix__|$(FILE_MAN_SUFFIX)|g' \ 135 -e 's|__configfiledesc__|$(CONFIG_FILE_DESC)|g' \ 136 -e 's|__configfilepath__|$(CONFIG_FILE_PATH)|g' \ 137 -e 's|XCOMM|\#|g' 138 139SUFFIXES = .$(APP_MAN_SUFFIX) .man 140 141.man.$(APP_MAN_SUFFIX): 142 sed $(MAN_SUBSTS) < $< > $@ 143 144EXTRA_DIST += ChangeLog 145MAINTAINERCLEANFILES = ChangeLog 146 147.PHONY: ChangeLog 148 149ChangeLog: 150 (GIT_DIR=$(top_srcdir)/.git git-log > .changelog.tmp && mv .changelog.tmp ChangeLog; rm -f .changelog.tmp) || (touch ChangeLog; echo 'git directory not found: installing possibly empty changelog.' >&2) 151 152dist-hook: ChangeLog 153 154if LINT 155ALL_LINT_FLAGS=$(LINT_FLAGS) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ 156 $(AM_CPPFLAGS) $(CPPFLAGS) 157 158lint: 159 $(LINT) $(ALL_LINT_FLAGS) $(xfs_SOURCES) 160endif LINT 161