Makefile.am revision 225736
153913Sarchie## Process this file with automake to produce Makefile.in
253913Sarchie# Makefile for library files used by GNU CVS.
353913Sarchie#
453913Sarchie# Copyright (C) 1986-2005 The Free Software Foundation, Inc.
553913Sarchie#
653913Sarchie# Portions Copyright (C) 1998-2005 Derek Price, Ximbiot <http://ximbiot.com>,
753913Sarchie#                                  and others.
853913Sarchie
953913Sarchie# This program is free software; you can redistribute it and/or modify
1053913Sarchie# it under the terms of the GNU General Public License as published by
1153913Sarchie# the Free Software Foundation; either version 2, or (at your option)
1253913Sarchie# any later version.
1353913Sarchie
1453913Sarchie# This program is distributed in the hope that it will be useful,
1553913Sarchie# but WITHOUT ANY WARRANTY; without even the implied warranty of
1653913Sarchie# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
1753913Sarchie# GNU General Public License for more details.
1853913Sarchie
1953913Sarchie# For now we need to include $(top_srcdir)/src because some systems
2053913Sarchie# (at least 'AIX rioscpu2 3 4 000030498200',
2153913Sarchie# 'HP-UX hp60 B.10.20 A 9000/770 hp60 two-user license', &
2253913Sarchie# 'IRIX64 sgiop110 6.5 07151433 IP30') have trouble finding error.h
2353913Sarchie# when compiling savecwd.c
2453913Sarchie#
2553913Sarchie# FIXME - the fact that compiling on my Linux 2.2.16 system finds
2653913Sarchie# /usr/include/error.h instead of $(top_srcdir)/src/error.h but
2753913Sarchie# everything compiles and tests anyhow implies that src/error.h may
2853913Sarchie# be unecessary now.  Should look more deeply into this
2953913Sarchie#
3053913Sarchie# $(includeopt) is CVS specific and set by configure
3153913SarchieINCLUDES = -I$(top_srcdir)/src $(includeopt)
3253913Sarchie
3353913Sarchienoinst_LIBRARIES = libcvs.a
3453913Sarchie
3553913Sarchie# Always use CVS's regular expression matcher regex.o, because of
3653913Sarchie# variations in regular expression syntax - we want to be the same
3767506Sjulian# across systems and (probably) compared with old versions of CVS too.
3853913Sarchie#
3953913Sarchie# On a more mundane/detail level, having regex.h match regex.c can be
4053913Sarchie# an issue if we aren't careful.
4153913Sarchie#
4253913Sarchie# Also should look into unifying regular expression matching in CVS
4353913Sarchie# with the diff library (perhaps to have the caller, CVS, do the
4453913Sarchie# matching?)
4553913Sarchielibcvs_a_SOURCES = \
4670870Sjulian	argmatch.c \
4753913Sarchie	getdate.y \
4853913Sarchie	getline.c \
4953913Sarchie	getopt.c \
5053913Sarchie	getopt1.c \
51123600Sru	getpass.c \
52123600Sru	md5.c \
5353913Sarchie	regex.c \
5453913Sarchie	savecwd.c \
5553913Sarchie	sighandle.c \
5653913Sarchie	stripslash.c \
5753913Sarchie	xgetwd.c \
5853913Sarchie	yesno.c \
5970870Sjulian	getline.h \
6070870Sjulian	getopt.h \
6170870Sjulian	getpagesize.h \
6270870Sjulian	md5.h \
6370870Sjulian	regex.h \
6470870Sjulian	savecwd.h \
6553913Sarchie	system.h \
6653913Sarchie	wait.h \
6753913Sarchie	xselect.h \
6853913Sarchie	xtime.h
6953913Sarchie## because @LIBOBJS@ is included below, automake automatically knows about
7053913Sarchie##     dup2.c
7153913Sarchie##     fncase.c
7253913Sarchie##     fnmatch.c
7353913Sarchie##     fnmatch.h
7453913Sarchie##     ftruncate.c
7553913Sarchie##     gethostname.c
7653913Sarchie##     memmove.c
7753913Sarchie##     mkdir.c
7853913Sarchie##     rename.c
7953913Sarchie##     strstr.c
8053913Sarchie##     strerror.c
8153913Sarchie##     strtoul.c
8253913Sarchie##     valloc.c
8353913Sarchie##     waitpid.c
8453913Sarchielibcvs_a_LIBADD = @LIBOBJS@
8553913Sarchie
8664505SarchieEXTRA_DIST = \
8764505Sarchie	.cvsignore \
8864505Sarchie	ChangeLog.fsf \
8964505Sarchie	build_lib.com \
9064505Sarchie	libcvs.dep libcvs.dsp libcvs.mak \
9153913Sarchie	xgssapi.h \
9253913Sarchie	test-getdate.sh
9353913Sarchie
9453913SarchieTESTS =
9553913SarchieMOSTLYCLEANFILES =
9653913Sarchiecheck_PROGRAMS =
9753913Sarchie
9853913Sarchie# Test GNULIB getdate module.
9953913SarchieTESTS += test-getdate.sh
10053913SarchieMOSTLYCLEANFILES += getdate-expected getdate-got getdate.diff
10153913Sarchie# Program required by test-getdate.sh for testing getdate.y.
10253913Sarchiecheck_PROGRAMS += getdate
10353913SarchieEXTRA_DIST += $(check_PROGRAMS)
10453913Sarchiegetdate_SOURCES = getdate.y
10553913Sarchiegetdate_CPPFLAGS = -DTEST
10653913Sarchie##getdate_LDADD = \
10753913Sarchie##	$(noinst_LIBRARIES)
10853913Sarchie
10953913Sarchie# For the xsize module from GNULIB.
11053913Sarchielibcvs_a_SOURCES += xsize.h
11153913Sarchie
11253913Sarchie# Until Automake gets its act together
11353913Sarchiedistclean-local:
11453913Sarchie	rm -f fnmatch.h
11553913Sarchie
11653913Sarchie# for backwards compatibility with the old makefiles
11753913Sarchierealclean: maintainer-clean
11853913Sarchie.PHONY: realclean
11953913Sarchie