jreese

Make-lang.in

Jul 5th, 2012
121
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Make 3.51 KB | None | 0 0
  1. #   -*- makefile -*-
  2. # GOAS makefile fragement
  3. # Copyright (C) 2010
  4. # Free Software Foundation, Inc.
  5. #
  6. # This file is part of GCC.
  7. #
  8. # GCC is free software; you can redistribute it and/or modify it under
  9. # the terms of the GNU General Public License as published by the Free
  10. # Software Foundation; either version 3, or (at your option) any later
  11. # version.
  12. #
  13. # GCC is distributed in the hope that it will be useful, but WITHOUT ANY
  14. # WARRANTY; without even the implied warranty of MERCHANTABILITY or
  15. # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  16. # for more details.
  17. #
  18. # You should have received a copy of the GNU General Public License
  19. # along with GCC; see the file COPYING3.  If not see
  20. # <http://www.gnu.org/licenses/>.  
  21.  
  22. OAS_OBJS = \
  23.     oas/oas1.o \
  24.     oas/oas_scanner.o \
  25.     oas/oas_parser.o \
  26.     oas/oas_lang.o
  27.  
  28. GOAS_EXECS = goas
  29.  
  30. .phony: oas
  31.  
  32. oas: goas$(exeext) oas1$(exeext)
  33.  
  34. oas/oas_scanner.c oas/oas_scanner.h: oas/oas_scanner.l
  35.     $(FLEX) --header-file=oas/oas_scanner.h -P oas_ -o oas/oas_scanner.c $<
  36.  
  37. oas/oas_parser.c oas/oas_parser.h: oas/oas_parser.y
  38.     $(BISON) -p oas_ -d -o oas/oas_parser.c $<
  39.  
  40. oas/oas_scanner.o: oas/oas_scanner.c oas/oas_parser.h
  41.  
  42. oas/oas_parser.o: oas/oas_parser.c oas/oas_scanner.h oas/oas_parser.h
  43.  
  44. oas/oas_lang.o: oas/oas_lang.c
  45.  
  46. oas/oas1.o: $(CONFIG_H) $(SYSTEM_H) $(TM_H) $(TREE_H) \
  47.   $(FLAGS_H) $(GGC_H) $(DIAGNOSTIC_H) toplev.h coretypes.h \
  48.   input.h options.h opts.h \
  49.   oas/oas1.c oas/oas1.h gtype-oas.h
  50.  
  51. oas1$(exeext): $(OAS_OBJS) $(BACKEND) $(LIBSDEPS) attribs.o
  52.     $(CC) $(OAS_OBJS) $(ALL_CFLAGS) $(LDFLAGS) $(BACKEND) $(LIBS) $(GMPLIBS) \
  53.   $(BACKENDLIBS) attribs.o -o $@
  54.  
  55. oas/oasspec.o: oas/oasspec.o $(CONFIG_H) $(SYSTEM_H) \
  56.     coretypes.h $(DIAGNOSTIC_H) $(TREE_H) $(FLAGS_H) toplev.h langhooks.h $(TM_H)
  57.     $(CC) $(GPY_CFLAGS) $(ALL_COMPILERFLAGS) $(ALL_CPPFLAGS) $(DRIVER_DEFINES) \
  58.         $(INCLUDES) $(LDFLAGS) -c -o $@ $(srcdir)/oas/oasspec.c
  59.  
  60. goas$(exeext): $(GCC_OBJS) $(EXTRA_GCC_OBJS) libcommon-target.a $(LIBDEPS) oas/oasspec.o
  61.     $(LINKER) $(ALL_LINKERFLAGS) $(LDFLAGS) -o $@ \
  62.       $(GCC_OBJS) oas/oasspec.o $(EXTRA_GCC_OBJS) $(LIBS) libcommon-target.a \
  63.       $(EXTRA_GCC_LIBS) $(LIBS)
  64.  
  65. oas.srcextra:
  66.  
  67. oas.all.cross:
  68. oas.start.encap:
  69. oas.rest.encap:
  70. oas.man:
  71. oas.srcman:
  72.  
  73. oas.info:
  74. oas.srcinfo:
  75. oas.dvi:
  76. oas.pdf:
  77. oas.html:
  78.  
  79. oas.tags: force
  80.     cd $(srcdir)/oas; etags -o TAGS.sub *.y *.l *.c *.h; \
  81.     etags --include TAGS.sub --include ../TAGS.sub
  82.  
  83. oas.install oas.install.common oas.install-common: oas.install.common.done
  84.  
  85. oas.install.common.done:  installdirs
  86.     for name in $(GOAS_EXECS); \
  87.       do \
  88.         if [ -f $$name ] ; then \
  89.           name2="`echo \`basename $$name\` | sed -e '$(program_transform_name)' `"; \
  90.           rm -f $(DESTDIR)$(bindir)/$$name2$(exeext); \
  91.           $(INSTALL_PROGRAM) $$name$(exeext) $(DESTDIR)$(bindir)/$$name2$(exeext); \
  92.           chmod a+x $(DESTDIR)$(bindir)/$$name2$(exeext); \
  93.         fi ; \
  94.       done
  95.  
  96. oas.install-info:
  97. oas.install-pdf:
  98. oas.install-man:
  99.  
  100. oas.clean: mostlyclean
  101.  
  102. oas.mostlyclean:
  103.     cd oas; rm -f oas_scanner.c oas_parser.c oas_parser.h *o
  104.  
  105. oas.install-plugin:
  106.  
  107. oas.stage1: stage1-start
  108.     -mv oas/*$(objext) stage1/oas
  109. oas.stage2: stage2-start
  110.     -mv oas/*$(objext) stage2/oas
  111. oas.stage3: stage3-start
  112.     -mv oas/*$(objext) stage3/oas
  113. oas.stage4: stage4-start
  114.     -mv oas/*$(objext) stage4/oas
  115. oas.stageprofile: stageprofile-start
  116.     -mv oas/*$(objext) stageprofile/oas
  117. oas.stagefeedback: stagefeedback-start
  118.     -mv oas/*$(objext) stagefeedback/oas
  119.  
  120. config.status: oas/config-lang.in
Advertisement
Add Comment
Please, Sign In to add comment