Harald Welte | 27f9c4a | 2015-08-30 22:47:18 +0200 | [diff] [blame^] | 1 | ASN1_ROOT=../asn1/ |
| 2 | ASN1_DIR=$(ASN1_ROOT)/hnbap |
| 3 | ASN1_FILES=HNBAP-CommonDataTypes.asn |
Harald Welte | b3dae30 | 2015-08-30 12:20:09 +0200 | [diff] [blame] | 4 | |
Harald Welte | 27f9c4a | 2015-08-30 22:47:18 +0200 | [diff] [blame^] | 5 | ASN1TOSTRUCT:=$(ASN1_ROOT)/utils/asn1tostruct.py |
| 6 | #ASN1_SRCS:=$(patsubst |
| 7 | |
| 8 | CFLAGS=-g -Wall `pkg-config --cflags libosmocore libosmovty libosmogsm` -I$(ASN1_DIR)/asn1c/ |
Harald Welte | ee77cff | 2015-08-30 16:57:53 +0200 | [diff] [blame] | 9 | LDFLAGS=`pkg-config --libs libosmocore libosmovty libosmogsm` -lsctp |
Harald Welte | b3dae30 | 2015-08-30 12:20:09 +0200 | [diff] [blame] | 10 | |
| 11 | all: hnbgw |
| 12 | |
Harald Welte | 27f9c4a | 2015-08-30 22:47:18 +0200 | [diff] [blame^] | 13 | .PHONY: hnbap_encoder.c |
| 14 | hnbap_encoder.c: $(ASN1_DIR)/HNBAP-PDU-Contents.asn |
| 15 | $(ASN1TOSTRUCT) -f $< |
| 16 | |
| 17 | hnbgw: asn1helpers.o hnbap_common.o hnbap_encoder.o hnbap_decoder.o hnbgw.o hnbgw_hnbap.o |
Harald Welte | b3dae30 | 2015-08-30 12:20:09 +0200 | [diff] [blame] | 18 | $(CC) $(LDFLAGS) -o $@ $^ |
| 19 | |
| 20 | %.o: %.c |
| 21 | $(CC) $(CFLAGS) -o $@ -c $^ |
| 22 | |
| 23 | clean: |
| 24 | @rm -f hmbgw *.o |