blob: c6fc06248529338004366ceb688e16feaa639e7b [file] [log] [blame]
Eric Anholt07abd912012-05-14 18:38:54 -07001# 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 Paulde0ee312004-03-26 15:19:11 +000021
Ian Romanick2e8c8662012-05-23 15:23:22 -070022SUBDIRS = src
Brian Paulde0ee312004-03-26 15:19:11 +000023
Matt Turner7da12422012-09-18 20:21:47 -070024ACLOCAL_AMFLAGS = -I m4
25
Brian Paul6d50d912004-07-01 15:32:51 +000026doxygen:
Dan Nicholsoncba14d82008-05-06 12:29:53 -070027 cd doxygen && $(MAKE)
Brian Paul6d50d912004-07-01 15:32:51 +000028
Eric Anholt07abd912012-05-14 18:38:54 -070029check-local:
Ian Romanicka29ad2b2012-05-29 11:28:11 -070030 $(MAKE) -C src/mapi/glapi/tests check
Ian Romanick45d3d0a2012-08-01 14:48:27 -070031 $(MAKE) -C src/mapi/shared-glapi/tests check
Ian Romanick8fecdcc2012-05-25 08:26:33 -070032 $(MAKE) -C src/mesa/main/tests check
Eric Anholt07abd912012-05-14 18:38:54 -070033 $(MAKE) -C src/glsl/tests check
Ian Romanick2e8c8662012-05-23 15:23:22 -070034 $(MAKE) -C src/glx/tests check
Paul Berry659cded2011-07-05 11:52:06 -070035
Eric Anholt07abd912012-05-14 18:38:54 -070036.PHONY: doxygen
Brian Paulde0ee312004-03-26 15:19:11 +000037
Brian Paulde0ee312004-03-26 15:19:11 +000038# Rules for making release tarballs
39
Andreas Bolle81ee672012-09-07 23:49:01 +020040PACKAGE_VERSION=9.1-devel
José Fonseca9a7f84d2011-07-14 17:28:52 +010041PACKAGE_DIR = Mesa-$(PACKAGE_VERSION)
42PACKAGE_NAME = MesaLib-$(PACKAGE_VERSION)
Brian Paulde0ee312004-03-26 15:19:11 +000043
José Fonseca9a7f84d2011-07-14 17:28:52 +010044EXTRA_FILES = \
45 aclocal.m4 \
46 configure \
Andreas Boll8a9f0fd2012-11-14 21:43:31 +010047 bin/ar-lib \
48 bin/compile \
Andreas Bolla0a90ea2012-11-14 21:34:44 +010049 bin/config.sub \
50 bin/config.guess \
Andreas Boll8a9f0fd2012-11-14 21:43:31 +010051 bin/depcomp \
Matt Turnerec57fbb2012-10-23 10:57:15 -070052 bin/install-sh \
Andreas Boll8a9f0fd2012-11-14 21:43:31 +010053 bin/ltmain.sh \
54 bin/missing \
55 bin/ylwrap \
Matt Turner86d30de2013-01-14 22:00:08 -080056 src/glsl/glsl_parser.cpp \
José Fonseca9a7f84d2011-07-14 17:28:52 +010057 src/glsl/glsl_parser.h \
Matt Turner86d30de2013-01-14 22:00:08 -080058 src/glsl/glsl_lexer.cpp \
José Fonseca9a7f84d2011-07-14 17:28:52 +010059 src/glsl/glcpp/glcpp-lex.c \
60 src/glsl/glcpp/glcpp-parse.c \
61 src/glsl/glcpp/glcpp-parse.h \
Jakob Bornecrantz56d05a82012-03-20 13:24:50 +000062 src/mesa/main/api_exec_es1.c \
63 src/mesa/main/api_exec_es1_dispatch.h \
64 src/mesa/main/api_exec_es1_remap_helper.h \
65 src/mesa/main/api_exec_es2.c \
66 src/mesa/main/api_exec_es2_dispatch.h \
67 src/mesa/main/api_exec_es2_remap_helper.h \
José Fonseca9a7f84d2011-07-14 17:28:52 +010068 src/mesa/program/lex.yy.c \
69 src/mesa/program/program_parse.tab.c \
Andreas Bollbc08f262012-11-14 21:39:15 +010070 src/mesa/program/program_parse.tab.h \
Andreas Boll0f5e2ce2012-11-16 10:46:06 +010071 `git ls-files | grep "Makefile.am" | sed -e "s/Makefile.am/Makefile.in/"`
Andreas Bollbc08f262012-11-14 21:39:15 +010072
Chia-I Wu238f7822010-05-07 22:09:45 +080073
José Fonseca9a7f84d2011-07-14 17:28:52 +010074IGNORE_FILES = \
75 -x autogen.sh
Brian Paulde0ee312004-03-26 15:19:11 +000076
Brian Pauldff11bb2005-07-21 18:44:52 +000077
Ian Romanick654adaa2011-02-11 16:44:11 -080078parsers: configure
Matt Turner86d30de2013-01-14 22:00:08 -080079 $(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
Andreas Boll4a389262012-11-14 23:38:16 +010080 $(MAKE) -C src/mesa/program lex.yy.c program_parse.tab.c program_parse.tab.h
Ian Romanick654adaa2011-02-11 16:44:11 -080081
Brian Paul281f8552004-09-09 18:17:36 +000082# Everything for new a Mesa release:
José Fonseca9a7f84d2011-07-14 17:28:52 +010083ARCHIVES = $(PACKAGE_NAME).tar.gz \
84 $(PACKAGE_NAME).tar.bz2 \
Eric Anholt07abd912012-05-14 18:38:54 -070085 $(PACKAGE_NAME).zip
Brian Paul281f8552004-09-09 18:17:36 +000086
Ian Romanick654adaa2011-02-11 16:44:11 -080087tarballs: md5
José Fonseca9a7f84d2011-07-14 17:28:52 +010088 rm -f ../$(PACKAGE_DIR) $(PACKAGE_NAME).tar
Brian Paul281f8552004-09-09 18:17:36 +000089
José Fonseca9a7f84d2011-07-14 17:28:52 +010090manifest.txt: .git
91 ( \
92 ls -1 $(EXTRA_FILES) ; \
93 git ls-files $(IGNORE_FILES) \
94 ) | sed -e '/^\(.*\/\)\?\./d' -e "s@^@$(PACKAGE_DIR)/@" > $@
Brian Paul24e2f612009-10-14 10:56:29 -060095
José Fonseca9a7f84d2011-07-14 17:28:52 +010096../$(PACKAGE_DIR):
97 ln -s $(PWD) $@
Brian Paulde0ee312004-03-26 15:19:11 +000098
José Fonseca9a7f84d2011-07-14 17:28:52 +010099$(PACKAGE_NAME).tar: parsers ../$(PACKAGE_DIR) manifest.txt
100 cd .. ; tar -cf $(PACKAGE_DIR)/$(PACKAGE_NAME).tar -T $(PACKAGE_DIR)/manifest.txt
Brian Paul80cef692005-09-10 16:54:05 +0000101
José Fonseca9a7f84d2011-07-14 17:28:52 +0100102$(PACKAGE_NAME).tar.gz: $(PACKAGE_NAME).tar ../$(PACKAGE_DIR)
103 gzip --stdout --best $(PACKAGE_NAME).tar > $(PACKAGE_NAME).tar.gz
Brian Paulde0ee312004-03-26 15:19:11 +0000104
José Fonseca9a7f84d2011-07-14 17:28:52 +0100105$(PACKAGE_NAME).tar.bz2: $(PACKAGE_NAME).tar
106 bzip2 --stdout --best $(PACKAGE_NAME).tar > $(PACKAGE_NAME).tar.bz2
Brian Paul80cef692005-09-10 16:54:05 +0000107
José Fonseca9a7f84d2011-07-14 17:28:52 +0100108$(PACKAGE_NAME).zip: parsers ../$(PACKAGE_DIR) manifest.txt
109 rm -f $(PACKAGE_NAME).zip ; \
Brian Paulde0ee312004-03-26 15:19:11 +0000110 cd .. ; \
José Fonseca9a7f84d2011-07-14 17:28:52 +0100111 zip -q -@ $(PACKAGE_NAME).zip < $(PACKAGE_DIR)/manifest.txt ; \
112 mv $(PACKAGE_NAME).zip $(PACKAGE_DIR)
Brian Paul80cef692005-09-10 16:54:05 +0000113
Ian Romanick10342842011-02-11 16:27:22 -0800114md5: $(ARCHIVES)
José Fonseca9a7f84d2011-07-14 17:28:52 +0100115 @-md5sum $(PACKAGE_NAME).tar.gz
116 @-md5sum $(PACKAGE_NAME).tar.bz2
117 @-md5sum $(PACKAGE_NAME).zip
Dan Nicholson50f7e6f2008-05-06 11:52:34 -0700118
Eric Anholt07abd912012-05-14 18:38:54 -0700119.PHONY: tarballs md5