Makefile.am revision 128266
1## Process this file with automake to produce Makefile.in
2# Makefile for GNU CVS program.
3# Copyright (C) 1986, 1987, 1988, 1989, 1990, 1991, 1992, 1993, 1994,
4#               1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003
5#               Free Software Foundation, Inc.
6
7# This program is free software; you can redistribute it and/or modify
8# it under the terms of the GNU General Public License as published by
9# the Free Software Foundation; either version 2, or (at your option)
10# any later version.
11
12# This program is distributed in the hope that it will be useful,
13# but WITHOUT ANY WARRANTY; without even the implied warranty of
14# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15# GNU General Public License for more details.
16
17SHELL = /bin/sh
18
19# $(includeopt) is CVS specific and set by configure
20# FIXME - This includes line is dependant on its order.  This means there is
21# some namespace hackery going on that maybe shouldn't be.  Long term fix is to
22# try and remove naming ocnflicts and fix Automake to allow particular includes
23# to be attached only to particular object files.  Short term fix is either or.
24##INCLUDES = -I. -I.. -I$(srcdir) -I$(top_srcdir)/lib
25INCLUDES = -I$(top_srcdir)/lib -I$(top_srcdir)/diff -I$(top_srcdir)/zlib $(includeopt)
26
27bin_PROGRAMS = cvs
28bin_SCRIPTS = cvsbug
29
30# The cvs executable
31cvs_SOURCES = \
32	add.c \
33	admin.c \
34	annotate.c \
35	buffer.c \
36	checkin.c \
37	checkout.c \
38	classify.c \
39	client.c \
40	commit.c \
41	create_adm.c \
42	cvsrc.c diff.c \
43	edit.c \
44	entries.c \
45	error.c \
46	expand_path.c \
47	fileattr.c \
48	filesubr.c \
49	find_names.c \
50	hardlink.c \
51	hash.c \
52	history.c \
53	ignore.c \
54	import.c \
55	lock.c \
56	log.c \
57	login.c \
58	logmsg.c \
59	main.c \
60	mkmodules.c \
61	modules.c \
62	myndbm.c \
63	no_diff.c \
64	parseinfo.c \
65	patch.c \
66	rcs.c \
67	rcscmds.c \
68	recurse.c \
69	release.c \
70	remove.c \
71	repos.c \
72	root.c \
73	run.c \
74	scramble.c \
75	server.c \
76	stack.c \
77	status.c \
78	subr.c \
79	tag.c \
80	update.c \
81	version.c \
82	vers_ts.c \
83	watch.c \
84	wrapper.c \
85	zlib.c \
86	buffer.h \
87	client.h \
88	cvs.h \
89	edit.h \
90	error.h \
91	fileattr.h \
92	hardlink.h \
93	hash.h \
94	history.h \
95	myndbm.h \
96	rcs.h \
97	root.h \
98	server.h \
99	stack.h \
100	update.h \
101	watch.h
102
103cvs_LDADD = \
104	../diff/libdiff.a \
105	../lib/libcvs.a \
106	../zlib/libz.a
107
108# extra clean targets
109# wish this could be distclean-hdr-local but it's not part of automake
110DISTCLEANFILES = check.log check.plog
111
112# General
113EXTRA_DIST = \
114	.cvsignore \
115	ChangeLog-9194 \
116	ChangeLog-9395 \
117	ChangeLog-96 \
118	ChangeLog-97 \
119	build_src.com \
120	sanity.sh
121
122check-local: localcheck remotecheck
123
124.PHONY: localcheck
125localcheck:
126	$(SHELL) $(srcdir)/sanity.sh `pwd`/cvs$(EXEEXT)
127
128.PHONY: remotecheck
129remotecheck: all
130	$(SHELL) $(srcdir)/sanity.sh -r `pwd`/cvs$(EXEEXT)
131
132## MAINTAINER Targets
133
134# for backwards compatibility with the old makefiles
135.PHONY: realclean
136realclean: maintainer-clean
137