home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / pyth_os2.zip / python-1.0.2 / Parser / Makefile.in < prev    next >
Makefile  |  1994-01-14  |  2KB  |  91 lines

  1. # NOTE: Makefile.in is converted into Makefile by the configure script
  2. # in the parent directory.  Once configure has run, you can recreate
  3. # the Makefile by running just config.status.
  4.  
  5. # === Variables set by config.stat ===
  6.  
  7. srcdir=        @srcdir@
  8. VPATH=        @srcdir@
  9.  
  10. CC=        @CC@
  11. RANLIB=        @RANLIB@
  12. AR=        @AR@
  13.  
  14. DEFS=        @DEFS@
  15.  
  16.  
  17. # === Other things that are customizable but not by configure ===
  18.  
  19. INCLDIR=    $(srcdir)/../Include
  20. OPT=        -O
  21. CFLAGS=        $(OPT) -I$(INCLDIR) -I.. $(DEFS)
  22.  
  23. MKDEP=        mkdep
  24. SHELL=        /bin/sh
  25.  
  26.  
  27. # === Fixed definitions ===
  28.  
  29. PARSEROBJS=    acceler.o grammar1.o \
  30.         intrcheck.o listnode.o myreadline.o node.o parser.o \
  31.         parsetok.o tokenizer.o bitset.o \
  32.         firstsets.o grammar.o metagrammar.o pgen.o \
  33.         printgrammar.o
  34.  
  35. PGENOBJS=    pgenmain.o
  36.  
  37. OBJS=        $(PGENOBJS) $(PARSEROBJS)
  38.  
  39. PGEN=        pgen
  40.  
  41. LIB=        libParser.a
  42.  
  43.  
  44. # === Rules ===
  45.  
  46. all:        $(LIB) $(PGEN)
  47.  
  48. $(LIB):        $(PARSEROBJS)
  49.         $(AR) cr $(LIB) $(PARSEROBJS)
  50.         $(RANLIB) $(LIB)
  51.  
  52. $(PGEN):    $(PGENOBJS) $(LIB)
  53.         $(CC) $(PGENOBJS) $(LIB) -o $(PGEN)
  54.  
  55. clean:
  56.         -rm -f *.o core *~ [@,#]* *.old *.orig *.rej
  57.  
  58. clobber:    clean
  59.         -rm -f $(PGEN) *.a tags TAGS
  60.  
  61. Makefile:    $(srcdir)/Makefile.in ../config.status
  62.         (cd ..; CONFIG_FILES=Parser/Makefile CONFIG_HEADERS= \
  63.         $(SHELL) config.status)
  64.  
  65. depend:
  66.         $(MKDEP) $(CFLAGS) `echo $(OBJS) | tr ' ' '\012' | \
  67.                     sed 's|\(.*\)\.o|$(srcdir)/\1.c|'`
  68.  
  69. .PRECIOUS:    Makefile
  70.  
  71. acceler.o: acceler.c
  72. grammar1.o: grammar1.c
  73. intrcheck.o: intrcheck.c
  74. listnode.o: listnode.c
  75. myreadline.o: myreadline.c
  76. node.o: node.c
  77. parser.o: parser.c
  78. parsetok.o: parsetok.c
  79. tokenizer.o: tokenizer.c
  80. bitset.o: bitset.c
  81. firstsets.o: firstsets.c
  82. grammar.o: grammar.c
  83. metagrammar.o: metagrammar.c
  84. pgen.o: pgen.c
  85. printgrammar.o: printgrammar.c
  86. pgenmain.o: pgenmain.c
  87.  
  88. # DO NOT DELETE THIS LINE -- mkdep uses it.
  89. # DO NOT PUT ANYTHING AFTER THIS LINE, IT WILL GO AWAY.
  90. # IF YOU PUT ANYTHING HERE IT WILL GO AWAY
  91.