Makefile.am revision 9aa2a2b5
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 22AM_YFLAGS = -d 23 24bin_PROGRAMS = xgc 25 26AM_CFLAGS = $(CWARNFLAGS) $(XGC_CFLAGS) -D_BSD_SOURCE 27xgc_LDADD = $(XGC_LIBS) -lm 28 29xgc_SOURCES = \ 30 choice.c \ 31 constants.h \ 32 dashlist.c \ 33 getfile.c \ 34 gram.y \ 35 interpret.c \ 36 lex.l \ 37 main.c \ 38 planemask.c \ 39 record.c \ 40 testfrac.c \ 41 tests.c \ 42 text.c \ 43 xgc.h 44 45appman_PRE = \ 46 xgc.man 47 48BUILT_SOURCES = gram.h gram.c lex.c 49MAINTAINERCLEANFILES = ChangeLog INSTALL 50MAINTAINERCLEANFILES += $(BUILT_SOURCES) 51 52gram.h: gram.c 53 54# App default files 55 56DISTCHECK_CONFIGURE_FLAGS = --with-appdefaultdir=\$${datadir}/X11/app-defaults 57 58appdefaultdir = @appdefaultdir@ 59 60dist_appdefault_DATA = \ 61 app-defaults/Xgc \ 62 app-defaults/Xgc-color 63 64EXTRA_DIST = tile Bugs \ 65 Written/FilledRects \ 66 Written/Interface \ 67 Written/Jim \ 68 Written/Notes \ 69 Written/Notes2 \ 70 Written/Outline \ 71 Written/Widget 72 73 74appmandir = $(APP_MAN_DIR) 75 76appman_DATA = $(appman_PRE:man=@APP_MAN_SUFFIX@) 77 78EXTRA_DIST += $(appman_PRE) 79CLEANFILES = $(appman_DATA) 80 81SUFFIXES = .$(APP_MAN_SUFFIX) .man 82 83# String replacements in MAN_SUBSTS now come from xorg-macros.m4 via configure 84.man.$(APP_MAN_SUFFIX): 85 $(AM_V_GEN)$(SED) $(MAN_SUBSTS) < $< > $@ 86 87 88.PHONY: ChangeLog INSTALL 89 90INSTALL: 91 $(INSTALL_CMD) 92 93ChangeLog: 94 $(CHANGELOG_CMD) 95 96dist-hook: ChangeLog INSTALL 97