home *** CD-ROM | disk | FTP | other *** search
/ rtsi.com / 2014.01.www.rtsi.com.tar / www.rtsi.com / OS9 / TOP / USR / SRC / scpp.t.Z / scpp.t / makefile < prev    next >
Makefile  |  2009-11-06  |  1KB  |  47 lines

  1. # Makefile for the selective C preprocessor, scpp.
  2. #
  3. # Copyright (c) 1985 by
  4. # Tektronix, Incorporated Beaverton, Oregon 97077
  5. # All rights reserved.
  6. #
  7. # Permission is hereby granted for personal, non-commercial
  8. # reproduction and use of this program, provided that this
  9. # notice and all copyright notices are included in any copy.
  10. CC    = cc
  11. DEFS=
  12. CFLAGS= -ix -t=/r0 $(DEFS)
  13. HDRS= scpp.h
  14.  
  15. SOURCES= ctrl.c io.c lex.l parse.y scpp.c
  16. OBJECTS= ctrl.r io.r lex.r parse.r scpp.r
  17.  
  18. #all:    scpp scpp.cat
  19. scpp:    $(OBJECTS)
  20.     $(CC) $(CFLAGS) -fd=scpp $(OBJECTS) -l=/h0/lib/lex.l -g
  21. #scpp.cat: scpp.1
  22. #    nroff -man scpp.1 >scpp.cat
  23.  
  24. scpp.r: scpp.c y.tab.h scpp.h
  25. ctrl.r: ctrl.c y.tab.h scpp.h
  26. io.r:  io.c scpp.h
  27. lex.r: lex.c y.tab.h scpp.h
  28. parse.r: parse.c scpp.h
  29.  
  30. lex.c: lex.l
  31.     lex lex.l
  32.     sed -e '/yylex/s//xxlex/g' <lex.yy.c >lex.c
  33.     del lex.yy.c
  34. y.tab.h parse.c: parse.y
  35.     yacc -d parse.y
  36.     copy y.tab.c parse.c -r;del y.tab.c
  37.  
  38. #clean:
  39. #    -rm -f lex.yy.c lex.c y.tab.c y.tab.h y.output parse.c
  40. #    -rm -f $(OBJECTS)
  41. #
  42. #tags: $(SOURCES)
  43. #    ctags $(SOURCES)
  44. #mail:
  45. #    shar -a scpp.1 Makefile lex.l ctrl.c interp io.c >scpp.shar1
  46. #    shar -a parse.y scpp.c scpp.h >scpp.shar2
  47.