mostly revert commit 700c1c04445f4ff11cdb7256df2be57db55abbf6
[alioth/cvs.git] / src / Makefile.am
1 ## Process this file with automake to produce Makefile.in
2 # Makefile for GNU CVS program.
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 SHELL = /bin/sh
20
21 AM_CPPFLAGS = -I$(top_srcdir)/lib -I$(top_builddir)/lib \
22               -I$(top_srcdir)/diff $(ZLIB_CPPFLAGS)
23
24 bin_PROGRAMS = cvs
25 bin_SCRIPTS = cvsbug
26
27 # The cvs executable
28 cvs_SOURCES = \
29         add.c \
30         admin.c \
31         annotate.c \
32         buffer.c \
33         checkin.c \
34         checkout.c \
35         classify.c \
36         client.c \
37         commit.c \
38         create_adm.c \
39         cvsrc.c \
40         diff.c \
41         edit.c \
42         entries.c \
43         error.c \
44         exithandle.c \
45         expand_path.c \
46         fileattr.c \
47         filesubr.c \
48         find_names.c \
49         hardlink.c \
50         hash.c \
51         history.c \
52         ignore.c \
53         import.c \
54         lock.c \
55         log.c \
56         log-buffer.c log-buffer.h \
57         login.c \
58         logmsg.c \
59         ls.c \
60         main.c \
61         mkmodules.c \
62         modules.c \
63         ms-buffer.c ms-buffer.h \
64         myndbm.c \
65         no_diff.c \
66         parseinfo.c parseinfo.h \
67         patch.c \
68         rcs.c \
69         rcscmds.c \
70         recurse.c \
71         release.c \
72         remove.c \
73         repos.c \
74         root.c \
75         rsh-client.c rsh-client.h \
76         run.c \
77         scramble.c \
78         server.c \
79         stack.c stack.h \
80         status.c \
81         subr.c subr.h \
82         suck.c \
83         tag.c \
84         update.c \
85         version.c \
86         vers_ts.c \
87         watch.c \
88         wrapper.c \
89         zlib.c \
90         buffer.h \
91         client.h \
92         cvs.h \
93         edit.h \
94         fileattr.h \
95         hardlink.h \
96         hash.h \
97         history.h \
98         myndbm.h \
99         rcs.h \
100         root.h \
101         server.h \
102         update.h \
103         watch.h
104
105 EXTRA_cvs_SOURCES = gssapi-client.c gssapi-client.h \
106                     kerberos4-client.c kerberos4-client.h \
107                     socket-client.c socket-client.h
108
109 cvs_DEPENDENCIES = $(cvs_client_objects) \
110         ../diff/libdiff.a \
111         ../lib/libcvs.a \
112         $(ZLIB_LIBS)
113 cvs_LDFLAGS = -Wl,--as-needed
114 cvs_LDADD = $(cvs_client_objects) \
115         ../diff/libdiff.a \
116         ../lib/libcvs.a \
117         $(ZLIB_LIBS) \
118         $(LIB_CLOCK_GETTIME) \
119         $(LIB_NANOSLEEP) \
120         $(LIBINTL)
121
122 # General
123 EXTRA_DIST = \
124         .cvsignore \
125         ChangeLog-9194 \
126         ChangeLog-9395 \
127         ChangeLog-96 \
128         ChangeLog-97 \
129         build_src.com \
130         sanity.sh
131
132 check-local: localcheck remotecheck proxycheck
133
134 .PHONY: localcheck
135 localcheck: sanity.config.sh
136         $(SHELL) $(srcdir)/sanity.sh `pwd`/cvs$(EXEEXT)
137
138 .PHONY: remotecheck
139 remotecheck: all sanity.config.sh
140         $(SHELL) $(srcdir)/sanity.sh -r `pwd`/cvs$(EXEEXT)
141
142 .PHONY: proxycheck
143 proxycheck: all sanity.config.sh
144         $(SHELL) $(srcdir)/sanity.sh -p `pwd`/cvs$(EXEEXT)
145
146 # Our distclean targets
147 distclean-local:
148         rm -f check.log check.plog check.plog~
149
150 ## MAINTAINER Targets
151
152 # for backwards compatibility with the old makefiles
153 .PHONY: realclean
154 realclean: maintainer-clean