summaryrefslogtreecommitdiffstats
path: root/gnu/usr.bin/cvs/lib/Makefile.in
blob: a8309f2fc00d8b41abda56716543fd112f1b8e4b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
# Makefile for library files used by GNU CVS.
# Do not use this makefile directly, but only from `../Makefile'.
# Copyright (C) 1986, 1988-1992 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.

# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.

# @(#)Makefile.in 1.12 92/03/31

SHELL = /bin/sh

srcdir = @srcdir@
@VPATH@

SOURCES = argmatch.c \
error.c getopt.c getopt1.c \
sighandle.c \
strippath.c stripslash.c yesno.c \
getdate.y \
hostname.c fnmatch.c ftruncate.c mkdir.c rename.c regex.c \
strdup.c getwd.c alloca.c

OBJECTS = argmatch.o \
error.o getopt.o getopt1.o \
sighandle.o \
strippath.o stripslash.o yesno.o \
getdate.o \
@LIBOBJS@

DISTFILES = Makefile.in getopt.h \
fnmatch.h regex.h system.h wait.h $(SOURCES)

xxx:
	@cd ..; $(MAKE) all SUBDIRS=lib

all: libcvs.a
.PHONY: all

install: all
.PHONY: install

tags: $(DISTFILES)
	ctags $(DISTFILES)

TAGS: $(DISTFILES)
	etags $(DISTFILES)

ls:
	@echo $(DISTFILES)
.PHONY: ls

clean:
	rm -f *.a *.o *.tab.c getdate.c
.PHONY: clean

distclean: clean
	rm -f tags TAGS Makefile
.PHONY: distclean

realclean: distclean
.PHONY: realclean

dist:
	ln $(DISTFILES) ../`cat ../.fname`/lib
.PHONY: dist

libcvs.a: $(OBJECTS)
	$(AR) cr $@ $(OBJECTS)
	-$(RANLIB) $@

getdate.c: getdate.y
	@echo expect 8 shift/reduce conflicts
	$(YACC) $(srcdir)/getdate.y
	-if test -f y.tab.c ; then mv y.tab.c getdate.c ; fi
	-if test -f getdate.tab.c ; then mv getdate.tab.c getdate.c ; fi

fnmatch.o: fnmatch.h
getopt1.o: getopt.h
regex.o: regex.h
getwd.o: system.h
OpenPOWER on IntegriCloud