makefile: asn1tostruct.py rules for RUA and RANAP

This commit is contained in:
Harald Welte 2015-08-31 09:38:13 +02:00
parent 0bdea4da55
commit 9da9697f55
1 changed files with 9 additions and 2 deletions

View File

@ -1,5 +1,4 @@
ASN1_ROOT=../asn1/
ASN1_DIR=$(ASN1_ROOT)/hnbap
ASN1_FILES=HNBAP-CommonDataTypes.asn
ASN1TOSTRUCT:=$(ASN1_ROOT)/utils/asn1tostruct.py
@ -11,7 +10,15 @@ LDFLAGS=`pkg-config --libs libosmocore libosmovty libosmogsm` -lsctp
all: hnbgw
.PHONY: hnbap_encoder.c
hnbap_encoder.c: $(ASN1_DIR)/HNBAP-PDU-Contents.asn
hnbap_encoder.c: $(ASN1_ROOT)/hnbap/HNBAP-PDU-Contents.asn
$(ASN1TOSTRUCT) -f $<
.PHONY: rua_encoder.c
rua_encoder.c: $(ASN1_ROOT)/rua/RUA-PDU-Contents.asn
$(ASN1TOSTRUCT) -f $<
.PHONY: ranap_encoder.c
ranap_encoder.c: $(ASN1_ROOT)/ranap/RANAP-PDU-Contents.asn
$(ASN1TOSTRUCT) -f $<
asn1c/libosmo-asn1-hnbap.a: