diff options
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 72 |
1 files changed, 43 insertions, 29 deletions
@@ -1,24 +1,25 @@ # Makefile for GNU Awk. # -# Copyright (C) 1988 Free Software Foundation -# Rewritten by Arnold Robbins, September 1988 -# -# GAWK is distributed in the hope that it will be useful, but WITHOUT ANY -# WARRANTY. No author or distributor accepts responsibility to anyone for -# the consequences of using it or for whether it serves any particular -# purpose or works at all, unless he says so in writing. Refer to the GAWK -# General Public License for full details. -# -# Everyone is granted permission to copy, modify and redistribute GAWK, but -# only under the conditions described in the GAWK General Public License. A -# copy of this license is supposed to have been given to you along with GAWK -# so you can know your rights and responsibilities. It should be in a file -# named COPYING. Among other things, the copyright notice and this notice -# must be preserved on all copies. -# -# In other words, go ahead and share GAWK, but don't try to stop anyone else -# from sharing it farther. Help stamp out software hoarding! +# Rewritten by Arnold Robbins, September 1988, March 1989. # +# Copyright (C) 1986, 1988, 1989 the Free Software Foundation, Inc. +# +# This file is part of GAWK, the GNU implementation of the +# AWK Progamming Language. +# +# GAWK is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 1, or (at your option) +# any later version. +# +# GAWK is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with GAWK; see the file COPYING. If not, write to +# the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. # CFLAGS: options to the C compiler # @@ -48,10 +49,12 @@ CFLAGS= $(FLAGS) $(DEBUGGER) $(PROFILE) LDFLAGS= #-Bstatic SRC = awk1.c awk2.c awk3.c awk4.c awk5.c \ - awk6.c awk7.c awk8.c awk9.c regex.c version.c do_free.c awka.c + awk6.c awk7.c awk8.c awk9.c version.c do_free.c awka.c + +PCSTUFF= makefile.pc names.lnk random.c AWKOBJS = awk1.o awk2.o awk3.o awk4.o awk5.o awk6.o awk7.o awk8.o awk9.o \ - version.o do_free.o awka.o + version.o awka.o # do_free.o # used for MEMDEBUG ALLOBJS = $(AWKOBJS) awk.tab.o # Parser to use on grammar -- if you don't have bison use the first one @@ -66,26 +69,31 @@ S5OBJS= # GETOPT # Set equal to getopt.o if you have a generic BSD system. The # generic BSD getopt is reported to not work with gawk. The -# gnu getopt is supplied in getopt.c +# gnu getopt is supplied in gnu.getopt.c. The Public Domain +# getopt from AT&T is in att.getopt.c. Choose one of these, +# and rename it getopt.c. GETOPT= # LIBOBJS # Stuff that awk uses as library routines, but not in /lib/libc.a. LIBOBJS= regex.o $(S5OBJS) $(GETOPT) +UPDATES = Makefile awk.h awk.y \ + $(SRC) regex.c regex.h + +INFOFILES= gawk-info gawk-info-1 gawk-info-2 gawk-info-3 gawk-info-4 \ + gawk-info-5 gawk.aux gawk.cp gawk.cps gawk.dvi gawk.fn gawk.fns \ + gawk.ky gawk.kys gawk.pg gawk.pgs gawk.texinfo gawk.toc \ + gawk.tp gawk.tps gawk.vr gawk.vrs + # DOCS # Documentation for users # -# Someday: -#DOCS=gawk.1 gawk.texinfo -DOCS= gawk.1 +DOCS=gawk.1 $(INFOFILES) # We don't distribute shar files, but they're useful for mailing. -UPDATES = Makefile awk.h awk.y \ - $(SRC) regex.h - SHARS = $(DOCS) COPYING README PROBLEMS $(UPDATES) awk.tab.c \ - alloca.s alloca.c getopt.c + alloca.s alloca.c att.getopt.c gnu.getopt.c $(PCSTUFF) gawk: $(ALLOBJS) $(LIBOBJS) $(CC) -o gawk $(CFLAGS) $(ALLOBJS) $(LIBOBJS) -lm $(LDFLAGS) @@ -112,7 +120,7 @@ awk.tab.c: awk.y #alloca.o: alloca.c lint: $(SRC) - lint -h $(FLAGS) $(SRC) awk.tab.c + lint -hcbax $(FLAGS) $(SRC) awk.tab.c clean: rm -f gawk *.o core awk.output awk.tab.c gmon.out make.out @@ -142,3 +150,9 @@ diff: update: $(UPDATES) sendup $? touch update + +release: $(SHARS) + -rm -fr gawk-dist + mkdir gawk-dist + cp -p $(SHARS) gawk-dist + tar -cvf - gawk-dist | compress > dist.tar.Z |