xref: /openbsd-src/gnu/usr.bin/cvs/lib/Makefile.am (revision 3c31146c4bbd9cf3f328c7498f70d6a199773870)
1*43c1707eStholo## Process this file with automake to produce Makefile.in
2*43c1707eStholo# Makefile for library files used by GNU CVS.
3*43c1707eStholo# Copyright (C) 1986, 1988-1994, 2000 Free Software Foundation, Inc.
4*43c1707eStholo
5*43c1707eStholo# This program is free software; you can redistribute it and/or modify
6*43c1707eStholo# it under the terms of the GNU General Public License as published by
7*43c1707eStholo# the Free Software Foundation; either version 2, or (at your option)
8*43c1707eStholo# any later version.
9*43c1707eStholo
10*43c1707eStholo# This program is distributed in the hope that it will be useful,
11*43c1707eStholo# but WITHOUT ANY WARRANTY; without even the implied warranty of
12*43c1707eStholo# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13*43c1707eStholo# GNU General Public License for more details.
14*43c1707eStholo
15*43c1707eStholo# For now we need to include $(top_srcdir)/src because some systems
16*43c1707eStholo# (at least 'AIX rioscpu2 3 4 000030498200',
17*43c1707eStholo# 'HP-UX hp60 B.10.20 A 9000/770 hp60 two-user license', &
18*43c1707eStholo# 'IRIX64 sgiop110 6.5 07151433 IP30') have trouble finding error.h
19*43c1707eStholo# when compiling savecwd.c
20*43c1707eStholo#
21*43c1707eStholo# FIXME - the fact that compiling on my Linux 2.2.16 system finds
22*43c1707eStholo# /usr/include/error.h instead of $(top_srcdir)/src/error.h but
23*43c1707eStholo# everything compiles and tests anyhow implies that src/error.h may
24*43c1707eStholo# be unecessary now.  Should look more deeply into this
25*43c1707eStholo#
26*43c1707eStholo# $(includeopt) is CVS specific and set by configure
27*43c1707eStholoINCLUDES = -I$(top_srcdir)/src $(includeopt)
28*43c1707eStholo
29*43c1707eStholonoinst_LIBRARIES = libcvs.a
30*43c1707eStholo
31*43c1707eStholo# Always use CVS's regular expression matcher regex.o, because of
32*43c1707eStholo# variations in regular expression syntax - we want to be the same
33*43c1707eStholo# across systems and (probably) compared with old versions of CVS too.
34*43c1707eStholo#
35*43c1707eStholo# On a more mundane/detail level, having regex.h match regex.c can be
36*43c1707eStholo# an issue if we aren't careful.
37*43c1707eStholo#
38*43c1707eStholo# Also should look into unifying regular expression matching in CVS
39*43c1707eStholo# with the diff library (perhaps to have the caller, CVS, do the
40*43c1707eStholo# matching?)
41*43c1707eSthololibcvs_a_SOURCES = \
42*43c1707eStholo	argmatch.c \
43*43c1707eStholo	ftruncate.c \
44*43c1707eStholo	getdate.y \
45*43c1707eStholo	getline.c \
46*43c1707eStholo	md5.c \
47*43c1707eStholo	regex.c \
48*43c1707eStholo	savecwd.c \
49*43c1707eStholo	sighandle.c \
50*43c1707eStholo	stripslash.c \
51*43c1707eStholo	xgetwd.c \
52*43c1707eStholo	yesno.c \
53*43c1707eStholo	getline.h \
54*43c1707eStholo	fnmatch.h \
55*43c1707eStholo	md5.h \
56*43c1707eStholo	regex.h \
57*43c1707eStholo	savecwd.h \
58*43c1707eStholo	system.h \
59*43c1707eStholo	wait.h \
60*43c1707eStholo	xselect.h \
61*43c1707eStholo	xtime.h
62*43c1707eStholo## because @LIBOBJS@ is included below, automake automatically knows about
63*43c1707eStholo##     dup2.c
64*43c1707eStholo##     fncase.c
65*43c1707eStholo##     fnmatch.c
66*43c1707eStholo##     hostname.c
67*43c1707eStholo##     memmove.c
68*43c1707eStholo##     mkdir.c
69*43c1707eStholo##     rename.c
70*43c1707eStholo##     strstr.c
71*43c1707eStholo##     strerror.c
72*43c1707eStholo##     strtoul.c
73*43c1707eStholo##     valloc.c
74*43c1707eStholo##     waitpid.c
75*43c1707eSthololibcvs_a_LIBADD = @LIBOBJS@
76*43c1707eStholo
77*43c1707eStholoEXTRA_DIST = \
78*43c1707eStholo	.cvsignore \
79*43c1707eStholo	ChangeLog.fsf \
80*43c1707eStholo	build_lib.com \
81*43c1707eStholo	xgssapi.h
82*43c1707eStholo
83*43c1707eStholo# for backwards compatibility with the old makefiles
84*43c1707eStholorealclean: maintainer-clean
85*43c1707eStholo.PHONY: realclean
86