hnbgw: Actually link in + call ffasn1c runtime library
diff --git a/src/Makefile b/src/Makefile
index 8ce4186..298a33c 100644
--- a/src/Makefile
+++ b/src/Makefile
@@ -1,11 +1,11 @@
LIBFFASN1_DIR=../../../kommerz/sysmocom/git/admin/ffasn1c/libffasn1
CFLAGS=-g -Wall `pkg-config --cflags libosmocore libosmovty libosmogsm` -I$(LIBFFASN1_DIR)
-LDFLAGS=`pkg-config --libs libosmocore libosmovty libosmogsm` -lsctp -L$(LIBFFASN1_DIR) -lffasn1
+LDFLAGS=`pkg-config --libs libosmocore libosmovty libosmogsm` -lsctp
all: hnbgw
-hnbgw: hnbgw.o hnbgw_hnbap.o hnbap.o asn1helpers.o
+hnbgw: hnbgw.o hnbgw_hnbap.o hnbap.o asn1helpers.o $(LIBFFASN1_DIR)/libffasn1.a $(LIBFFASN1_DIR)/libffasn1_runtime_stdc.a
$(CC) $(LDFLAGS) -o $@ $^
%.o: %.c