home *** CD-ROM | disk | FTP | other *** search
- # Makefile for GNU Awk.
- #
- # 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
- #
- # -O optimize
- # -dNOVPRINTF - system has no vprintf and associated routines
- # -dHASDOPRNT - system needs version of vprintf et al. defined in awk5.c
- # and has a BSD compatable doprnt()
- # -dNOMEMCMP - system lacks memcmp()
- # -dUSG - system is generic-ish System V.
-
- # This makefile is for Lattice AmigaDos C version 5.02
-
- VPRINTF = -dNOVPRINTF
-
- QFILE = RAM:
-
- CFLAGS = -cc -dUSG -dAMIGA $(VPRINTF)
-
- AMILIBS = LIB:lcm.lib LIB:lc.lib LIB:amiga.lib
-
- BLINKOP =#ADDSYM
-
- SRC = awk1.c awk2.c awk3.c awk4.c awk5.c awk7.c awk8.c awk9.c \
- version.c awka.c
-
- ALLSRC = $(SRC) awktab.c
- LIBSRC = alloca.c getopt.c regex.c
-
- AWKOBJS = \
- awk1.o \
- awk2.o \
- awk3.o \
- awk4.o \
- awk5.o \
- awk8.o \
- awk9.o \
- awka.o \
- awk7.o \
- version.o
-
- ALLOBJS = $(AWKOBJS) awktab.o
- LIBOBJS = alloca.o getopt.o regex.o
-
- PARSER = bison
-
- gawk: $(ALLOBJS) $(LIBOBJS)
- blink FROM LIB:c.o $(ALLOBJS) $(LIBOBJS) TO gawk \
- LIB $(AMILIBS) $(BLINKOP)
-
- .c.o:
- lc $(CFLAGS) $*
-
- awktab.o: awktab.c awk.h
-
- #awktab.c: awk.y
- # $(PARSER) awk.y
-
- #awk.y:
-