aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile35
1 files changed, 35 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..e880ca9
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,35 @@
+
+LIBRARY ?= static
+PREFIX ?= $(PWD)/dist
+
+HPATH = include/xtract
+
+export XTRACT_VERSION PREFIX LIBRARY
+
+.PHONY: examples clean install doc src swig
+
+all: src examples
+
+src:
+ @$(MAKE) -C $@
+
+doc:
+ @$(MAKE) -C $@
+
+examples:
+ @$(MAKE) -C $@
+
+swig: src
+ @$(MAKE) -C $@
+
+install:
+ @$(MAKE) -C src install
+ @$(MAKE) -C examples install
+ @mkdir -p $(PREFIX)/$(HPATH)
+ @cp $(HPATH)/* $(PREFIX)/$(HPATH)
+
+clean:
+ @$(MAKE) -C src clean
+ @$(MAKE) -C examples clean
+ @$(MAKE) -C swig clean
+ @$(RM) -r dist