Makefile 5.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189
  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 = cp
  25. INSTALL_PROGRAM = $(INSTALL)
  26. INSTALL_DATA = $(INSTALL)
  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_STRERROR=1
  34. CFLAGS = -O
  35. LDFLAGS = -s
  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 = /u1/gnu
  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 = $(prefix)/info
  48. # where manual pages go and what their extensions should be
  49. mandir = $(prefix)/man/man$(manext)
  50. manext = 1
  51. #### End of system configuration section. ####
  52. DISTFILES = COPYING ChangeLog Makefile.in configure configure.in \
  53. REFERENCES bison.1 bison.rnh configure.bat \
  54. bison.simple bison.hairy \
  55. LR0.c allocate.c closure.c conflicts.c derives.c \
  56. files.c getargs.c gram.c lalr.c lex.c main.c nullable.c \
  57. output.c print.c reader.c reduce.c symtab.c version.c \
  58. warshall.c files.h gram.h lex.h machine.h new.h state.h \
  59. symtab.h system.h types.h bison.cld build.com vmsgetargs.c \
  60. vmshlp.mar README INSTALL bison.texinfo bison.info* texinfo.tex \
  61. getopt.c getopt.h getopt1.c alloca.c mkinstalldirs
  62. SHELL = /bin/sh
  63. # This rule allows us to supply the necessary -D options
  64. # in addition to whatever the user asks for.
  65. .c.o:
  66. $(CC) -c $(DEFS) -I$(srcdir)/../include $(CPPFLAGS) $(CFLAGS) $<
  67. # names of parser files
  68. PFILE = bison.simple
  69. PFILE1 = bison.hairy
  70. PFILES = -DXPFILE=\"$(datadir)/$(PFILE)\" \
  71. -DXPFILE1=\"$(datadir)/$(PFILE1)\"
  72. OBJECTS = LR0.o allocate.o closure.o conflicts.o derives.o files.o \
  73. getargs.o gram.o lalr.o lex.o \
  74. main.o nullable.o output.o print.o reader.o reduce.o symtab.o \
  75. warshall.o version.o \
  76. getopt.o getopt1.o $(ALLOCA)
  77. all: bison bison.info bison.s1
  78. Makefile: Makefile.in config.status
  79. ./config.status
  80. config.status: configure
  81. ./config.status --recheck
  82. configure: configure.in
  83. cd $(srcdir); autoconf
  84. # Copy bison.simple, inserting directory name into the #line commands.
  85. bison.s1: bison.simple
  86. -rm -f bison.s1
  87. sed -e "/^#line/ s|bison|$(datadir)/bison|" < $(srcdir)/$(PFILE) > bison.s1
  88. clean:
  89. rm -f *.o core bison bison.s1
  90. mostlyclean: clean
  91. distclean: clean
  92. rm -f Makefile config.status
  93. realclean: distclean
  94. rm -f TAGS *.info*
  95. # Most of these deps are in case using RCS.
  96. install: all bison.1 $(srcdir)/$(PFILE) $(srcdir)/$(PFILE1) installdirs uninstall
  97. $(INSTALL_PROGRAM) bison $(bindir)/bison
  98. $(INSTALL_DATA) ./bison.s1 $(datadir)/$(PFILE)
  99. $(INSTALL_DATA) $(srcdir)/$(PFILE1) $(datadir)/$(PFILE1)
  100. -chmod a+r $(datadir)/$(PFILE) $(datadir)/$(PFILE1)
  101. -$(INSTALL_DATA) $(srcdir)/bison.1 $(mandir)/bison.$(manext)
  102. -chmod a+r $(mandir)/bison.$(manext)
  103. cd $(srcdir); for f in bison.info*; \
  104. do $(INSTALL_DATA) $$f $(infodir)/$$f; done
  105. # Make sure all installation directories, e.g. $(bindir) actually exist by
  106. # making them if necessary.
  107. installdirs:
  108. -sh $(srcdir)/mkinstalldirs $(bindir) $(datadir) $(libdir) $(infodir) $(mandir)
  109. uninstall:
  110. rm -f $(bindir)/bison
  111. -cd $(datadir); rm -f $(PFILE) $(PFILE1)
  112. rm -f $(mandir)/bison.$(manext) $(infodir)/bison.info*
  113. bison: $(OBJECTS)
  114. $(CC) $(LDFLAGS) -o $@ $(OBJECTS) $(LIBS)
  115. dist: bison.info
  116. echo bison-`sed -e '/version_string/!d' -e 's/[^0-9.]*\([0-9.]*\).*/\1/' -e q version.c` > .fname
  117. -rm -rf `cat .fname`
  118. mkdir `cat .fname`
  119. dst=`cat .fname`; for f in $(DISTFILES); do \
  120. ln $(srcdir)/$$f $$dst/$$f || { echo copying $$f; cp -p $(srcdir)/$$f $$dst/$$f ; } \
  121. done
  122. tar --gzip -chf `cat .fname`.tar.gz `cat .fname`
  123. -rm -rf `cat .fname` .fname
  124. bison.info: bison.texinfo
  125. $(MAKEINFO) $(srcdir)/bison.texinfo
  126. TAGS: *.c *.h
  127. etags *.c *.h
  128. # This file is different to pass the parser file names to the compiler.
  129. files.o: files.c
  130. $(CC) -c $(PFILES) $(DEFS) $(CPPFLAGS) $(CFLAGS) \
  131. $(srcdir)/files.c $(OUTPUT_OPTION)
  132. LR0.o: system.h machine.h new.h gram.h state.h
  133. closure.o: system.h machine.h new.h gram.h
  134. conflicts.o: system.h machine.h new.h files.h gram.h state.h
  135. derives.o: system.h new.h types.h gram.h
  136. files.o: system.h files.h new.h gram.h
  137. getargs.o: system.h files.h
  138. lalr.o: system.h machine.h types.h state.h new.h gram.h
  139. lex.o: system.h files.h symtab.h lex.h
  140. main.o: system.h machine.h
  141. nullable.o: system.h types.h gram.h new.h
  142. output.o: system.h machine.h new.h files.h gram.h state.h
  143. print.o: system.h machine.h new.h files.h gram.h state.h
  144. reader.o: system.h files.h new.h symtab.h lex.h gram.h
  145. reduce.o: system.h machine.h files.h new.h gram.h
  146. symtab.o: system.h new.h symtab.h gram.h
  147. warshall.o: system.h machine.h
  148. # Prevent GNU make v3 from overflowing arg limit on SysV.
  149. .NOEXPORT: