aboutsummaryrefslogtreecommitdiff
path: root/makefile
diff options
context:
space:
mode:
authorConstantin Michael <constantin@codesynthesis.com>2011-04-28 11:21:37 +0200
committerConstantin Michael <constantin@codesynthesis.com>2011-05-03 11:01:18 +0200
commit00eab4e6eca4227b1ecd2c6f502eedad41c3af96 (patch)
treecc3c7c33dc38f4002923567e9f7eb8087f17b2c3 /makefile
parentf7f4d440622bc90c3aa491fd72951ae873505016 (diff)
Add libodb-pgsql infrastructure files
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..d60cdc6
--- /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/pgsql
+
+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-pgsql-vc9.sln libodb-pgsql-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-pgsql.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))