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.unix < 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.  
  11. DEFS=
  12. CFLAGS= -O -i $(DEFS)
  13. HDRS= scpp.h
  14.  
  15. SOURCES= ctrl.c io.c lex.l parse.y scpp.c
  16. OBJECTS= ctrl.o io.o lex.o parse.o scpp.o
  17.  
  18. all:    scpp scpp.cat
  19. scpp:    $(OBJECTS)
  20.     $(CC) $(CFLAGS) -o scpp $(OBJECTS) -ll
  21. scpp.cat: scpp.1
  22.     nroff -man scpp.1 >scpp.cat
  23.  
  24. scpp.o: scpp.c y.tab.h scpp.h
  25. ctrl.o: ctrl.c y.tab.h scpp.h
  26. io.o:  io.c scpp.h
  27. lex.o: lex.c y.tab.h scpp.h
  28. parse.o: 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.     rm lex.yy.c
  34. y.tab.h parse.c: parse.y
  35.     yacc -d parse.y
  36.     mv y.tab.c parse.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.