migration of code from ffasn1c to asn1c + asn1tostruct.py
diff --git a/src/Makefile b/src/Makefile
index 298a33c..9bff932 100644
--- a/src/Makefile
+++ b/src/Makefile
@@ -1,11 +1,20 @@
-LIBFFASN1_DIR=../../../kommerz/sysmocom/git/admin/ffasn1c/libffasn1
+ASN1_ROOT=../asn1/
+ASN1_DIR=$(ASN1_ROOT)/hnbap
+ASN1_FILES=HNBAP-CommonDataTypes.asn
-CFLAGS=-g -Wall `pkg-config --cflags libosmocore libosmovty libosmogsm` -I$(LIBFFASN1_DIR)
+ASN1TOSTRUCT:=$(ASN1_ROOT)/utils/asn1tostruct.py
+#ASN1_SRCS:=$(patsubst
+
+CFLAGS=-g -Wall `pkg-config --cflags libosmocore libosmovty libosmogsm` -I$(ASN1_DIR)/asn1c/
LDFLAGS=`pkg-config --libs libosmocore libosmovty libosmogsm` -lsctp
all: hnbgw
-hnbgw: hnbgw.o hnbgw_hnbap.o hnbap.o asn1helpers.o $(LIBFFASN1_DIR)/libffasn1.a $(LIBFFASN1_DIR)/libffasn1_runtime_stdc.a
+.PHONY: hnbap_encoder.c
+hnbap_encoder.c: $(ASN1_DIR)/HNBAP-PDU-Contents.asn
+ $(ASN1TOSTRUCT) -f $<
+
+hnbgw: asn1helpers.o hnbap_common.o hnbap_encoder.o hnbap_decoder.o hnbgw.o hnbgw_hnbap.o
$(CC) $(LDFLAGS) -o $@ $^
%.o: %.c