OSDN Git Service

Update MPC package set to version 1.1.0
[mingw/mingw-dist.git] / tests / Makefile.in
1 # @configure_input@
2 #
3 # $Id$
4 #
5 # Written by Keith Marshall <keithmarshall@users.sourceforge.net>
6 # Copyright (C) 2013, MinGW.org Project
7 #
8 #
9 # Makefile template for generating mingw-get distribution manifests.
10 #
11 #   Project: @PACKAGE_TARNAME@
12 #   Version: @PACKAGE_VERSION@
13 #
14 #
15 # This is free software.  Permission is granted to copy, modify and
16 # redistribute this software, under the provisions of the GNU General
17 # Public License, Version 3, (or, at your option, any later version),
18 # as published by the Free Software Foundation; see the file COPYING
19 # for licensing details.
20 #
21 # Note, in particular, that this software is provided "as is", in the
22 # hope that it may prove useful, but WITHOUT WARRANTY OF ANY KIND; not
23 # even an implied WARRANTY OF MERCHANTABILITY, nor of FITNESS FOR ANY
24 # PARTICULAR PURPOSE.  Under no circumstances will the author, or the
25 # MinGW Project, accept liability for any damages, however caused,
26 # arising from the use of this software.
27 #
28 VPATH = @srcdir@
29 vpath VERSION.m4 @srcdir@/..
30
31 CXX = @CXX@
32 CXXFLAGS = @CXXFLAGS@
33 LDFLAGS = @LDFLAGS@
34 LIBS = @LIBS@
35
36 EXEEXT = @EXEEXT@
37 OBJEXT = @OBJEXT@
38
39 srcdir = @srcdir@
40 xml_datarootdir = ${srcdir}/..
41
42 XMLCHECK =
43
44 check: @XERCES_C_TOOLS@
45         ./xmlcheck$(EXEEXT) ${srcdir}/pkgspec.xsd ${xml_datarootdir}/*/*.xml \
46           2> xmlcheck.log && rm -f xmlcheck.log \
47              || { cat xmlcheck.log; exit 1; }
48
49 no-xerces-c-tools:
50         @for msg in $(NO_XERCES_C_TOOLS_MSG); do echo $$msg; done; false
51
52 NO_XERCES_C_TOOLS_MSG = "" \
53   "This test suite requires the Xerces-C++ SDK, but it appears that" \
54   "this has not been installed on your system." "" \
55   "Please install a copy of this SDK, which is compatible with your" \
56   "system C++ compiler, if you wish to run this test suite." ""
57
58 xerces-c-tools: xmlcheck$(EXEEXT)
59 xmlcheck$(EXEEXT): xmlcheck.$(OBJEXT)
60         $(CXX) $(CXXFLAGS) -o $@ $(LDFLAGS) $^ $(LIBS)
61
62 sinclude *.d
63 %.$(OBJEXT): %.cpp
64         $(CXX) -MMD -MP -c $(CPPFLAGS) $(CXXFLAGS) -o $@ $<
65
66 configure: configure.ac VERSION.m4
67         cd ${srcdir}; autoconf
68
69 config.status: configure
70         ./config.status --recheck
71
72 Makefile: config.status Makefile.in
73         ./config.status
74
75 clean:
76         rm -f *.$(OBJEXT) xmlcheck$(EXEEXT)
77
78 # $RCSfile$: end of file