home *** CD-ROM | disk | FTP | other *** search
/ linuxmafia.com 2016 / linuxmafia.com.tar / linuxmafia.com / pub / palmos / pippy-0.6beta-src.tar.gz / pippy-0.6beta-src.tar / pippy-0.6beta-src / src / Parser / Makefile.in < prev    next >
Makefile  |  2000-12-21  |  2KB  |  105 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. VERSION=    @VERSION@
  8.  
  9. srcdir=        @srcdir@
  10. VPATH=        @srcdir@
  11.  
  12. CC=        @CC@
  13. RANLIB=        @RANLIB@
  14. AR=        @AR@
  15.  
  16. DEFS=        @DEFS@
  17. LIBS=        @LIBS@
  18. PALM_CFLAGS=    @PALM_CFLAGS@
  19.  
  20.  
  21. # === Other things that are customizable but not by configure ===
  22.  
  23. INCLDIR=    $(srcdir)/../Include
  24. OPT=        @OPT@
  25. CFLAGS=        $(OPT) -I$(INCLDIR) -I.. $(PALM_CFLAGS) $(DEFS)
  26.  
  27. MKDEP=        mkdep
  28. SHELL=        /bin/sh
  29.  
  30.  
  31. # === Fixed definitions ===
  32.  
  33. POBJS=        acceler.o grammar1.o \
  34.         listnode.o node.o parser.o \
  35.         parsetok.o tokenizer.o bitset.o \
  36.         metagrammar.o
  37.  
  38. AROBJS=        $(POBJS) myreadline.o
  39. OBJS=        $(AROBJS) intrcheck.o
  40.  
  41.  
  42. PGENMAIN=    pgenmain.o
  43.  
  44. PGOBJS=        firstsets.o grammar.o pgen.o printgrammar.o
  45.  
  46. PGENOBJS=    $(PGENMAIN) $(POBJS) $(PGOBJS)
  47.  
  48. DOBJS=        $(PGENMAIN) $(OBJS) $(PGOBJS)
  49.  
  50. PGEN=        pgen
  51.  
  52. LIBRARY=    ../libpython$(VERSION).a
  53.  
  54. # === Rules ===
  55.  
  56. all:        $(OBJS)
  57.  
  58. # This target is used by the master Makefile to add the objects to the library
  59. add2lib:    $(OBJS)
  60.         $(AR) cr $(LIBRARY) $(AROBJS)
  61.         if test ! -f ../Modules/hassignal; \
  62.         then echo adding intrcheck.o; $(AR) r $(LIBRARY) intrcheck.o; \
  63.         else echo leaving intrcheck.o out; fi
  64.         touch add2lib
  65.  
  66. $(PGEN):    $(PGENOBJS)
  67.         $(CC) $(OPT) $(PGENOBJS) $(LIBS) -o $(PGEN)
  68.  
  69. clean:
  70.         -rm -f *.o core *~ [@,#]* *.old *.orig *.rej add2lib
  71.  
  72. clobber:    clean
  73.         -rm -f $(PGEN) *.a tags TAGS
  74.  
  75. Makefile:    $(srcdir)/Makefile.in ../config.status
  76.         (cd ..; CONFIG_FILES=Parser/Makefile CONFIG_HEADERS= \
  77.         $(SHELL) config.status)
  78.  
  79. depend:
  80.         $(MKDEP) $(CFLAGS) `echo $(DOBJS) | tr ' ' '\012' | \
  81.                     sed 's|\(.*\)\.o|$(srcdir)/\1.c|'`
  82.  
  83. .PRECIOUS:    Makefile
  84.  
  85. acceler.o: acceler.c
  86. grammar1.o: grammar1.c
  87. intrcheck.o: intrcheck.c
  88. listnode.o: listnode.c
  89. myreadline.o: myreadline.c
  90. node.o: node.c
  91. parser.o: parser.c
  92. parsetok.o: parsetok.c
  93. tokenizer.o: tokenizer.c
  94. bitset.o: bitset.c
  95. firstsets.o: firstsets.c
  96. grammar.o: grammar.c
  97. metagrammar.o: metagrammar.c
  98. pgen.o: pgen.c
  99. printgrammar.o: printgrammar.c
  100. pgenmain.o: pgenmain.c
  101.  
  102. # DO NOT DELETE THIS LINE -- mkdep uses it.
  103. # DO NOT PUT ANYTHING AFTER THIS LINE, IT WILL GO AWAY.
  104. # IF YOU PUT ANYTHING HERE IT WILL GO AWAY
  105.