Commit | Line | Data |
---|---|---|
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 | ||
22 | SHELL = /bin/sh | |
23 | ||
24 | srcdir = . | |
25 | ||
26 | ||
27 | SOURCES = add.c admin.c checkin.c checkout.c classify.c commit.c \ | |
28 | create_adm.c diff.c entries.c find_names.c hash.c history.c ignore.c \ | |
29 | import.c lock.c log.c logmsg.c main.c myndbm.c rcs.c modules.c \ | |
30 | no_diff.c parseinfo.c patch.c recurse.c release.c remove.c repos.c rtag.c \ | |
31 | status.c tag.c update.c vers_ts.c version.c subr.c | |
32 | MSOURCES = mkmodules.c | |
33 | ||
34 | OBJECTS = add.o admin.o checkin.o checkout.o classify.o commit.o \ | |
35 | create_adm.o diff.o entries.o find_names.o hash.o history.o ignore.o \ | |
36 | import.o lock.o log.o logmsg.o main.o myndbm.o rcs.o modules.o \ | |
37 | no_diff.o parseinfo.o patch.o recurse.o release.o remove.o repos.o rtag.o \ | |
38 | status.o tag.o update.o vers_ts.o | |
39 | MOBJECTS = hash.o mkmodules.o myndbm.o | |
40 | ||
41 | HEADERS = config.h cvs.h rcs.h hash.h myndbm.h patchlevel.h | |
42 | ||
43 | DISTFILES = Makefile.in $(HEADERS) $(SOURCES) $(MSOURCES) | |
44 | ||
45 | PROGS = cvs mkmodules | |
46 | ||
47 | xxx: | |
48 | @cd ..; $(MAKE) all SUBDIRS=src | |
49 | ||
50 | saber_cvs: | |
51 | @cd ..; $(MAKE) saber SUBDIRS=src | |
52 | ||
53 | lint: | |
54 | @cd ..; $(MAKE) lint SUBDIRS=src | |
55 | ||
56 | all: $(PROGS) | |
57 | .PHONY: all | |
58 | ||
59 | install: all | |
60 | @for prog in $(PROGS); do echo Installing $$prog in $(bindir); $(INSTALL) $$prog $(bindir); done | |
61 | .PHONY: install | |
62 | ||
63 | tags: $(DISTFILES) | |
64 | ctags $(DISTFILES) | |
65 | ||
66 | TAGS: $(DISTFILES) | |
67 | etags $(DISTFILES) | |
68 | ||
69 | ls: | |
70 | @echo $(DISTFILES) | |
71 | .PHONY: ls | |
72 | ||
73 | clean: | |
74 | /bin/rm -f $(PROGS) *.o core | |
75 | .PHONY: clean | |
76 | ||
77 | distclean: clean | |
78 | rm -f tags TAGS Makefile | |
79 | .PHONY: distclean | |
80 | ||
81 | realclean: distclean | |
82 | .PHONY: realclean | |
83 | ||
84 | dist: | |
85 | ln $(DISTFILES) ../`cat ../.fname`/src | |
86 | .PHONY: dist | |
87 | ||
88 | # Linking rules. | |
89 | ||
90 | $(PROGS): subr.o version.o ../lib/libcvs.a | |
91 | ||
92 | cvs: $(OBJECTS) | |
93 | $(CC) $(LDFLAGS) -o $@ $(OBJECTS) subr.o version.o ../lib/libcvs.a $(LIBS) | |
94 | ||
95 | xlint: $(SOURCES) | |
96 | sh -c "lint $(DEFS) $(INCLUDES) $(SOURCES) | grep -v \"possible pointer alignment problem\"" | |
97 | ||
98 | saber: $(SOURCES) | |
99 | # load $(CFLAGS) $(SOURCES) | |
100 | # load ../lib/libcvs.a $(LIBS) | |
101 | ||
102 | mkmodules: $(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) |