home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 October / usenetsourcesnewsgroupsinfomagicoctober1994disk2.iso / unix / volume21 / coda / part01 / Makefile < prev    next >
Encoding:
Makefile  |  1990-04-08  |  1.6 KB  |  84 lines

  1. ##
  2. ##  Copyright 1989 BBN Systems and Technologies Corporation.
  3. ##  All Rights Reserved.
  4. ##  This is free software, and may be distributed under the terms of the
  5. ##  GNU Public License; see the file COPYING for more details.
  6. ##
  7. ##  Makefile for CODA server and BSD client.
  8. ##  This is the master Makefile.
  9. ##  $Header: Makefile,v 2.0 90/04/02 16:46:30 rsalz Exp $
  10. ##
  11. SHELL    = /bin/sh
  12. DEFS    = -DBSD
  13. CFLAGS    = -g $(DEFS)
  14.  
  15. ##  Server files.
  16. S_SRC    = server.c version.c gram.c lex.c adt.c log.c file.c
  17. S_OBJ    = server.o version.o gram.o lex.o adt.o log.o file.o
  18.  
  19. ##  Client files.
  20. C_SRC    = client.c version.c libbsd.c
  21. C_OBJ    = client.o version.o libbsd.o
  22.  
  23.  
  24. ##  Generic targets.
  25. all:        codaserver coda
  26.  
  27. install:    all
  28.     @echo Install according to local convention
  29.  
  30. clean:
  31.     rm -f *.o y.* foo core lint? tags a.out codaserver coda SHAR0?
  32. realclean:    clean
  33.     rm -f lex.c gram.c gram.h
  34.  
  35.  
  36. ##  Lint.
  37. lint:        lints lintc
  38.  
  39. lintc:        coda
  40.     lint $(DEFS) -a -h -z $(C_SRC) | fgrep -v 'pointer alignment' >lintc
  41. lints:        codaserver
  42.     lint $(DEFS) -a -h -z $(S_SRC) | fgrep -v 'pointer alignment' >lints
  43.  
  44.  
  45. ##  Publication.
  46. shar:
  47.     makekit -n SHAR -m
  48.     @rm -f MANIFEST.BAK
  49.  
  50. ##  Server.
  51. codaserver:    $(S_OBJ)
  52.     @rm -f codaserver
  53.     $(CC) $(CFLAGS) -o codaserver $(S_OBJ)
  54.  
  55. $(S_OBJ):    server.h
  56.  
  57. lex.c:            lex.l
  58. lex.o gram.o:        gram.h
  59. gram.h gram.c:        gram.y
  60.     @rm -f y.tab.c y.tab.h gram.c gram.h
  61.     yacc -d gram.y
  62.     @mv y.tab.c gram.c
  63.     @mv y.tab.h gram.h
  64.  
  65.  
  66. ##  Client.
  67. coda:        $(C_OBJ)
  68.     @rm -f coda
  69.     $(CC) $(CFLAGS) -o coda $(C_OBJ)
  70.  
  71. $(C_OBJ):    client.h
  72.  
  73. version.o:    patchlevel.h
  74.  
  75.  
  76. ##  Saber
  77. .SUFFIXES:        .c .src
  78. .c.src:
  79.     #load $(CFLAGS) $<
  80. sabers:            $(S_SRC)
  81.     #load $(CFLAGS) $(S_SRC)
  82. saberc:            $(C_SRC)
  83.     #load $(CFLAGS) $(C_SRC)
  84.