aboutsummaryrefslogtreecommitdiff
path: root/makefile
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2011-11-16 10:59:14 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2011-11-16 10:59:14 +0200
commit7e704a7e6e57cf877614fd762d4667ef32be2eea (patch)
tree167f6059a5a935585499fc006886abc69a4df6c8 /makefile
parent9cce004234838754b8bd7776b4ed37686c9a17c2 (diff)
Add build infrastructure, options file and exceptions implementation
Diffstat (limited to 'makefile')
-rw-r--r--makefile36
1 files changed, 36 insertions, 0 deletions
diff --git a/makefile b/makefile
new file mode 100644
index 0000000..d5b6cd4
--- /dev/null
+++ b/makefile
@@ -0,0 +1,36 @@
+# file : makefile
+# author : Boris Kolpackov <boris@codesynthesis.com>
+# copyright : Copyright (c) 2009-2011 Code Synthesis Tools CC
+# license : GNU GPL v2; see accompanying LICENSE file
+
+include $(dir $(lastword $(MAKEFILE_LIST)))build/bootstrap.make
+
+dirs := odb/mssql
+
+default := $(out_base)/
+dist := $(out_base)/.dist
+clean := $(out_base)/.clean
+
+$(default): $(addprefix $(out_base)/,$(addsuffix /,$(dirs)))
+
+$(dist): export dirs := $(dirs)
+$(dist): export docs := GPLv2 LICENSE README NEWS version
+$(dist): data_dist := INSTALL libodb-mssql-vc9.sln libodb-mssql-vc10.sln
+$(dist): exec_dist := bootstrap
+$(dist): export extra_dist := $(data_dist) $(exec_dist)
+$(dist): export version = $(shell cat $(src_root)/version)
+
+$(dist): $(addprefix $(out_base)/,$(addsuffix /.dist,$(dirs)))
+ $(call dist-data,$(docs) $(data_dist) libodb-mssql.pc.in)
+ $(call dist-exec,$(exec_dist))
+ $(call dist-dir,m4)
+ $(call meta-automake)
+ $(call meta-autoconf)
+
+$(clean): $(addprefix $(out_base)/,$(addsuffix /.clean,$(dirs)))
+
+$(call include,$(bld_root)/dist.make)
+$(call include,$(bld_root)/meta/automake.make)
+$(call include,$(bld_root)/meta/autoconf.make)
+
+$(foreach d,$(dirs),$(call import,$(src_base)/$d/makefile))