first compiling code (untested)
diff --git a/src/Makefile b/src/Makefile
new file mode 100644
index 0000000..18ec5bb
--- /dev/null
+++ b/src/Makefile
@@ -0,0 +1,15 @@
+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
+
+all: hnbgw
+
+hnbgw: hnbgw.o hnbgw_hnbap.o hnbap.o
+ $(CC) $(LDFLAGS) -o $@ $^
+
+%.o: %.c
+ $(CC) $(CFLAGS) -o $@ -c $^
+
+clean:
+ @rm -f hmbgw *.o