1996-08-20 23:46:10 +00:00
|
|
|
# Makefile for library files used by GNU CVS.
|
|
|
|
# Do not use this makefile directly, but only from `../Makefile'.
|
|
|
|
# Copyright (C) 1986, 1988-1994 Free Software Foundation, Inc.
|
|
|
|
|
|
|
|
# This program is free software; you can redistribute it and/or modify
|
|
|
|
# it under the terms of the GNU General Public License as published by
|
|
|
|
# the Free Software Foundation; either version 2, or (at your option)
|
|
|
|
# any later version.
|
|
|
|
|
|
|
|
# This program is distributed in the hope that it will be useful,
|
|
|
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
# GNU General Public License for more details.
|
|
|
|
|
|
|
|
srcdir = @srcdir@
|
|
|
|
top_srcdir = @top_srcdir@
|
|
|
|
cvs_srcdir = @top_srcdir@/src
|
|
|
|
VPATH = @srcdir@
|
|
|
|
|
|
|
|
SHELL = /bin/sh
|
|
|
|
|
|
|
|
prefix = @prefix@
|
|
|
|
exec_prefix = @exec_prefix@
|
|
|
|
|
|
|
|
SOURCES = \
|
|
|
|
argmatch.c \
|
|
|
|
dup2.c \
|
1998-01-26 03:09:57 +00:00
|
|
|
fncase.c \
|
1996-08-20 23:46:10 +00:00
|
|
|
fnmatch.c \
|
|
|
|
ftruncate.c \
|
|
|
|
getdate.c \
|
|
|
|
getdate.y \
|
1997-05-15 22:46:24 +00:00
|
|
|
getline.c \
|
1996-08-20 23:46:10 +00:00
|
|
|
getopt.c \
|
|
|
|
getopt1.c \
|
|
|
|
hostname.c \
|
|
|
|
md5.c \
|
|
|
|
mkdir.c \
|
|
|
|
regex.c \
|
|
|
|
rename.c \
|
|
|
|
savecwd.c \
|
|
|
|
sighandle.c \
|
|
|
|
strstr.c \
|
|
|
|
strerror.c \
|
|
|
|
stripslash.c \
|
|
|
|
strtoul.c \
|
|
|
|
valloc.c \
|
|
|
|
vasprintf.c \
|
|
|
|
waitpid.c \
|
|
|
|
xgetwd.c \
|
|
|
|
yesno.c
|
|
|
|
|
|
|
|
HEADERS = getline.h getopt.h fnmatch.h regex.h system.h wait.h md5.h savecwd.h
|
|
|
|
|
1998-01-26 03:09:57 +00:00
|
|
|
# See long comment in ../configure.in concerning inclusion of regex.o.
|
1996-08-20 23:46:10 +00:00
|
|
|
OBJECTS = \
|
|
|
|
@LIBOBJS@ \
|
|
|
|
argmatch.o \
|
|
|
|
getline.o \
|
|
|
|
getopt.o \
|
|
|
|
getopt1.o \
|
|
|
|
md5.o \
|
1998-01-26 03:09:57 +00:00
|
|
|
regex.o \
|
1996-08-20 23:46:10 +00:00
|
|
|
savecwd.o \
|
|
|
|
sighandle.o \
|
|
|
|
stripslash.o \
|
|
|
|
xgetwd.o \
|
|
|
|
yesno.o \
|
|
|
|
getdate.o
|
|
|
|
|
|
|
|
DISTFILES = \
|
|
|
|
.cvsignore ChangeLog ChangeLog.fsf Makefile.in \
|
1997-05-15 22:46:24 +00:00
|
|
|
${SOURCES} ${HEADERS} build_lib.com
|
1996-08-20 23:46:10 +00:00
|
|
|
|
|
|
|
DEFS = @DEFS@
|
|
|
|
RANLIB = @RANLIB@
|
|
|
|
|
|
|
|
CC = @CC@
|
|
|
|
CFLAGS = -g
|
|
|
|
CPPFLAGS=
|
|
|
|
|
|
|
|
YACC = @YACC@
|
|
|
|
|
|
|
|
.c.o:
|
|
|
|
$(CC) $(CPPFLAGS) -I.. -I$(srcdir) -I$(cvs_srcdir) \
|
|
|
|
$(DEFS) $(CFLAGS) -c $<
|
|
|
|
|
|
|
|
all: libcvs.a
|
|
|
|
.PHONY: all
|
|
|
|
|
|
|
|
install: all
|
|
|
|
.PHONY: install
|
|
|
|
|
1997-05-15 22:46:24 +00:00
|
|
|
installdirs:
|
|
|
|
.PHONY: installdirs
|
|
|
|
|
1996-08-20 23:46:10 +00:00
|
|
|
tags: $(DISTFILES)
|
|
|
|
ctags `for i in $(DISTFILES); do echo $(srcdir)/$$i; done`
|
|
|
|
|
|
|
|
TAGS: $(DISTFILES)
|
|
|
|
etags `for i in $(DISTFILES); do echo $(srcdir)/$$i; done`
|
|
|
|
|
|
|
|
ls:
|
|
|
|
@echo $(DISTFILES)
|
|
|
|
.PHONY: ls
|
|
|
|
|
|
|
|
clean:
|
|
|
|
rm -f *.a *.o
|
|
|
|
.PHONY: clean
|
|
|
|
|
|
|
|
distclean: clean
|
|
|
|
rm -f tags TAGS Makefile
|
|
|
|
.PHONY: distclean
|
|
|
|
|
|
|
|
realclean: distclean
|
|
|
|
rm -f *.tab.c getdate.c
|
|
|
|
.PHONY: realclean
|
|
|
|
|
|
|
|
dist-dir:
|
|
|
|
mkdir ${DISTDIR}
|
|
|
|
for i in ${DISTFILES}; do \
|
|
|
|
ln $(srcdir)/$${i} ${DISTDIR}; \
|
|
|
|
done
|
|
|
|
.PHONY: dist-dir
|
|
|
|
|
|
|
|
libcvs.a: $(OBJECTS)
|
|
|
|
$(AR) cr $@ $(OBJECTS)
|
|
|
|
-$(RANLIB) $@
|
|
|
|
|
|
|
|
getdate.c: getdate.y
|
|
|
|
@echo expect 10 shift/reduce conflicts
|
|
|
|
$(YACC) $(srcdir)/getdate.y
|
|
|
|
-@if test -f y.tab.c; then \
|
|
|
|
mv y.tab.c getdate.c ;\
|
|
|
|
else \
|
|
|
|
if test -f getdate.tab.c ; then \
|
|
|
|
mv getdate.tab.c getdate.c ; \
|
|
|
|
else \
|
|
|
|
echo '*** Unable to create getdate.c' ;\
|
|
|
|
fi ;\
|
|
|
|
fi
|
|
|
|
|
|
|
|
fnmatch.o: fnmatch.h
|
|
|
|
getopt1.o: getopt.h
|
|
|
|
regex.o: regex.h
|
|
|
|
md5.o: md5.h
|
|
|
|
|
|
|
|
xlint:
|
|
|
|
@echo xlint does nothing
|
|
|
|
|
|
|
|
subdir = lib
|
|
|
|
Makefile: ../config.status Makefile.in
|
|
|
|
cd .. && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= ./config.status
|
|
|
|
|
|
|
|
#../config.status: ../configure
|
|
|
|
# cd .. ; $(SHELL) config.status --recheck
|
|
|
|
|
|
|
|
#../configure: ../configure.in
|
|
|
|
# cd $(top_srcdir) ; autoconf
|