aboutsummaryrefslogtreecommitdiffstats
path: root/wlp
diff options
context:
space:
mode:
Diffstat (limited to 'wlp')
-rw-r--r--wlp/C/Makefile10
-rw-r--r--wlp/C/commands.l1
-rw-r--r--wlp/module/Makefile.pre.in1
3 files changed, 8 insertions, 4 deletions
diff --git a/wlp/C/Makefile b/wlp/C/Makefile
index 961690d..5581888 100644
--- a/wlp/C/Makefile
+++ b/wlp/C/Makefile
@@ -17,21 +17,23 @@ LDFLAGS:=$(shell dpkg-buildflags --get LDFLAGS)
SRCDIR=.
BINDIR=.
+DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH)
+
OBJFILE=structs.o commands.tab.o lex.yy.o
all: archive bin
# archive file for python module
-archive: structs bison flex /usr/lib/libfl.a macro.h structs.h commands.tab.h
+archive: structs bison flex macro.h structs.h commands.tab.h
$(AR) $(AROPTS) $(BINDIR)/wlp.a $(OBJFILE) \
- /usr/lib/libfl.a
+ /usr/lib/$(DEB_HOST_MULTIARCH)/libfl.a
# binary (executable) file for testing
executable: bin
-bin: structs bison flex /usr/lib/libfl.a macro.h structs.h commands.tab.h
+bin: structs bison flex macro.h structs.h commands.tab.h
$(CC) $(CCSHARED) $(CCOPTS) $(OBJFILE) \
- yytest.c /usr/lib/libfl.a -o ./yytest
+ yytest.c /usr/lib/$(DEB_HOST_MULTIARCH)/libfl.a -o ./yytest
flex:
$(FLEX) $(FLEXOPTS) commands.l
diff --git a/wlp/C/commands.l b/wlp/C/commands.l
index 8f0f28e..ab954cf 100644
--- a/wlp/C/commands.l
+++ b/wlp/C/commands.l
@@ -4,6 +4,7 @@
#include "commands.tab.h"
/*#define DEBUG*/
#include "macro.h"
+#include <string.h>
%}
OWNER "<"[a-zA-Z0-9_.+-]+@[a-zA-Z0-9._-]+">"
diff --git a/wlp/module/Makefile.pre.in b/wlp/module/Makefile.pre.in
index fce3177..1026fc5 100644
--- a/wlp/module/Makefile.pre.in
+++ b/wlp/module/Makefile.pre.in
@@ -166,6 +166,7 @@ LIBP= $(exec_installdir)/lib/python$(VERSION)
DESTSHARED= $(BINLIBDEST)/site-packages
LIBPL= $(LIBP)/config
+LIBPL= $(shell python$(VERSION)-config --configdir)
PYTHONLIBS= $(LIBPL)/libpython$(VERSION).a