OSDN Git Service

Remove configs/{current,default}
[android-x86/external-mesa.git] / Makefile.am
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
22 SUBDIRS = src
23
24 ACLOCAL_AMFLAGS = -I m4
25
26 doxygen:
27         cd doxygen && $(MAKE)
28
29 check-local:
30         $(MAKE) -C src/mapi/glapi/tests check
31         $(MAKE) -C src/mapi/shared-glapi/tests check
32         $(MAKE) -C src/mesa/main/tests check
33         $(MAKE) -C src/glsl/tests check
34         $(MAKE) -C src/glx/tests check
35
36 .PHONY: doxygen
37
38 # Rules for making release tarballs
39
40 PACKAGE_VERSION=9.1-devel
41 PACKAGE_DIR = Mesa-$(PACKAGE_VERSION)
42 PACKAGE_NAME = MesaLib-$(PACKAGE_VERSION)
43
44 EXTRA_FILES = \
45         aclocal.m4                                      \
46         configure                                       \
47         bin/ar-lib                                      \
48         bin/compile                                     \
49         bin/config.sub                                  \
50         bin/config.guess                                \
51         bin/depcomp                                     \
52         bin/install-sh                                  \
53         bin/ltmain.sh                                   \
54         bin/missing                                     \
55         bin/ylwrap                                      \
56         src/glsl/glsl_parser.cc                         \
57         src/glsl/glsl_parser.h                          \
58         src/glsl/glsl_lexer.cc                          \
59         src/glsl/glcpp/glcpp-lex.c                      \
60         src/glsl/glcpp/glcpp-parse.c                    \
61         src/glsl/glcpp/glcpp-parse.h                    \
62         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       \
68         src/mesa/program/lex.yy.c                       \
69         src/mesa/program/program_parse.tab.c            \
70         src/mesa/program/program_parse.tab.h            \
71         `git ls-files | grep "Makefile.am" | sed -e "s/Makefile.am/Makefile.in/"`
72
73
74 IGNORE_FILES = \
75         -x autogen.sh
76
77
78 parsers: configure
79         $(MAKE) -C src/glsl glsl_parser.cc glsl_parser.h glsl_lexer.cc
80         $(MAKE) -C src/glsl/glcpp glcpp-lex.c glcpp-parse.c glcpp-parse.h
81         $(MAKE) -C src/mesa/program lex.yy.c program_parse.tab.c program_parse.tab.h
82
83 # Everything for new a Mesa release:
84 ARCHIVES = $(PACKAGE_NAME).tar.gz \
85         $(PACKAGE_NAME).tar.bz2 \
86         $(PACKAGE_NAME).zip
87
88 tarballs: md5
89         rm -f ../$(PACKAGE_DIR) $(PACKAGE_NAME).tar
90
91 manifest.txt: .git
92         ( \
93                 ls -1 $(EXTRA_FILES) ; \
94                 git ls-files $(IGNORE_FILES) \
95         ) | sed -e '/^\(.*\/\)\?\./d' -e "s@^@$(PACKAGE_DIR)/@" > $@
96
97 ../$(PACKAGE_DIR):
98         ln -s $(PWD) $@
99
100 $(PACKAGE_NAME).tar: parsers ../$(PACKAGE_DIR) manifest.txt
101         cd .. ; tar -cf $(PACKAGE_DIR)/$(PACKAGE_NAME).tar -T $(PACKAGE_DIR)/manifest.txt
102
103 $(PACKAGE_NAME).tar.gz: $(PACKAGE_NAME).tar ../$(PACKAGE_DIR)
104         gzip --stdout --best $(PACKAGE_NAME).tar > $(PACKAGE_NAME).tar.gz
105
106 $(PACKAGE_NAME).tar.bz2: $(PACKAGE_NAME).tar
107         bzip2 --stdout --best $(PACKAGE_NAME).tar > $(PACKAGE_NAME).tar.bz2
108
109 $(PACKAGE_NAME).zip: parsers ../$(PACKAGE_DIR) manifest.txt
110         rm -f $(PACKAGE_NAME).zip ; \
111         cd .. ; \
112         zip -q -@ $(PACKAGE_NAME).zip < $(PACKAGE_DIR)/manifest.txt ; \
113         mv $(PACKAGE_NAME).zip $(PACKAGE_DIR)
114
115 md5: $(ARCHIVES)
116         @-md5sum $(PACKAGE_NAME).tar.gz
117         @-md5sum $(PACKAGE_NAME).tar.bz2
118         @-md5sum $(PACKAGE_NAME).zip
119
120 .PHONY: tarballs md5