aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorJamie Bullock <jamie@jamiebullock.com>2014-11-08 00:07:02 +0000
committerJamie Bullock <jamie@jamiebullock.com>2014-11-08 00:07:02 +0000
commitba706261d3fc5b436aa6f09d57e62eeb77377d8f (patch)
tree4faadd5931a89a847ae9bb2345d9fe7bb0e2f778 /Makefile
parent89890e226e5da72743f885cefb5273c51baf094e (diff)
parent89a9ec7a352dc35141b8f9a87c202fdd448e9a6f (diff)
downloadLibXtract-ba706261d3fc5b436aa6f09d57e62eeb77377d8f.tar.gz
LibXtract-ba706261d3fc5b436aa6f09d57e62eeb77377d8f.tar.bz2
LibXtract-ba706261d3fc5b436aa6f09d57e62eeb77377d8f.zip
Merge branch 'feature/no-autotools' into develop
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