mirror of https://gerrit.osmocom.org/asn1c
*** empty log message ***
This commit is contained in:
parent
70dff59ad3
commit
2fd86de8a8
|
@ -26,7 +26,7 @@ $(ASN1_FILES_3): crfc2asn1.pl $(ASN1_SOURCE_3)
|
|||
./crfc2asn1.pl $(ASN1_SOURCE_3)
|
||||
|
||||
EXTRA_DIST = $(srcdir)/rfc*.txt \
|
||||
$(srcdir)/sample.regen.makefile \
|
||||
$(srcdir)/sample.makefile.regen \
|
||||
$(srcdir)/sample.source.*/README \
|
||||
$(srcdir)/sample.source.*/config.h \
|
||||
$(srcdir)/sample.source.*/Makefile \
|
||||
|
|
|
@ -177,7 +177,7 @@ ASN1_FILES_3 = \
|
|||
rfc4511-Lightweight-Directory-Access-Protocol-V3.asn1
|
||||
|
||||
EXTRA_DIST = $(srcdir)/rfc*.txt \
|
||||
$(srcdir)/sample.regen.makefile \
|
||||
$(srcdir)/sample.makefile.regen \
|
||||
$(srcdir)/sample.source.*/README \
|
||||
$(srcdir)/sample.source.*/config.h \
|
||||
$(srcdir)/sample.source.*/Makefile \
|
||||
|
|
|
@ -0,0 +1,50 @@
|
|||
#!/bin/sh
|
||||
|
||||
if [ -z "$ASN1PDU" \
|
||||
-o -z "$ASN1MODULES" \
|
||||
-o -z "$PROGNAME" \
|
||||
]; then
|
||||
echo "ASN1PDU=\"$ASN1PDU\""
|
||||
echo "ASN1MODULES=\"$ASN1MODULES\""
|
||||
echo "PROGNAME=\"$PROGNAME\""
|
||||
echo "ASN1PDU, ASN1MODULES, and PROGNAME must be set"
|
||||
exit
|
||||
fi
|
||||
|
||||
../../asn1c/asn1c -S ../../skeletons ${ASN1CMDOPTS} ${ASN1MODULES} || exit $?
|
||||
|
||||
if [ ! -f Makefile.am.sample ]; then
|
||||
echo "Makefile.am.sample is missing"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
set -x
|
||||
cat Makefile.am.sample \
|
||||
| sed -e "s/^CFLAGS.*/CFLAGS += -I. -DHAVE_CONFIG_H -DPDU=${ASN1PDU}/" \
|
||||
| sed -e "s/^all: /all: ${ASN1PDU}.c /" \
|
||||
| sed -e "s/progname/${PROGNAME}/" \
|
||||
> Makefile.$$
|
||||
|
||||
( echo
|
||||
echo "${ASN1PDU}.c: $0"
|
||||
echo " ASN1CMDOPTS=\"${ASN1CMDOPTS}\" \\"
|
||||
echo " ASN1MODULES=\"${ASN1MODULES}\" \\"
|
||||
echo " ASN1PDU=${ASN1PDU} \\"
|
||||
echo " PROGNAME=${PROGNAME} \\"
|
||||
echo " $0"
|
||||
echo " @touch ${ASN1PDU}.c"
|
||||
echo " make"
|
||||
echo
|
||||
echo "distclean: clean"
|
||||
echo ' rm -f $(ASN_MODULE_SOURCES) $(ASN_MODULE_HEADERS)'
|
||||
echo ' rm -f $(ASN_CONVERTER_SOURCES) $(ASN_CONVERTER_HEADERS)'
|
||||
echo " rm -f Makefile.am.sample"
|
||||
) >> Makefile.$$
|
||||
|
||||
rm Makefile.am.sample || exit $?
|
||||
|
||||
mv Makefile.$$ Makefile
|
||||
|
||||
set +x
|
||||
echo
|
||||
echo "Makefile generation finished"
|
|
@ -187,12 +187,12 @@ regenerate-from-asn1-source:
|
|||
../../asn1c/asn1c -S ../../skeletons -fcompound-names ../rfc4511-Lightweight-Directory-Access-Protocol-V3.asn1
|
||||
|
||||
|
||||
LDAPMessage.c: ../sample.regen.makefile
|
||||
LDAPMessage.c: ../sample.makefile.regen
|
||||
ASN1CMDOPTS="-fcompound-names" \
|
||||
ASN1MODULES="../rfc4511-Lightweight-Directory-Access-Protocol-V3.asn1" \
|
||||
ASN1PDU=LDAPMessage \
|
||||
PROGNAME=ldap3dump \
|
||||
../sample.regen.makefile
|
||||
../sample.makefile.regen
|
||||
@touch LDAPMessage.c
|
||||
make
|
||||
|
||||
|
|
|
@ -309,12 +309,12 @@ regenerate-from-asn1-source:
|
|||
../../asn1c/asn1c -S ../../skeletons -fcompound-names ../rfc3525-MEDIA-GATEWAY-CONTROL.asn1
|
||||
|
||||
|
||||
MegacoMessage.c: ../sample.regen.makefile
|
||||
MegacoMessage.c: ../sample.makefile.regen
|
||||
ASN1CMDOPTS="-fcompound-names" \
|
||||
ASN1MODULES="../rfc3525-MEDIA-GATEWAY-CONTROL.asn1" \
|
||||
ASN1PDU=MegacoMessage \
|
||||
PROGNAME=megacoDump \
|
||||
../sample.regen.makefile
|
||||
../sample.makefile.regen
|
||||
@touch MegacoMessage.c
|
||||
make
|
||||
|
||||
|
|
|
@ -477,12 +477,12 @@ regenerate-from-asn1-source:
|
|||
../../asn1c/asn1c -S ../../skeletons -fcompound-names ../ISO13522-MHEG-5.asn
|
||||
|
||||
|
||||
InterchangedObject.c: ../sample.regen.makefile
|
||||
InterchangedObject.c: ../sample.makefile.regen
|
||||
ASN1CMDOPTS="-fcompound-names" \
|
||||
ASN1MODULES="../ISO13522-MHEG-5.asn" \
|
||||
ASN1PDU=InterchangedObject \
|
||||
PROGNAME=mheg5dump \
|
||||
../sample.regen.makefile
|
||||
../sample.makefile.regen
|
||||
@touch InterchangedObject.c
|
||||
make
|
||||
|
||||
|
|
|
@ -369,12 +369,12 @@ regenerate-from-asn1-source:
|
|||
../../asn1c/asn1c -S ../../skeletons ../rfc3280-PKIX1Explicit88.asn1 ../rfc3280-PKIX1Implicit88.asn1
|
||||
|
||||
|
||||
Certificate.c: ../sample.regen.makefile
|
||||
Certificate.c: ../sample.makefile.regen
|
||||
ASN1CMDOPTS="" \
|
||||
ASN1MODULES="../rfc3280-*.asn1" \
|
||||
ASN1PDU=Certificate \
|
||||
PROGNAME=x509dump \
|
||||
../sample.regen.makefile
|
||||
../sample.makefile.regen
|
||||
@touch Certificate.c
|
||||
make
|
||||
|
||||
|
|
|
@ -703,12 +703,12 @@ regenerate-from-asn1-source:
|
|||
../../asn1c/asn1c -S ../../skeletons ../tap3.asn1
|
||||
|
||||
|
||||
DataInterChange.c: ../sample.regen.makefile
|
||||
DataInterChange.c: ../sample.makefile.regen
|
||||
ASN1CMDOPTS="" \
|
||||
ASN1MODULES="../tap3.asn1" \
|
||||
ASN1PDU=DataInterChange \
|
||||
PROGNAME=tap3dump \
|
||||
../sample.regen.makefile
|
||||
../sample.makefile.regen
|
||||
@touch DataInterChange.c
|
||||
make
|
||||
|
||||
|
|
Loading…
Reference in New Issue