home *** CD-ROM | disk | FTP | other *** search
/ High Voltage Shareware / high1.zip / high1 / DIR2 / CBUFF09.ZIP / SRC.ZIP / MAKEFILE < prev    next >
Text File  |  1993-11-16  |  3KB  |  107 lines

  1. #   $Id$
  2. #   
  3. #   File    Makefile
  4. #   Part of    ChessBase utilities file format (CBUFF)
  5. #   Author    Anjo Anjewierden, anjo@swi.psy.uva.nl
  6. #   Purpose    Makefile
  7. #   Works with    GNU CC 2.4.5
  8. #   
  9. #   Notice    Copyright (c) 1993  Anjo Anjewierden
  10. #   
  11. #   History    08/06/93  (Created)
  12. #           14/11/93  (Last modified)
  13.  
  14.  
  15. CC=        gcc
  16. CFLAGS=        -g -O2 -Wall -ansi -pedantic
  17. LIBS=        
  18.  
  19. DOS=        cuclean.exe culatex.exe culist.exe cumerge.exe cunames.exe\
  20.         cupgn.exe cusort.exe custats.exe cuverify.exe
  21. PROGRAMS=    cuclean culatex culist cumerge cunames cupgn\
  22.         cusort custats cuverify
  23. LIB=        libcbuff.a
  24. OBJECTS=    alloc.o cbase.o cbgame.o cbheader.o game.o cbuff.o \
  25.         move.o position.o string.o symbols.o text.o \
  26.         language.o strtable.o option.o error.o file.o
  27. SOURCES=    alloc.c cbase.c cbgame.c cbheader.c game.c cbuff.c \
  28.         move.c position.c string.c symbols.c text.c \
  29.         language.c strtable.c option.c error.c file.c
  30. HEADERS=    cbuff.h machine.h
  31. UTILITIES=    clean.c latex.c list.c merge.c names.c pgn.c sort.c\
  32.         stats.c verify.c
  33. DOC=        cbuff.texinfo cbuff.texi cbuff.ps
  34. MAKEFILES=    Makefile Makefile.bcc
  35. SUPPORT=    ascii.sym pgn.sym informant.sym cbuff.sty\
  36.         informant.beg informant.end cbuff.def places.def
  37. INTRO=        COPYING CONTENTS NOTES README
  38.  
  39.  
  40. all:        $(LIB) $(PROGRAMS)
  41.  
  42. $(LIB):        $(OBJECTS)
  43.         ar ru $(LIB) $(OBJECTS)
  44. #        ranlib $(LIB)
  45.  
  46. cuclean:    $(LIB) clean.o
  47.         $(CC) $(CFLAGS) -o cuclean clean.o $(LIB)
  48.  
  49. culatex:    $(LIB) latex.o
  50.         $(CC) $(CFLAGS) -o culatex latex.o $(LIB)
  51.  
  52. culist:        $(LIB) list.o
  53.         $(CC) $(CFLAGS) -o culist list.o $(LIB)
  54.  
  55. cumerge:    $(LIB) merge.o
  56.         $(CC) $(CFLAGS) -o cumerge merge.o $(LIB)
  57.  
  58. cunames:    $(LIB) names.o
  59.         $(CC) $(CFLAGS) -o cunames names.o $(LIB)
  60.  
  61. cupgn:        $(LIB) pgn.o
  62.         $(CC) $(CFLAGS) -o cupgn pgn.o $(LIB)
  63.  
  64. cusort:        $(LIB) sort.o
  65.         $(CC) $(CFLAGS) -o cusort sort.o $(LIB)
  66.  
  67. custats:    $(LIB) stats.o
  68.         $(CC) $(CFLAGS) -o custats stats.o $(LIB)
  69.  
  70. cuverify:    $(LIB) verify.o
  71.         $(CC) $(CFLAGS) -o cuverify verify.o $(LIB)
  72.  
  73. .c.o:        $*.c $(HEADERS)
  74.         $(CC) -c $(CFLAGS) $*.c
  75.  
  76. clean:        
  77.         @rm $(OBJECTS) $(PROGRAMS)
  78.  
  79. tape:        
  80.         @rm -f cbuff.*.tar cbuff.*.tar.gz
  81.         tar cfv cbuff.src.tar $(SOURCES) $(HEADERS) $(UTILITIES) $(MAKEFILES)
  82.         tar cfv cbuff.dos.tar $(DOS)
  83. #        tar cfv cbuff.doc.tar $(DOC)
  84.         tar cfv cbuff.support.tar $(SUPPORT)
  85.         tar cfv cbuff.intro.tar $(INTRO)
  86.         gzip cbuff.src.tar
  87.         gzip cbuff.dos.tar
  88. #        gzip cbuff.doc.tar
  89.         gzip cbuff.support.tar
  90.         gzip cbuff.intro.tar
  91.  
  92.  
  93. documentation:    cbuff.texinfo
  94.         expand $(SOURCES) $(HEADERS) \
  95.           | ti2q -c - -o - \
  96.           | ti2q -m cbuff.texinfo - -o cbuff.texi
  97.         tex cbuff.texi
  98.         texindex cbuff.??
  99.         tex cbuff.texi
  100.         dvips -o cbuff.ps cbuff.dvi
  101.  
  102. manual:        manual.texi
  103.         tex manual.texi
  104.         texindex manual.??
  105.         tex manual.texi
  106.         dvips -o manual.ps manual.dvi
  107.