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 19noinst_LIBRARIES = libcvs.a 20 21# Should look into unifying regular expression matching in CVS 22# with the diff library (perhaps to have the caller, CVS, do the 23# matching?) 24libcvs_a_SOURCES = \ 25 sighandle.c \ 26 system.h \ 27 wait.h \ 28 xselect.h \ 29 xtime.h 30## Because @LIBOBJS@ is included below and AC_LIBOBJ is sometimes called on 31## these files from configure.in, automake automatically knows about many of 32## the *.c files in this directory. 33libcvs_a_LIBADD = \ 34 @LIBOBJS@ 35 36 37 38## Zero some variables so Automake will allow us to use += on them. 39BUILT_SOURCES = 40MOSTLYCLEANFILES = 41DISTCLEANFILES = 42MAINTAINERCLEANFILES = 43TESTS = 44check_PROGRAMS = 45 46EXTRA_DIST = \ 47 .cvsignore \ 48 ChangeLog.fsf \ 49 Makefile.gnulib \ 50 build_lib.com \ 51 libcvs.dep \ 52 libcvs.dsp \ 53 libcvs.mak \ 54 test-getdate.sh 55 56## begin gnulib module alloca 57 58 59libcvs_a_LIBADD += @ALLOCA@ 60## end gnulib module alloca 61 62## begin gnulib module alloca-opt 63 64BUILT_SOURCES += $(ALLOCA_H) 65EXTRA_DIST += alloca_.h 66 67# We need the following in order to create <alloca.h> when the system 68# doesn't have one that works with the given compiler. 69alloca.h: alloca_.h 70 cp $(srcdir)/alloca_.h $@-t 71 mv $@-t $@ 72MOSTLYCLEANFILES += alloca.h alloca.h-t 73 74## end gnulib module alloca-opt 75 76## begin gnulib module allocsa 77 78libcvs_a_SOURCES += allocsa.h allocsa.c 79EXTRA_DIST += allocsa.valgrind 80 81## end gnulib module allocsa 82 83## begin gnulib module cycle-check 84 85libcvs_a_SOURCES += cycle-check.c cycle-check.h dev-ino.h 86 87## end gnulib module cycle-check 88 89## begin gnulib module dirname 90 91libcvs_a_SOURCES += basename.c stripslash.c 92 93## end gnulib module dirname 94 95## For GNULIB's error module. 96## 97## This module isn't fully imported since GNULIB's error.c would conflict with 98## src/error.c (which knows how to send error messages over the network). We 99## don't compile error.c into libcvs on purpose. It can get compiled later as 100## part of the getdate test program, 101libcvs_a_SOURCES += error.h 102 103## begin gnulib module exit 104 105libcvs_a_SOURCES += exit.h 106 107## end gnulib module exit 108 109## begin gnulib module fnmatch 110 111BUILT_SOURCES += $(FNMATCH_H) 112EXTRA_DIST += fnmatch_.h fnmatch_loop.c 113 114# We need the following in order to create <fnmatch.h> when the system 115# doesn't have one that supports the required API. 116fnmatch.h: fnmatch_.h 117 cp $(srcdir)/fnmatch_.h $@-t 118 mv $@-t $@ 119MOSTLYCLEANFILES += fnmatch.h fnmatch.h-t 120 121## end gnulib module fnmatch 122 123## begin gnulib module getaddrinfo 124 125libcvs_a_SOURCES += getaddrinfo.h 126 127## end gnulib module getaddrinfo 128 129## begin gnulib module getdate 130 131## CVS test scripts for getdate. 132TESTS += test-getdate.sh 133MOSTLYCLEANFILES += getdate-expected getdate-got getdate.diff 134DISTCLEANFILES += getdate.log 135# Program required by test-getdate.sh for testing getdate.y. 136check_PROGRAMS += getdate 137getdate_SOURCES = \ 138 error.c \ 139 getdate.y 140## This source file was added only for the getdate test program when compiled 141## with GNULIB's error.c. 142getdate_SOURCES += \ 143 progname.c 144getdate_CPPFLAGS = -DTEST 145getdate_LDADD = \ 146 $(noinst_LIBRARIES) \ 147 $(LIB_CLOCK_GETTIME) \ 148 $(LIBINTL) 149 150BUILT_SOURCES += getdate.c 151MAINTAINERCLEANFILES += getdate.c 152EXTRA_DIST += getdate.c 153 154## end gnulib module getdate 155 156## begin gnulib module getndelim2 157 158EXTRA_DIST += getndelim2.h getndelim2.c 159 160## end gnulib module getndelim2 161 162## begin gnulib module getnline 163 164libcvs_a_SOURCES += getnline.h getnline.c 165 166## end gnulib module getnline 167 168## begin gnulib module getopt 169 170BUILT_SOURCES += $(GETOPT_H) 171EXTRA_DIST += getopt_.h getopt_int.h 172 173# We need the following in order to create <getopt.h> when the system 174# doesn't have one that works with the given compiler. 175getopt.h: getopt_.h 176 cp $(srcdir)/getopt_.h $@-t 177 mv $@-t $@ 178MOSTLYCLEANFILES += getopt.h getopt.h-t 179 180## end gnulib module getopt 181 182## begin gnulib module gettext-h 183 184libcvs_a_SOURCES += gettext.h 185 186## end gnulib module gettext-h 187 188## begin gnulib module glob 189 190BUILT_SOURCES += $(GLOB_H) 191 192# We need the following in order to create an <getopt.h> when the system 193# doesn't have one that works with the given compiler. 194all-local $(libcvs_a_OBJECTS): $(GLOB_H) 195glob.h: glob_.h 196 cp $(srcdir)/glob_.h $@-t 197 mv $@-t $@ 198MOSTLYCLEANFILES += glob.h glob.h-t 199 200## end gnulib module glob.c 201 202## begin gnulib module mbuiter 203 204libcvs_a_SOURCES += mbuiter.h 205 206## end gnulib module mbuiter 207 208## begin gnulib module minmax 209 210libcvs_a_SOURCES += minmax.h 211 212## end gnulib module minmax 213 214## begin gnulib module setenv 215 216libcvs_a_SOURCES += setenv.h 217 218## end gnulib module setenv 219 220## begin gnulib module size_max 221 222libcvs_a_SOURCES += size_max.h 223 224## end gnulib module size_max 225 226## begin gnulib module stdbool 227 228BUILT_SOURCES += $(STDBOOL_H) 229EXTRA_DIST += stdbool_.h 230 231# We need the following in order to create <stdbool.h> when the system 232# doesn't have one that works. 233stdbool.h: stdbool_.h 234 sed -e 's/@''HAVE__BOOL''@/$(HAVE__BOOL)/g' \ 235 < $(srcdir)/stdbool_.h > $@-t 236 mv $@-t $@ 237MOSTLYCLEANFILES += stdbool.h stdbool.h-t 238 239## end gnulib module stdbool 240 241## begin gnulib module stdint 242 243BUILT_SOURCES += $(STDINT_H) 244EXTRA_DIST += stdint_.h 245 246# We need the following in order to create <stdint.h> when the system 247# doesn't have one that works with the given compiler. 248stdint.h: stdint_.h 249 sed -e 's/@''HAVE_LONG_64BIT''@/$(HAVE_LONG_64BIT)/g;s/@''HAVE_LONG_LONG_64BIT@/$(HAVE_LONG_LONG_64BIT)/g' < $(srcdir)/stdint_.h > $@-t 250 mv $@-t $@ 251MOSTLYCLEANFILES += stdint.h stdint.h-t 252 253## end gnulib module stdint 254 255## begin gnulib module strcase 256 257libcvs_a_SOURCES += strcase.h 258 259## end gnulib module strcase 260 261## begin gnulib module strnlen1 262 263libcvs_a_SOURCES += strnlen1.h strnlen1.c 264 265## end gnulib module strnlen1 266 267## begin gnulib module strstr 268 269libcvs_a_SOURCES += strstr.h 270 271## end gnulib module strstr 272 273## begin gnulib module time_r 274 275libcvs_a_SOURCES += time_r.h 276 277## end gnulib module time_r 278 279## begin gnulib module vasnprintf 280 281libcvs_a_SOURCES += printf-args.h printf-parse.h vasnprintf.h 282 283## end gnulib module vasnprintf 284 285## begin gnulib module vasprintf 286 287libcvs_a_SOURCES += vasprintf.h 288 289## end gnulib module vasprintf 290 291## begin gnulib module xalloc-die 292 293libcvs_a_SOURCES += xalloc-die.c 294 295## end gnulib module xalloc-die 296 297## begin gnulib module xgethostname 298 299libcvs_a_SOURCES += xgethostname.h xgethostname.c 300 301## end gnulib module xgethostname 302 303## begin gnulib module xreadlink 304 305libcvs_a_SOURCES += xreadlink.h xreadlink.c 306 307## end gnulib module xreadlink 308 309## begin gnulib module xsize 310 311libcvs_a_SOURCES += xsize.h 312 313## end gnulib module xsize 314 315# Until Automake gets its act together 316distclean-local: 317 rm -f fnmatch.h 318 319# for backwards compatibility with the old makefiles 320realclean: maintainer-clean 321.PHONY: realclean 322