ss412g | 1a79bdf | 2019-10-24 12:03:05 +0300 | [diff] [blame] | 1 | include ./Makefile.am.libasncodec |
| 2 | |
| 3 | LIBS += -lm |
| 4 | CFLAGS += $(ASN_MODULE_CFLAGS) -DASN_PDU_COLLECTION -I. |
| 5 | ASN_LIBRARY ?= libasncodec.a |
| 6 | ASN_PROGRAM ?= converter-example |
| 7 | ASN_PROGRAM_SRCS ?= \ |
| 8 | ./converter-example.c\ |
| 9 | ./pdu_collection.c |
| 10 | |
| 11 | all: $(ASN_PROGRAM) |
| 12 | |
| 13 | $(ASN_PROGRAM): $(ASN_LIBRARY) $(ASN_PROGRAM_SRCS:.c=.o) |
| 14 | $(CC) $(CFLAGS) $(CPPFLAGS) -o $(ASN_PROGRAM) $(ASN_PROGRAM_SRCS:.c=.o) $(LDFLAGS) $(ASN_LIBRARY) $(LIBS) |
| 15 | |
| 16 | $(ASN_LIBRARY): $(ASN_MODULE_SRCS:.c=.o) |
| 17 | $(AR) rcs $@ $(ASN_MODULE_SRCS:.c=.o) |
| 18 | |
| 19 | .SUFFIXES: |
| 20 | .SUFFIXES: .c .o |
| 21 | |
| 22 | .c.o: |
| 23 | $(CC) $(CFLAGS) -o $@ -c $< |
| 24 | |
| 25 | clean: |
| 26 | rm -f $(ASN_PROGRAM) $(ASN_LIBRARY) |
| 27 | rm -f $(ASN_MODULE_SRCS:.c=.o) $(ASN_PROGRAM_SRCS:.c=.o) |
| 28 | |
| 29 | regen: regenerate-from-asn1-source |
| 30 | |
| 31 | regenerate-from-asn1-source: |
| 32 | asn1c -fcompound-names -fincludes-quoted -fno-include-deps -findirect-choice -gen-PER -no-gen-OER -D. ../../asnFiles/e2ap-v031.asn ../../asnFiles/X2AP-PDU-Contents.asn ../../asnFiles/X2AP-Constants.asn ../../asnFiles/X2AP-Containers.asn ../../asnFiles/X2AP-IEs.asn ../../asnFiles/X2AP-CommonDataTypes.asn ../../asnFiles/e2sm-gNB-X2-release-1-v041.asn |
| 33 | |