aboutsummaryrefslogtreecommitdiffstats
path: root/wlp/C/Makefile
diff options
context:
space:
mode:
authorMatěj Cepl <mcepl@redhat.com>2013-09-08 23:34:56 +0200
committerMatěj Cepl <mcepl@redhat.com>2013-09-08 23:34:56 +0200
commitf03c3eac2c17e730f4da66ac28acec978c18c20e (patch)
tree12b88c8cf635478f1f163f177332bc43a0533d5e /wlp/C/Makefile
parentaa233606dc5358292f26808439bd60836a9b5dfe (diff)
downloadpygn-f03c3eac2c17e730f4da66ac28acec978c18c20e.tar.gz
Ubuntu patches
http://patches.ubuntu.com/p/pyg/pyg_0.9.8ubuntu2.patch
Diffstat (limited to 'wlp/C/Makefile')
-rw-r--r--wlp/C/Makefile10
1 files changed, 6 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