Makefile.am revision bf4a254e
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 = xinit 23bin_SCRIPTS = startx 24 25AM_CFLAGS = $(CWARNFLAGS) $(XINIT_CFLAGS) 26AM_CPPFLAGS = -DXINITDIR=\"$(XINITDIR)\" -DBINDIR=\"$(bindir)\" 27xinit_LDADD = $(XINIT_LIBS) 28 29xinit_SOURCES = \ 30 xinit.c 31 32appmandir = $(APP_MAN_DIR) 33 34appman_PRE = \ 35 startx.man \ 36 xinit.man 37 38appman_DATA = $(appman_PRE:man=@APP_MAN_SUFFIX@) 39 40include $(top_srcdir)/cpprules.in 41 42xinitrcdir = $(XINITDIR) 43 44PROGCPPDEFS = \ 45 -DXRDB=@XRDB@ \ 46 -DXMODMAP=@XMODMAP@ \ 47 -DTWM=@TWM@ \ 48 -DXCLOCK=@XCLOCK@ \ 49 -DXTERM=@XTERM@ \ 50 -DXSERVER=@XSERVER@ \ 51 -DXAUTH=@XAUTH@ \ 52 -DXINIT=@XINIT@ 53 54CPP_FILES_FLAGS = \ 55 -DXINITDIR=$(XINITDIR) $(PROGCPPDEFS) -DLIBDIR=$(libdir) \ 56 -DSHELL_CMD=$(SHELL_CMD) $(STARTX_COOKIE_FLAGS) \ 57 -D__libexecdir__="$(libexecdir)" \ 58 -D__bindir__="$(bindir)" \ 59 -DLAUNCHD_ID_PREFIX="$(launchdidprefix)" 60 61if LAUNCHD 62$(launchdidprefix).startx.plist.cpp: org.x.startx.plist.cpp 63 cp $< $@ 64 65launchagents_PRE = $(launchdidprefix).startx.plist.cpp 66launchagents_DATA = $(launchagents_PRE:plist.cpp=plist) 67 68SUBDIRS = privileged_startx 69endif 70 71DIST_SUBDIRS = privileged_startx 72 73xinitrc_DATA = xinitrc 74 75MAINTAINERCLEANFILES = ChangeLog INSTALL 76CLEANFILES = xinitrc startx $(appman_DATA) $(launchagents_DATA) 77 78EXTRA_DIST = xinitrc.cpp startx.cpp org.x.startx.plist.cpp $(appman_PRE) \ 79 startx.cmd xinitrc.cmd xinit.def autogen.sh 80 81.PHONY: ChangeLog INSTALL 82 83INSTALL: 84 $(INSTALL_CMD) 85 86ChangeLog: 87 $(CHANGELOG_CMD) 88 89dist-hook: ChangeLog INSTALL 90