blob: 60809f60abf0a8bcbbce4f35e50894435f264b9b [file] [log] [blame]
ss412g1a79bdf2019-10-24 12:03:05 +03001include ./Makefile.am.libasncodec
2
3LIBS += -lm
4CFLAGS += $(ASN_MODULE_CFLAGS) -DASN_PDU_COLLECTION -I.
5ASN_LIBRARY ?= libasncodec.a
6ASN_PROGRAM ?= converter-example
7ASN_PROGRAM_SRCS ?= \
8 ./converter-example.c\
9 ./pdu_collection.c
10
11all: $(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
25clean:
26 rm -f $(ASN_PROGRAM) $(ASN_LIBRARY)
27 rm -f $(ASN_MODULE_SRCS:.c=.o) $(ASN_PROGRAM_SRCS:.c=.o)
28
29regen: regenerate-from-asn1-source
30
31regenerate-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