386BSD 0.1 development
[unix-history] / usr / othersrc / public / cvs-1.3 / src / Makefile
CommitLineData
e22ed7c8
WJ
1# Generated automatically from Makefile.in by configure.
2# Makefile for GNU CVS program.
3# Do not use this makefile directly, but only from `../Makefile'.
4# Copyright (C) 1986, 1988-1990 Free Software Foundation, Inc.
5
6# This program is free software; you can redistribute it and/or modify
7# it under the terms of the GNU General Public License as published by
8# the Free Software Foundation; either version 2, or (at your option)
9# any later version.
10
11# This program is distributed in the hope that it will be useful,
12# but WITHOUT ANY WARRANTY; without even the implied warranty of
13# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14# GNU General Public License for more details.
15
16# You should have received a copy of the GNU General Public License
17# along with this program; if not, write to the Free Software
18# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
19
20# @(#)Makefile.in 1.10 92/03/16
21
22SHELL = /bin/sh
23
24srcdir = .
25
26
27SOURCES = add.c admin.c checkin.c checkout.c classify.c commit.c \
28create_adm.c diff.c entries.c find_names.c hash.c history.c ignore.c \
29import.c lock.c log.c logmsg.c main.c myndbm.c rcs.c modules.c \
30no_diff.c parseinfo.c patch.c recurse.c release.c remove.c repos.c rtag.c \
31status.c tag.c update.c vers_ts.c version.c subr.c
32MSOURCES = mkmodules.c
33
34OBJECTS = add.o admin.o checkin.o checkout.o classify.o commit.o \
35create_adm.o diff.o entries.o find_names.o hash.o history.o ignore.o \
36import.o lock.o log.o logmsg.o main.o myndbm.o rcs.o modules.o \
37no_diff.o parseinfo.o patch.o recurse.o release.o remove.o repos.o rtag.o \
38status.o tag.o update.o vers_ts.o
39MOBJECTS = hash.o mkmodules.o myndbm.o
40
41HEADERS = config.h cvs.h rcs.h hash.h myndbm.h patchlevel.h
42
43DISTFILES = Makefile.in $(HEADERS) $(SOURCES) $(MSOURCES)
44
45PROGS = cvs mkmodules
46
47xxx:
48 @cd ..; $(MAKE) all SUBDIRS=src
49
50saber_cvs:
51 @cd ..; $(MAKE) saber SUBDIRS=src
52
53lint:
54 @cd ..; $(MAKE) lint SUBDIRS=src
55
56all: $(PROGS)
57.PHONY: all
58
59install: all
60 @for prog in $(PROGS); do echo Installing $$prog in $(bindir); $(INSTALL) $$prog $(bindir); done
61.PHONY: install
62
63tags: $(DISTFILES)
64 ctags $(DISTFILES)
65
66TAGS: $(DISTFILES)
67 etags $(DISTFILES)
68
69ls:
70 @echo $(DISTFILES)
71.PHONY: ls
72
73clean:
74 /bin/rm -f $(PROGS) *.o core
75.PHONY: clean
76
77distclean: clean
78 rm -f tags TAGS Makefile
79.PHONY: distclean
80
81realclean: distclean
82.PHONY: realclean
83
84dist:
85 ln $(DISTFILES) ../`cat ../.fname`/src
86.PHONY: dist
87
88# Linking rules.
89
90$(PROGS): subr.o version.o ../lib/libcvs.a
91
92cvs: $(OBJECTS)
93 $(CC) $(LDFLAGS) -o $@ $(OBJECTS) subr.o version.o ../lib/libcvs.a $(LIBS)
94
95xlint: $(SOURCES)
96 sh -c "lint $(DEFS) $(INCLUDES) $(SOURCES) | grep -v \"possible pointer alignment problem\""
97
98saber: $(SOURCES)
99 # load $(CFLAGS) $(SOURCES)
100 # load ../lib/libcvs.a $(LIBS)
101
102mkmodules: $(MOBJECTS)
103 $(CC) $(LDFLAGS) -o $@ $(MOBJECTS) subr.o version.o ../lib/libcvs.a $(LIBS)
104
105# Compilation rules.
106
107$(OBJECTS) mkmodules.o subr.o: $(HEADERS)