]> CyberLeo.Net >> Repos - FreeBSD/releng/9.2.git/blob - contrib/cvs/lib/Makefile.am
- Copy stable/9 to releng/9.2 as part of the 9.2-RELEASE cycle.
[FreeBSD/releng/9.2.git] / contrib / cvs / lib / Makefile.am
1 ## Process this file with automake to produce Makefile.in
2 # Makefile for library files used by GNU CVS.
3 #
4 # Copyright (C) 1986-2005 The Free Software Foundation, Inc.
5 #
6 # Portions Copyright (C) 1998-2005 Derek Price, Ximbiot <http://ximbiot.com>,
7 #                                  and others.
8
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)
12 # any later version.
13
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.
18
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
24 #
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
29 #
30 # $(includeopt) is CVS specific and set by configure
31 INCLUDES = -I$(top_srcdir)/src $(includeopt)
32
33 noinst_LIBRARIES = libcvs.a
34
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.
38 #
39 # On a more mundane/detail level, having regex.h match regex.c can be
40 # an issue if we aren't careful.
41 #
42 # Also should look into unifying regular expression matching in CVS
43 # with the diff library (perhaps to have the caller, CVS, do the
44 # matching?)
45 libcvs_a_SOURCES = \
46         argmatch.c \
47         getdate.y \
48         getline.c \
49         getopt.c \
50         getopt1.c \
51         getpass.c \
52         md5.c \
53         regex.c \
54         savecwd.c \
55         sighandle.c \
56         stripslash.c \
57         xgetwd.c \
58         yesno.c \
59         getline.h \
60         getopt.h \
61         getpagesize.h \
62         md5.h \
63         regex.h \
64         savecwd.h \
65         system.h \
66         wait.h \
67         xselect.h \
68         xtime.h
69 ## because @LIBOBJS@ is included below, automake automatically knows about
70 ##     dup2.c
71 ##     fncase.c
72 ##     fnmatch.c
73 ##     fnmatch.h
74 ##     ftruncate.c
75 ##     gethostname.c
76 ##     memmove.c
77 ##     mkdir.c
78 ##     rename.c
79 ##     strstr.c
80 ##     strerror.c
81 ##     strtoul.c
82 ##     valloc.c
83 ##     waitpid.c
84 libcvs_a_LIBADD = @LIBOBJS@
85
86 EXTRA_DIST = \
87         .cvsignore \
88         ChangeLog.fsf \
89         build_lib.com \
90         libcvs.dep libcvs.dsp libcvs.mak \
91         xgssapi.h \
92         test-getdate.sh
93
94 TESTS =
95 MOSTLYCLEANFILES =
96 check_PROGRAMS =
97
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
106 ##getdate_LDADD = \
107 ##      $(noinst_LIBRARIES)
108
109 # For the xsize module from GNULIB.
110 libcvs_a_SOURCES += xsize.h
111
112 # Until Automake gets its act together
113 distclean-local:
114         rm -f fnmatch.h
115
116 # for backwards compatibility with the old makefiles
117 realclean: maintainer-clean
118 .PHONY: realclean