colosseum-near-rt-ric/setup/e2/RIC-E2-TERMINATION/3rdparty/oranE2/converter-example.mk

34 lines
871 B
Makefile
Raw Permalink Normal View History

2021-12-08 21:17:46 +01:00
include ./Makefile.am.libasncodec
LIBS += -lm
CFLAGS += $(ASN_MODULE_CFLAGS) -DASN_PDU_COLLECTION -I.
ASN_LIBRARY ?= libasncodec.a
ASN_PROGRAM ?= converter-example
ASN_PROGRAM_SRCS ?= \
./converter-example.c\
./pdu_collection.c
all: $(ASN_PROGRAM)
$(ASN_PROGRAM): $(ASN_LIBRARY) $(ASN_PROGRAM_SRCS:.c=.o)
$(CC) $(CFLAGS) $(CPPFLAGS) -o $(ASN_PROGRAM) $(ASN_PROGRAM_SRCS:.c=.o) $(LDFLAGS) $(ASN_LIBRARY) $(LIBS)
$(ASN_LIBRARY): $(ASN_MODULE_SRCS:.c=.o)
$(AR) rcs $@ $(ASN_MODULE_SRCS:.c=.o)
.SUFFIXES:
.SUFFIXES: .c .o
.c.o:
$(CC) $(CFLAGS) -o $@ -c $<
clean:
rm -f $(ASN_PROGRAM) $(ASN_LIBRARY)
rm -f $(ASN_MODULE_SRCS:.c=.o) $(ASN_PROGRAM_SRCS:.c=.o)
regen: regenerate-from-asn1-source
regenerate-from-asn1-source:
asn1c -fcompound-names -fincludes-quoted -fno-include-deps -findirect-choice -gen-PER -no-gen-OER -D. ../asnTextFiles/e2ap-v01.00.00.asn