Makefile 5.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172
  1. # Generated automatically from Makefile.in by configure.
  2. # Makefile for bison
  3. # Copyright (C) 1984, 1989, 1991 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 = gcc -O
  24. #INSTALL = /usr/ucb/install -c
  25. # for hp_ux102
  26. INSTALL = /opt/imake/bin/install
  27. INSTALL_PROGRAM = $(INSTALL)
  28. INSTALL_DATA = $(INSTALL) -m 644
  29. # Things you might add to DEFS:
  30. # -DSTDC_HEADERS If you have ANSI C headers and libraries.
  31. # -DUSG If you have System V/ANSI C string and
  32. # memory functions and headers.
  33. # -DHAVE_STRERROR If you have strerror function.
  34. DEFS = -DSTDC_HEADERS=1 -DUSG=1 -DHAVE_STRERROR=1 -DHAVE_ALLOCA_H=1
  35. CFLAGS = -g
  36. LDFLAGS = -g
  37. LIBS =
  38. # Some System V machines do not come with libPW. If this is true, use
  39. # the GNU alloca.o here.
  40. ALLOCA =
  41. prefix = /afs/cern.ch/na49/library/local
  42. exec_prefix = $(prefix)
  43. # where the installed binary goes
  44. bindir = $(exec_prefix)/bin
  45. # where the parsers go
  46. datadir = $(prefix)/lib
  47. # where the info files go
  48. infodir = $(prefix)/info
  49. # where manual pages go and what their extensions should be
  50. mandir = $(prefix)/man/man$(manext)
  51. manext = 1
  52. #### End of system configuration section. ####
  53. SHELL = /bin/sh
  54. # This rule allows us to supply the necessary -D options
  55. # in addition to whatever the user asks for.
  56. .c.o:
  57. $(CC) -c $(CFLAGS) $(CPPFLAGS) $(DEFS) -I$(srcdir)/../include $<
  58. # names of parser files
  59. PFILE = bison.simple
  60. PFILE1 = bison.hairy
  61. PFILES = -DXPFILE=\"$(datadir)/$(PFILE)\" \
  62. -DXPFILE1=\"$(datadir)/$(PFILE1)\"
  63. OBJECTS = LR0.o allocate.o closure.o conflicts.o derives.o files.o \
  64. getargs.o gram.o lalr.o lex.o \
  65. main.o nullable.o output.o print.o reader.o reduce.o symtab.o \
  66. warshall.o version.o \
  67. getopt.o getopt1.o $(ALLOCA)
  68. all: bison bison.info
  69. clean:
  70. rm -f *.o core bison
  71. mostlyclean: clean
  72. distclean: clean
  73. rm -f Makefile config.status
  74. realclean: distclean
  75. rm -f TAGS *.info*
  76. # Most of these deps are in case using RCS.
  77. install: all bison.1 $(srcdir)/$(PFILE) $(srcdir)/$(PFILE1)
  78. $(INSTALL_PROGRAM) bison $(bindir)/bison
  79. -cd $(datadir); rm -f $(PFILE) $(PFILE1)
  80. # Copy bison.simple, inserting directory name into the #line commands.
  81. -rm -f tmp-simple
  82. sed -e "/^#line/ s|bison|$(datadir)/bison|" < $(srcdir)/$(PFILE) > tmp-simple
  83. $(INSTALL_DATA) ./tmp-simple $(datadir)/$(PFILE)
  84. rm -f tmp-simple
  85. $(INSTALL_DATA) $(srcdir)/$(PFILE1) $(datadir)/$(PFILE1)
  86. -chmod a+r $(datadir)/$(PFILE) $(datadir)/$(PFILE1)
  87. -$(INSTALL_DATA) $(srcdir)/bison.1 $(mandir)/bison.$(manext)
  88. -chmod a+r $(mandir)/bison.$(manext)
  89. for file in $(srcdir)/bison.info*; \
  90. do $(INSTALL_DATA) $$file $(infodir)/$$file; \
  91. done
  92. uninstall:
  93. rm -f $(bindir)/bison
  94. -cd $(datadir); rm -f $(PFILE) $(PFILE1)
  95. rm -f $(mandir)/bison.$(manext) $(infodir)/bison.info*
  96. bison: $(OBJECTS)
  97. $(CC) $(LDFLAGS) -o $@ $(OBJECTS) $(LIBS)
  98. dist: bison.info
  99. echo bison-`sed -e '/version_string/!d' -e 's/[^0-9.]*\([0-9.]*\).*/\1/' -e q version.c` > .fname
  100. -rm -rf `cat .fname`
  101. mkdir `cat .fname`
  102. ln COPYING ChangeLog Makefile.in configure configure.in \
  103. REFERENCES bison.1 bison.rnh \
  104. bison.simple bison.hairy \
  105. LR0.c allocate.c closure.c conflicts.c derives.c \
  106. files.c getargs.c gram.c lalr.c lex.c main.c nullable.c \
  107. output.c print.c reader.c reduce.c symtab.c version.c \
  108. warshall.c files.h gram.h lex.h machine.h new.h state.h \
  109. symtab.h system.h types.h bison.cld build.com vmsgetargs.c \
  110. vmshlp.mar README INSTALL bison.texinfo bison.info* texinfo.tex \
  111. `cat .fname`
  112. cp -p getopt.[ch] getopt1.c alloca.c `cat .fname`
  113. tar chZf `cat .fname`.tar.Z `cat .fname`
  114. -rm -rf `cat .fname` .fname
  115. bison.info: bison.texinfo
  116. makeinfo $(srcdir)/bison.texinfo
  117. TAGS: *.c *.h
  118. etags *.c *.h
  119. # This file is different to pass the parser file names to the compiler.
  120. files.o: files.c
  121. $(CC) -c $(CFLAGS) $(PFILES) $(srcdir)/files.c $(OUTPUT_OPTION)
  122. LR0.o: system.h machine.h new.h gram.h state.h
  123. closure.o: system.h machine.h new.h gram.h
  124. conflicts.o: system.h machine.h new.h files.h gram.h state.h
  125. derives.o: system.h new.h types.h gram.h
  126. files.o: system.h files.h new.h gram.h
  127. getargs.o: system.h files.h
  128. lalr.o: system.h machine.h types.h state.h new.h gram.h
  129. lex.o: system.h files.h symtab.h lex.h
  130. main.o: system.h machine.h
  131. nullable.o: system.h types.h gram.h new.h
  132. output.o: system.h machine.h new.h files.h gram.h state.h
  133. print.o: system.h machine.h new.h files.h gram.h state.h
  134. reader.o: system.h files.h new.h symtab.h lex.h gram.h
  135. reduce.o: system.h machine.h files.h new.h gram.h
  136. symtab.o: system.h new.h symtab.h gram.h
  137. warshall.o: system.h machine.h
  138. # Prevent GNU make v3 from overflowing arg limit on SysV.
  139. .NOEXPORT: