aboutsummaryrefslogtreecommitdiff
path: root/sqlite/makefile
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2011-03-28 11:22:59 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2011-03-28 11:22:59 +0200
commit1ba1097cd1d71b945255d9401ffa4f04a036e94f (patch)
treee58fb8541d412a9ebe62e839da2a6db9b4abbc89 /sqlite/makefile
parentd2c8179bfef0503647c519f44401f29d8bddd122 (diff)
Add SQLite-specific tests
Diffstat (limited to 'sqlite/makefile')
-rw-r--r--sqlite/makefile38
1 files changed, 38 insertions, 0 deletions
diff --git a/sqlite/makefile b/sqlite/makefile
new file mode 100644
index 0000000..b421807
--- /dev/null
+++ b/sqlite/makefile
@@ -0,0 +1,38 @@
+# file : sqlite/makefile
+# author : Boris Kolpackov <boris@codesynthesis.com>
+# copyright : Copyright (c) 2009-2011 Code Synthesis Tools CC
+# license : GNU GPL; see accompanying LICENSE file
+
+include $(dir $(lastword $(MAKEFILE_LIST)))../build/bootstrap.make
+
+tests := \
+template \
+native \
+truncation \
+types
+
+default := $(out_base)/
+dist := $(out_base)/.dist
+test := $(out_base)/.test
+clean := $(out_base)/.clean
+
+$(default): $(addprefix $(out_base)/,$(addsuffix /,$(tests)))
+
+$(dist): name := sqlite
+$(dist): export dirs := $(tests)
+$(dist): export extra_dist := $(name)-vc9.sln $(name)-vc10.sln test.bat
+$(dist): $(addprefix $(out_base)/,$(addsuffix /.dist,$(tests)))
+ $(call meta-automake)
+ $(call meta-vc9sln,$(name)-vc9.sln)
+ $(call meta-vc10sln,$(name)-vc10.sln)
+ $(call meta-vctest,$(name)-vc10.sln,test.bat)
+
+$(test): $(addprefix $(out_base)/,$(addsuffix /.test,$(tests)))
+$(clean): $(addprefix $(out_base)/,$(addsuffix /.clean,$(tests)))
+
+$(call include,$(bld_root)/meta/vc9sln.make)
+$(call include,$(bld_root)/meta/vc10sln.make)
+$(call include,$(bld_root)/meta/vctest.make)
+$(call include,$(bld_root)/meta/automake.make)
+
+$(foreach t,$(tests),$(call import,$(src_base)/$t/makefile))