home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 January / usenetsourcesnewsgroupsinfomagicjanuary1994.iso / sources / unix / volume10 / ease / part01 / src / Makefile next >
Encoding:
Makefile  |  1987-07-09  |  2.0 KB  |  100 lines

  1. # Makefile for Ease Translator (et).
  2. #
  3. #    $Header: /usr/src/local/etc/ease/RCS/Makefile,v 1.4 85/10/29 22:57:06 jss Exp $
  4. #
  5. #    James S. Schoner, Purdue University Computing Center,
  6. #              West Lafayette, Indiana  47907
  7. #
  8. #    Copyright (c) 1985 by Purdue Research Foundation
  9. #
  10. #    All rights reserved.
  11. #
  12.  
  13. INCLUDE =
  14.  
  15. DEST = /usr/local/etc
  16.  
  17. OWNER = binary
  18. GROUP = system
  19. MODE = 751
  20.  
  21. DEFS =
  22. CFLAGS = -O ${DEFS} ${INCLUDE}
  23.  
  24. LP = lpr
  25. LPFLAGS = -J"Ease Source"
  26.  
  27. HDR = symtab.h
  28. SRC = main.c emitcf.c errors.c idman.c strops.c symtab.c
  29. LST = Makefile lexan.l parser.y ${HDR} ${SRC}
  30. DEP = y.tab.c lex.yy.c ${SRC}
  31. OBJ = y.tab.o lex.yy.o main.o emitcf.o errors.o idman.o strops.o symtab.o
  32.  
  33. all: et
  34.  
  35. et: ${OBJ}
  36.     cc ${CFLAGS} -o et ${OBJ} -ll
  37.  
  38. clean: FRC
  39.     rm -f et *.o lex.yy.c y.tab.c y.output yacc.acts yacc.tmp \
  40.           lexdefs.h y.tab.h errs Makefile.bak
  41.  
  42. depend: ${DEP} ${HDR}
  43.     maketd -a ${DEP}
  44.  
  45. install: et FRC
  46.     install -c -m ${MODE} -o ${OWNER} -g ${GROUP} -s et ${DEST}
  47.  
  48. lint:   ${DEP} symtab.h FRC
  49.     lint -hxn ${DEP}
  50.  
  51. print:  ${LST} FRC
  52.     @pr -f ${LST} | ${LP} ${LPFLAGS}
  53.  
  54. spotless: clean FRC
  55.     rcsclean ${LST}
  56.  
  57. lexdefs.h y.tab.c: parser.y
  58.     yacc -d parser.y
  59.     -(cmp -s y.tab.h lexdefs.h || cp y.tab.h lexdefs.h)
  60.  
  61. lex.yy.c: lexan.l
  62.     lex lexan.l
  63.  
  64. ${HDR} ${SRC} lexan.l parser.y:
  65.     co $@
  66.  
  67. FRC:
  68.     
  69.  
  70. # DO NOT DELETE THIS LINE - maketd DEPENDS ON IT
  71. # Dependencies generated at: Thu Oct 17 14:55:17 EST 1985
  72.  
  73. emitcf.o: symtab.h
  74. emitcf.o: /usr/include/stdio.h
  75. emitcf.o: emitcf.c
  76. errors.o: /usr/include/stdio.h
  77. errors.o: errors.c
  78. idman.o: symtab.h
  79. idman.o: /usr/include/stdio.h
  80. idman.o: idman.c
  81. lex.yy.o: lexdefs.h
  82. lex.yy.o: symtab.h
  83. lex.yy.o: /usr/include/stdio.h
  84. lex.yy.o: lex.yy.c
  85. main.o: /usr/include/stdio.h
  86. main.o: main.c
  87. strops.o: symtab.h
  88. strops.o: /usr/include/stdio.h
  89. strops.o: /usr/include/strings.h
  90. strops.o: strops.c
  91. symtab.o: symtab.h
  92. symtab.o: /usr/include/ctype.h
  93. symtab.o: /usr/include/stdio.h
  94. symtab.o: symtab.c
  95. y.tab.o: symtab.h
  96. y.tab.o: /usr/include/stdio.h
  97. y.tab.o: y.tab.c
  98.  
  99. # DO NOT ADD ANYTHING HERE - it will go away.
  100.