home *** CD-ROM | disk | FTP | other *** search
/ GEMini Atari / GEMini_Atari_CD-ROM_Walnut_Creek_December_1993.iso / zip / gnu / txnf214s.lzh / TXNF214S / MAKEFILE < prev    next >
Text File  |  1993-07-29  |  2KB  |  88 lines

  1. # Adapted from generated automatically from Makefile.in by configure.
  2. # Makefile for the info sources... -*- text -*-
  3. # Copyright (C) 1990, 1991 Free Software Foundation, Inc.
  4.  
  5. # This program is free software; you can redistribute it and/or modify
  6. # it under the terms of the GNU General Public License as published by
  7. # the Free Software Foundation; either version 2, or (at your option)
  8. # any later version.
  9.  
  10. # This program is distributed in the hope that it will be useful,
  11. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  13. # GNU General Public License for more details.
  14.  
  15. # You should have received a copy of the GNU General Public License
  16. # along with this program; if not, write to the Free Software
  17. # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  18.  
  19. srcdir = .
  20. infodir = c:/gnu/info
  21.  
  22. CC=cgcc
  23. WIDTH=-mshort
  24. EXT=16
  25. # -O2 option is for gcc-2.x
  26. DEFS= -DSTDC_HEADERS -O2 $(WIDTH) -fomit-frame-pointer
  27. LIBS=-liio$(EXT)
  28.  
  29. CDEBUG = -g -Wall #-Wwrite-strings -Wconversion -Wdeclaration-type
  30. CFLAGS = $(CDEBUG) $(DEFS)
  31. LD=cgcc
  32. LDFLAGS = $(CFLAGS)
  33.  
  34. # Coma-separated list of directories in which to look for info files.
  35. DEFAULT_INFOPATH = .,$(infodir),a:/
  36.  
  37. # Command used to print out a text file.  The filename follows this command.
  38. INFO_PRINT_COMMAND = lpr
  39.  
  40. #### End of system configuration section. ####
  41.  
  42. PATHSPEC = -DDEFAULT_INFOPATH='"$(DEFAULT_INFOPATH)"'
  43. PRINTSPEC = -DINFO_PRINT_COMMAND='"$(INFO_PRINT_COMMAND)"'
  44. INFO_FLAGS = $(PATHSPEC) $(PRINTSPEC)
  45. MAKEINFO_FLAGS = -DDOTS
  46.  
  47. SOURCES = info.c makeinfo.c texindex.c getopt.c getopt1.c
  48. OBJECTS = info.o makeinfo.o texindex.o getopt.o getopt1.o
  49. MBJECTS = makeinfo.o getopt.o getopt1.o
  50. IBJECTS = info.o getopt.o getopt1.o
  51. TBJECTS = texindex.o getopt.o getopt1.o
  52. HEADERS = getopt.h
  53.  
  54. PROGS = info.ttp makeinfo.ttp texindex.ttp
  55.  
  56. all: $(PROGS)
  57.  
  58. info.ttp: $(IBJECTS)
  59.     $(LD) $(LDFLAGS) -o $@ $(IBJECTS) -ltermcap$(EXT) $(LIBS)
  60.     xstrip -k $@
  61.     toglclr $@
  62.  
  63. info.o: info.c
  64.     $(CC) -c $(CFLAGS) $(INFO_FLAGS) info.c
  65.     
  66.  
  67. makeinfo.ttp: $(MBJECTS)
  68.     $(LD) $(LDFLAGS) -o $@ $(MBJECTS) $(LIBS)
  69.     xstrip -k $@
  70.     toglclr $@
  71.  
  72. makeinfo.o: makeinfo.c
  73.     $(CC) -c $(CFLAGS) $(MAKEINFO_FLAGS) makeinfo.c
  74.  
  75. texindex.ttp: $(TBJECTS) 
  76.     $(LD) $(LDFLAGS) -o $@ $(TBJECTS) $(LIBS)
  77.     xstrip -k $@
  78.     toglclr $@
  79.  
  80. info.o makeinfo.o texindex.o getopt1.o: getopt.h
  81.  
  82. clean:
  83.     rm -f $(OBJECTS)
  84.  
  85. clobber: clean
  86.     rm -f $(PROGS) *~
  87.  
  88.