diff options
author | David Phillips <david@yeah.nah.nz> | 2018-10-12 22:04:36 +1300 |
---|---|---|
committer | David Phillips <david@yeah.nah.nz> | 2018-10-12 22:04:36 +1300 |
commit | b01e76ae9cc32ee92e4203fe6d1c0e2f9edfe766 (patch) | |
tree | d4f45698e4b03ed78d04904dc55c3e1f674938a1 /lib/python/Makefile | |
parent | 7c5b8b1fc1612a98dcd4af1046e03810d125add4 (diff) | |
download | alarmd-b01e76ae9cc32ee92e4203fe6d1c0e2f9edfe766.tar.xz |
lib/python: tidy Makefile
Diffstat (limited to 'lib/python/Makefile')
-rw-r--r-- | lib/python/Makefile | 10 |
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: |