1# $MirOS: src/gnu/usr.bin/cvs/lib/Makefile.am,v 1.7 2011/06/11 03:58:06 tg Exp $ 2## Process this file with automake to produce Makefile.in 3# Makefile for library files used by GNU CVS. 4# 5# Copyright (C) 1986-2005 The Free Software Foundation, Inc. 6# 7# Portions Copyright (C) 1998-2005 Derek Price, Ximbiot <http://ximbiot.com>, 8# and others. 9 10# This program is free software; you can redistribute it and/or modify 11# it under the terms of the GNU General Public License as published by 12# the Free Software Foundation; either version 2, or (at your option) 13# any later version. 14 15# This program is distributed in the hope that it will be useful, 16# but WITHOUT ANY WARRANTY; without even the implied warranty of 17# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 18# GNU General Public License for more details. 19 20noinst_LIBRARIES = libcvs.a 21 22# Should look into unifying regular expression matching in CVS 23# with the diff library (perhaps to have the caller, CVS, do the 24# matching?) 25libcvs_a_SOURCES = \ 26 md5.c \ 27 sighandle.c \ 28 system.h \ 29 wait.h \ 30 xselect.h \ 31 xtime.h 32## Because @LIBOBJS@ is included below and AC_LIBOBJ is sometimes called on 33## these files from configure.in, automake automatically knows about many of 34## the *.c files in this directory. 35libcvs_a_LIBADD = \ 36 @LIBOBJS@ 37 38 39 40## Zero some variables so Automake will allow us to use += on them. 41BUILT_SOURCES = 42MOSTLYCLEANFILES = 43DISTCLEANFILES = 44MAINTAINERCLEANFILES = 45TESTS = 46check_PROGRAMS = 47 48EXTRA_DIST = \ 49 .cvsignore \ 50 ChangeLog.fsf \ 51 Makefile.gnulib \ 52 build_lib.com \ 53 libcvs.dep \ 54 libcvs.dsp \ 55 libcvs.mak \ 56 test-getdate.sh 57 58## begin gnulib module alloca 59 60 61libcvs_a_LIBADD += @ALLOCA@ 62## end gnulib module alloca 63 64## begin gnulib module alloca-opt 65 66BUILT_SOURCES += $(ALLOCA_H) 67EXTRA_DIST += alloca_.h 68 69# We need the following in order to create <alloca.h> when the system 70# doesn't have one that works with the given compiler. 71alloca.h: alloca_.h 72 cp $(srcdir)/alloca_.h $@-t 73 mv $@-t $@ 74MOSTLYCLEANFILES += alloca.h alloca.h-t 75 76## end gnulib module alloca-opt 77 78## begin gnulib module allocsa 79 80libcvs_a_SOURCES += allocsa.h allocsa.c 81EXTRA_DIST += allocsa.valgrind 82 83## end gnulib module allocsa 84 85## begin gnulib module cycle-check 86 87libcvs_a_SOURCES += cycle-check.c cycle-check.h dev-ino.h 88 89## end gnulib module cycle-check 90 91## begin gnulib module dirname 92 93libcvs_a_SOURCES += basename.c stripslash.c 94 95## end gnulib module dirname 96 97## For GNULIB's error module. 98## 99## This module isn't fully imported since GNULIB's error.c would conflict with 100## src/error.c (which knows how to send error messages over the network). We 101## don't compile error.c into libcvs on purpose. It can get compiled later as 102## part of the getdate test program, 103libcvs_a_SOURCES += error.h 104 105## begin gnulib module exit 106 107libcvs_a_SOURCES += exit.h 108 109## end gnulib module exit 110 111## begin gnulib module fnmatch 112 113BUILT_SOURCES += $(FNMATCH_H) 114EXTRA_DIST += fnmatch_.h fnmatch_loop.c 115 116# We need the following in order to create <fnmatch.h> when the system 117# doesn't have one that supports the required API. 118fnmatch.h: fnmatch_.h 119 cp $(srcdir)/fnmatch_.h $@-t 120 mv $@-t $@ 121MOSTLYCLEANFILES += fnmatch.h fnmatch.h-t 122 123## end gnulib module fnmatch 124 125## begin gnulib module getaddrinfo 126 127libcvs_a_SOURCES += getaddrinfo.h 128 129## end gnulib module getaddrinfo 130 131## begin gnulib module getdate 132 133## CVS test scripts for getdate. 134TESTS += test-getdate.sh 135MOSTLYCLEANFILES += getdate-expected getdate-got getdate.diff 136DISTCLEANFILES += getdate.log 137# Program required by test-getdate.sh for testing getdate.y. 138check_PROGRAMS += getdate 139getdate_SOURCES = \ 140 error.c \ 141 getdate.c 142## This source file was added only for the getdate test program when compiled 143## with GNULIB's error.c. 144getdate_SOURCES += \ 145 progname.c 146getdate_CPPFLAGS = -DTEST 147getdate_LDADD = \ 148 $(noinst_LIBRARIES) \ 149 $(LIB_CLOCK_GETTIME) \ 150 $(LIBINTL) 151 152BUILT_SOURCES += getdate.c 153MAINTAINERCLEANFILES += getdate.c 154EXTRA_DIST += getdate.c 155 156## end gnulib module getdate 157 158## begin gnulib module getndelim2 159 160EXTRA_DIST += getndelim2.h getndelim2.c 161 162## end gnulib module getndelim2 163 164## begin gnulib module getnline 165 166libcvs_a_SOURCES += getnline.h getnline.c 167 168## end gnulib module getnline 169 170## begin gnulib module gettext-h 171 172libcvs_a_SOURCES += gettext.h 173 174## end gnulib module gettext-h 175 176## begin gnulib module mbuiter 177 178libcvs_a_SOURCES += mbuiter.h 179 180## end gnulib module mbuiter 181 182libcvs_a_SOURCES += minmax.h 183 184## end gnulib module minmax 185 186## begin gnulib module setenv 187 188libcvs_a_SOURCES += setenv.h 189 190## end gnulib module setenv 191 192## begin gnulib module size_max 193 194libcvs_a_SOURCES += size_max.h 195 196## end gnulib module size_max 197 198## begin gnulib module stdbool 199 200BUILT_SOURCES += $(STDBOOL_H) 201EXTRA_DIST += stdbool_.h 202 203# We need the following in order to create <stdbool.h> when the system 204# doesn't have one that works. 205stdbool.h: stdbool_.h 206 sed -e 's/@''HAVE__BOOL''@/$(HAVE__BOOL)/g' \ 207 < $(srcdir)/stdbool_.h > $@-t 208 mv $@-t $@ 209MOSTLYCLEANFILES += stdbool.h stdbool.h-t 210 211## end gnulib module stdbool 212 213## begin gnulib module stdint 214 215BUILT_SOURCES += $(STDINT_H) 216EXTRA_DIST += stdint_.h 217 218# We need the following in order to create <stdint.h> when the system 219# doesn't have one that works with the given compiler. 220stdint.h: stdint_.h 221 sed -e 's/@''HAVE_LONG_64BIT''@/$(HAVE_LONG_64BIT)/g;s/@''HAVE_LONG_LONG_64BIT@/$(HAVE_LONG_LONG_64BIT)/g' < $(srcdir)/stdint_.h > $@-t 222 mv $@-t $@ 223MOSTLYCLEANFILES += stdint.h stdint.h-t 224 225## end gnulib module stdint 226 227## begin gnulib module strcase 228 229libcvs_a_SOURCES += strcase.h 230 231## end gnulib module strcase 232 233## begin gnulib module strnlen1 234 235libcvs_a_SOURCES += strnlen1.h strnlen1.c 236 237## end gnulib module strnlen1 238 239## begin gnulib module strstr 240 241libcvs_a_SOURCES += strstr.h 242 243## end gnulib module strstr 244 245## begin gnulib module time_r 246 247libcvs_a_SOURCES += time_r.h 248 249## end gnulib module time_r 250 251## begin gnulib module vasnprintf 252 253libcvs_a_SOURCES += printf-args.h printf-parse.h vasnprintf.h 254 255## end gnulib module vasnprintf 256 257## begin gnulib module vasprintf 258 259libcvs_a_SOURCES += vasprintf.h 260 261## end gnulib module vasprintf 262 263## begin gnulib module xalloc-die 264 265libcvs_a_SOURCES += xalloc-die.c 266 267## end gnulib module xalloc-die 268 269## begin gnulib module xgethostname 270 271libcvs_a_SOURCES += xgethostname.h xgethostname.c 272 273## end gnulib module xgethostname 274 275## begin gnulib module xreadlink 276 277libcvs_a_SOURCES += xreadlink.h xreadlink.c 278 279## end gnulib module xreadlink 280 281## begin gnulib module xsize 282 283libcvs_a_SOURCES += xsize.h 284 285## end gnulib module xsize 286 287# for backwards compatibility with the old makefiles 288realclean: maintainer-clean 289.PHONY: realclean 290