Add diclaimer of copyright to _osname() manual page.
[unix-history] / usr.bin / sed / Makefile.gnu
CommitLineData
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
21SHELL = /bin/sh
22
23#### Start of system configuration section. ####
24
25srcdir = .
26
27
28CC = gcc -O
29INSTALL = 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
38DEFS =
39LIBS =
40
41CFLAGS = -I$(srcdir) $(DEFS)
42LDFLAGS =
43
44prefix = /usr/local
45
46# Where to install the executable.
47bindir = $(prefix)/gnubin
48
49#### End of system configuration section. ####
50
51OBJS = sed.o utils.o regex.o getopt.o getopt1.o
52SRCS = sed.c utils.c regex.c getopt.c getopt1.c
53DISTFILES = COPYING ChangeLog README Makefile.in configure \
54regex.h getopt.h $(SRCS)
55
56all: sed
57
58sed: $(OBJS)
59 $(CC) -o $@ $(LDFLAGS) $(OBJS) $(LIBS)
60
61sed.o regex.o: regex.h
62sed.o getopt1.o: getopt.h
63
64install: all
65 $(INSTALL) sed $(bindir)
66
67TAGS: $(SRCS)
68 etags $(SRCS)
69
70clean:
71 rm -f sed $(OBJS) core
72
73distclean: clean
74 rm -f TAGS Makefile config.status
75
76realclean: distclean
77
78dist: $(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