1 ## Process this file with automake to produce Makefile.in
2 # Makefile for library files used by GNU CVS.
4 # Copyright (C) 1986-2005 The Free Software Foundation, Inc.
6 # Portions Copyright (C) 1998-2005 Derek Price, Ximbiot <http://ximbiot.com>,
9 # This program is free software; you can redistribute it and/or modify
10 # it under the terms of the GNU General Public License as published by
11 # the Free Software Foundation; either version 2, or (at your option)
14 # This program is distributed in the hope that it will be useful,
15 # but WITHOUT ANY WARRANTY; without even the implied warranty of
16 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 # GNU General Public License for more details.
19 # For now we need to include $(top_srcdir)/src because some systems
20 # (at least 'AIX rioscpu2 3 4 000030498200',
21 # 'HP-UX hp60 B.10.20 A 9000/770 hp60 two-user license', &
22 # 'IRIX64 sgiop110 6.5 07151433 IP30') have trouble finding error.h
23 # when compiling savecwd.c
25 # FIXME - the fact that compiling on my Linux 2.2.16 system finds
26 # /usr/include/error.h instead of $(top_srcdir)/src/error.h but
27 # everything compiles and tests anyhow implies that src/error.h may
28 # be unecessary now. Should look more deeply into this
30 # $(includeopt) is CVS specific and set by configure
31 INCLUDES = -I$(top_srcdir)/src $(includeopt)
33 noinst_LIBRARIES = libcvs.a
35 # Always use CVS's regular expression matcher regex.o, because of
36 # variations in regular expression syntax - we want to be the same
37 # across systems and (probably) compared with old versions of CVS too.
39 # On a more mundane/detail level, having regex.h match regex.c can be
40 # an issue if we aren't careful.
42 # Also should look into unifying regular expression matching in CVS
43 # with the diff library (perhaps to have the caller, CVS, do the
69 ## because @LIBOBJS@ is included below, automake automatically knows about
84 libcvs_a_LIBADD = @LIBOBJS@
90 libcvs.dep libcvs.dsp libcvs.mak \
98 # Test GNULIB getdate module.
99 TESTS += test-getdate.sh
100 MOSTLYCLEANFILES += getdate-expected getdate-got getdate.diff
101 # Program required by test-getdate.sh for testing getdate.y.
102 check_PROGRAMS += getdate
103 EXTRA_DIST += $(check_PROGRAMS)
104 getdate_SOURCES = getdate.y
105 getdate_CPPFLAGS = -DTEST
107 ## $(noinst_LIBRARIES)
109 # For the xsize module from GNULIB.
110 libcvs_a_SOURCES += xsize.h
112 # Until Automake gets its act together
116 # for backwards compatibility with the old makefiles
117 realclean: maintainer-clean