Makefile.am revision 175261
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
19SHELL = /bin/sh
20
21# $(includeopt) is CVS specific and set by configure
22# FIXME - This includes line is dependant on its order.  This means there is
23# some namespace hackery going on that maybe shouldn't be.  Long term fix is to
24# try and remove naming ocnflicts and fix Automake to allow particular includes
25# to be attached only to particular object files.  Short term fix is either or.
26##INCLUDES = -I. -I.. -I$(srcdir) -I$(top_srcdir)/lib
27INCLUDES = -I$(top_srcdir)/lib -I$(top_srcdir)/diff -I$(top_srcdir)/zlib $(includeopt)
28
29bin_PROGRAMS = cvs
30bin_SCRIPTS = cvsbug
31
32# The cvs executable
33cvs_SOURCES = \
34	add.c \
35	admin.c \
36	annotate.c \
37	buffer.c \
38	checkin.c \
39	checkout.c \
40	classify.c \
41	client.c \
42	commit.c \
43	create_adm.c \
44	cvsrc.c diff.c \
45	edit.c \
46	entries.c \
47	error.c \
48	expand_path.c \
49	fileattr.c \
50	filesubr.c \
51	find_names.c \
52	hardlink.c \
53	hash.c \
54	history.c \
55	ignore.c \
56	import.c \
57	lock.c \
58	log.c \
59	login.c \
60	logmsg.c \
61	main.c \
62	mkmodules.c \
63	modules.c \
64	myndbm.c \
65	no_diff.c \
66	parseinfo.c \
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	run.c \
76	scramble.c \
77	server.c \
78	stack.c \
79	status.c \
80	subr.c \
81	tag.c \
82	update.c \
83	version.c \
84	vers_ts.c \
85	watch.c \
86	wrapper.c \
87	zlib.c \
88	buffer.h \
89	client.h \
90	cvs.h \
91	edit.h \
92	error.h \
93	fileattr.h \
94	hardlink.h \
95	hash.h \
96	history.h \
97	myndbm.h \
98	rcs.h \
99	root.h \
100	server.h \
101	stack.h \
102	update.h \
103	watch.h
104
105cvs_LDADD = \
106	../diff/libdiff.a \
107	../lib/libcvs.a \
108	../zlib/libz.a
109
110# extra clean targets
111# wish this could be distclean-hdr-local but it's not part of automake
112DISTCLEANFILES = check.log check.plog
113
114# General
115EXTRA_DIST = \
116	.cvsignore \
117	ChangeLog-9194 \
118	ChangeLog-9395 \
119	ChangeLog-96 \
120	ChangeLog-97 \
121	build_src.com \
122	sanity.sh
123
124check-local: localcheck remotecheck
125
126.PHONY: localcheck
127localcheck:
128	$(SHELL) $(srcdir)/sanity.sh `pwd`/cvs$(EXEEXT)
129
130.PHONY: remotecheck
131remotecheck: all
132	$(SHELL) $(srcdir)/sanity.sh -r `pwd`/cvs$(EXEEXT)
133
134## MAINTAINER Targets
135
136# for backwards compatibility with the old makefiles
137.PHONY: realclean
138realclean: maintainer-clean
139