home *** CD-ROM | disk | FTP | other *** search
/ Club Amiga de Montreal - CAM / CAM_CD_1.iso / files / 419b.lha / GNU_Awk_v2.10_Beta / lmkfile < prev    next >
Text File  |  1990-10-01  |  2KB  |  81 lines

  1. # Makefile for GNU Awk.
  2. #
  3. # Rewritten by Arnold Robbins, September 1988, March 1989.
  4. #
  5. # Copyright (C) 1986, 1988, 1989 the Free Software Foundation, Inc.
  6. # This file is part of GAWK, the GNU implementation of the
  7. # AWK Progamming Language.
  8. # GAWK is free software; you can redistribute it and/or modify
  9. # it under the terms of the GNU General Public License as published by
  10. # the Free Software Foundation; either version 1, or (at your option)
  11. # any later version.
  12. # GAWK 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. # You should have received a copy of the GNU General Public License
  17. # along with GAWK; see the file COPYING.  If not, write to
  18. # the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
  19.  
  20. # CFLAGS: options to the C compiler
  21. #
  22. #    -O    optimize
  23. #    -dNOVPRINTF - system has no vprintf and associated routines
  24. #    -dHASDOPRNT - system needs version of vprintf et al. defined in awk5.c
  25. #                        and has a BSD compatable doprnt()
  26. #    -dNOMEMCMP  - system lacks memcmp()
  27. #    -dUSG       - system is generic-ish System V.
  28.  
  29. # This makefile is for Lattice AmigaDos C version 5.02
  30.  
  31. VPRINTF = -dNOVPRINTF
  32.  
  33. QFILE = RAM:
  34.   
  35. CFLAGS = -cc -dUSG -dAMIGA $(VPRINTF)
  36.  
  37. AMILIBS = LIB:lcm.lib LIB:lc.lib LIB:amiga.lib
  38.  
  39. BLINKOP =#ADDSYM
  40.  
  41. SRC =    awk1.c awk2.c awk3.c awk4.c awk5.c awk7.c awk8.c awk9.c \
  42.     version.c awka.c
  43.  
  44. ALLSRC = $(SRC) awktab.c
  45. LIBSRC = alloca.c getopt.c regex.c
  46.  
  47. AWKOBJS = \
  48.  awk1.o \
  49.  awk2.o \
  50.  awk3.o \
  51.  awk4.o \
  52.  awk5.o \
  53.  awk8.o \
  54.  awk9.o \
  55.  awka.o \
  56.  awk7.o \
  57.  version.o
  58.  
  59. ALLOBJS = $(AWKOBJS) awktab.o
  60. LIBOBJS = alloca.o getopt.o regex.o
  61.  
  62. PARSER = bison
  63.  
  64. gawk:    $(ALLOBJS) $(LIBOBJS)
  65.     blink FROM LIB:c.o $(ALLOBJS) $(LIBOBJS) TO gawk \
  66.     LIB $(AMILIBS) $(BLINKOP)
  67.  
  68. .c.o:
  69.     lc $(CFLAGS) $*
  70.  
  71. awktab.o: awktab.c awk.h
  72.  
  73. #awktab.c: awk.y
  74. #    $(PARSER) awk.y
  75.  
  76. #awk.y:
  77.