home *** CD-ROM | disk | FTP | other *** search
/ Geek Gadgets 1 / ADE-1.bin / ade-dist / gawk-2.15.6-base.tgz / gawk-2.15.6-base.tar / fsf / gawk / pc / makegawk.bat < prev    next >
DOS Batch File  |  1993-12-29  |  2KB  |  66 lines

  1. REM Simple brute force command file for building gawk under msdos
  2. REM
  3. REM *** This has only been tested using MSC 5.1 and MSC 6.00A ***
  4. REM
  5. REM Written by Arnold Robbins, May 1991
  6. REM Modified by Scott Deifik, July, 1992, Sep 1993
  7. REM Based on earlier makefile for dos
  8. REM
  9. REM Copyright (C) 1986, 1988, 1989, 1991, 1993 the Free Software Foundation, Inc.
  10. REM 
  11. REM This file is part of GAWK, the GNU implementation of the
  12. REM AWK Progamming Language.
  13. REM 
  14. REM GAWK is free software; you can redistribute it and/or modify
  15. REM it under the terms of the GNU General Public License as published by
  16. REM the Free Software Foundation; either version 2 of the License, or
  17. REM (at your option) any later version.
  18. REM 
  19. REM GAWK is distributed in the hope that it will be useful,
  20. REM but WITHOUT ANY WARRANTY; without even the implied warranty of
  21. REM MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  22. REM GNU General Public License for more details.
  23. REM 
  24. REM You should have received a copy of the GNU General Public License
  25. REM along with GAWK; see the file COPYING.  If not, write to
  26. REM the Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  27. REM
  28. REM  compile debug flags: -DDEBUG -DFUNC_TRACE -DMEMDEBUG -Zi -Od
  29. REM              
  30.  
  31. set CFLAGS=-D_MSC_VER
  32.  
  33. rem MSC 5.1 should use:
  34. rem set CFLAGS=-D_MSC_VER=510
  35.  
  36. rem MSC 6.00A predefines _MSC_VER
  37. rem set CFLAGS=
  38.  
  39. rem -Za sets ANSI flag so that __STDC__ is defined in MSC 6.00A 
  40. rem (MSC 5.1 sets __STDC__=0 regardless of ANSI switch)
  41.  
  42. cl -Za -c -AL %CFLAGS% -DGAWK array.c
  43. cl -Za -c -AL %CFLAGS% -DGAWK awktab.c
  44. cl -Za -c -AL %CFLAGS% -DGAWK builtin.c
  45. cl -Za -c -AL %CFLAGS% -DGAWK -DHAVE_CONFIG_H dfa.c
  46. cl -Za -c -AL %CFLAGS% -DGAWK eval.c
  47. cl -Za -c -AL %CFLAGS% -DGAWK field.c
  48. cl -Za -c -AL %CFLAGS% -DGAWK getid.c
  49. cl -Za -c -AL %CFLAGS% -DGAWK -DHAVE_CONFIG_H getopt.c
  50. cl -Za -c -AL %CFLAGS% -DGAWK -DHAVE_CONFIG_H getopt1.c
  51. cl -Za -c -AL %CFLAGS% -DGAWK io.c
  52. cl -Za -c -AL %CFLAGS% -DGAWK iop.c
  53. cl -Za -c -AL %CFLAGS% -DGAWK main.c
  54. cl -Za -c -AL %CFLAGS% -DGAWK missing.c
  55. cl -Za -c -AL %CFLAGS% -DGAWK msg.c
  56. cl -Za -c -AL %CFLAGS% -DGAWK node.c
  57. cl -Za -c -AL %CFLAGS% -DGAWK popen.c
  58. cl -Za -c -AL %CFLAGS% -DGAWK re.c
  59. REM You can ignore the warnings you will get
  60. cl -Za -c -AL %CFLAGS% -DGAWK -DHAVE_CONFIG_H regex.c
  61. cl -Za -c -AL %CFLAGS% -DGAWK version.c
  62. REM
  63. REM link debug flags: /CO /NOE /NOI /st:30000
  64. REM
  65. link @names.lnk,gawk.exe /NOE /NOI /st:30000;
  66.