home *** CD-ROM | disk | FTP | other *** search
/ Complete Linux / Complete Linux.iso / docs / apps / database / ingres04.lzh / source / parser / Makefile < prev    next >
Encoding:
Makefile  |  1993-01-18  |  1.4 KB  |  75 lines

  1. #
  2. #  makefile for INGRES parser
  3. #
  4. #    @(#)Makefile    8.4    12/18/85
  5. #
  6.  
  7. include ../Config
  8.  
  9. INGRES=    ../..
  10. H=    ../h
  11. LIB=    $(INGRES)/lib
  12.  
  13. SOBJS=    s_yylex.o s_inout.o s_name.o s_number.o s_operator.o s_string.o \
  14.     s_symtab.o s_comment.o s_cmap.o
  15. OBJS=    parser.o control.o grammar.o att_fcn.o xdot.o \
  16.     range_fcn.o tree.o norml.o \
  17.     call_tree.o format.o par_util.o get_scan.o \
  18.     par_init.o ack_err.o
  19. SSRCS1=    s_yylex.c s_inout.c s_name.c s_number.c s_operator.c s_string.c \
  20.     s_symtab.c s_comment.c s_cmap.c 
  21. SHDRS=    scanner.h
  22. SSRCS=    $(SSRCS1) $(SHDRS)
  23. SRCS1=    att_fcn.c xdot.c range_fcn.c tree.c norml.c \
  24.     call_tree.c control.c format.c par_util.c get_scan.c \
  25.     parser.c par_init.c ack_err.c 
  26. YSRCS=    yyerror.y tables.y grammar.y
  27. HDRS=    parser.h
  28. SRCS=    $(SRCS1) $(YSRCS)
  29.  
  30. IUTIL=    $(LIB)/iutil
  31. GUTIL=    $(LIB)/gutil
  32. CTLMOD=    $(LIB)/ctlmod
  33. LIBS=    $(IUTIL) $(GUTIL)
  34.  
  35. YACC= yacc
  36. YFLAGS= 
  37. CFLAGS=    $(CONFIG) -O -I$H
  38. LDFLAGS=
  39. AR=    -ar
  40. ARFLAGS=rvu
  41. RANLIB=    ranlib
  42. CHMOD=    chmod
  43. LIBMODE=664
  44. BINMODE=4740
  45. ROMODE=    444
  46. CP=    cp
  47. HEADER=    Parser
  48.  
  49. parlib: $(OBJS) $(SOBJS)
  50.     $(AR) $(ARFLAGS) parlib $?
  51.     $(CHMOD) $(LIBMODE) parlib
  52.     $(RANLIB) parlib
  53.  
  54. install: $(LIB)/parser
  55.  
  56. $(LIB)/parser: parlib
  57.     $(CP) parlib $(LIB)/parser
  58.     $(RANLIB) $(LIB)/parser
  59.  
  60. grammar.c: grammar.y
  61.     grep -v "DDD" grammar.y > grammar.z
  62.     $(YACC) $(YFLAGS) grammar.z
  63.     mv y.tab.c grammar.c
  64.     rm -f grammar.z
  65.  
  66. grammar.o: tables.y yyerror.y scanner.h parser.h
  67.  
  68. new:
  69.     rm -f parser parlib
  70.  
  71. clean:
  72.     rm -f *.o
  73.     rm -f parser a.out core parlib grammar.c
  74.  
  75.