aboutsummaryrefslogtreecommitdiff
path: root/lib/python/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'lib/python/Makefile')
-rw-r--r--lib/python/Makefile10
1 files changed, 3 insertions, 7 deletions
diff --git a/lib/python/Makefile b/lib/python/Makefile
index d5d3702..e260e64 100644
--- a/lib/python/Makefile
+++ b/lib/python/Makefile
@@ -1,10 +1,6 @@
-PYTHONINC = /usr/include/python3.7m/
-
-LDFLAGS += -L../../lib \
- -luuid -lalarm
CFLAGS += -fPIC \
- -I$(PYTHONINC) \
- -I../../inc/
+ -I../../inc/ \
+ $(shell pkg-config --cflags python3)
all: alarms.so
@@ -12,7 +8,7 @@ all: alarms.so
$(CC) -shared -o $@ $< $(LDFLAGS)
%.o: %.c
- $(CC) -c -o $@ $< $(LDFLAGS) $(CFLAGS)
+ $(CC) -c -o $@ $< $(CFLAGS)
.PHONY: clean
clean: