blob: 304597772bfe9011ddd887572a48d1106c60cca2 [file] [log] [blame]
aa7133@att.com84bd3342020-03-16 18:04:57 +02001include ./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. ../asnTextFiles/e2ap-v01.00.00.asn
33