Eric Anholt | 07abd91 | 2012-05-14 18:38:54 -0700 | [diff] [blame] | 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. |
Brian Paul | de0ee31 | 2004-03-26 15:19:11 +0000 | [diff] [blame] | 21 | |
Ian Romanick | 2e8c866 | 2012-05-23 15:23:22 -0700 | [diff] [blame] | 22 | SUBDIRS = src |
Brian Paul | de0ee31 | 2004-03-26 15:19:11 +0000 | [diff] [blame] | 23 | |
Matt Turner | 7da1242 | 2012-09-18 20:21:47 -0700 | [diff] [blame] | 24 | ACLOCAL_AMFLAGS = -I m4 |
| 25 | |
Brian Paul | 6d50d91 | 2004-07-01 15:32:51 +0000 | [diff] [blame] | 26 | doxygen: |
Dan Nicholson | cba14d8 | 2008-05-06 12:29:53 -0700 | [diff] [blame] | 27 | cd doxygen && $(MAKE) |
Brian Paul | 6d50d91 | 2004-07-01 15:32:51 +0000 | [diff] [blame] | 28 | |
Eric Anholt | 07abd91 | 2012-05-14 18:38:54 -0700 | [diff] [blame] | 29 | .PHONY: doxygen |
Brian Paul | de0ee31 | 2004-03-26 15:19:11 +0000 | [diff] [blame] | 30 | |
Brian Paul | de0ee31 | 2004-03-26 15:19:11 +0000 | [diff] [blame] | 31 | # Rules for making release tarballs |
| 32 | |
José Fonseca | 9a7f84d | 2011-07-14 17:28:52 +0100 | [diff] [blame] | 33 | PACKAGE_DIR = Mesa-$(PACKAGE_VERSION) |
| 34 | PACKAGE_NAME = MesaLib-$(PACKAGE_VERSION) |
Brian Paul | de0ee31 | 2004-03-26 15:19:11 +0000 | [diff] [blame] | 35 | |
José Fonseca | 9a7f84d | 2011-07-14 17:28:52 +0100 | [diff] [blame] | 36 | EXTRA_FILES = \ |
| 37 | aclocal.m4 \ |
| 38 | configure \ |
Andreas Boll | 8a9f0fd | 2012-11-14 21:43:31 +0100 | [diff] [blame] | 39 | bin/ar-lib \ |
| 40 | bin/compile \ |
Andreas Boll | a0a90ea | 2012-11-14 21:34:44 +0100 | [diff] [blame] | 41 | bin/config.sub \ |
| 42 | bin/config.guess \ |
Andreas Boll | 8a9f0fd | 2012-11-14 21:43:31 +0100 | [diff] [blame] | 43 | bin/depcomp \ |
Matt Turner | ec57fbb | 2012-10-23 10:57:15 -0700 | [diff] [blame] | 44 | bin/install-sh \ |
Andreas Boll | 8a9f0fd | 2012-11-14 21:43:31 +0100 | [diff] [blame] | 45 | bin/ltmain.sh \ |
| 46 | bin/missing \ |
| 47 | bin/ylwrap \ |
Carl Worth | 93e399f | 2013-12-12 21:33:02 -0800 | [diff] [blame] | 48 | bin/test-driver \ |
Matt Turner | 86d30de | 2013-01-14 22:00:08 -0800 | [diff] [blame] | 49 | src/glsl/glsl_parser.cpp \ |
José Fonseca | 9a7f84d | 2011-07-14 17:28:52 +0100 | [diff] [blame] | 50 | src/glsl/glsl_parser.h \ |
Matt Turner | 86d30de | 2013-01-14 22:00:08 -0800 | [diff] [blame] | 51 | src/glsl/glsl_lexer.cpp \ |
José Fonseca | 9a7f84d | 2011-07-14 17:28:52 +0100 | [diff] [blame] | 52 | src/glsl/glcpp/glcpp-lex.c \ |
| 53 | src/glsl/glcpp/glcpp-parse.c \ |
| 54 | src/glsl/glcpp/glcpp-parse.h \ |
| 55 | src/mesa/program/lex.yy.c \ |
| 56 | src/mesa/program/program_parse.tab.c \ |
Andreas Boll | bc08f26 | 2012-11-14 21:39:15 +0100 | [diff] [blame] | 57 | src/mesa/program/program_parse.tab.h \ |
Andreas Boll | 0f5e2ce | 2012-11-16 10:46:06 +0100 | [diff] [blame] | 58 | `git ls-files | grep "Makefile.am" | sed -e "s/Makefile.am/Makefile.in/"` |
Andreas Boll | bc08f26 | 2012-11-14 21:39:15 +0100 | [diff] [blame] | 59 | |
Chia-I Wu | 238f782 | 2010-05-07 22:09:45 +0800 | [diff] [blame] | 60 | |
José Fonseca | 9a7f84d | 2011-07-14 17:28:52 +0100 | [diff] [blame] | 61 | IGNORE_FILES = \ |
| 62 | -x autogen.sh |
Brian Paul | de0ee31 | 2004-03-26 15:19:11 +0000 | [diff] [blame] | 63 | |
Brian Paul | dff11bb | 2005-07-21 18:44:52 +0000 | [diff] [blame] | 64 | |
Ian Romanick | 654adaa | 2011-02-11 16:44:11 -0800 | [diff] [blame] | 65 | parsers: configure |
Matt Turner | 86d30de | 2013-01-14 22:00:08 -0800 | [diff] [blame] | 66 | $(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 |
Ian Romanick | 654adaa | 2011-02-11 16:44:11 -0800 | [diff] [blame] | 67 | |
Brian Paul | 281f855 | 2004-09-09 18:17:36 +0000 | [diff] [blame] | 68 | # Everything for new a Mesa release: |
José Fonseca | 9a7f84d | 2011-07-14 17:28:52 +0100 | [diff] [blame] | 69 | ARCHIVES = $(PACKAGE_NAME).tar.gz \ |
| 70 | $(PACKAGE_NAME).tar.bz2 \ |
Eric Anholt | 07abd91 | 2012-05-14 18:38:54 -0700 | [diff] [blame] | 71 | $(PACKAGE_NAME).zip |
Brian Paul | 281f855 | 2004-09-09 18:17:36 +0000 | [diff] [blame] | 72 | |
Carl Worth | 46d03d3 | 2014-08-21 09:03:02 -0700 | [diff] [blame] | 73 | tarballs: checksums |
José Fonseca | 9a7f84d | 2011-07-14 17:28:52 +0100 | [diff] [blame] | 74 | rm -f ../$(PACKAGE_DIR) $(PACKAGE_NAME).tar |
Brian Paul | 281f855 | 2004-09-09 18:17:36 +0000 | [diff] [blame] | 75 | |
José Fonseca | 9a7f84d | 2011-07-14 17:28:52 +0100 | [diff] [blame] | 76 | manifest.txt: .git |
| 77 | ( \ |
| 78 | ls -1 $(EXTRA_FILES) ; \ |
| 79 | git ls-files $(IGNORE_FILES) \ |
| 80 | ) | sed -e '/^\(.*\/\)\?\./d' -e "s@^@$(PACKAGE_DIR)/@" > $@ |
Brian Paul | 24e2f61 | 2009-10-14 10:56:29 -0600 | [diff] [blame] | 81 | |
José Fonseca | 9a7f84d | 2011-07-14 17:28:52 +0100 | [diff] [blame] | 82 | ../$(PACKAGE_DIR): |
| 83 | ln -s $(PWD) $@ |
Brian Paul | de0ee31 | 2004-03-26 15:19:11 +0000 | [diff] [blame] | 84 | |
José Fonseca | 9a7f84d | 2011-07-14 17:28:52 +0100 | [diff] [blame] | 85 | $(PACKAGE_NAME).tar: parsers ../$(PACKAGE_DIR) manifest.txt |
| 86 | cd .. ; tar -cf $(PACKAGE_DIR)/$(PACKAGE_NAME).tar -T $(PACKAGE_DIR)/manifest.txt |
Brian Paul | 80cef69 | 2005-09-10 16:54:05 +0000 | [diff] [blame] | 87 | |
José Fonseca | 9a7f84d | 2011-07-14 17:28:52 +0100 | [diff] [blame] | 88 | $(PACKAGE_NAME).tar.gz: $(PACKAGE_NAME).tar ../$(PACKAGE_DIR) |
| 89 | gzip --stdout --best $(PACKAGE_NAME).tar > $(PACKAGE_NAME).tar.gz |
Brian Paul | de0ee31 | 2004-03-26 15:19:11 +0000 | [diff] [blame] | 90 | |
José Fonseca | 9a7f84d | 2011-07-14 17:28:52 +0100 | [diff] [blame] | 91 | $(PACKAGE_NAME).tar.bz2: $(PACKAGE_NAME).tar |
| 92 | bzip2 --stdout --best $(PACKAGE_NAME).tar > $(PACKAGE_NAME).tar.bz2 |
Brian Paul | 80cef69 | 2005-09-10 16:54:05 +0000 | [diff] [blame] | 93 | |
José Fonseca | 9a7f84d | 2011-07-14 17:28:52 +0100 | [diff] [blame] | 94 | $(PACKAGE_NAME).zip: parsers ../$(PACKAGE_DIR) manifest.txt |
| 95 | rm -f $(PACKAGE_NAME).zip ; \ |
Brian Paul | de0ee31 | 2004-03-26 15:19:11 +0000 | [diff] [blame] | 96 | cd .. ; \ |
José Fonseca | 9a7f84d | 2011-07-14 17:28:52 +0100 | [diff] [blame] | 97 | zip -q -@ $(PACKAGE_NAME).zip < $(PACKAGE_DIR)/manifest.txt ; \ |
| 98 | mv $(PACKAGE_NAME).zip $(PACKAGE_DIR) |
Brian Paul | 80cef69 | 2005-09-10 16:54:05 +0000 | [diff] [blame] | 99 | |
Carl Worth | 46d03d3 | 2014-08-21 09:03:02 -0700 | [diff] [blame] | 100 | checksums: $(ARCHIVES) |
| 101 | @-sha256sum $(PACKAGE_NAME).tar.gz |
| 102 | @-sha256sum $(PACKAGE_NAME).tar.bz2 |
| 103 | @-sha256sum $(PACKAGE_NAME).zip |
Dan Nicholson | 50f7e6f | 2008-05-06 11:52:34 -0700 | [diff] [blame] | 104 | |
Carl Worth | 7528f6f | 2014-08-26 16:13:14 -0700 | [diff] [blame] | 105 | .PHONY: tarballs checksums |