Commit | Line | Data |
---|---|---|
15637ed4 RG |
1 | # Generated automatically from Makefile.in by configure. |
2 | # Makefile for GNU SED, a batch editor. | |
3 | # Copyright (C) 1987-1991 Free Software Foundation, Inc. | |
4 | # | |
5 | # This file is part of GNU SED. | |
6 | # | |
7 | # GNU SED is free software; you can redistribute it and/or modify | |
8 | # it under the terms of the GNU General Public License as published by | |
9 | # the Free Software Foundation; either version 2, or (at your option) | |
10 | # any later version. | |
11 | # | |
12 | # GNU SED is distributed in the hope that it will be useful, | |
13 | # but WITHOUT ANY WARRANTY; without even the implied warranty of | |
14 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
15 | # GNU General Public License for more details. | |
16 | # | |
17 | # You should have received a copy of the GNU General Public License | |
18 | # along with GNU SED; see the file COPYING. If not, write to | |
19 | # the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. | |
20 | ||
21 | SHELL = /bin/sh | |
22 | ||
23 | #### Start of system configuration section. #### | |
24 | ||
25 | srcdir = . | |
26 | ||
27 | ||
28 | CC = gcc -O | |
29 | INSTALL = install -c | |
30 | ||
31 | # Things you might add to DEFS: | |
32 | # -DSTDC_HEADERS If you have ANSI C headers and libraries. | |
33 | # -DUSG If you have System V/ANSI C string | |
34 | # and memory functions and headers. | |
35 | # -DCHAR_UNSIGNED If type `char' is unsigned. | |
36 | # -DNO_VFPRINTF If you lack vprintf function (but have _doprnt). | |
37 | ||
38 | DEFS = | |
39 | LIBS = | |
40 | ||
41 | CFLAGS = -I$(srcdir) $(DEFS) | |
42 | LDFLAGS = | |
43 | ||
44 | prefix = /usr/local | |
45 | ||
46 | # Where to install the executable. | |
47 | bindir = $(prefix)/gnubin | |
48 | ||
49 | #### End of system configuration section. #### | |
50 | ||
51 | OBJS = sed.o utils.o regex.o getopt.o getopt1.o | |
52 | SRCS = sed.c utils.c regex.c getopt.c getopt1.c | |
53 | DISTFILES = COPYING ChangeLog README Makefile.in configure \ | |
54 | regex.h getopt.h $(SRCS) | |
55 | ||
56 | all: sed | |
57 | ||
58 | sed: $(OBJS) | |
59 | $(CC) -o $@ $(LDFLAGS) $(OBJS) $(LIBS) | |
60 | ||
61 | sed.o regex.o: regex.h | |
62 | sed.o getopt1.o: getopt.h | |
63 | ||
64 | install: all | |
65 | $(INSTALL) sed $(bindir) | |
66 | ||
67 | TAGS: $(SRCS) | |
68 | etags $(SRCS) | |
69 | ||
70 | clean: | |
71 | rm -f sed $(OBJS) core | |
72 | ||
73 | distclean: clean | |
74 | rm -f TAGS Makefile config.status | |
75 | ||
76 | realclean: distclean | |
77 | ||
78 | dist: $(DISTFILES) | |
79 | echo sed-`sed -e '/version_string/!d' -e 's/[^0-9.]*\([0-9.]*\).*/\1/' -e q sed.c` > .fname | |
80 | rm -rf `cat .fname` | |
81 | mkdir `cat .fname` | |
82 | ln $(DISTFILES) `cat .fname` | |
83 | tar chZf `cat .fname`.tar.Z `cat .fname` | |
84 | rm -rf `cat .fname` .fname |