Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100755 49 lines (40 sloc) 1.953 kb
35984ed Partial commit of build system.
Matthew Hancher authored
1 # __BEGIN_LICENSE__
2 #
3 # Copyright (C) 2006 United States Government as represented by the
4 # Administrator of the National Aeronautics and Space Administration
5 # (NASA). All Rights Reserved.
6 #
7 # This software is distributed under the NASA Open Source Agreement
8 # (NOSA), version 1.3. The NOSA has been approved by the Open Source
9 # Initiative. See the file COPYING at the top of the distribution
10 # directory tree for the complete NOSA document.
11 #
12 # THE SUBJECT SOFTWARE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY OF ANY
13 # KIND, EITHER EXPRESSED, IMPLIED, OR STATUTORY, INCLUDING, BUT NOT
14 # LIMITED TO, ANY WARRANTY THAT THE SUBJECT SOFTWARE WILL CONFORM TO
15 # SPECIFICATIONS, ANY IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR
16 # A PARTICULAR PURPOSE, OR FREEDOM FROM INFRINGEMENT, ANY WARRANTY THAT
17 # THE SUBJECT SOFTWARE WILL BE ERROR FREE, OR ANY WARRANTY THAT
18 # DOCUMENTATION, IF PROVIDED, WILL CONFORM TO THE SUBJECT SOFTWARE.
19 #
20 # __END_LICENSE__
21
22 ########################################################################
23 # tests (using cxxtest)
24 ########################################################################
25
26 SUFFIXES = .cxx
27
28 CXXTEST_DIR := $(top_srcdir)/thirdparty/cxxtest
29 CXXTEST_GEN := $(CXXTEST_DIR)/cxxtestgen.pl
30 CXXTEST_ARGS := --error-printer
31
32 TESTS_SRCS := $(TESTS_H:.h=.cxx)
33 TESTS := $(TESTS_SRCS:.cxx=.test)
34
35 # We do some magic here to build inside the tests directory so that we
36 # can avoid having to put the current directory in the include path.
37 %.cxx: %.h
38 cd tests ; ../$(CXXTEST_GEN) $(CXXTEST_ARGS) -o $(patsubst tests/%,%,$@) $(patsubst tests/%,%,$<)
39
40 %.test: %.cxx
41 $(CXX) $(CC_OPTIMIZE_DEBUG) $(CFLAGS) $(CPPFLAGS) $(AM_CPPFLAGS) -I$(CXXTEST_DIR) $(INCLUDES) -o $@ $< $(TESTS_FLAGS) $(LDFLAGS) $(AM_LDFLAGS)
42
43 ########################################################################
44 # extra hooks
45 ########################################################################
46
47 distclean-local:
48 rm -f *~ $(TESTS)
Something went wrong with that request. Please try again.