mirror of https://gerrit.osmocom.org/asn1c
standard specificity
This commit is contained in:
parent
09ba88d58a
commit
d3cc9de01a
|
@ -1053,7 +1053,7 @@ OBJS=${ASN_MODULE_SOURCES:.c=.o} ${ASN_CONVERTER_SOURCES:.c=.o}
|
||||||
all: MessageFrame.c $(TARGET)
|
all: MessageFrame.c $(TARGET)
|
||||||
|
|
||||||
$(TARGET): ${OBJS}
|
$(TARGET): ${OBJS}
|
||||||
$(CC) $(CPPFLAGS) -o $(TARGET) ${OBJS} $(LDFLAGS) $(LIBS)
|
$(CC) $(CFLAGS) $(CPPFLAGS) -o $(TARGET) ${OBJS} $(LDFLAGS) $(LIBS)
|
||||||
|
|
||||||
.SUFFIXES:
|
.SUFFIXES:
|
||||||
.SUFFIXES: .c .o
|
.SUFFIXES: .c .o
|
||||||
|
@ -1068,10 +1068,10 @@ clean:
|
||||||
regen: regenerate-from-asn1-source
|
regen: regenerate-from-asn1-source
|
||||||
|
|
||||||
regenerate-from-asn1-source:
|
regenerate-from-asn1-source:
|
||||||
../../asn1c/asn1c -S ../../skeletons -pdu=MessageFrame -fcompound-names -gen-PER ../j2735.asn1
|
../../asn1c/asn1c -S ../../skeletons -pdu=MessageFrame -fcompound-names -gen-PER ../J2735_201603.asn1
|
||||||
|
|
||||||
|
|
||||||
MessageFrame.c: ../sample.makefile.regen ../j2735.asn1
|
MessageFrame.c: ../sample.makefile.regen ../J2735_201603.asn1
|
||||||
make regen-makefile
|
make regen-makefile
|
||||||
@touch MessageFrame.c
|
@touch MessageFrame.c
|
||||||
make
|
make
|
||||||
|
@ -1079,7 +1079,7 @@ MessageFrame.c: ../sample.makefile.regen ../j2735.asn1
|
||||||
regen-makefile:
|
regen-makefile:
|
||||||
TITLE="J2735 DSRC decoder" \
|
TITLE="J2735 DSRC decoder" \
|
||||||
ASN1CMDOPTS="-fcompound-names -gen-PER" \
|
ASN1CMDOPTS="-fcompound-names -gen-PER" \
|
||||||
ASN1MODULES="../j2735.asn1" \
|
ASN1MODULES="../J2735_201603.asn1" \
|
||||||
ASN1PDU=MessageFrame \
|
ASN1PDU=MessageFrame \
|
||||||
PROGNAME=j2735-dump \
|
PROGNAME=j2735-dump \
|
||||||
CPPFLAGS="" \
|
CPPFLAGS="" \
|
||||||
|
|
|
@ -5,9 +5,9 @@ GENERAL INFORMATION
|
||||||
The SAE J2735-201603 Dedicated Short Range Communications (DSRC)
|
The SAE J2735-201603 Dedicated Short Range Communications (DSRC)
|
||||||
Message Set Dictionary decoder.
|
Message Set Dictionary decoder.
|
||||||
Invoking `make` will compile the ASN.1 specifications from the
|
Invoking `make` will compile the ASN.1 specifications from the
|
||||||
../j2735.asn1 file.
|
../J2735_201603.asn1 file.
|
||||||
|
|
||||||
THERE IS NO j2735.asn1 FILE THERE YET!
|
THERE IS NO J2735_201603.asn1 FILE THERE YET!
|
||||||
|
|
||||||
OBTAINING THE J2735 SPECIFICATION
|
OBTAINING THE J2735 SPECIFICATION
|
||||||
=================================
|
=================================
|
||||||
|
@ -15,20 +15,22 @@ OBTAINING THE J2735 SPECIFICATION
|
||||||
Go to http://standards.sae.org/j2735_201603/ and download the files.
|
Go to http://standards.sae.org/j2735_201603/ and download the files.
|
||||||
|
|
||||||
You should extract the ASN.1 module from there and save it
|
You should extract the ASN.1 module from there and save it
|
||||||
as the ../j2735.asn1 file. The ../j2735.asn1 file should start with
|
as the ../J2735_201603.asn1 file. This file should start with
|
||||||
the following line
|
the following line
|
||||||
"DSRC DEFINITIONS AUTOMATIC TAGS ::="
|
|
||||||
|
DSRC DEFINITIONS AUTOMATIC TAGS ::=
|
||||||
|
|
||||||
and end with the "END" token.
|
and end with the "END" token.
|
||||||
Be careful not to copy any non-ASN.1 preambles from that .DOC file.
|
Be careful not to copy any non-ASN.1 preambles from that .DOC file.
|
||||||
|
|
||||||
After obtaining the j2735.asn1, type `make` in the directory containing
|
After obtaining the J2735_201603.asn1, type `make` in the directory
|
||||||
this README file.
|
containing this README file.
|
||||||
|
|
||||||
j2735-dump USAGE
|
j2735-dump USAGE
|
||||||
================
|
================
|
||||||
|
|
||||||
The j2735-dump utility may be used to dump the contents of the UPER-encoded
|
The j2735-dump utility may be used to dump the contents of the
|
||||||
DSRC message record file:
|
UPER-encoded DSRC message record file:
|
||||||
|
|
||||||
./j2735-dump j2735file.per # Print as XML (BASIC-XER)
|
./j2735-dump j2735file.per # Print as XML (BASIC-XER)
|
||||||
|
|
||||||
|
|
|
@ -175,7 +175,7 @@ OBJS=${ASN_MODULE_SOURCES:.c=.o} ${ASN_CONVERTER_SOURCES:.c=.o}
|
||||||
all: LDAPMessage.c $(TARGET)
|
all: LDAPMessage.c $(TARGET)
|
||||||
|
|
||||||
$(TARGET): ${OBJS}
|
$(TARGET): ${OBJS}
|
||||||
$(CC) $(CPPFLAGS) -o $(TARGET) ${OBJS} $(LDFLAGS) $(LIBS)
|
$(CC) $(CFLAGS) $(CPPFLAGS) -o $(TARGET) ${OBJS} $(LDFLAGS) $(LIBS)
|
||||||
|
|
||||||
.SUFFIXES:
|
.SUFFIXES:
|
||||||
.SUFFIXES: .c .o
|
.SUFFIXES: .c .o
|
||||||
|
|
|
@ -4752,7 +4752,7 @@ OBJS=${ASN_MODULE_SOURCES:.c=.o} ${ASN_CONVERTER_SOURCES:.c=.o}
|
||||||
all: DL-DCCH-Message.c $(TARGET)
|
all: DL-DCCH-Message.c $(TARGET)
|
||||||
|
|
||||||
$(TARGET): ${OBJS}
|
$(TARGET): ${OBJS}
|
||||||
$(CC) $(CPPFLAGS) -o $(TARGET) ${OBJS} $(LDFLAGS) $(LIBS)
|
$(CC) $(CFLAGS) $(CPPFLAGS) -o $(TARGET) ${OBJS} $(LDFLAGS) $(LIBS)
|
||||||
|
|
||||||
.SUFFIXES:
|
.SUFFIXES:
|
||||||
.SUFFIXES: .c .o
|
.SUFFIXES: .c .o
|
||||||
|
|
Loading…
Reference in New Issue