Clone of mesa.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

Makefile.am 3.3KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106
  1. # Copyright © 2012 Intel Corporation
  2. #
  3. # Permission is hereby granted, free of charge, to any person obtaining a
  4. # copy of this software and associated documentation files (the "Software"),
  5. # to deal in the Software without restriction, including without limitation
  6. # the rights to use, copy, modify, merge, publish, distribute, sublicense,
  7. # and/or sell copies of the Software, and to permit persons to whom the
  8. # Software is furnished to do so, subject to the following conditions:
  9. #
  10. # The above copyright notice and this permission notice (including the next
  11. # paragraph) shall be included in all copies or substantial portions of the
  12. # Software.
  13. #
  14. # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
  15. # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
  16. # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
  17. # THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
  18. # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
  19. # FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
  20. # IN THE SOFTWARE.
  21. SUBDIRS = src
  22. ACLOCAL_AMFLAGS = -I m4
  23. doxygen:
  24. cd doxygen && $(MAKE)
  25. .PHONY: doxygen
  26. # Rules for making release tarballs
  27. PACKAGE_DIR = Mesa-$(PACKAGE_VERSION)
  28. PACKAGE_NAME = MesaLib-$(PACKAGE_VERSION)
  29. EXTRA_FILES = \
  30. aclocal.m4 \
  31. configure \
  32. bin/ar-lib \
  33. bin/compile \
  34. bin/config.sub \
  35. bin/config.guess \
  36. bin/depcomp \
  37. bin/install-sh \
  38. bin/ltmain.sh \
  39. bin/missing \
  40. bin/ylwrap \
  41. bin/test-driver \
  42. src/glsl/glsl_parser.cpp \
  43. src/glsl/glsl_parser.h \
  44. src/glsl/glsl_lexer.cpp \
  45. src/glsl/glcpp/glcpp-lex.c \
  46. src/glsl/glcpp/glcpp-parse.c \
  47. src/glsl/glcpp/glcpp-parse.h \
  48. src/mesa/program/lex.yy.c \
  49. src/mesa/program/program_parse.tab.c \
  50. src/mesa/program/program_parse.tab.h \
  51. `git ls-files | grep "Makefile.am" | sed -e "s/Makefile.am/Makefile.in/"`
  52. IGNORE_FILES = \
  53. -x autogen.sh
  54. parsers: configure
  55. $(MAKE) -C src/glsl glsl_parser.cpp glsl_parser.h glsl_lexer.cpp glcpp/glcpp-lex.c glcpp/glcpp-parse.c glcpp/glcpp-parse.h
  56. $(MAKE) -C src/mesa program/lex.yy.c program/program_parse.tab.c program/program_parse.tab.h
  57. # Everything for new a Mesa release:
  58. ARCHIVES = $(PACKAGE_NAME).tar.gz \
  59. $(PACKAGE_NAME).tar.bz2 \
  60. $(PACKAGE_NAME).zip
  61. tarballs: md5
  62. rm -f ../$(PACKAGE_DIR) $(PACKAGE_NAME).tar
  63. manifest.txt: .git
  64. ( \
  65. ls -1 $(EXTRA_FILES) ; \
  66. git ls-files $(IGNORE_FILES) \
  67. ) | sed -e '/^\(.*\/\)\?\./d' -e "s@^@$(PACKAGE_DIR)/@" > $@
  68. ../$(PACKAGE_DIR):
  69. ln -s $(PWD) $@
  70. $(PACKAGE_NAME).tar: parsers ../$(PACKAGE_DIR) manifest.txt
  71. cd .. ; tar -cf $(PACKAGE_DIR)/$(PACKAGE_NAME).tar -T $(PACKAGE_DIR)/manifest.txt
  72. $(PACKAGE_NAME).tar.gz: $(PACKAGE_NAME).tar ../$(PACKAGE_DIR)
  73. gzip --stdout --best $(PACKAGE_NAME).tar > $(PACKAGE_NAME).tar.gz
  74. $(PACKAGE_NAME).tar.bz2: $(PACKAGE_NAME).tar
  75. bzip2 --stdout --best $(PACKAGE_NAME).tar > $(PACKAGE_NAME).tar.bz2
  76. $(PACKAGE_NAME).zip: parsers ../$(PACKAGE_DIR) manifest.txt
  77. rm -f $(PACKAGE_NAME).zip ; \
  78. cd .. ; \
  79. zip -q -@ $(PACKAGE_NAME).zip < $(PACKAGE_DIR)/manifest.txt ; \
  80. mv $(PACKAGE_NAME).zip $(PACKAGE_DIR)
  81. md5: $(ARCHIVES)
  82. @-md5sum $(PACKAGE_NAME).tar.gz
  83. @-md5sum $(PACKAGE_NAME).tar.bz2
  84. @-md5sum $(PACKAGE_NAME).zip
  85. .PHONY: tarballs md5