Makefile 6.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206
  1. # Generated automatically from Makefile.in by configure.
  2. # Makefile for bison
  3. # Copyright (C) 1988, 1989, 1991, 1993 Bob Corbett and Free Software Foundation, Inc.
  4. #
  5. # This file is part of Bison, the GNU Compiler Compiler.
  6. #
  7. # Bison is free software; you can redistribute it and/or modify
  8. # it under the terms of the GNU General Public License as published by
  9. # the Free Software Foundation; either version 2, or (at your option)
  10. # any later version.
  11. #
  12. # Bison is distributed in the hope that it will be useful,
  13. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  14. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  15. # GNU General Public License for more details.
  16. #
  17. # You should have received a copy of the GNU General Public License
  18. # along with Bison; see the file COPYING. If not, write to
  19. # the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
  20. #### Start of system configuration section. ####
  21. srcdir = .
  22. VPATH = .
  23. CC = cc
  24. INSTALL = /bin/install -c
  25. INSTALL_PROGRAM = $(INSTALL)
  26. INSTALL_DATA = $(INSTALL) -m 644
  27. MAKEINFO = makeinfo
  28. # Things you might add to DEFS:
  29. # -DSTDC_HEADERS If you have ANSI C headers and libraries.
  30. # -DHAVE_STRING_H If you don't have ANSI C headers but have string.h.
  31. # -DHAVE_MEMORY_H If you don't have ANSI C headers and have memory.h.
  32. # -DHAVE_STRERROR If you have strerror function.
  33. DEFS = -Dconst= -DHAVE_STRING_H=1 -DHAVE_STDLIB_H=1 -DHAVE_MEMORY_H=1 -DHAVE_ALLOCA_H=1
  34. CFLAGS = -g
  35. LDFLAGS = -g
  36. LIBS =
  37. # Some System V machines do not come with libPW. If this is true, use
  38. # the GNU alloca.o here.
  39. ALLOCA =
  40. prefix = $(ENV_DIR)/tools
  41. exec_prefix = $(prefix)
  42. # where the installed binary goes
  43. bindir = $(exec_prefix)/bin
  44. # where the parsers go
  45. datadir = $(prefix)/lib
  46. # where the info files go
  47. infodir = $(ENV_DIR)/doc/info
  48. # where manual pages go and what their extensions should be
  49. manext = 1
  50. mandir = $(ENV_DIR)/doc/man/man$(manext)
  51. # dman documentation parser
  52. .SUFFIXES : .dman
  53. .dman :
  54. dman <$*.dman >$@
  55. pman -t $@ >$*.ps
  56. default : all
  57. backup :
  58. find . \( -name '*.o' -o -name '*%' -o -name 'bison++' -o -name '.tar.excludes' \) -print >.tar.excludes
  59. tar cvfX - .tar.excludes . | compress -cv >../bison++.tar.Z
  60. #### End of system configuration section. ####
  61. SHELL = /bin/sh
  62. DISTFILES = COPYING ChangeLog Makefile.in configure configure.in \
  63. REFERENCES bison.1 bison++.1 bison.rnh configure.bat \
  64. bison.cc bison.h bison.hairy \
  65. lr0.c allocate.c closure.c conflict.c derives.c \
  66. files.c getargs.c gram.c lalr.c lex.c main.c nullable.c \
  67. output.c print.c reader.c reduce.c symtab.c version.c \
  68. warshall.c files.h gram.h lex.h machine.h new.h state.h \
  69. symtab.h system.h types.h bison.cld build.com vmsgetargs.c \
  70. vmshlp.mar README INSTALL bison.texinfo bison.info* texinfo.tex \
  71. getopt.c getopt.h getopt1.c alloca.c mkinstalldirs
  72. # This rule allows us to supply the necessary -D options
  73. # in addition to whatever the user asks for.
  74. .c.o:
  75. $(CC) -c $(DEFS) -I$(srcdir)/../include $(CPPFLAGS) $(CFLAGS) $<
  76. # names of parser files
  77. PFILE = bison.cc
  78. PFILE1 = bison.hairy
  79. HFILE = bison.h
  80. PFILES = -DXPFILE=\"$(datadir)/$(PFILE)\" \
  81. -DXHFILE=\"$(datadir)/$(HFILE)\" \
  82. -DXPFILE1=\"$(datadir)/$(PFILE1)\"
  83. OBJECTS = lr0.o allocate.o closure.o conflict.o derives.o files.o \
  84. getargs.o gram.o lalr.o lex.o \
  85. main.o nullable.o output.o print.o reader.o reduce.o symtab.o \
  86. warshall.o version.o \
  87. getopt.o getopt1.o $(ALLOCA)
  88. all: bison++ bison.info
  89. Makefile: Makefile.in config.status
  90. ./config.status
  91. config.status: configure
  92. ./config.status --recheck
  93. configure: configure.in
  94. cd $(srcdir); autoconf
  95. clean:
  96. rm -f *.o core bison++
  97. mostlyclean: clean
  98. distclean: clean
  99. rm -f Makefile config.status
  100. realclean: distclean
  101. rm -f TAGS *.info*
  102. # Most of these deps are in case using RCS.
  103. install: all bison++.1 bison.1 $(srcdir)/$(PFILE) $(srcdir)/$(PFILE1) $(srcdir)/$(HFILE) installdirs uninstall
  104. $(INSTALL_PROGRAM) bison++ $(bindir)/bison++
  105. -cd $(datadir); rm -f $(PFILE) $(HFILE)
  106. #-cd $(datadir); rm -f $(PFILE1)
  107. $(INSTALL_DATA) $(srcdir)/$(PFILE) $(datadir)/$(PFILE)
  108. $(INSTALL_DATA) $(srcdir)/$(HFILE) $(datadir)/$(HFILE)
  109. -chmod a+r $(datadir)/$(PFILE) $(datadir)/$(HFILE)
  110. #$(INSTALL_DATA) $(srcdir)/$(PFILE1) $(datadir)/$(PFILE1)
  111. -chmod a+r $(datadir)/$(PFILE) $(datadir)/$(HFILE)
  112. #-chmod a+r $(datadir)/$(PFILE1)
  113. #-$(INSTALL_DATA) $(srcdir)/bison.1 $(mandir)/bison.$(manext)
  114. #-chmod a+r $(mandir)/bison.$(manext)
  115. -$(INSTALL_DATA) $(srcdir)/bison++.1 $(mandir)/bison++.$(manext)
  116. -chmod a+r $(mandir)/bison++.$(manext)
  117. #for file in $(srcdir)/bison.info*; \
  118. #do $(INSTALL_DATA) $$file $(infodir)/$$file; \
  119. #done
  120. # Make sure all installation directories, e.g. $(bindir) actually exist by
  121. # making them if necessary.
  122. installdirs:
  123. -sh $(srcdir)/mkinstalldirs $(bindir) $(datadir) $(libdir) $(infodir) $(mandir)
  124. uninstall:
  125. rm -f $(bindir)/bison++
  126. -cd $(datadir); rm -f $(PFILE) $(HFILE)
  127. #-cd $(datadir); rm -f $(PFILE1)
  128. rm -f $(mandir)/bison++.$(manext)
  129. #rm -f $(mandir)/bison.$(manext) $(infodir)/bison.info*
  130. bison++: $(OBJECTS)
  131. $(CC) $(LDFLAGS) -o $@ $(OBJECTS) $(LIBS)
  132. dist: bison.info
  133. echo bison-`sed -e '/version_string/!d' -e 's/[^0-9.]*\([0-9.]*\).*/\1/' -e q version.c` > .fname
  134. -rm -rf `cat .fname`
  135. mkdir `cat .fname`
  136. cp -p getopt.[ch] getopt1.c alloca.c `cat .fname`
  137. tar chZf `cat .fname`.tar.Z `cat .fname`
  138. dst=`cat .fname`; for f in $(DISTFILES); do \
  139. ln $(srcdir)/$$f $$dst/$$f || { echo copying $$f; cp -p $(srcdir)/$$f $$dst/$$f ; } \
  140. done
  141. tar --gzip -chf `cat .fname`.tar.gz `cat .fname`
  142. -rm -rf `cat .fname` .fname
  143. bison.info: bison.texinfo
  144. $(MAKEINFO) $(srcdir)/bison.texinfo
  145. TAGS: *.c *.h
  146. etags *.c *.h
  147. # This file is different to pass the parser file names to the compiler.
  148. files.o: files.c
  149. $(CC) -c $(PFILES) $(DEFS) $(CPPFLAGS) $(CFLAGS) \
  150. $(srcdir)/files.c $(OUTPUT_OPTION)
  151. lr0.o: system.h machine.h new.h gram.h state.h
  152. closure.o: system.h machine.h new.h gram.h
  153. conflict.o: system.h machine.h new.h files.h gram.h state.h
  154. derives.o: system.h new.h types.h gram.h
  155. files.o: system.h files.h new.h gram.h
  156. getargs.o: system.h files.h
  157. lalr.o: system.h machine.h types.h state.h new.h gram.h
  158. lex.o: system.h files.h symtab.h lex.h
  159. main.o: system.h machine.h
  160. nullable.o: system.h types.h gram.h new.h
  161. output.o: system.h machine.h new.h files.h gram.h state.h
  162. print.o: system.h machine.h new.h files.h gram.h state.h
  163. reader.o: system.h files.h new.h symtab.h lex.h gram.h
  164. reduce.o: system.h machine.h files.h new.h gram.h
  165. symtab.o: system.h new.h symtab.h gram.h
  166. warshall.o: system.h machine.h
  167. # Prevent GNU make v3 from overflowing arg limit on SysV.
  168. .NOEXPORT: