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.
5 # This file is part of GNU SED.
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)
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.
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.
23 #### Start of system configuration section. ####
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).
41 CFLAGS = -I$(srcdir) $(DEFS)
46 # Where to install the executable.
47 bindir = $(prefix)/gnubin
49 #### End of system configuration section. ####
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)
59 $(CC) -o $@ $(LDFLAGS) $(OBJS) $(LIBS)
61 sed.o regex.o: regex.h
62 sed.o getopt1.o: getopt.h
65 $(INSTALL) sed $(bindir)
71 rm -f sed $(OBJS) core
74 rm -f TAGS Makefile config.status
79 echo sed-`sed -e '/version_string/!d' -e 's/[^0-9.]*\([0-9.]*\).*/\1/' -e q sed.c` > .fname
82 ln $(DISTFILES) `cat .fname`
83 tar chZf `cat .fname`.tar.Z `cat .fname`
84 rm -rf `cat .fname` .fname