aboutsummaryrefslogtreecommitdiff
path: root/lib/python/Makefile
diff options
context:
space:
mode:
authorDavid Phillips <david@sighup.nz>2019-05-08 22:01:55 +1200
committerDavid Phillips <david@sighup.nz>2019-05-08 22:43:07 +1200
commitccb9881319276e94fdede79c46c4f0d4c981dc41 (patch)
treef59898dd1881328b9fbf06160a194627462e56a7 /lib/python/Makefile
parentb01e76ae9cc32ee92e4203fe6d1c0e2f9edfe766 (diff)
downloadalarmd-master.tar.xz
Refactor build process, use setup.pyHEADmaster
Diffstat (limited to 'lib/python/Makefile')
-rw-r--r--lib/python/Makefile16
1 files changed, 6 insertions, 10 deletions
diff --git a/lib/python/Makefile b/lib/python/Makefile
index e260e64..e23cc9d 100644
--- a/lib/python/Makefile
+++ b/lib/python/Makefile
@@ -1,16 +1,12 @@
-CFLAGS += -fPIC \
- -I../../inc/ \
- $(shell pkg-config --cflags python3)
+include ../../config.mk
-all: alarms.so
+all:
+ $(PYTHON) setup.py build
-%.so: %.o
- $(CC) -shared -o $@ $< $(LDFLAGS)
-
-%.o: %.c
- $(CC) -c -o $@ $< $(CFLAGS)
+install:
+ $(PYTHON) setup.py install --root="$(DESTDIR)/$(PREFIX)"
.PHONY: clean
clean:
- - rm -f alarms.{s,}o
+ - rm -rf build *.egg-info