Commit ad775916 authored by Lev Walkin's avatar Lev Walkin

regenerated makefiles

parent 8a85b36d
ASN_MODULE_SOURCES= \ -include Makefile.am.libasncodec
Uint3.c \
Uint8.c \
Uint16.c \
Uint32.c \
Uint64.c \
SequenceOfUint8.c \
SequenceOfUint16.c \
Opaque.c \
HashedId32.c \
HashedId10.c \
HashedId8.c \
HashedId4.c \
HashedId3.c \
Time32.c \
Time64.c \
ValidityPeriod.c \
Duration.c \
GeographicRegion.c \
CircularRegion.c \
RectangularRegion.c \
SequenceOfRectangularRegion.c \
PolygonalRegion.c \
TwoDLocation.c \
IdentifiedRegion.c \
SequenceOfIdentifiedRegion.c \
CountryOnly.c \
CountryAndRegions.c \
CountryAndSubregions.c \
RegionAndSubregions.c \
SequenceOfRegionAndSubregions.c \
ThreeDLocation.c \
Latitude.c \
Longitude.c \
Elevation.c \
NinetyDegreeInt.c \
KnownLatitude.c \
UnknownLatitude.c \
OneEightyDegreeInt.c \
KnownLongitude.c \
UnknownLongitude.c \
ElevInt.c \
Signature.c \
EcdsaP256Signature.c \
EccP256CurvePoint.c \
SymmAlgorithm.c \
HashAlgorithm.c \
EciesP256EncryptedKey.c \
EncryptionKey.c \
PublicEncryptionKey.c \
BasePublicEncryptionKey.c \
PublicVerificationKey.c \
SymmetricEncryptionKey.c \
PsidSsp.c \
SequenceOfPsidSsp.c \
Psid.c \
SequenceOfPsid.c \
ServiceSpecificPermissions.c \
PsidSspRange.c \
SequenceOfPsidSspRange.c \
SspRange.c \
SequenceOfOctetString.c \
SubjectAssurance.c \
CrlSeries.c \
IValue.c \
Hostname.c \
LinkageValue.c \
GroupLinkageValue.c \
LaId.c \
LinkageSeed.c \
SignedDataPayload.c \
Ieee1609Dot2Data.c \
Ieee1609Dot2Content.c \
SignedData.c \
SignerIdentifier.c \
ToBeSignedData.c \
HashedData.c \
HeaderInfo.c \
MissingCrlIdentifier.c \
Countersignature.c \
EncryptedData.c \
RecipientInfo.c \
SequenceOfRecipientInfo.c \
PreSharedKeyRecipientInfo.c \
SymmRecipientInfo.c \
PKRecipientInfo.c \
EncryptedDataEncryptionKey.c \
SymmetricCiphertext.c \
AesCcmCiphertext.c \
Certificate.c \
SequenceOfCertificate.c \
CertificateBase.c \
CertificateType.c \
ImplicitCertificate.c \
ExplicitCertificate.c \
IssuerIdentifier.c \
ToBeSignedCertificate.c \
CertificateId.c \
LinkageData.c \
EndEntityType.c \
PsidGroupPermissions.c \
SequenceOfPsidGroupPermissions.c \
SubjectPermissions.c \
VerificationKeyIndicator.c
ASN_MODULE_HEADERS= \
Uint3.h \
Uint8.h \
Uint16.h \
Uint32.h \
Uint64.h \
SequenceOfUint8.h \
SequenceOfUint16.h \
Opaque.h \
HashedId32.h \
HashedId10.h \
HashedId8.h \
HashedId4.h \
HashedId3.h \
Time32.h \
Time64.h \
ValidityPeriod.h \
Duration.h \
GeographicRegion.h \
CircularRegion.h \
RectangularRegion.h \
SequenceOfRectangularRegion.h \
PolygonalRegion.h \
TwoDLocation.h \
IdentifiedRegion.h \
SequenceOfIdentifiedRegion.h \
CountryOnly.h \
CountryAndRegions.h \
CountryAndSubregions.h \
RegionAndSubregions.h \
SequenceOfRegionAndSubregions.h \
ThreeDLocation.h \
Latitude.h \
Longitude.h \
Elevation.h \
NinetyDegreeInt.h \
KnownLatitude.h \
UnknownLatitude.h \
OneEightyDegreeInt.h \
KnownLongitude.h \
UnknownLongitude.h \
ElevInt.h \
Signature.h \
EcdsaP256Signature.h \
EccP256CurvePoint.h \
SymmAlgorithm.h \
HashAlgorithm.h \
EciesP256EncryptedKey.h \
EncryptionKey.h \
PublicEncryptionKey.h \
BasePublicEncryptionKey.h \
PublicVerificationKey.h \
SymmetricEncryptionKey.h \
PsidSsp.h \
SequenceOfPsidSsp.h \
Psid.h \
SequenceOfPsid.h \
ServiceSpecificPermissions.h \
PsidSspRange.h \
SequenceOfPsidSspRange.h \
SspRange.h \
SequenceOfOctetString.h \
SubjectAssurance.h \
CrlSeries.h \
IValue.h \
Hostname.h \
LinkageValue.h \
GroupLinkageValue.h \
LaId.h \
LinkageSeed.h \
SignedDataPayload.h \
Ieee1609Dot2Data.h \
Ieee1609Dot2Content.h \
SignedData.h \
SignerIdentifier.h \
ToBeSignedData.h \
HashedData.h \
HeaderInfo.h \
MissingCrlIdentifier.h \
Countersignature.h \
EncryptedData.h \
RecipientInfo.h \
SequenceOfRecipientInfo.h \
PreSharedKeyRecipientInfo.h \
SymmRecipientInfo.h \
PKRecipientInfo.h \
EncryptedDataEncryptionKey.h \
SymmetricCiphertext.h \
AesCcmCiphertext.h \
Certificate.h \
SequenceOfCertificate.h \
CertificateBase.h \
CertificateType.h \
ImplicitCertificate.h \
ExplicitCertificate.h \
IssuerIdentifier.h \
ToBeSignedCertificate.h \
CertificateId.h \
LinkageData.h \
EndEntityType.h \
PsidGroupPermissions.h \
SequenceOfPsidGroupPermissions.h \
SubjectPermissions.h \
VerificationKeyIndicator.h
ASN_MODULE_HEADERS+=OPEN_TYPE.h
ASN_MODULE_SOURCES+=OPEN_TYPE.c
ASN_MODULE_HEADERS+=constr_CHOICE.h
ASN_MODULE_HEADERS+=UTF8String.h
ASN_MODULE_HEADERS+=BOOLEAN.h
ASN_MODULE_SOURCES+=BOOLEAN.c
ASN_MODULE_HEADERS+=INTEGER.h
ASN_MODULE_HEADERS+=NativeEnumerated.h
ASN_MODULE_SOURCES+=INTEGER.c
ASN_MODULE_HEADERS+=NULL.h
ASN_MODULE_SOURCES+=NULL.c
ASN_MODULE_SOURCES+=NativeEnumerated.c
ASN_MODULE_HEADERS+=NativeInteger.h
ASN_MODULE_SOURCES+=NativeInteger.c
ASN_MODULE_SOURCES+=UTF8String.c
ASN_MODULE_HEADERS+=asn_SEQUENCE_OF.h
ASN_MODULE_SOURCES+=asn_SEQUENCE_OF.c
ASN_MODULE_HEADERS+=asn_SET_OF.h
ASN_MODULE_SOURCES+=asn_SET_OF.c
ASN_MODULE_SOURCES+=constr_CHOICE.c
ASN_MODULE_HEADERS+=constr_SEQUENCE.h
ASN_MODULE_SOURCES+=constr_SEQUENCE.c
ASN_MODULE_HEADERS+=constr_SEQUENCE_OF.h
ASN_MODULE_SOURCES+=constr_SEQUENCE_OF.c
ASN_MODULE_HEADERS+=constr_SET_OF.h
ASN_MODULE_SOURCES+=constr_SET_OF.c
ASN_MODULE_HEADERS+=asn_application.h
ASN_MODULE_SOURCES+=asn_application.c
ASN_MODULE_HEADERS+=asn_ioc.h
ASN_MODULE_HEADERS+=asn_system.h
ASN_MODULE_HEADERS+=asn_codecs.h
ASN_MODULE_HEADERS+=asn_internal.h
ASN_MODULE_HEADERS+=asn_bit_data.h
ASN_MODULE_SOURCES+=asn_bit_data.c
ASN_MODULE_HEADERS+=OCTET_STRING.h
ASN_MODULE_SOURCES+=OCTET_STRING.c
ASN_MODULE_HEADERS+=BIT_STRING.h
ASN_MODULE_SOURCES+=BIT_STRING.c
ASN_MODULE_SOURCES+=asn_codecs_prim.c
ASN_MODULE_HEADERS+=asn_codecs_prim.h
ASN_MODULE_HEADERS+=ber_tlv_length.h
ASN_MODULE_SOURCES+=ber_tlv_length.c
ASN_MODULE_HEADERS+=ber_tlv_tag.h
ASN_MODULE_SOURCES+=ber_tlv_tag.c
ASN_MODULE_HEADERS+=ber_decoder.h
ASN_MODULE_SOURCES+=ber_decoder.c
ASN_MODULE_HEADERS+=der_encoder.h
ASN_MODULE_SOURCES+=der_encoder.c
ASN_MODULE_HEADERS+=constr_TYPE.h
ASN_MODULE_SOURCES+=constr_TYPE.c
ASN_MODULE_HEADERS+=constraints.h
ASN_MODULE_SOURCES+=constraints.c
ASN_MODULE_HEADERS+=xer_support.h
ASN_MODULE_SOURCES+=xer_support.c
ASN_MODULE_HEADERS+=xer_decoder.h
ASN_MODULE_SOURCES+=xer_decoder.c
ASN_MODULE_HEADERS+=xer_encoder.h
ASN_MODULE_SOURCES+=xer_encoder.c
ASN_MODULE_HEADERS+=per_support.h
ASN_MODULE_SOURCES+=per_support.c
ASN_MODULE_HEADERS+=per_decoder.h
ASN_MODULE_SOURCES+=per_decoder.c
ASN_MODULE_HEADERS+=per_encoder.h
ASN_MODULE_SOURCES+=per_encoder.c
ASN_MODULE_HEADERS+=per_opentype.h
ASN_MODULE_SOURCES+=per_opentype.c
ASN_CONVERTER_SOURCES+=converter-sample.c
ASN_MODULE_HEADERS+=oer_decoder.h
ASN_MODULE_SOURCES+=oer_decoder.c
ASN_MODULE_HEADERS+=oer_encoder.h
ASN_MODULE_SOURCES+=oer_encoder.c
ASN_MODULE_HEADERS+=oer_support.h
ASN_MODULE_SOURCES+=oer_support.c
ASN_MODULE_SOURCES+=OPEN_TYPE_oer.c
ASN_MODULE_SOURCES+=INTEGER_oer.c
ASN_MODULE_SOURCES+=OCTET_STRING_oer.c
ASN_MODULE_SOURCES+=NativeInteger_oer.c
ASN_MODULE_SOURCES+=NativeEnumerated_oer.c
ASN_MODULE_SOURCES+=constr_SEQUENCE_oer.c
ASN_MODULE_SOURCES+=constr_CHOICE_oer.c
ASN_MODULE_SOURCES+=constr_SET_OF_oer.c
ASN_MODULE_SOURCES+=BIT_STRING_oer.c
ASN_CONVERTER_SOURCES+=pdu_collection.c
lib_LTLIBRARIES=libsomething.la
libsomething_la_SOURCES=$(ASN_MODULE_SOURCES) $(ASN_MODULE_HEADERS)
# This file may be used as an input for make(3)
# Remove the lines below to convert it into a pure .am file
TARGET = 1609-2-dump TARGET = 1609-2-dump
ASN_LIBRARY=libasncodec.a
LIBS += -lm LIBS += -lm
CPPFLAGS += -DASN_CONVERTER_TITLE="IEEE 1609.2-2016 decoder" -DHAVE_CONFIG_H -DJUNKTEST -D_DEFAULT_SOURCE -DASN_DISABLE_PER_SUPPORT -DPDU=Certificate -DASN_PDU_COLLECTION -I. CFLAGS += -DASN_CONVERTER_TITLE="IEEE 1609.2-2016 decoder" -DHAVE_CONFIG_H -DJUNKTEST -D_DEFAULT_SOURCE $(ASN_MODULE_CFLAGS) -DPDU=Certificate -DASN_PDU_COLLECTION -I.
OBJS=${ASN_MODULE_SOURCES:.c=.o} ${ASN_CONVERTER_SOURCES:.c=.o} ASN_CONVERTER_SOURCES := \
converter-example.c\
pdu_collection.c
all: maybe-wip-pause Certificate.c $(TARGET) all: maybe-wip-pause Certificate.c $(TARGET)
$(TARGET): ${OBJS} $(TARGET): $(ASN_LIBRARY) $(ASN_CONVERTER_SOURCES:.c=.o)
$(CC) $(CFLAGS) $(CPPFLAGS) -o $(TARGET) ${OBJS} $(LDFLAGS) $(LIBS) $(CC) $(CFLAGS) $(CPPFLAGS) -o $(TARGET) $(ASN_CONVERTER_SOURCES:.c=.o) $(LDFLAGS) $(ASN_LIBRARY) $(LIBS)
$(ASN_LIBRARY): $(ASN_MODULE_SOURCES:.c=.o)
$(AR) rcs $@ $^
.SUFFIXES: .SUFFIXES:
.SUFFIXES: .c .o .SUFFIXES: .c .o
.c.o: .c.o:
$(CC) $(CFLAGS) $(CPPFLAGS) -o $@ -c $< $(CC) $(CFLAGS) -o $@ -c $<
clean: clean:
rm -f $(TARGET) rm -f $(TARGET) $(ASN_LIBRARY)
rm -f $(OBJS) rm -f $(ASN_MODULE_SOURCES:.c=.o) $(ASN_CONVERTER_SOURCES:.c=.o)
regen: regenerate-from-asn1-source regen: regenerate-from-asn1-source
...@@ -335,7 +43,6 @@ regen-makefile: ...@@ -335,7 +43,6 @@ regen-makefile:
ASN1MODULES="../IEEE-1609.2-2016.asn1" \ ASN1MODULES="../IEEE-1609.2-2016.asn1" \
ASN1PDU=Certificate \ ASN1PDU=Certificate \
PROGNAME=1609-2-dump \ PROGNAME=1609-2-dump \
CPPFLAGS="" \
../sample.makefile.regen ../sample.makefile.regen
check: ${TARGET} check-ber check-xer check-oer check-per check: ${TARGET} check-ber check-xer check-oer check-per
...@@ -425,4 +132,4 @@ distclean: clean ...@@ -425,4 +132,4 @@ distclean: clean
rm -f $(ASN_MODULE_SOURCES) rm -f $(ASN_MODULE_SOURCES)
rm -f $(ASN_MODULE_HEADERS) rm -f $(ASN_MODULE_HEADERS)
rm -f $(ASN_CONVERTER_SOURCES) $(ASN_CONVERTER_HEADERS) rm -f $(ASN_CONVERTER_SOURCES) $(ASN_CONVERTER_HEADERS)
rm -f Makefile.am.sample rm -f Makefile.am.example
ASN_MODULE_SOURCES= \ -include Makefile.am.libasncodec
MessageFrame.c \
RegionalExtension.c \
BasicSafetyMessage.c \
PartIIcontent.c \
PartII-Id.c \
CommonSafetyRequest.c \
EmergencyVehicleAlert.c \
IntersectionCollision.c \
MapData.c \
NMEAcorrections.c \
PersonalSafetyMessage.c \
ProbeDataManagement.c \
ProbeVehicleData.c \
RoadSideAlert.c \
RTCMcorrections.c \
SPAT.c \
SignalRequestMessage.c \
SignalStatusMessage.c \
TravelerInformation.c \
TestMessage00.c \
TestMessage01.c \
TestMessage02.c \
TestMessage03.c \
TestMessage04.c \
TestMessage05.c \
TestMessage06.c \
TestMessage07.c \
TestMessage08.c \
TestMessage09.c \
TestMessage10.c \
TestMessage11.c \
TestMessage12.c \
TestMessage13.c \
TestMessage14.c \
TestMessage15.c \
AccelerationSet4Way.c \
AccelSteerYawRateConfidence.c \
AdvisorySpeed.c \
AdvisorySpeedList.c \
AntennaOffsetSet.c \
ApproachOrLane.c \
BrakeSystemStatus.c \
BSMcoreData.c \
BumperHeights.c \
Circle.c \
ComputedLane.c \
ConfidenceSet.c \
ConnectingLane.c \
Connection.c \
ConnectionManeuverAssist.c \
ConnectsToList.c \
DataParameters.c \
DDate.c \
DDateTime.c \
DFullTime.c \
DMonthDay.c \
DTime.c \
DYearMonth.c \
DisabledVehicle.c \
EmergencyDetails.c \
EnabledLaneList.c \
EventDescription.c \
FullPositionVector.c \
GenericLane.c \
GeographicalPath.c \
GeometricProjection.c \
Header.c \
IntersectionAccessPoint.c \
IntersectionGeometry.c \
IntersectionGeometryList.c \
IntersectionReferenceID.c \
IntersectionState.c \
IntersectionStateList.c \
ExitService.c \
GenericSignage.c \
SpeedLimit.c \
WorkZone.c \
J1939data.c \
TireDataList.c \
TireData.c \
AxleWeightList.c \
AxleWeightSet.c \
LaneAttributes.c \
LaneDataAttribute.c \
LaneDataAttributeList.c \
LaneList.c \
LaneTypeAttributes.c \
ManeuverAssistList.c \
MovementEventList.c \
MovementEvent.c \
MovementList.c \
MovementState.c \
Node-LL-24B.c \
Node-LL-28B.c \
Node-LL-32B.c \
Node-LL-36B.c \
Node-LL-44B.c \
Node-LL-48B.c \
Node-LLmD-64b.c \
Node-XY-20b.c \
Node-XY-22b.c \
Node-XY-24b.c \
Node-XY-26b.c \
Node-XY-28b.c \
Node-XY-32b.c \
NodeAttributeLLList.c \
NodeAttributeSetLL.c \
NodeAttributeSetXY.c \
NodeAttributeXYList.c \
NodeListLL.c \
NodeListXY.c \
NodeLL.c \
NodeOffsetPointLL.c \
NodeOffsetPointXY.c \
NodeSetLL.c \
NodeSetXY.c \
NodeXY.c \
ObstacleDetection.c \
OffsetSystem.c \
OverlayLaneList.c \
PathHistory.c \
PathHistoryPointList.c \
PathHistoryPoint.c \
PathPrediction.c \
PivotPointDescription.c \
Position3D.c \
PositionalAccuracy.c \
PositionConfidenceSet.c \
PreemptPriorityList.c \
SignalControlZone.c \
PrivilegedEvents.c \
PropelledInformation.c \
RegionList.c \
RegionOffsets.c \
RegionPointSet.c \
RegulatorySpeedLimit.c \
RequestedItemList.c \
RequestorDescription.c \
RequestorPositionVector.c \
RequestorType.c \
RestrictionClassAssignment.c \
RestrictionClassList.c \
RestrictionUserTypeList.c \
RestrictionUserType.c \
RoadLaneSetList.c \
RoadSegmentList.c \
RoadSegmentReferenceID.c \
RoadSegment.c \
RoadSignID.c \
RTCMheader.c \
RTCMmessageList.c \
RTCMPackage.c \
Sample.c \
SegmentAttributeLLList.c \
SegmentAttributeXYList.c \
ShapePointSet.c \
SignalRequesterInfo.c \
SignalRequestList.c \
SignalRequestPackage.c \
SignalRequest.c \
SignalStatusList.c \
SignalStatusPackageList.c \
SignalStatusPackage.c \
SignalStatus.c \
SnapshotDistance.c \
Snapshot.c \
SnapshotTime.c \
SpecialVehicleExtensions.c \
SpeedandHeadingandThrottleConfidence.c \
SpeedLimitList.c \
SpeedProfileMeasurementList.c \
SpeedProfile.c \
SupplementalVehicleExtensions.c \
TimeChangeDetails.c \
TrailerData.c \
TrailerHistoryPointList.c \
TrailerHistoryPoint.c \
TrailerUnitDescriptionList.c \
TrailerUnitDescription.c \
TransmissionAndSpeed.c \
TravelerDataFrameList.c \
TravelerDataFrame.c \
ValidRegion.c \
VehicleClassification.c \
VehicleData.c \
VehicleIdent.c \
VehicleID.c \
VehicleSafetyExtensions.c \
VehicleSize.c \
VehicleStatusRequest.c \
VehicleStatusRequestList.c \
VehicleStatus.c \
VerticalOffset.c \
WeatherProbe.c \
WeatherReport.c \
WiperSet.c \
Acceleration.c \
AccelerationConfidence.c \
AdvisorySpeedType.c \
AllowedManeuvers.c \
AmbientAirPressure.c \
AmbientAirTemperature.c \
DSRC_Angle.c \
AnimalPropelledType.c \
AnimalType.c \
AntiLockBrakeStatus.c \
ApproachID.c \
Attachment.c \
AttachmentRadius.c \
AuxiliaryBrakeStatus.c \
BasicVehicleClass.c \
BasicVehicleRole.c \
BrakeAppliedPressure.c \
BrakeAppliedStatus.c \
BrakeBoostApplied.c \
BumperHeight.c \
CoarseHeading.c \
CodeWord.c \
CoefficientOfFriction.c \
Confidence.c \
Count.c \
DDay.c \
DeltaAngle.c \
DeltaTime.c \
DescriptiveName.c \
DHour.c \
DirectionOfUse.c \
DistanceUnits.c \
DMinute.c \
DMonth.c \
DOffset.c \
DrivenLineOffsetLg.c \
DrivenLineOffsetSm.c \
DrivingWheelAngle.c \
DSecond.c \
DSRCmsgID.c \
Duration.c \
DYear.c \
ElevationConfidence.c \
DSRC_Elevation.c \
Extent.c \
ExteriorLights.c \
FuelType.c \
FurtherInfoID.c \
GNSSstatus.c \
GrossDistance.c \
GrossSpeed.c \
HeadingConfidence.c \
Heading.c \
HeadingSlice.c \
IntersectionID.c \
IntersectionStatusObject.c \
IsDolly.c \
Iso3833VehicleType.c \
ITIStextPhrase.c \
AxleLocation.c \
AxleWeight.c \
CargoWeight.c \
DriveAxleLiftAirPressure.c \
DriveAxleLocation.c \
DriveAxleLubePressure.c \
DriveAxleTemperature.c \
SteeringAxleLubePressure.c \
SteeringAxleTemperature.c \
TireLeakageRate.c \
TireLocation.c \
TirePressureThresholdDetection.c \
TirePressure.c \
TireTemp.c \
TrailerWeight.c \
WheelEndElectFault.c \
WheelSensorStatus.c \
LaneAttributes-Barrier.c \
LaneAttributes-Bike.c \
LaneAttributes-Crosswalk.c \
LaneAttributes-Parking.c \
LaneAttributes-Sidewalk.c \
LaneAttributes-Striping.c \
LaneAttributes-TrackedVehicle.c \
LaneAttributes-Vehicle.c \
LaneConnectionID.c \
LaneDirection.c \
LaneID.c \
LaneSharing.c \
LaneWidth.c \
Latitude.c \
LayerID.c \
LayerType.c \
LightbarInUse.c \
Longitude.c \
Location-quality.c \
Location-tech.c \
MergeDivergeNodeAngle.c \
MessageBLOB.c \
MinuteOfTheYear.c \
MinutesDuration.c \
MotorizedPropelledType.c \
MovementPhaseState.c \
DSRC_MsgCount.c \
MsgCRC.c \
MultiVehicleResponse.c \
MUTCDCode.c \
NMEA-MsgType.c \
NMEA-Payload.c \
NMEA-Revision.c \
NodeAttributeLL.c \
NodeAttributeXY.c \
NumberOfParticipantsInCluster.c \
ObjectCount.c \
ObstacleDirection.c \
ObstacleDistance.c \
Offset-B09.c \
Offset-B10.c \
Offset-B11.c \
Offset-B12.c \
Offset-B13.c \
Offset-B14.c \
Offset-B16.c \
OffsetLL-B12.c \
OffsetLL-B14.c \
OffsetLL-B16.c \
OffsetLL-B18.c \
OffsetLL-B22.c \
OffsetLL-B24.c \
PayloadData.c \
PedestrianBicycleDetect.c \
HumanPropelledType.c \
PersonalAssistive.c \
PersonalClusterRadius.c \
PersonalCrossingInProgress.c \
PersonalCrossingRequest.c \
PersonalDeviceUsageState.c \
PersonalDeviceUserType.c \
PivotingAllowed.c \
PositionConfidence.c \
PrioritizationResponseStatus.c \
Priority.c \
PriorityRequestType.c \
PrivilegedEventFlags.c \
ProbeSegmentNumber.c \
PublicSafetyAndRoadWorkerActivity.c \
PublicSafetyDirectingTrafficSubType.c \
PublicSafetyEventResponderWorkerType.c \
RadiusOfCurvature.c \
Radius-B12.c \
RainSensor.c \
RegionId.c \
RequestedItem.c \
RequestID.c \
RequestImportanceLevel.c \
RequestSubRole.c \
ResponseType.c \
RestrictionAppliesTo.c \
RestrictionClassID.c \
RoadRegulatorID.c \
RoadSegmentID.c \
RoadwayCrownAngle.c \
RTCM-Revision.c \
RTCMmessage.c \
Scale-B12.c \
SecondOfTime.c \
SegmentAttributeLL.c \
SegmentAttributeXY.c \
SemiMajorAxisAccuracy.c \
SemiMajorAxisOrientation.c \
SemiMinorAxisAccuracy.c \
SignalGroupID.c \
SignalReqScheme.c \
SignPrority.c \
SirenInUse.c \
SpeedAdvice.c \
SpeedConfidence.c \
SpeedLimitType.c \
SpeedProfileMeasurement.c \
Speed.c \
SSPindex.c \
StabilityControlStatus.c \
StationID.c \
SteeringWheelAngleConfidence.c \
SteeringWheelAngleRateOfChange.c \
SteeringWheelAngle.c \
SunSensor.c \
TemporaryID.c \
TermDistance.c \
TermTime.c \
ThrottleConfidence.c \
ThrottlePosition.c \
TimeConfidence.c \
TimeIntervalConfidence.c \
DSRC_TimeMark.c \
TimeOffset.c \
TractionControlStatus.c \
TrailerMass.c \
TransitStatus.c \
TransitVehicleOccupancy.c \
TransitVehicleStatus.c \
TransmissionState.c \
TravelerInfoType.c \
UniqueMSGID.c \
URL-Base.c \
URL-Link.c \
URL-Short.c \
UserSizeAndBehaviour.c \
VehicleEventFlags.c \
VehicleHeight.c \
VehicleLength.c \
VehicleMass.c \
VehicleStatusDeviceTypeTag.c \
VehicleType.c \
VehicleWidth.c \
Velocity.c \
VerticalAccelerationThreshold.c \
VerticalAcceleration.c \
VertOffset-B07.c \
VertOffset-B08.c \
VertOffset-B09.c \
VertOffset-B10.c \
VertOffset-B11.c \
VertOffset-B12.c \
VINstring.c \
WaitOnStopline.c \
WiperRate.c \
WiperStatus.c \
YawRateConfidence.c \
YawRate.c \
ZoneLength.c \
Zoom.c \
AltitudeConfidence.c \
AltitudeValue.c \
EmissionType.c \
Altitude.c \
PrioritizationResponse.c \
PrioritizationResponseList.c \
ConnectionManeuverAssist-addGrpC.c \
IntersectionState-addGrpC.c \
MapData-addGrpC.c \
Position3D-addGrpC.c \
RestrictionUserType-addGrpC.c \
SignalHeadLocation.c \
SignalHeadLocationList.c \
VehicleToLanePosition.c \
VehicleToLanePositionList.c \
AddGrpB_Angle.c \
Day.c \
DayOfWeek.c \
DegreesLat.c \
DegreesLong.c \
AddGrpB_Elevation.c \
Holiday.c \
Hour.c \
LatitudeDMS.c \
LongitudeDMS.c \
MaxTimetoChange.c \
MinTimetoChange.c \
Minute.c \
MinutesAngle.c \
Month.c \
AddGrpB_MsgCount.c \
Second.c \
SecondsAngle.c \
SummerTime.c \
TenthSecond.c \
TimeRemaining.c \
Year.c \
LatitudeDMS2.c \
LongitudeDMS2.c \
Node-LLdms-48b.c \
Node-LLdms-80b.c \
LaneDataAttribute-addGrpB.c \
MovementEvent-addGrpB.c \
NodeOffsetPointXY-addGrpB.c \
Position3D-addGrpB.c \
AddGrpB_TimeMark.c \
EssMobileFriction.c \
EssPrecipRate.c \
EssPrecipSituation.c \
EssPrecipYesNo.c \
EssSolarRadiation.c \
GenericLocations.c \
IncidentResponseEquipment.c \
ITIStext.c \
ResponderGroupAffected.c \
VehicleGroupAffected.c \
ITIScodesAndText.c \
ITIScodes.c
ASN_MODULE_HEADERS= \
MessageFrame.h \
RegionalExtension.h \
BasicSafetyMessage.h \
PartIIcontent.h \
PartII-Id.h \
CommonSafetyRequest.h \
EmergencyVehicleAlert.h \
IntersectionCollision.h \
MapData.h \
NMEAcorrections.h \
PersonalSafetyMessage.h \
ProbeDataManagement.h \
ProbeVehicleData.h \
RoadSideAlert.h \
RTCMcorrections.h \
SPAT.h \
SignalRequestMessage.h \
SignalStatusMessage.h \
TravelerInformation.h \
TestMessage00.h \
TestMessage01.h \
TestMessage02.h \
TestMessage03.h \
TestMessage04.h \
TestMessage05.h \
TestMessage06.h \
TestMessage07.h \
TestMessage08.h \
TestMessage09.h \
TestMessage10.h \
TestMessage11.h \
TestMessage12.h \
TestMessage13.h \
TestMessage14.h \
TestMessage15.h \
AccelerationSet4Way.h \
AccelSteerYawRateConfidence.h \
AdvisorySpeed.h \
AdvisorySpeedList.h \
AntennaOffsetSet.h \
ApproachOrLane.h \
BrakeSystemStatus.h \
BSMcoreData.h \
BumperHeights.h \
Circle.h \
ComputedLane.h \
ConfidenceSet.h \
ConnectingLane.h \
Connection.h \
ConnectionManeuverAssist.h \
ConnectsToList.h \
DataParameters.h \
DDate.h \
DDateTime.h \
DFullTime.h \
DMonthDay.h \
DTime.h \
DYearMonth.h \
DisabledVehicle.h \
EmergencyDetails.h \
EnabledLaneList.h \
EventDescription.h \
FullPositionVector.h \
GenericLane.h \
GeographicalPath.h \
GeometricProjection.h \
Header.h \
IntersectionAccessPoint.h \
IntersectionGeometry.h \
IntersectionGeometryList.h \
IntersectionReferenceID.h \
IntersectionState.h \
IntersectionStateList.h \
ExitService.h \
GenericSignage.h \
SpeedLimit.h \
WorkZone.h \
J1939data.h \
TireDataList.h \
TireData.h \
AxleWeightList.h \
AxleWeightSet.h \
LaneAttributes.h \
LaneDataAttribute.h \
LaneDataAttributeList.h \
LaneList.h \
LaneTypeAttributes.h \
ManeuverAssistList.h \
MovementEventList.h \
MovementEvent.h \
MovementList.h \
MovementState.h \
Node-LL-24B.h \
Node-LL-28B.h \
Node-LL-32B.h \
Node-LL-36B.h \
Node-LL-44B.h \
Node-LL-48B.h \
Node-LLmD-64b.h \
Node-XY-20b.h \
Node-XY-22b.h \
Node-XY-24b.h \
Node-XY-26b.h \
Node-XY-28b.h \
Node-XY-32b.h \
NodeAttributeLLList.h \
NodeAttributeSetLL.h \
NodeAttributeSetXY.h \
NodeAttributeXYList.h \
NodeListLL.h \
NodeListXY.h \
NodeLL.h \
NodeOffsetPointLL.h \
NodeOffsetPointXY.h \
NodeSetLL.h \
NodeSetXY.h \
NodeXY.h \
ObstacleDetection.h \
OffsetSystem.h \
OverlayLaneList.h \
PathHistory.h \
PathHistoryPointList.h \
PathHistoryPoint.h \
PathPrediction.h \
PivotPointDescription.h \
Position3D.h \
PositionalAccuracy.h \
PositionConfidenceSet.h \
PreemptPriorityList.h \
SignalControlZone.h \
PrivilegedEvents.h \
PropelledInformation.h \
RegionList.h \
RegionOffsets.h \
RegionPointSet.h \
RegulatorySpeedLimit.h \
RequestedItemList.h \
RequestorDescription.h \
RequestorPositionVector.h \
RequestorType.h \
RestrictionClassAssignment.h \
RestrictionClassList.h \
RestrictionUserTypeList.h \
RestrictionUserType.h \
RoadLaneSetList.h \
RoadSegmentList.h \
RoadSegmentReferenceID.h \
RoadSegment.h \
RoadSignID.h \
RTCMheader.h \
RTCMmessageList.h \
RTCMPackage.h \
Sample.h \
SegmentAttributeLLList.h \
SegmentAttributeXYList.h \
ShapePointSet.h \
SignalRequesterInfo.h \
SignalRequestList.h \
SignalRequestPackage.h \
SignalRequest.h \
SignalStatusList.h \
SignalStatusPackageList.h \
SignalStatusPackage.h \
SignalStatus.h \
SnapshotDistance.h \
Snapshot.h \
SnapshotTime.h \
SpecialVehicleExtensions.h \
SpeedandHeadingandThrottleConfidence.h \
SpeedLimitList.h \
SpeedProfileMeasurementList.h \
SpeedProfile.h \
SupplementalVehicleExtensions.h \
TimeChangeDetails.h \
TrailerData.h \
TrailerHistoryPointList.h \
TrailerHistoryPoint.h \
TrailerUnitDescriptionList.h \
TrailerUnitDescription.h \
TransmissionAndSpeed.h \
TravelerDataFrameList.h \
TravelerDataFrame.h \
ValidRegion.h \
VehicleClassification.h \
VehicleData.h \
VehicleIdent.h \
VehicleID.h \
VehicleSafetyExtensions.h \
VehicleSize.h \
VehicleStatusRequest.h \
VehicleStatusRequestList.h \
VehicleStatus.h \
VerticalOffset.h \
WeatherProbe.h \
WeatherReport.h \
WiperSet.h \
Acceleration.h \
AccelerationConfidence.h \
AdvisorySpeedType.h \
AllowedManeuvers.h \
AmbientAirPressure.h \
AmbientAirTemperature.h \
DSRC_Angle.h \
AnimalPropelledType.h \
AnimalType.h \
AntiLockBrakeStatus.h \
ApproachID.h \
Attachment.h \
AttachmentRadius.h \
AuxiliaryBrakeStatus.h \
BasicVehicleClass.h \
BasicVehicleRole.h \
BrakeAppliedPressure.h \
BrakeAppliedStatus.h \
BrakeBoostApplied.h \
BumperHeight.h \
CoarseHeading.h \
CodeWord.h \
CoefficientOfFriction.h \
Confidence.h \
Count.h \
DDay.h \
DeltaAngle.h \
DeltaTime.h \
DescriptiveName.h \
DHour.h \
DirectionOfUse.h \
DistanceUnits.h \
DMinute.h \
DMonth.h \
DOffset.h \
DrivenLineOffsetLg.h \
DrivenLineOffsetSm.h \
DrivingWheelAngle.h \
DSecond.h \
DSRCmsgID.h \
Duration.h \
DYear.h \
ElevationConfidence.h \
DSRC_Elevation.h \
Extent.h \
ExteriorLights.h \
FuelType.h \
FurtherInfoID.h \
GNSSstatus.h \
GrossDistance.h \
GrossSpeed.h \
HeadingConfidence.h \
Heading.h \
HeadingSlice.h \
IntersectionID.h \
IntersectionStatusObject.h \
IsDolly.h \
Iso3833VehicleType.h \
ITIStextPhrase.h \
AxleLocation.h \
AxleWeight.h \
CargoWeight.h \
DriveAxleLiftAirPressure.h \
DriveAxleLocation.h \
DriveAxleLubePressure.h \
DriveAxleTemperature.h \
SteeringAxleLubePressure.h \
SteeringAxleTemperature.h \
TireLeakageRate.h \
TireLocation.h \
TirePressureThresholdDetection.h \
TirePressure.h \
TireTemp.h \
TrailerWeight.h \
WheelEndElectFault.h \
WheelSensorStatus.h \
LaneAttributes-Barrier.h \
LaneAttributes-Bike.h \
LaneAttributes-Crosswalk.h \
LaneAttributes-Parking.h \
LaneAttributes-Sidewalk.h \
LaneAttributes-Striping.h \
LaneAttributes-TrackedVehicle.h \
LaneAttributes-Vehicle.h \
LaneConnectionID.h \
LaneDirection.h \
LaneID.h \
LaneSharing.h \
LaneWidth.h \
Latitude.h \
LayerID.h \
LayerType.h \
LightbarInUse.h \
Longitude.h \
Location-quality.h \
Location-tech.h \
MergeDivergeNodeAngle.h \
MessageBLOB.h \
MinuteOfTheYear.h \
MinutesDuration.h \
MotorizedPropelledType.h \
MovementPhaseState.h \
DSRC_MsgCount.h \
MsgCRC.h \
MultiVehicleResponse.h \
MUTCDCode.h \
NMEA-MsgType.h \
NMEA-Payload.h \
NMEA-Revision.h \
NodeAttributeLL.h \
NodeAttributeXY.h \
NumberOfParticipantsInCluster.h \
ObjectCount.h \
ObstacleDirection.h \
ObstacleDistance.h \
Offset-B09.h \
Offset-B10.h \
Offset-B11.h \
Offset-B12.h \
Offset-B13.h \
Offset-B14.h \
Offset-B16.h \
OffsetLL-B12.h \
OffsetLL-B14.h \
OffsetLL-B16.h \
OffsetLL-B18.h \
OffsetLL-B22.h \
OffsetLL-B24.h \
PayloadData.h \
PedestrianBicycleDetect.h \
HumanPropelledType.h \
PersonalAssistive.h \
PersonalClusterRadius.h \
PersonalCrossingInProgress.h \
PersonalCrossingRequest.h \
PersonalDeviceUsageState.h \
PersonalDeviceUserType.h \
PivotingAllowed.h \
PositionConfidence.h \
PrioritizationResponseStatus.h \
Priority.h \
PriorityRequestType.h \
PrivilegedEventFlags.h \
ProbeSegmentNumber.h \
PublicSafetyAndRoadWorkerActivity.h \
PublicSafetyDirectingTrafficSubType.h \
PublicSafetyEventResponderWorkerType.h \
RadiusOfCurvature.h \
Radius-B12.h \
RainSensor.h \
RegionId.h \
RequestedItem.h \
RequestID.h \
RequestImportanceLevel.h \
RequestSubRole.h \
ResponseType.h \
RestrictionAppliesTo.h \
RestrictionClassID.h \
RoadRegulatorID.h \
RoadSegmentID.h \
RoadwayCrownAngle.h \
RTCM-Revision.h \
RTCMmessage.h \
Scale-B12.h \
SecondOfTime.h \
SegmentAttributeLL.h \
SegmentAttributeXY.h \
SemiMajorAxisAccuracy.h \
SemiMajorAxisOrientation.h \
SemiMinorAxisAccuracy.h \
SignalGroupID.h \
SignalReqScheme.h \
SignPrority.h \
SirenInUse.h \
SpeedAdvice.h \
SpeedConfidence.h \
SpeedLimitType.h \
SpeedProfileMeasurement.h \
Speed.h \
SSPindex.h \
StabilityControlStatus.h \
StationID.h \
SteeringWheelAngleConfidence.h \
SteeringWheelAngleRateOfChange.h \
SteeringWheelAngle.h \
SunSensor.h \
TemporaryID.h \
TermDistance.h \
TermTime.h \
ThrottleConfidence.h \
ThrottlePosition.h \
TimeConfidence.h \
TimeIntervalConfidence.h \
DSRC_TimeMark.h \
TimeOffset.h \
TractionControlStatus.h \
TrailerMass.h \
TransitStatus.h \
TransitVehicleOccupancy.h \
TransitVehicleStatus.h \
TransmissionState.h \
TravelerInfoType.h \
UniqueMSGID.h \
URL-Base.h \
URL-Link.h \
URL-Short.h \
UserSizeAndBehaviour.h \
VehicleEventFlags.h \
VehicleHeight.h \
VehicleLength.h \
VehicleMass.h \
VehicleStatusDeviceTypeTag.h \
VehicleType.h \
VehicleWidth.h \
Velocity.h \
VerticalAccelerationThreshold.h \
VerticalAcceleration.h \
VertOffset-B07.h \
VertOffset-B08.h \
VertOffset-B09.h \
VertOffset-B10.h \
VertOffset-B11.h \
VertOffset-B12.h \
VINstring.h \
WaitOnStopline.h \
WiperRate.h \
WiperStatus.h \
YawRateConfidence.h \
YawRate.h \
ZoneLength.h \
Zoom.h \
AltitudeConfidence.h \
AltitudeValue.h \
EmissionType.h \
Altitude.h \
PrioritizationResponse.h \
PrioritizationResponseList.h \
ConnectionManeuverAssist-addGrpC.h \
IntersectionState-addGrpC.h \
MapData-addGrpC.h \
Position3D-addGrpC.h \
RestrictionUserType-addGrpC.h \
SignalHeadLocation.h \
SignalHeadLocationList.h \
VehicleToLanePosition.h \
VehicleToLanePositionList.h \
AddGrpB_Angle.h \
Day.h \
DayOfWeek.h \
DegreesLat.h \
DegreesLong.h \
AddGrpB_Elevation.h \
Holiday.h \
Hour.h \
LatitudeDMS.h \
LongitudeDMS.h \
MaxTimetoChange.h \
MinTimetoChange.h \
Minute.h \
MinutesAngle.h \
Month.h \
AddGrpB_MsgCount.h \
Second.h \
SecondsAngle.h \
SummerTime.h \
TenthSecond.h \
TimeRemaining.h \
Year.h \
LatitudeDMS2.h \
LongitudeDMS2.h \
Node-LLdms-48b.h \
Node-LLdms-80b.h \
LaneDataAttribute-addGrpB.h \
MovementEvent-addGrpB.h \
NodeOffsetPointXY-addGrpB.h \
Position3D-addGrpB.h \
AddGrpB_TimeMark.h \
EssMobileFriction.h \
EssPrecipRate.h \
EssPrecipSituation.h \
EssPrecipYesNo.h \
EssSolarRadiation.h \
GenericLocations.h \
IncidentResponseEquipment.h \
ITIStext.h \
ResponderGroupAffected.h \
VehicleGroupAffected.h \
ITIScodesAndText.h \
ITIScodes.h
ASN_MODULE_HEADERS+=ANY.h
ASN_MODULE_SOURCES+=ANY.c
ASN_MODULE_HEADERS+=OPEN_TYPE.h
ASN_MODULE_SOURCES+=OPEN_TYPE.c
ASN_MODULE_HEADERS+=constr_CHOICE.h
ASN_MODULE_HEADERS+=BOOLEAN.h
ASN_MODULE_SOURCES+=BOOLEAN.c
ASN_MODULE_HEADERS+=INTEGER.h
ASN_MODULE_HEADERS+=NativeEnumerated.h
ASN_MODULE_HEADERS+=IA5String.h
ASN_MODULE_SOURCES+=IA5String.c
ASN_MODULE_SOURCES+=INTEGER.c
ASN_MODULE_SOURCES+=NativeEnumerated.c
ASN_MODULE_HEADERS+=NativeInteger.h
ASN_MODULE_SOURCES+=NativeInteger.c
ASN_MODULE_HEADERS+=asn_SEQUENCE_OF.h
ASN_MODULE_SOURCES+=asn_SEQUENCE_OF.c
ASN_MODULE_HEADERS+=asn_SET_OF.h
ASN_MODULE_SOURCES+=asn_SET_OF.c
ASN_MODULE_SOURCES+=constr_CHOICE.c
ASN_MODULE_HEADERS+=constr_SEQUENCE.h
ASN_MODULE_SOURCES+=constr_SEQUENCE.c
ASN_MODULE_HEADERS+=constr_SEQUENCE_OF.h
ASN_MODULE_SOURCES+=constr_SEQUENCE_OF.c
ASN_MODULE_HEADERS+=constr_SET_OF.h
ASN_MODULE_SOURCES+=constr_SET_OF.c
ASN_MODULE_HEADERS+=asn_application.h
ASN_MODULE_SOURCES+=asn_application.c
ASN_MODULE_HEADERS+=asn_ioc.h
ASN_MODULE_HEADERS+=asn_system.h
ASN_MODULE_HEADERS+=asn_codecs.h
ASN_MODULE_HEADERS+=asn_internal.h
ASN_MODULE_HEADERS+=asn_bit_data.h
ASN_MODULE_SOURCES+=asn_bit_data.c
ASN_MODULE_HEADERS+=OCTET_STRING.h
ASN_MODULE_SOURCES+=OCTET_STRING.c
ASN_MODULE_HEADERS+=BIT_STRING.h
ASN_MODULE_SOURCES+=BIT_STRING.c
ASN_MODULE_SOURCES+=asn_codecs_prim.c
ASN_MODULE_HEADERS+=asn_codecs_prim.h
ASN_MODULE_HEADERS+=ber_tlv_length.h
ASN_MODULE_SOURCES+=ber_tlv_length.c
ASN_MODULE_HEADERS+=ber_tlv_tag.h
ASN_MODULE_SOURCES+=ber_tlv_tag.c
ASN_MODULE_HEADERS+=ber_decoder.h
ASN_MODULE_SOURCES+=ber_decoder.c
ASN_MODULE_HEADERS+=der_encoder.h
ASN_MODULE_SOURCES+=der_encoder.c
ASN_MODULE_HEADERS+=constr_TYPE.h
ASN_MODULE_SOURCES+=constr_TYPE.c
ASN_MODULE_HEADERS+=constraints.h
ASN_MODULE_SOURCES+=constraints.c
ASN_MODULE_HEADERS+=xer_support.h
ASN_MODULE_SOURCES+=xer_support.c
ASN_MODULE_HEADERS+=xer_decoder.h
ASN_MODULE_SOURCES+=xer_decoder.c
ASN_MODULE_HEADERS+=xer_encoder.h
ASN_MODULE_SOURCES+=xer_encoder.c
ASN_MODULE_HEADERS+=per_support.h
ASN_MODULE_SOURCES+=per_support.c
ASN_MODULE_HEADERS+=per_decoder.h
ASN_MODULE_SOURCES+=per_decoder.c
ASN_MODULE_HEADERS+=per_encoder.h
ASN_MODULE_SOURCES+=per_encoder.c
ASN_MODULE_HEADERS+=per_opentype.h
ASN_MODULE_SOURCES+=per_opentype.c
ASN_CONVERTER_SOURCES+=converter-sample.c
ASN_CONVERTER_SOURCES+=pdu_collection.c
lib_LTLIBRARIES=libsomething.la
libsomething_la_SOURCES=$(ASN_MODULE_SOURCES) $(ASN_MODULE_HEADERS)
# This file may be used as an input for make(3)
# Remove the lines below to convert it into a pure .am file
TARGET = j2735-dump TARGET = j2735-dump
ASN_LIBRARY=libasncodec.a
LIBS += -lm LIBS += -lm
CPPFLAGS += -DASN_CONVERTER_TITLE="J2735 DSRC decoder" -DHAVE_CONFIG_H -DJUNKTEST -D_DEFAULT_SOURCE -DASN_DISABLE_OER_SUPPORT -DPDU=MessageFrame -DASN_PDU_COLLECTION -I. CFLAGS += -DASN_CONVERTER_TITLE="J2735 DSRC decoder" -DHAVE_CONFIG_H -DJUNKTEST -D_DEFAULT_SOURCE $(ASN_MODULE_CFLAGS) -DPDU=MessageFrame -DASN_PDU_COLLECTION -I.
OBJS=${ASN_MODULE_SOURCES:.c=.o} ${ASN_CONVERTER_SOURCES:.c=.o} ASN_CONVERTER_SOURCES := \
converter-example.c\
pdu_collection.c
all: maybe-wip-pause MessageFrame.c $(TARGET) all: maybe-wip-pause MessageFrame.c $(TARGET)
$(TARGET): ${OBJS} $(TARGET): $(ASN_LIBRARY) $(ASN_CONVERTER_SOURCES:.c=.o)
$(CC) $(CFLAGS) $(CPPFLAGS) -o $(TARGET) ${OBJS} $(LDFLAGS) $(LIBS) $(CC) $(CFLAGS) $(CPPFLAGS) -o $(TARGET) $(ASN_CONVERTER_SOURCES:.c=.o) $(LDFLAGS) $(ASN_LIBRARY) $(LIBS)
$(ASN_LIBRARY): $(ASN_MODULE_SOURCES:.c=.o)
$(AR) rcs $@ $^
.SUFFIXES: .SUFFIXES:
.SUFFIXES: .c .o .SUFFIXES: .c .o
.c.o: .c.o:
$(CC) $(CFLAGS) $(CPPFLAGS) -o $@ -c $< $(CC) $(CFLAGS) -o $@ -c $<
clean: clean:
rm -f $(TARGET) rm -f $(TARGET) $(ASN_LIBRARY)
rm -f $(OBJS) rm -f $(ASN_MODULE_SOURCES:.c=.o) $(ASN_CONVERTER_SOURCES:.c=.o)
regen: regenerate-from-asn1-source regen: regenerate-from-asn1-source
...@@ -1084,7 +43,6 @@ regen-makefile: ...@@ -1084,7 +43,6 @@ regen-makefile:
ASN1MODULES="../J2735_201603.asn1" \ ASN1MODULES="../J2735_201603.asn1" \
ASN1PDU=MessageFrame \ ASN1PDU=MessageFrame \
PROGNAME=j2735-dump \ PROGNAME=j2735-dump \
CPPFLAGS="" \
../sample.makefile.regen ../sample.makefile.regen
check: ${TARGET} check-ber check-xer check-oer check-per check: ${TARGET} check-ber check-xer check-oer check-per
...@@ -1174,4 +132,4 @@ distclean: clean ...@@ -1174,4 +132,4 @@ distclean: clean
rm -f $(ASN_MODULE_SOURCES) rm -f $(ASN_MODULE_SOURCES)
rm -f $(ASN_MODULE_HEADERS) rm -f $(ASN_MODULE_HEADERS)
rm -f $(ASN_CONVERTER_SOURCES) $(ASN_CONVERTER_HEADERS) rm -f $(ASN_CONVERTER_SOURCES) $(ASN_CONVERTER_HEADERS)
rm -f Makefile.am.sample rm -f Makefile.am.example
ASN_MODULE_SOURCES= \ -include Makefile.am.libasncodec
LDAPMessage.c \
MessageID.c \
LDAPString.c \
LDAPOID.c \
LDAPDN.c \
RelativeLDAPDN.c \
AttributeDescription.c \
AttributeValue.c \
AttributeValueAssertion.c \
AssertionValue.c \
PartialAttribute.c \
Attribute.c \
MatchingRuleId.c \
LDAPResult.c \
Referral.c \
URI.c \
Controls.c \
Control.c \
BindRequest.c \
AuthenticationChoice.c \
SaslCredentials.c \
BindResponse.c \
UnbindRequest.c \
SearchRequest.c \
AttributeSelection.c \
Filter.c \
SubstringFilter.c \
MatchingRuleAssertion.c \
SearchResultEntry.c \
PartialAttributeList.c \
SearchResultReference.c \
SearchResultDone.c \
ModifyRequest.c \
ModifyResponse.c \
AddRequest.c \
AttributeList.c \
AddResponse.c \
DelRequest.c \
DelResponse.c \
ModifyDNRequest.c \
ModifyDNResponse.c \
CompareRequest.c \
CompareResponse.c \
AbandonRequest.c \
ExtendedRequest.c \
ExtendedResponse.c \
IntermediateResponse.c
ASN_MODULE_HEADERS= \
LDAPMessage.h \
MessageID.h \
LDAPString.h \
LDAPOID.h \
LDAPDN.h \
RelativeLDAPDN.h \
AttributeDescription.h \
AttributeValue.h \
AttributeValueAssertion.h \
AssertionValue.h \
PartialAttribute.h \
Attribute.h \
MatchingRuleId.h \
LDAPResult.h \
Referral.h \
URI.h \
Controls.h \
Control.h \
BindRequest.h \
AuthenticationChoice.h \
SaslCredentials.h \
BindResponse.h \
UnbindRequest.h \
SearchRequest.h \
AttributeSelection.h \
Filter.h \
SubstringFilter.h \
MatchingRuleAssertion.h \
SearchResultEntry.h \
PartialAttributeList.h \
SearchResultReference.h \
SearchResultDone.h \
ModifyRequest.h \
ModifyResponse.h \
AddRequest.h \
AttributeList.h \
AddResponse.h \
DelRequest.h \
DelResponse.h \
ModifyDNRequest.h \
ModifyDNResponse.h \
CompareRequest.h \
CompareResponse.h \
AbandonRequest.h \
ExtendedRequest.h \
ExtendedResponse.h \
IntermediateResponse.h
ASN_MODULE_HEADERS+=OPEN_TYPE.h
ASN_MODULE_SOURCES+=OPEN_TYPE.c
ASN_MODULE_HEADERS+=constr_CHOICE.h
ASN_MODULE_HEADERS+=BOOLEAN.h
ASN_MODULE_SOURCES+=BOOLEAN.c
ASN_MODULE_HEADERS+=INTEGER.h
ASN_MODULE_HEADERS+=NativeEnumerated.h
ASN_MODULE_SOURCES+=INTEGER.c
ASN_MODULE_HEADERS+=NULL.h
ASN_MODULE_SOURCES+=NULL.c
ASN_MODULE_SOURCES+=NativeEnumerated.c
ASN_MODULE_HEADERS+=NativeInteger.h
ASN_MODULE_SOURCES+=NativeInteger.c
ASN_MODULE_HEADERS+=asn_SEQUENCE_OF.h
ASN_MODULE_SOURCES+=asn_SEQUENCE_OF.c
ASN_MODULE_HEADERS+=asn_SET_OF.h
ASN_MODULE_SOURCES+=asn_SET_OF.c
ASN_MODULE_SOURCES+=constr_CHOICE.c
ASN_MODULE_HEADERS+=constr_SEQUENCE.h
ASN_MODULE_SOURCES+=constr_SEQUENCE.c
ASN_MODULE_HEADERS+=constr_SEQUENCE_OF.h
ASN_MODULE_SOURCES+=constr_SEQUENCE_OF.c
ASN_MODULE_HEADERS+=constr_SET_OF.h
ASN_MODULE_SOURCES+=constr_SET_OF.c
ASN_MODULE_HEADERS+=asn_application.h
ASN_MODULE_SOURCES+=asn_application.c
ASN_MODULE_HEADERS+=asn_ioc.h
ASN_MODULE_HEADERS+=asn_system.h
ASN_MODULE_HEADERS+=asn_codecs.h
ASN_MODULE_HEADERS+=asn_internal.h
ASN_MODULE_HEADERS+=asn_bit_data.h
ASN_MODULE_SOURCES+=asn_bit_data.c
ASN_MODULE_HEADERS+=OCTET_STRING.h
ASN_MODULE_SOURCES+=OCTET_STRING.c
ASN_MODULE_HEADERS+=BIT_STRING.h
ASN_MODULE_SOURCES+=BIT_STRING.c
ASN_MODULE_SOURCES+=asn_codecs_prim.c
ASN_MODULE_HEADERS+=asn_codecs_prim.h
ASN_MODULE_HEADERS+=ber_tlv_length.h
ASN_MODULE_SOURCES+=ber_tlv_length.c
ASN_MODULE_HEADERS+=ber_tlv_tag.h
ASN_MODULE_SOURCES+=ber_tlv_tag.c
ASN_MODULE_HEADERS+=ber_decoder.h
ASN_MODULE_SOURCES+=ber_decoder.c
ASN_MODULE_HEADERS+=der_encoder.h
ASN_MODULE_SOURCES+=der_encoder.c
ASN_MODULE_HEADERS+=constr_TYPE.h
ASN_MODULE_SOURCES+=constr_TYPE.c
ASN_MODULE_HEADERS+=constraints.h
ASN_MODULE_SOURCES+=constraints.c
ASN_MODULE_HEADERS+=xer_support.h
ASN_MODULE_SOURCES+=xer_support.c
ASN_MODULE_HEADERS+=xer_decoder.h
ASN_MODULE_SOURCES+=xer_decoder.c
ASN_MODULE_HEADERS+=xer_encoder.h
ASN_MODULE_SOURCES+=xer_encoder.c
ASN_MODULE_HEADERS+=per_support.h
ASN_MODULE_SOURCES+=per_support.c
ASN_MODULE_HEADERS+=per_decoder.h
ASN_MODULE_SOURCES+=per_decoder.c
ASN_MODULE_HEADERS+=per_encoder.h
ASN_MODULE_SOURCES+=per_encoder.c
ASN_MODULE_HEADERS+=per_opentype.h
ASN_MODULE_SOURCES+=per_opentype.c
ASN_CONVERTER_SOURCES+=converter-sample.c
lib_LTLIBRARIES=libsomething.la
libsomething_la_SOURCES=$(ASN_MODULE_SOURCES) $(ASN_MODULE_HEADERS)
# This file may be used as an input for make(3)
# Remove the lines below to convert it into a pure .am file
TARGET = ldap3dump TARGET = ldap3dump
ASN_LIBRARY=libasncodec.a
LIBS += -lm LIBS += -lm
CPPFLAGS += -DASN_CONVERTER_TITLE="Lightweight Directory Access Protocol V3 decoder" -DHAVE_CONFIG_H -DJUNKTEST -D_DEFAULT_SOURCE -DASN_DISABLE_OER_SUPPORT -DASN_DISABLE_PER_SUPPORT -DPDU=LDAPMessage -I. CFLAGS += -DASN_CONVERTER_TITLE="Lightweight Directory Access Protocol V3 decoder" -DHAVE_CONFIG_H -DJUNKTEST -D_DEFAULT_SOURCE $(ASN_MODULE_CFLAGS) -DPDU=LDAPMessage -I.
OBJS=${ASN_MODULE_SOURCES:.c=.o} ${ASN_CONVERTER_SOURCES:.c=.o} ASN_CONVERTER_SOURCES := \
converter-example.c
all: maybe-wip-pause LDAPMessage.c $(TARGET) all: maybe-wip-pause LDAPMessage.c $(TARGET)
$(TARGET): ${OBJS} $(TARGET): $(ASN_LIBRARY) $(ASN_CONVERTER_SOURCES:.c=.o)
$(CC) $(CFLAGS) $(CPPFLAGS) -o $(TARGET) ${OBJS} $(LDFLAGS) $(LIBS) $(CC) $(CFLAGS) $(CPPFLAGS) -o $(TARGET) $(ASN_CONVERTER_SOURCES:.c=.o) $(LDFLAGS) $(ASN_LIBRARY) $(LIBS)
$(ASN_LIBRARY): $(ASN_MODULE_SOURCES:.c=.o)
$(AR) rcs $@ $^
.SUFFIXES: .SUFFIXES:
.SUFFIXES: .c .o .SUFFIXES: .c .o
.c.o: .c.o:
$(CC) $(CFLAGS) $(CPPFLAGS) -o $@ -c $< $(CC) $(CFLAGS) -o $@ -c $<
clean: clean:
rm -f $(TARGET) rm -f $(TARGET) $(ASN_LIBRARY)
rm -f $(OBJS) rm -f $(ASN_MODULE_SOURCES:.c=.o) $(ASN_CONVERTER_SOURCES:.c=.o)
regen: regenerate-from-asn1-source regen: regenerate-from-asn1-source
...@@ -205,7 +42,6 @@ regen-makefile: ...@@ -205,7 +42,6 @@ regen-makefile:
ASN1MODULES="../rfc4511-Lightweight-Directory-Access-Protocol-V3.asn1" \ ASN1MODULES="../rfc4511-Lightweight-Directory-Access-Protocol-V3.asn1" \
ASN1PDU=LDAPMessage \ ASN1PDU=LDAPMessage \
PROGNAME=ldap3dump \ PROGNAME=ldap3dump \
CPPFLAGS="" \
../sample.makefile.regen ../sample.makefile.regen
check: ${TARGET} check-ber check-xer check-oer check-per check: ${TARGET} check-ber check-xer check-oer check-per
...@@ -295,4 +131,4 @@ distclean: clean ...@@ -295,4 +131,4 @@ distclean: clean
rm -f $(ASN_MODULE_SOURCES) rm -f $(ASN_MODULE_SOURCES)
rm -f $(ASN_MODULE_HEADERS) rm -f $(ASN_MODULE_HEADERS)
rm -f $(ASN_CONVERTER_SOURCES) $(ASN_CONVERTER_HEADERS) rm -f $(ASN_CONVERTER_SOURCES) $(ASN_CONVERTER_HEADERS)
rm -f Makefile.am.sample rm -f Makefile.am.example
ASN_MODULE_SOURCES= \ -include Makefile.am.libasncodec
MegacoMessage.c \
AuthenticationHeader.c \
SecurityParmIndex.c \
SequenceNum.c \
AuthData.c \
Message.c \
MId.c \
DomainName.c \
IP4Address.c \
IP6Address.c \
PathName.c \
Transaction.c \
TransactionId.c \
TransactionRequest.c \
TransactionPending.c \
TransactionReply.c \
TransactionResponseAck.c \
TransactionAck.c \
ErrorDescriptor.c \
ErrorCode.c \
ErrorText.c \
ContextID.c \
ActionRequest.c \
ActionReply.c \
ContextRequest.c \
ContextAttrAuditRequest.c \
CommandRequest.c \
Command.c \
CommandReply.c \
TopologyRequest.c \
AmmRequest.c \
AmmDescriptor.c \
AmmsReply.c \
SubtractRequest.c \
AuditRequest.c \
AuditReply.c \
AuditResult.c \
TerminationAudit.c \
AuditReturnParameter.c \
AuditDescriptor.c \
NotifyRequest.c \
NotifyReply.c \
ObservedEventsDescriptor.c \
ObservedEvent.c \
EventName.c \
EventParameter.c \
ServiceChangeRequest.c \
ServiceChangeReply.c \
ServiceChangeResult.c \
WildcardField.c \
TerminationID.c \
TerminationIDList.c \
MediaDescriptor.c \
StreamDescriptor.c \
StreamParms.c \
LocalControlDescriptor.c \
StreamMode.c \
PropertyParm.c \
Name.c \
PkgdName.c \
Relation.c \
LocalRemoteDescriptor.c \
PropertyGroup.c \
TerminationStateDescriptor.c \
EventBufferControl.c \
ServiceState.c \
MuxDescriptor.c \
MuxType.c \
StreamID.c \
EventsDescriptor.c \
RequestedEvent.c \
RequestedActions.c \
EventDM.c \
SecondEventsDescriptor.c \
SecondRequestedEvent.c \
SecondRequestedActions.c \
EventBufferDescriptor.c \
EventSpec.c \
SignalsDescriptor.c \
SignalRequest.c \
SeqSigList.c \
Signal.c \
SignalType.c \
SignalName.c \
NotifyCompletion.c \
SigParameter.c \
RequestID.c \
ModemDescriptor.c \
ModemType.c \
DigitMapDescriptor.c \
DigitMapName.c \
DigitMapValue.c \
ServiceChangeParm.c \
ServiceChangeAddress.c \
ServiceChangeResParm.c \
ServiceChangeMethod.c \
ServiceChangeProfile.c \
PackagesDescriptor.c \
PackagesItem.c \
StatisticsDescriptor.c \
StatisticsParameter.c \
NonStandardData.c \
NonStandardIdentifier.c \
H221NonStandard.c \
TimeNotation.c \
Value.c
ASN_MODULE_HEADERS= \
MegacoMessage.h \
AuthenticationHeader.h \
SecurityParmIndex.h \
SequenceNum.h \
AuthData.h \
Message.h \
MId.h \
DomainName.h \
IP4Address.h \
IP6Address.h \
PathName.h \
Transaction.h \
TransactionId.h \
TransactionRequest.h \
TransactionPending.h \
TransactionReply.h \
TransactionResponseAck.h \
TransactionAck.h \
ErrorDescriptor.h \
ErrorCode.h \
ErrorText.h \
ContextID.h \
ActionRequest.h \
ActionReply.h \
ContextRequest.h \
ContextAttrAuditRequest.h \
CommandRequest.h \
Command.h \
CommandReply.h \
TopologyRequest.h \
AmmRequest.h \
AmmDescriptor.h \
AmmsReply.h \
SubtractRequest.h \
AuditRequest.h \
AuditReply.h \
AuditResult.h \
TerminationAudit.h \
AuditReturnParameter.h \
AuditDescriptor.h \
NotifyRequest.h \
NotifyReply.h \
ObservedEventsDescriptor.h \
ObservedEvent.h \
EventName.h \
EventParameter.h \
ServiceChangeRequest.h \
ServiceChangeReply.h \
ServiceChangeResult.h \
WildcardField.h \
TerminationID.h \
TerminationIDList.h \
MediaDescriptor.h \
StreamDescriptor.h \
StreamParms.h \
LocalControlDescriptor.h \
StreamMode.h \
PropertyParm.h \
Name.h \
PkgdName.h \
Relation.h \
LocalRemoteDescriptor.h \
PropertyGroup.h \
TerminationStateDescriptor.h \
EventBufferControl.h \
ServiceState.h \
MuxDescriptor.h \
MuxType.h \
StreamID.h \
EventsDescriptor.h \
RequestedEvent.h \
RequestedActions.h \
EventDM.h \
SecondEventsDescriptor.h \
SecondRequestedEvent.h \
SecondRequestedActions.h \
EventBufferDescriptor.h \
EventSpec.h \
SignalsDescriptor.h \
SignalRequest.h \
SeqSigList.h \
Signal.h \
SignalType.h \
SignalName.h \
NotifyCompletion.h \
SigParameter.h \
RequestID.h \
ModemDescriptor.h \
ModemType.h \
DigitMapDescriptor.h \
DigitMapName.h \
DigitMapValue.h \
ServiceChangeParm.h \
ServiceChangeAddress.h \
ServiceChangeResParm.h \
ServiceChangeMethod.h \
ServiceChangeProfile.h \
PackagesDescriptor.h \
PackagesItem.h \
StatisticsDescriptor.h \
StatisticsParameter.h \
NonStandardData.h \
NonStandardIdentifier.h \
H221NonStandard.h \
TimeNotation.h \
Value.h
ASN_MODULE_HEADERS+=BOOLEAN.h
ASN_MODULE_SOURCES+=BOOLEAN.c
ASN_MODULE_HEADERS+=INTEGER.h
ASN_MODULE_HEADERS+=NativeEnumerated.h
ASN_MODULE_HEADERS+=IA5String.h
ASN_MODULE_SOURCES+=IA5String.c
ASN_MODULE_SOURCES+=INTEGER.c
ASN_MODULE_HEADERS+=NULL.h
ASN_MODULE_SOURCES+=NULL.c
ASN_MODULE_SOURCES+=NativeEnumerated.c
ASN_MODULE_HEADERS+=NativeInteger.h
ASN_MODULE_SOURCES+=NativeInteger.c
ASN_MODULE_HEADERS+=OBJECT_IDENTIFIER.h
ASN_MODULE_SOURCES+=OBJECT_IDENTIFIER.c
ASN_MODULE_HEADERS+=asn_SEQUENCE_OF.h
ASN_MODULE_SOURCES+=asn_SEQUENCE_OF.c
ASN_MODULE_HEADERS+=asn_SET_OF.h
ASN_MODULE_SOURCES+=asn_SET_OF.c
ASN_MODULE_HEADERS+=constr_CHOICE.h
ASN_MODULE_SOURCES+=constr_CHOICE.c
ASN_MODULE_HEADERS+=constr_SEQUENCE.h
ASN_MODULE_SOURCES+=constr_SEQUENCE.c
ASN_MODULE_HEADERS+=constr_SEQUENCE_OF.h
ASN_MODULE_SOURCES+=constr_SEQUENCE_OF.c
ASN_MODULE_HEADERS+=constr_SET_OF.h
ASN_MODULE_SOURCES+=constr_SET_OF.c
ASN_MODULE_HEADERS+=asn_application.h
ASN_MODULE_HEADERS+=asn_system.h
ASN_MODULE_HEADERS+=asn_codecs.h
ASN_MODULE_HEADERS+=asn_internal.h
ASN_MODULE_HEADERS+=OCTET_STRING.h
ASN_MODULE_SOURCES+=OCTET_STRING.c
ASN_MODULE_HEADERS+=BIT_STRING.h
ASN_MODULE_SOURCES+=BIT_STRING.c
ASN_MODULE_SOURCES+=asn_codecs_prim.c
ASN_MODULE_HEADERS+=asn_codecs_prim.h
ASN_MODULE_HEADERS+=ber_tlv_length.h
ASN_MODULE_SOURCES+=ber_tlv_length.c
ASN_MODULE_HEADERS+=ber_tlv_tag.h
ASN_MODULE_SOURCES+=ber_tlv_tag.c
ASN_MODULE_HEADERS+=ber_decoder.h
ASN_MODULE_SOURCES+=ber_decoder.c
ASN_MODULE_HEADERS+=der_encoder.h
ASN_MODULE_SOURCES+=der_encoder.c
ASN_MODULE_HEADERS+=constr_TYPE.h
ASN_MODULE_SOURCES+=constr_TYPE.c
ASN_MODULE_HEADERS+=constraints.h
ASN_MODULE_SOURCES+=constraints.c
ASN_MODULE_HEADERS+=xer_support.h
ASN_MODULE_SOURCES+=xer_support.c
ASN_MODULE_HEADERS+=xer_decoder.h
ASN_MODULE_SOURCES+=xer_decoder.c
ASN_MODULE_HEADERS+=xer_encoder.h
ASN_MODULE_SOURCES+=xer_encoder.c
ASN_MODULE_HEADERS+=oer_decoder.h
ASN_MODULE_SOURCES+=oer_decoder.c
ASN_MODULE_HEADERS+=oer_encoder.h
ASN_MODULE_SOURCES+=oer_encoder.c
ASN_MODULE_HEADERS+=oer_support.h
ASN_MODULE_SOURCES+=oer_support.c
ASN_MODULE_HEADERS+=per_support.h
ASN_MODULE_SOURCES+=per_support.c
ASN_MODULE_HEADERS+=per_decoder.h
ASN_MODULE_SOURCES+=per_decoder.c
ASN_MODULE_HEADERS+=per_encoder.h
ASN_MODULE_SOURCES+=per_encoder.c
ASN_MODULE_HEADERS+=per_opentype.h
ASN_MODULE_SOURCES+=per_opentype.c
ASN_CONVERTER_SOURCES+=converter-sample.c
lib_LTLIBRARIES=libsomething.la
libsomething_la_SOURCES=$(ASN_MODULE_SOURCES) $(ASN_MODULE_HEADERS)
# This file may be used as an input for make(3)
# Remove the lines below to convert it into a pure .am file
TARGET = megaco-dump TARGET = megaco-dump
CPPFLAGS += -DHAVE_CONFIG_H -DJUNKTEST -D_DEFAULT_SOURCE -DASN_DISABLE_OER_SUPPORT -DASN_DISABLE_PER_SUPPORT -DPDU=MegacoMessage -I. ASN_LIBRARY=libasncodec.a
OBJS=${ASN_MODULE_SOURCES:.c=.o} ${ASN_CONVERTER_SOURCES:.c=.o} LIBS += -lm
CFLAGS += -DHAVE_CONFIG_H -DJUNKTEST -D_DEFAULT_SOURCE $(ASN_MODULE_CFLAGS) -DPDU=MegacoMessage -I.
ASN_CONVERTER_SOURCES := \
converter-example.c
all: maybe-wip-pause MegacoMessage.c $(TARGET)
all: MegacoMessage.c $(TARGET) $(TARGET): $(ASN_LIBRARY) $(ASN_CONVERTER_SOURCES:.c=.o)
$(CC) $(CFLAGS) $(CPPFLAGS) -o $(TARGET) $(ASN_CONVERTER_SOURCES:.c=.o) $(LDFLAGS) $(ASN_LIBRARY) $(LIBS)
$(TARGET): ${OBJS} $(ASN_LIBRARY): $(ASN_MODULE_SOURCES:.c=.o)
$(CC) $(CPPFLAGS) -o $(TARGET) ${OBJS} $(LDFLAGS) $(LIBS) $(AR) rcs $@ $^
.SUFFIXES: .SUFFIXES:
.SUFFIXES: .c .o .SUFFIXES: .c .o
.c.o: .c.o:
$(CC) $(CFLAGS) $(CPPFLAGS) -o $@ -c $< $(CC) $(CFLAGS) -o $@ -c $<
clean: clean:
rm -f $(TARGET) rm -f $(TARGET) $(ASN_LIBRARY)
rm -f $(OBJS) rm -f $(ASN_MODULE_SOURCES:.c=.o) $(ASN_CONVERTER_SOURCES:.c=.o)
regen: regenerate-from-asn1-source regen: regenerate-from-asn1-source
...@@ -325,73 +41,93 @@ regen-makefile: ...@@ -325,73 +41,93 @@ regen-makefile:
ASN1MODULES="../rfc3525-MEDIA-GATEWAY-CONTROL.asn1" \ ASN1MODULES="../rfc3525-MEDIA-GATEWAY-CONTROL.asn1" \
ASN1PDU=MegacoMessage \ ASN1PDU=MegacoMessage \
PROGNAME=megaco-dump \ PROGNAME=megaco-dump \
CPPFLAGS="" \
../sample.makefile.regen ../sample.makefile.regen
check: ${TARGET} check-ber check-xer check-per check: ${TARGET} check-ber check-xer check-oer check-per
@echo ================ @echo ================
@echo All tests passed @echo All tests passed
@echo ================ @echo ================
check-ber: check-ber:
@if test -f sample-MegacoMessage-1.[db]er ; then \ @if test -f sample-MegacoMessage-1.[db]er ; then \
for f in sample-MegacoMessage-*.[db]er; do \ for f in sample-*-*.[db]er; do \
pdu=`echo $$f | sed -E -e "s/sample-([A-Za-z0-9-]+)-[0-9].*/\1/"`; \
for b in 1 17 33 980 8192; do \ for b in 1 17 33 980 8192; do \
echo "Recoding $$f into XER and back ($$b)..."; \ echo "Recoding $$f ($$pdu) into XER and back ($$b)..."; \
./${TARGET} -b $$b -iber -oxer $$f > ./.tmp.1.$$$$ || exit 2; \ ./${TARGET} -p $$pdu -b $$b -iber -oxer $$f > ./.tmp.1.$$$$ || exit 2; \
./${TARGET} -b $$b -ixer -oxer ./.tmp.1.$$$$ > ./.tmp.2.$$$$ || exit 3; \ ./${TARGET} -p $$pdu -b $$b -ixer -oxer ./.tmp.1.$$$$ > ./.tmp.2.$$$$ || exit 3; \
diff ./.tmp.1.$$$$ ./.tmp.2.$$$$ || exit 4; \ diff ./.tmp.1.$$$$ ./.tmp.2.$$$$ || exit 4; \
rm -f ./.tmp.[12].$$$$; \ rm -f ./.tmp.[12].$$$$; \
echo "Test junking $$f (please wait)..."; \ echo "Test junking $$f (please wait)..."; \
./${TARGET} -J0.0001 -n 1000 -b $$b -iber -onull $$f || exit 5; \ ./${TARGET} -J0.0001 -n 1000 -p $$pdu -b $$b -iber -onull $$f || exit 5; \
./${TARGET} -J0.001 -n 1000 -b $$b -iber -onull $$f || exit 6; \ ./${TARGET} -J0.001 -n 1000 -p $$pdu -b $$b -iber -onull $$f || exit 6; \
done; done; fi done; done; fi
check-xer: check-xer:
@if test -f sample-MegacoMessage-1.xer ; then \ @if test -f sample-MegacoMessage-1.xer ; then \
for f in sample-MegacoMessage-*.xer; do \ for f in sample-*-*.xer; do \
pdu=`echo $$f | sed -E -e "s/sample-([A-Za-z0-9-]+)-[0-9].*/\1/"`; \
for b in 1 17 33 980 8192; do \ for b in 1 17 33 980 8192; do \
echo "Recoding $$f into DER and back ($$b)..."; \ echo "Recoding $$f ($$pdu) into DER and back ($$b)..."; \
./${TARGET} -b $$b -ixer -oder $$f > ./.tmp.1.$$$$ || exit 2; \ ./${TARGET} -p $$pdu -b $$b -ixer -oder $$f > ./.tmp.1.$$$$ || exit 2; \
./${TARGET} -b $$b -iber -oxer ./.tmp.1.$$$$ > ./.tmp.2.$$$$ || exit 3; \ ./${TARGET} -p $$pdu -b $$b -iber -oxer ./.tmp.1.$$$$ > ./.tmp.2.$$$$ || exit 3; \
diff $$f ./.tmp.2.$$$$ || exit 4; \ diff $$f ./.tmp.2.$$$$ || exit 4; \
rm -f ./.tmp.[12].$$$$; \ rm -f ./.tmp.[12].$$$$; \
echo "Test junking $$f (please wait)..."; \ echo "Test junking $$f (please wait)..."; \
./${TARGET} -J0.0001 -n 1000 -b $$b -ixer -onull $$f || exit 5; \ ./${TARGET} -J0.0001 -n 1000 -p $$pdu -b $$b -ixer -onull $$f || exit 5; \
./${TARGET} -J0.001 -n 1000 -b $$b -ixer -onull $$f || exit 6; \ ./${TARGET} -J0.001 -n 1000 -p $$pdu -b $$b -ixer -onull $$f || exit 6; \
done; done; fi
check-oer:
@if test -f sample-MegacoMessage-1.*oer ; then \
for f in sample-*-*.*oer; do \
pdu=`echo $$f | sed -E -e "s/sample-([A-Za-z0-9-]+)-[0-9].*/\1/"`; \
for b in 1 17 33 980 8192; do \
echo "Recoding $$f ($$pdu) into XER and back ($$b)..."; \
./${TARGET} -p $$pdu -b $$b -ioer -oxer $$f > ./.tmp.1.$$$$ || exit 2; \
./${TARGET} -p $$pdu -b $$b -ixer -ooer ./.tmp.1.$$$$ > ./.tmp.2.$$$$ || exit 3; \
diff $$f ./.tmp.2.$$$$ || exit 4; \
rm -f ./.tmp.[12].$$$$; \
echo "Test junking $$f (please wait) ($$b) ..."; \
./${TARGET} -J0.0001 -n 1000 -p $$pdu -b $$b -ioer -onull $$f || exit 5; \
./${TARGET} -J0.001 -n 1000 -p $$pdu -b $$b -ioer -onull $$f || exit 6; \
done; done; fi done; done; fi
check-per: check-per:
@if test -f sample-MegacoMessage-1-nopad.per ; then \ @if test -f sample-MegacoMessage-1-nopad.per ; then \
for f in sample-MegacoMessage-[1-9]-nopad.per; do \ for f in sample-*-[1-9]-nopad.per; do \
pdu=`echo $$f | sed -E -e "s/sample-([A-Za-z0-9-]+)-[0-9].*/\1/"`; \
for b in 1 17 33 980 8192; do \ for b in 1 17 33 980 8192; do \
echo "Recoding non-padded $$f into DER into XER and back ($$b)..."; \ echo "Recoding non-padded $$f ($$pdu) into DER into XER and back ($$b)..."; \
./${TARGET} -b $$b -per-nopad -iper -oder $$f > ./.tmp.1.$$$$ || exit 2; \ ./${TARGET} -p $$pdu -b $$b -per-nopad -iper -oder $$f > ./.tmp.1.$$$$ || exit 2; \
./${TARGET} -b $$b -iber -oxer ./.tmp.1.$$$$ > ./.tmp.2.$$$$ || exit 3; \ ./${TARGET} -p $$pdu -b $$b -iber -oxer ./.tmp.1.$$$$ > ./.tmp.2.$$$$ || exit 3; \
./${TARGET} -b $$b -ixer -oder ./.tmp.2.$$$$ > ./.tmp.3.$$$$ || exit 4; \ ./${TARGET} -p $$pdu -b $$b -ixer -oder ./.tmp.2.$$$$ > ./.tmp.3.$$$$ || exit 4; \
diff ./.tmp.1.$$$$ ./.tmp.3.$$$$ || exit 5; \ diff ./.tmp.1.$$$$ ./.tmp.3.$$$$ || exit 5; \
rm -f ./.tmp.[123].$$$$; \ rm -f ./.tmp.[123].$$$$; \
echo "Test junking $$f (please wait)..."; \ echo "Test junking $$f (please wait)..."; \
./${TARGET} -J0.0001 -n 1000 -b $$b -per-nopad -iper -onull $$f || exit 6; \ ./${TARGET} -J0.0001 -n 1000 -p $$pdu -b $$b -per-nopad -iper -onull $$f || exit 6; \
./${TARGET} -J0.001 -n 1000 -b $$b -per-nopad -iper -onull $$f || exit 7; \ ./${TARGET} -J0.001 -n 1000 -p $$pdu -b $$b -per-nopad -iper -onull $$f || exit 7; \
done; done; fi done; done; fi
@if test -f sample-MegacoMessage-1.per ; then \ @if test -f sample-MegacoMessage-1.per ; then \
for f in sample-*-[1-9].per; do \ for f in sample-*-[1-9].per; do \
pdu=`echo $$f | sed -E -e "s/sample-([A-Za-z-]+)-[0-9].*/\1/"`; \ pdu=`echo $$f | sed -E -e "s/sample-([A-Za-z0-9-]+)-[0-9].*/\1/"`; \
for b in 1 17 33 980 8192; do \ for b in 1 17 33 980 8192; do \
echo "Recoding $$f into DER into XER and back ($$b)..."; \ echo "Recoding $$f ($$pdu) into DER into XER and back ($$b)..."; \
./${TARGET} -b $$b -p $$pdu -iper -oder $$f > ./.tmp.1.$$$$ || exit 3; \ ./${TARGET} -p $$pdu -b $$b -iper -oder $$f > ./.tmp.1.$$$$ || exit 3; \
./${TARGET} -b $$b -p $$pdu -iber -oxer ./.tmp.1.$$$$ > ./.tmp.2.$$$$ || exit 4; \ ./${TARGET} -p $$pdu -b $$b -iber -oxer ./.tmp.1.$$$$ > ./.tmp.2.$$$$ || exit 4; \
./${TARGET} -b $$b -p $$pdu -ixer -oper ./.tmp.2.$$$$ > ./.tmp.1.$$$$ || exit 5; \ ./${TARGET} -p $$pdu -b $$b -ixer -oper ./.tmp.2.$$$$ > ./.tmp.1.$$$$ || exit 5; \
diff $$f ./.tmp.1.$$$$ || exit 6; \ diff $$f ./.tmp.1.$$$$ || exit 6; \
rm -f ./.tmp.[12].$$$$; \ rm -f ./.tmp.[12].$$$$; \
echo "Test junking $$f (please wait)..."; \ echo "Test junking $$f (please wait)..."; \
./${TARGET} -J0.0001 -n 1000 -b $$b -iper -onull $$f || exit 7; \ ./${TARGET} -J0.0001 -n 1000 -p $$pdu -b $$b -iper -onull $$f || exit 7; \
./${TARGET} -J0.001 -n 1000 -b $$b -iper -onull $$f || exit 8; \ ./${TARGET} -J0.001 -n 1000 -p $$pdu -b $$b -iper -onull $$f || exit 8; \
done; done; fi done; done; fi
maybe-wip-pause:
@if [ -f WIP ]; then cat WIP; sleep 2; fi
distclean: clean distclean: clean
rm -f $(ASN_MODULE_SOURCES) rm -f $(ASN_MODULE_SOURCES)
rm -f $(ASN_MODULE_HEADERS) rm -f $(ASN_MODULE_HEADERS)
rm -f $(ASN_CONVERTER_SOURCES) $(ASN_CONVERTER_HEADERS) rm -f $(ASN_CONVERTER_SOURCES) $(ASN_CONVERTER_HEADERS)
rm -f Makefile.am.sample rm -f Makefile.am.example
ASN_MODULE_SOURCES= \ -include Makefile.am.libasncodec
Attribute.c \
AttributeType.c \
AttributeValue.c \
AttributeTypeAndValue.c \
X520name.c \
X520CommonName.c \
X520LocalityName.c \
X520StateOrProvinceName.c \
X520OrganizationName.c \
X520OrganizationalUnitName.c \
X520Title.c \
X520dnQualifier.c \
X520countryName.c \
X520SerialNumber.c \
X520Pseudonym.c \
DomainComponent.c \
EmailAddress.c \
Name.c \
RDNSequence.c \
DistinguishedName.c \
RelativeDistinguishedName.c \
DirectoryString.c \
Certificate.c \
TBSCertificate.c \
Version.c \
CertificateSerialNumber.c \
Validity.c \
Time.c \
UniqueIdentifier.c \
SubjectPublicKeyInfo.c \
Extensions.c \
Extension.c \
CertificateList.c \
TBSCertList.c \
AlgorithmIdentifier.c \
ORAddress.c \
BuiltInStandardAttributes.c \
CountryName.c \
AdministrationDomainName.c \
NetworkAddress.c \
X121Address.c \
TerminalIdentifier.c \
PrivateDomainName.c \
OrganizationName.c \
NumericUserIdentifier.c \
PersonalName.c \
OrganizationalUnitNames.c \
OrganizationalUnitName.c \
BuiltInDomainDefinedAttributes.c \
BuiltInDomainDefinedAttribute.c \
ExtensionAttributes.c \
ExtensionAttribute.c \
CommonName.c \
TeletexCommonName.c \
TeletexOrganizationName.c \
TeletexPersonalName.c \
TeletexOrganizationalUnitNames.c \
TeletexOrganizationalUnitName.c \
PDSName.c \
PhysicalDeliveryCountryName.c \
PostalCode.c \
PhysicalDeliveryOfficeName.c \
PhysicalDeliveryOfficeNumber.c \
ExtensionORAddressComponents.c \
PhysicalDeliveryPersonalName.c \
PhysicalDeliveryOrganizationName.c \
ExtensionPhysicalDeliveryAddressComponents.c \
UnformattedPostalAddress.c \
StreetAddress.c \
PostOfficeBoxAddress.c \
PosteRestanteAddress.c \
UniquePostalName.c \
LocalPostalAttributes.c \
PDSParameter.c \
ExtendedNetworkAddress.c \
PresentationAddress.c \
TerminalType.c \
TeletexDomainDefinedAttributes.c \
TeletexDomainDefinedAttribute.c \
AuthorityKeyIdentifier.c \
KeyIdentifier.c \
SubjectKeyIdentifier.c \
KeyUsage.c \
PrivateKeyUsagePeriod.c \
CertificatePolicies.c \
PolicyInformation.c \
CertPolicyId.c \
PolicyQualifierInfo.c \
PolicyQualifierId.c \
CPSuri.c \
UserNotice.c \
NoticeReference.c \
DisplayText.c \
PolicyMappings.c \
SubjectAltName.c \
GeneralNames.c \
GeneralName.c \
AnotherName.c \
EDIPartyName.c \
IssuerAltName.c \
SubjectDirectoryAttributes.c \
BasicConstraints.c \
NameConstraints.c \
GeneralSubtrees.c \
GeneralSubtree.c \
BaseDistance.c \
PolicyConstraints.c \
SkipCerts.c \
CRLDistributionPoints.c \
DistributionPoint.c \
DistributionPointName.c \
ReasonFlags.c \
ExtKeyUsageSyntax.c \
KeyPurposeId.c \
InhibitAnyPolicy.c \
FreshestCRL.c \
AuthorityInfoAccessSyntax.c \
AccessDescription.c \
SubjectInfoAccessSyntax.c \
CRLNumber.c \
IssuingDistributionPoint.c \
BaseCRLNumber.c \
CRLReason.c \
CertificateIssuer.c \
HoldInstructionCode.c \
InvalidityDate.c
ASN_MODULE_HEADERS= \
Attribute.h \
AttributeType.h \
AttributeValue.h \
AttributeTypeAndValue.h \
X520name.h \
X520CommonName.h \
X520LocalityName.h \
X520StateOrProvinceName.h \
X520OrganizationName.h \
X520OrganizationalUnitName.h \
X520Title.h \
X520dnQualifier.h \
X520countryName.h \
X520SerialNumber.h \
X520Pseudonym.h \
DomainComponent.h \
EmailAddress.h \
Name.h \
RDNSequence.h \
DistinguishedName.h \
RelativeDistinguishedName.h \
DirectoryString.h \
Certificate.h \
TBSCertificate.h \
Version.h \
CertificateSerialNumber.h \
Validity.h \
Time.h \
UniqueIdentifier.h \
SubjectPublicKeyInfo.h \
Extensions.h \
Extension.h \
CertificateList.h \
TBSCertList.h \
AlgorithmIdentifier.h \
ORAddress.h \
BuiltInStandardAttributes.h \
CountryName.h \
AdministrationDomainName.h \
NetworkAddress.h \
X121Address.h \
TerminalIdentifier.h \
PrivateDomainName.h \
OrganizationName.h \
NumericUserIdentifier.h \
PersonalName.h \
OrganizationalUnitNames.h \
OrganizationalUnitName.h \
BuiltInDomainDefinedAttributes.h \
BuiltInDomainDefinedAttribute.h \
ExtensionAttributes.h \
ExtensionAttribute.h \
CommonName.h \
TeletexCommonName.h \
TeletexOrganizationName.h \
TeletexPersonalName.h \
TeletexOrganizationalUnitNames.h \
TeletexOrganizationalUnitName.h \
PDSName.h \
PhysicalDeliveryCountryName.h \
PostalCode.h \
PhysicalDeliveryOfficeName.h \
PhysicalDeliveryOfficeNumber.h \
ExtensionORAddressComponents.h \
PhysicalDeliveryPersonalName.h \
PhysicalDeliveryOrganizationName.h \
ExtensionPhysicalDeliveryAddressComponents.h \
UnformattedPostalAddress.h \
StreetAddress.h \
PostOfficeBoxAddress.h \
PosteRestanteAddress.h \
UniquePostalName.h \
LocalPostalAttributes.h \
PDSParameter.h \
ExtendedNetworkAddress.h \
PresentationAddress.h \
TerminalType.h \
TeletexDomainDefinedAttributes.h \
TeletexDomainDefinedAttribute.h \
AuthorityKeyIdentifier.h \
KeyIdentifier.h \
SubjectKeyIdentifier.h \
KeyUsage.h \
PrivateKeyUsagePeriod.h \
CertificatePolicies.h \
PolicyInformation.h \
CertPolicyId.h \
PolicyQualifierInfo.h \
PolicyQualifierId.h \
CPSuri.h \
UserNotice.h \
NoticeReference.h \
DisplayText.h \
PolicyMappings.h \
SubjectAltName.h \
GeneralNames.h \
GeneralName.h \
AnotherName.h \
EDIPartyName.h \
IssuerAltName.h \
SubjectDirectoryAttributes.h \
BasicConstraints.h \
NameConstraints.h \
GeneralSubtrees.h \
GeneralSubtree.h \
BaseDistance.h \
PolicyConstraints.h \
SkipCerts.h \
CRLDistributionPoints.h \
DistributionPoint.h \
DistributionPointName.h \
ReasonFlags.h \
ExtKeyUsageSyntax.h \
KeyPurposeId.h \
InhibitAnyPolicy.h \
FreshestCRL.h \
AuthorityInfoAccessSyntax.h \
AccessDescription.h \
SubjectInfoAccessSyntax.h \
CRLNumber.h \
IssuingDistributionPoint.h \
BaseCRLNumber.h \
CRLReason.h \
CertificateIssuer.h \
HoldInstructionCode.h \
InvalidityDate.h
ASN_MODULE_HEADERS+=ANY.h
ASN_MODULE_SOURCES+=ANY.c
ASN_MODULE_HEADERS+=OPEN_TYPE.h
ASN_MODULE_SOURCES+=OPEN_TYPE.c
ASN_MODULE_HEADERS+=constr_CHOICE.h
ASN_MODULE_HEADERS+=BMPString.h
ASN_MODULE_SOURCES+=BMPString.c
ASN_MODULE_HEADERS+=UTF8String.h
ASN_MODULE_HEADERS+=BOOLEAN.h
ASN_MODULE_SOURCES+=BOOLEAN.c
ASN_MODULE_HEADERS+=ENUMERATED.h
ASN_MODULE_SOURCES+=ENUMERATED.c
ASN_MODULE_HEADERS+=INTEGER.h
ASN_MODULE_HEADERS+=NativeEnumerated.h
ASN_MODULE_HEADERS+=GeneralizedTime.h
ASN_MODULE_SOURCES+=GeneralizedTime.c
ASN_MODULE_HEADERS+=IA5String.h
ASN_MODULE_SOURCES+=IA5String.c
ASN_MODULE_SOURCES+=INTEGER.c
ASN_MODULE_SOURCES+=NativeEnumerated.c
ASN_MODULE_HEADERS+=NativeInteger.h
ASN_MODULE_SOURCES+=NativeInteger.c
ASN_MODULE_HEADERS+=NumericString.h
ASN_MODULE_SOURCES+=NumericString.c
ASN_MODULE_HEADERS+=OBJECT_IDENTIFIER.h
ASN_MODULE_SOURCES+=OBJECT_IDENTIFIER.c
ASN_MODULE_HEADERS+=PrintableString.h
ASN_MODULE_SOURCES+=PrintableString.c
ASN_MODULE_HEADERS+=TeletexString.h
ASN_MODULE_SOURCES+=TeletexString.c
ASN_MODULE_HEADERS+=UTCTime.h
ASN_MODULE_SOURCES+=UTCTime.c
ASN_MODULE_SOURCES+=UTF8String.c
ASN_MODULE_HEADERS+=UniversalString.h
ASN_MODULE_SOURCES+=UniversalString.c
ASN_MODULE_HEADERS+=VisibleString.h
ASN_MODULE_SOURCES+=VisibleString.c
ASN_MODULE_HEADERS+=asn_SEQUENCE_OF.h
ASN_MODULE_SOURCES+=asn_SEQUENCE_OF.c
ASN_MODULE_HEADERS+=asn_SET_OF.h
ASN_MODULE_SOURCES+=asn_SET_OF.c
ASN_MODULE_SOURCES+=constr_CHOICE.c
ASN_MODULE_HEADERS+=constr_SEQUENCE.h
ASN_MODULE_SOURCES+=constr_SEQUENCE.c
ASN_MODULE_HEADERS+=constr_SEQUENCE_OF.h
ASN_MODULE_SOURCES+=constr_SEQUENCE_OF.c
ASN_MODULE_HEADERS+=constr_SET_OF.h
ASN_MODULE_HEADERS+=constr_SET.h
ASN_MODULE_SOURCES+=constr_SET.c
ASN_MODULE_SOURCES+=constr_SET_OF.c
ASN_MODULE_HEADERS+=asn_application.h
ASN_MODULE_HEADERS+=asn_ioc.h
ASN_MODULE_HEADERS+=asn_system.h
ASN_MODULE_HEADERS+=asn_codecs.h
ASN_MODULE_HEADERS+=asn_internal.h
ASN_MODULE_HEADERS+=asn_bit_data.h
ASN_MODULE_SOURCES+=asn_bit_data.c
ASN_MODULE_HEADERS+=OCTET_STRING.h
ASN_MODULE_SOURCES+=OCTET_STRING.c
ASN_MODULE_HEADERS+=BIT_STRING.h
ASN_MODULE_SOURCES+=BIT_STRING.c
ASN_MODULE_SOURCES+=asn_codecs_prim.c
ASN_MODULE_HEADERS+=asn_codecs_prim.h
ASN_MODULE_HEADERS+=ber_tlv_length.h
ASN_MODULE_SOURCES+=ber_tlv_length.c
ASN_MODULE_HEADERS+=ber_tlv_tag.h
ASN_MODULE_SOURCES+=ber_tlv_tag.c
ASN_MODULE_HEADERS+=ber_decoder.h
ASN_MODULE_SOURCES+=ber_decoder.c
ASN_MODULE_HEADERS+=der_encoder.h
ASN_MODULE_SOURCES+=der_encoder.c
ASN_MODULE_HEADERS+=constr_TYPE.h
ASN_MODULE_SOURCES+=constr_TYPE.c
ASN_MODULE_HEADERS+=constraints.h
ASN_MODULE_SOURCES+=constraints.c
ASN_MODULE_HEADERS+=xer_support.h
ASN_MODULE_SOURCES+=xer_support.c
ASN_MODULE_HEADERS+=xer_decoder.h
ASN_MODULE_SOURCES+=xer_decoder.c
ASN_MODULE_HEADERS+=xer_encoder.h
ASN_MODULE_SOURCES+=xer_encoder.c
ASN_MODULE_HEADERS+=per_support.h
ASN_MODULE_SOURCES+=per_support.c
ASN_MODULE_HEADERS+=per_decoder.h
ASN_MODULE_SOURCES+=per_decoder.c
ASN_MODULE_HEADERS+=per_encoder.h
ASN_MODULE_SOURCES+=per_encoder.c
ASN_MODULE_HEADERS+=per_opentype.h
ASN_MODULE_SOURCES+=per_opentype.c
ASN_CONVERTER_SOURCES+=converter-sample.c
lib_LTLIBRARIES=libsomething.la
libsomething_la_SOURCES=$(ASN_MODULE_SOURCES) $(ASN_MODULE_HEADERS)
# This file may be used as an input for make(3)
# Remove the lines below to convert it into a pure .am file
TARGET = x509dump TARGET = x509dump
CPPFLAGS += -DHAVE_CONFIG_H -DJUNKTEST -D_DEFAULT_SOURCE -DASN_DISABLE_OER_SUPPORT -DASN_DISABLE_PER_SUPPORT -DPDU=Certificate -I. ASN_LIBRARY=libasncodec.a
OBJS=${ASN_MODULE_SOURCES:.c=.o} ${ASN_CONVERTER_SOURCES:.c=.o} LIBS += -lm
CFLAGS += -DHAVE_CONFIG_H -DJUNKTEST -D_DEFAULT_SOURCE $(ASN_MODULE_CFLAGS) -DPDU=Certificate -I.
ASN_CONVERTER_SOURCES := \
converter-example.c
all: maybe-wip-pause Certificate.c $(TARGET) all: maybe-wip-pause Certificate.c $(TARGET)
$(TARGET): ${OBJS} $(TARGET): $(ASN_LIBRARY) $(ASN_CONVERTER_SOURCES:.c=.o)
$(CC) $(CFLAGS) $(CPPFLAGS) -o $(TARGET) ${OBJS} $(LDFLAGS) $(LIBS) $(CC) $(CFLAGS) $(CPPFLAGS) -o $(TARGET) $(ASN_CONVERTER_SOURCES:.c=.o) $(LDFLAGS) $(ASN_LIBRARY) $(LIBS)
$(ASN_LIBRARY): $(ASN_MODULE_SOURCES:.c=.o)
$(AR) rcs $@ $^
.SUFFIXES: .SUFFIXES:
.SUFFIXES: .c .o .SUFFIXES: .c .o
.c.o: .c.o:
$(CC) $(CFLAGS) $(CPPFLAGS) -o $@ -c $< $(CC) $(CFLAGS) -o $@ -c $<
clean: clean:
rm -f $(TARGET) rm -f $(TARGET) $(ASN_LIBRARY)
rm -f $(OBJS) rm -f $(ASN_MODULE_SOURCES:.c=.o) $(ASN_CONVERTER_SOURCES:.c=.o)
regen: regenerate-from-asn1-source regen: regenerate-from-asn1-source
regenerate-from-asn1-source: regenerate-from-asn1-source:
../../asn1c/asn1c -S ../../skeletons -pdu=Certificate -fwide-types ../rfc3280-PKIX1Explicit88.asn1 ../rfc3280-PKIX1Implicit88.asn1 ../../asn1c/asn1c -S ../../skeletons -pdu=Certificate -fcompound-names -fwide-types ../rfc3280-PKIX1Explicit88.asn1 ../rfc3280-PKIX1Implicit88.asn1
Certificate.c: ../sample.makefile.regen ../rfc3280-*.asn1 Certificate.c: ../sample.makefile.regen ../rfc3280-*.asn1
...@@ -382,14 +37,13 @@ Certificate.c: ../sample.makefile.regen ../rfc3280-*.asn1 ...@@ -382,14 +37,13 @@ Certificate.c: ../sample.makefile.regen ../rfc3280-*.asn1
make make
regen-makefile: regen-makefile:
ASN1CMDOPTS="-fwide-types" \ ASN1CMDOPTS="-fcompound-names -fwide-types" \
ASN1MODULES="../rfc3280-*.asn1" \ ASN1MODULES="../rfc3280-*.asn1" \
ASN1PDU=Certificate \ ASN1PDU=Certificate \
PROGNAME=x509dump \ PROGNAME=x509dump \
CPPFLAGS="" \
../sample.makefile.regen ../sample.makefile.regen
check: ${TARGET} check-ber check-xer check-per check: ${TARGET} check-ber check-xer check-oer check-per
@echo ================ @echo ================
@echo All tests passed @echo All tests passed
@echo ================ @echo ================
...@@ -397,7 +51,7 @@ check: ${TARGET} check-ber check-xer check-per ...@@ -397,7 +51,7 @@ check: ${TARGET} check-ber check-xer check-per
check-ber: check-ber:
@if test -f sample-Certificate-1.[db]er ; then \ @if test -f sample-Certificate-1.[db]er ; then \
for f in sample-*-*.[db]er; do \ for f in sample-*-*.[db]er; do \
pdu=`echo $$f | sed -E -e "s/sample-([A-Za-z-]+)-[0-9].*/\1/"`; \ pdu=`echo $$f | sed -E -e "s/sample-([A-Za-z0-9-]+)-[0-9].*/\1/"`; \
for b in 1 17 33 980 8192; do \ for b in 1 17 33 980 8192; do \
echo "Recoding $$f ($$pdu) into XER and back ($$b)..."; \ echo "Recoding $$f ($$pdu) into XER and back ($$b)..."; \
./${TARGET} -p $$pdu -b $$b -iber -oxer $$f > ./.tmp.1.$$$$ || exit 2; \ ./${TARGET} -p $$pdu -b $$b -iber -oxer $$f > ./.tmp.1.$$$$ || exit 2; \
...@@ -412,7 +66,7 @@ check-ber: ...@@ -412,7 +66,7 @@ check-ber:
check-xer: check-xer:
@if test -f sample-Certificate-1.xer ; then \ @if test -f sample-Certificate-1.xer ; then \
for f in sample-*-*.xer; do \ for f in sample-*-*.xer; do \
pdu=`echo $$f | sed -E -e "s/sample-([A-Za-z-]+)-[0-9].*/\1/"`; \ pdu=`echo $$f | sed -E -e "s/sample-([A-Za-z0-9-]+)-[0-9].*/\1/"`; \
for b in 1 17 33 980 8192; do \ for b in 1 17 33 980 8192; do \
echo "Recoding $$f ($$pdu) into DER and back ($$b)..."; \ echo "Recoding $$f ($$pdu) into DER and back ($$b)..."; \
./${TARGET} -p $$pdu -b $$b -ixer -oder $$f > ./.tmp.1.$$$$ || exit 2; \ ./${TARGET} -p $$pdu -b $$b -ixer -oder $$f > ./.tmp.1.$$$$ || exit 2; \
...@@ -424,10 +78,25 @@ check-xer: ...@@ -424,10 +78,25 @@ check-xer:
./${TARGET} -J0.001 -n 1000 -p $$pdu -b $$b -ixer -onull $$f || exit 6; \ ./${TARGET} -J0.001 -n 1000 -p $$pdu -b $$b -ixer -onull $$f || exit 6; \
done; done; fi done; done; fi
check-oer:
@if test -f sample-Certificate-1.*oer ; then \
for f in sample-*-*.*oer; do \
pdu=`echo $$f | sed -E -e "s/sample-([A-Za-z0-9-]+)-[0-9].*/\1/"`; \
for b in 1 17 33 980 8192; do \
echo "Recoding $$f ($$pdu) into XER and back ($$b)..."; \
./${TARGET} -p $$pdu -b $$b -ioer -oxer $$f > ./.tmp.1.$$$$ || exit 2; \
./${TARGET} -p $$pdu -b $$b -ixer -ooer ./.tmp.1.$$$$ > ./.tmp.2.$$$$ || exit 3; \
diff $$f ./.tmp.2.$$$$ || exit 4; \
rm -f ./.tmp.[12].$$$$; \
echo "Test junking $$f (please wait) ($$b) ..."; \
./${TARGET} -J0.0001 -n 1000 -p $$pdu -b $$b -ioer -onull $$f || exit 5; \
./${TARGET} -J0.001 -n 1000 -p $$pdu -b $$b -ioer -onull $$f || exit 6; \
done; done; fi
check-per: check-per:
@if test -f sample-Certificate-1-nopad.per ; then \ @if test -f sample-Certificate-1-nopad.per ; then \
for f in sample-*-[1-9]-nopad.per; do \ for f in sample-*-[1-9]-nopad.per; do \
pdu=`echo $$f | sed -E -e "s/sample-([A-Za-z-]+)-[0-9].*/\1/"`; \ pdu=`echo $$f | sed -E -e "s/sample-([A-Za-z0-9-]+)-[0-9].*/\1/"`; \
for b in 1 17 33 980 8192; do \ for b in 1 17 33 980 8192; do \
echo "Recoding non-padded $$f ($$pdu) into DER into XER and back ($$b)..."; \ echo "Recoding non-padded $$f ($$pdu) into DER into XER and back ($$b)..."; \
./${TARGET} -p $$pdu -b $$b -per-nopad -iper -oder $$f > ./.tmp.1.$$$$ || exit 2; \ ./${TARGET} -p $$pdu -b $$b -per-nopad -iper -oder $$f > ./.tmp.1.$$$$ || exit 2; \
...@@ -441,7 +110,7 @@ check-per: ...@@ -441,7 +110,7 @@ check-per:
done; done; fi done; done; fi
@if test -f sample-Certificate-1.per ; then \ @if test -f sample-Certificate-1.per ; then \
for f in sample-*-[1-9].per; do \ for f in sample-*-[1-9].per; do \
pdu=`echo $$f | sed -E -e "s/sample-([A-Za-z-]+)-[0-9].*/\1/"`; \ pdu=`echo $$f | sed -E -e "s/sample-([A-Za-z0-9-]+)-[0-9].*/\1/"`; \
for b in 1 17 33 980 8192; do \ for b in 1 17 33 980 8192; do \
echo "Recoding $$f ($$pdu) into DER into XER and back ($$b)..."; \ echo "Recoding $$f ($$pdu) into DER into XER and back ($$b)..."; \
./${TARGET} -p $$pdu -b $$b -iper -oder $$f > ./.tmp.1.$$$$ || exit 3; \ ./${TARGET} -p $$pdu -b $$b -iper -oder $$f > ./.tmp.1.$$$$ || exit 3; \
...@@ -461,4 +130,4 @@ distclean: clean ...@@ -461,4 +130,4 @@ distclean: clean
rm -f $(ASN_MODULE_SOURCES) rm -f $(ASN_MODULE_SOURCES)
rm -f $(ASN_MODULE_HEADERS) rm -f $(ASN_MODULE_HEADERS)
rm -f $(ASN_CONVERTER_SOURCES) $(ASN_CONVERTER_HEADERS) rm -f $(ASN_CONVERTER_SOURCES) $(ASN_CONVERTER_HEADERS)
rm -f Makefile.am.sample rm -f Makefile.am.example
This source diff could not be displayed because it is too large. You can view the blob instead.
ASN_MODULE_SOURCES= \ -include Makefile.am.libasncodec
DataInterChange.c \
TransferBatch.c \
Notification.c \
CallEventDetailList.c \
CallEventDetail.c \
BatchControlInfo.c \
AccountingInfo.c \
NetworkInfo.c \
MessageDescriptionInfoList.c \
MobileOriginatedCall.c \
MobileTerminatedCall.c \
SupplServiceEvent.c \
ServiceCentreUsage.c \
GprsCall.c \
ContentTransaction.c \
LocationService.c \
MessagingEvent.c \
MobileSession.c \
AuditControlInfo.c \
AccessPointNameNI.c \
AccessPointNameOI.c \
ActualDeliveryTimeStamp.c \
AddressStringDigits.c \
AdvisedCharge.c \
AdvisedChargeCurrency.c \
AdvisedChargeInformation.c \
AgeOfLocation.c \
BasicService.c \
BasicServiceCode.c \
BasicServiceCodeList.c \
BasicServiceUsed.c \
BasicServiceUsedList.c \
BearerServiceCode.c \
CalledNumber.c \
CalledPlace.c \
CalledRegion.c \
CallEventDetailsCount.c \
CallEventStartTimeStamp.c \
CallingNumber.c \
CallOriginator.c \
CallReference.c \
CallTypeGroup.c \
CallTypeLevel1.c \
CallTypeLevel2.c \
CallTypeLevel3.c \
CamelDestinationNumber.c \
CamelInvocationFee.c \
CamelServiceKey.c \
CamelServiceLevel.c \
CamelServiceUsed.c \
CauseForTerm.c \
CellId.c \
Charge.c \
ChargeableSubscriber.c \
ChargeableUnits.c \
ChargeDetail.c \
ChargeDetailList.c \
ChargeDetailTimeStamp.c \
ChargedItem.c \
ChargedParty.c \
ChargedPartyEquipment.c \
ChargedPartyHomeIdentification.c \
ChargedPartyHomeIdList.c \
ChargedPartyIdentification.c \
ChargedPartyIdentifier.c \
ChargedPartyIdList.c \
ChargedPartyIdType.c \
ChargedPartyInformation.c \
ChargedPartyLocation.c \
ChargedPartyLocationList.c \
ChargedPartyStatus.c \
ChargedUnits.c \
ChargeInformation.c \
ChargeInformationList.c \
ChargeRefundIndicator.c \
ChargeType.c \
ChargingId.c \
ChargingPoint.c \
ChargingTimeStamp.c \
ClirIndicator.c \
Commission.c \
CompletionTimeStamp.c \
ContentChargingPoint.c \
ContentProvider.c \
ContentProviderIdentifier.c \
ContentProviderIdList.c \
ContentProviderIdType.c \
ContentProviderName.c \
ContentServiceUsed.c \
ContentServiceUsedList.c \
ContentTransactionBasicInfo.c \
ContentTransactionCode.c \
ContentTransactionType.c \
CseInformation.c \
CurrencyConversion.c \
CurrencyConversionList.c \
CustomerIdentifier.c \
CustomerIdType.c \
DataVolume.c \
DataVolumeIncoming.c \
DataVolumeOutgoing.c \
DateTime.c \
DateTimeLong.c \
DefaultCallHandlingIndicator.c \
DepositTimeStamp.c \
Destination.c \
DestinationNetwork.c \
DialledDigits.c \
Discount.c \
DiscountableAmount.c \
DiscountApplied.c \
DiscountCode.c \
DiscountInformation.c \
Discounting.c \
DiscountingList.c \
DiscountRate.c \
DiscountValue.c \
DistanceChargeBandCode.c \
EarliestCallTimeStamp.c \
ElementId.c \
ElementType.c \
EquipmentId.c \
EquipmentIdType.c \
Esn.c \
EventReference.c \
ExchangeRate.c \
ExchangeRateCode.c \
FileAvailableTimeStamp.c \
FileCreationTimeStamp.c \
FileSequenceNumber.c \
FileTypeIndicator.c \
FixedDiscountValue.c \
Fnur.c \
GeographicalLocation.c \
GprsBasicCallInformation.c \
GprsChargeableSubscriber.c \
GprsDestination.c \
GprsLocationInformation.c \
GprsNetworkLocation.c \
GprsServiceUsed.c \
GsmChargeableSubscriber.c \
GuaranteedBitRate.c \
HomeBid.c \
HomeIdentifier.c \
HomeIdType.c \
HomeLocationDescription.c \
HomeLocationInformation.c \
HorizontalAccuracyDelivered.c \
HorizontalAccuracyRequested.c \
HSCSDIndicator.c \
Imei.c \
ImeiOrEsn.c \
Imsi.c \
IMSSignallingContext.c \
InternetServiceProvider.c \
InternetServiceProviderIdList.c \
IspIdentifier.c \
IspIdType.c \
ISPList.c \
NetworkIdType.c \
NetworkIdentifier.c \
Network.c \
NetworkList.c \
LatestCallTimeStamp.c \
LCSQosDelivered.c \
LCSQosRequested.c \
LCSRequestTimestamp.c \
LCSSPIdentification.c \
LCSSPIdentificationList.c \
LCSSPInformation.c \
LCSTransactionStatus.c \
LocalCurrency.c \
LocalTimeStamp.c \
LocationArea.c \
LocationDescription.c \
LocationIdentifier.c \
LocationIdType.c \
LocationInformation.c \
LocationServiceUsage.c \
MaximumBitRate.c \
Mdn.c \
MessageDescription.c \
MessageDescriptionCode.c \
MessageDescriptionInformation.c \
MessageStatus.c \
MessageType.c \
MessagingEventService.c \
Min.c \
MinChargeableSubscriber.c \
MoBasicCallInformation.c \
MobileSessionService.c \
Msisdn.c \
MtBasicCallInformation.c \
NetworkAccessIdentifier.c \
NetworkElement.c \
NetworkElementList.c \
NetworkId.c \
NetworkInitPDPContext.c \
NetworkLocation.c \
NonChargedNumber.c \
NonChargedParty.c \
NonChargedPartyNumber.c \
NonChargedPublicUserId.c \
NumberOfDecimalPlaces.c \
ObjectType.c \
OperatorSpecInfoList.c \
OperatorSpecInformation.c \
OrderPlacedTimeStamp.c \
OriginatingNetwork.c \
PacketDataProtocolAddress.c \
PaidIndicator.c \
PartialTypeIndicator.c \
PaymentMethod.c \
PdpAddress.c \
PDPContextStartTimestamp.c \
PlmnId.c \
PositioningMethod.c \
PriorityCode.c \
PublicUserId.c \
RapFileSequenceNumber.c \
RecEntityCode.c \
RecEntityCodeList.c \
RecEntityId.c \
RecEntityInfoList.c \
RecEntityInformation.c \
RecEntityType.c \
Recipient.c \
ReleaseVersionNumber.c \
RequestedDeliveryTimeStamp.c \
ResponseTime.c \
ResponseTimeCategory.c \
ScuBasicInformation.c \
ScuChargeType.c \
ScuTimeStamps.c \
ScuChargeableSubscriber.c \
Sender.c \
ServiceStartTimestamp.c \
ServingBid.c \
ServingLocationDescription.c \
ServingNetwork.c \
ServingPartiesInformation.c \
SessionChargeInfoList.c \
SessionChargeInformation.c \
SimChargeableSubscriber.c \
SimToolkitIndicator.c \
SMSDestinationNumber.c \
SMSOriginator.c \
SpecificationVersionNumber.c \
SsParameters.c \
SupplServiceActionCode.c \
SupplServiceCode.c \
SupplServiceUsed.c \
TapCurrency.c \
TapDecimalPlaces.c \
TaxableAmount.c \
Taxation.c \
TaxationList.c \
TaxCode.c \
TaxIndicator.c \
TaxInformation.c \
TaxInformationList.c \
TaxRate.c \
TaxType.c \
TaxValue.c \
TeleServiceCode.c \
ThirdPartyInformation.c \
ThirdPartyNumber.c \
ThreeGcamelDestination.c \
TotalAdvisedCharge.c \
TotalAdvisedChargeRefund.c \
TotalAdvisedChargeValue.c \
TotalAdvisedChargeValueList.c \
TotalCallEventDuration.c \
TotalCharge.c \
TotalChargeRefund.c \
TotalCommission.c \
TotalCommissionRefund.c \
TotalDataVolume.c \
TotalDiscountRefund.c \
TotalDiscountValue.c \
TotalTaxRefund.c \
TotalTaxValue.c \
TotalTransactionDuration.c \
TrackedCustomerEquipment.c \
TrackedCustomerHomeId.c \
TrackedCustomerHomeIdList.c \
TrackedCustomerIdentification.c \
TrackedCustomerIdList.c \
TrackedCustomerInformation.c \
TrackedCustomerLocation.c \
TrackedCustomerLocList.c \
TrackingCustomerEquipment.c \
TrackingCustomerHomeId.c \
TrackingCustomerHomeIdList.c \
TrackingCustomerIdentification.c \
TrackingCustomerIdList.c \
TrackingCustomerInformation.c \
TrackingCustomerLocation.c \
TrackingCustomerLocList.c \
TrackingFrequency.c \
TrackingPeriod.c \
TransactionAuthCode.c \
TransactionDescriptionSupp.c \
TransactionDetailDescription.c \
TransactionIdentifier.c \
TransactionShortDescription.c \
TransactionStatus.c \
TransferCutOffTimeStamp.c \
TransparencyIndicator.c \
UserProtocolIndicator.c \
UtcTimeOffset.c \
UtcTimeOffsetCode.c \
UtcTimeOffsetInfo.c \
UtcTimeOffsetInfoList.c \
VerticalAccuracyDelivered.c \
VerticalAccuracyRequested.c \
AbsoluteAmount.c \
Bid.c \
Code.c \
AsciiString.c \
BCDString.c \
Currency.c \
HexString.c \
NumberString.c \
PercentageRate.c
ASN_MODULE_HEADERS= \
DataInterChange.h \
TransferBatch.h \
Notification.h \
CallEventDetailList.h \
CallEventDetail.h \
BatchControlInfo.h \
AccountingInfo.h \
NetworkInfo.h \
MessageDescriptionInfoList.h \
MobileOriginatedCall.h \
MobileTerminatedCall.h \
SupplServiceEvent.h \
ServiceCentreUsage.h \
GprsCall.h \
ContentTransaction.h \
LocationService.h \
MessagingEvent.h \
MobileSession.h \
AuditControlInfo.h \
AccessPointNameNI.h \
AccessPointNameOI.h \
ActualDeliveryTimeStamp.h \
AddressStringDigits.h \
AdvisedCharge.h \
AdvisedChargeCurrency.h \
AdvisedChargeInformation.h \
AgeOfLocation.h \
BasicService.h \
BasicServiceCode.h \
BasicServiceCodeList.h \
BasicServiceUsed.h \
BasicServiceUsedList.h \
BearerServiceCode.h \
CalledNumber.h \
CalledPlace.h \
CalledRegion.h \
CallEventDetailsCount.h \
CallEventStartTimeStamp.h \
CallingNumber.h \
CallOriginator.h \
CallReference.h \
CallTypeGroup.h \
CallTypeLevel1.h \
CallTypeLevel2.h \
CallTypeLevel3.h \
CamelDestinationNumber.h \
CamelInvocationFee.h \
CamelServiceKey.h \
CamelServiceLevel.h \
CamelServiceUsed.h \
CauseForTerm.h \
CellId.h \
Charge.h \
ChargeableSubscriber.h \
ChargeableUnits.h \
ChargeDetail.h \
ChargeDetailList.h \
ChargeDetailTimeStamp.h \
ChargedItem.h \
ChargedParty.h \
ChargedPartyEquipment.h \
ChargedPartyHomeIdentification.h \
ChargedPartyHomeIdList.h \
ChargedPartyIdentification.h \
ChargedPartyIdentifier.h \
ChargedPartyIdList.h \
ChargedPartyIdType.h \
ChargedPartyInformation.h \
ChargedPartyLocation.h \
ChargedPartyLocationList.h \
ChargedPartyStatus.h \
ChargedUnits.h \
ChargeInformation.h \
ChargeInformationList.h \
ChargeRefundIndicator.h \
ChargeType.h \
ChargingId.h \
ChargingPoint.h \
ChargingTimeStamp.h \
ClirIndicator.h \
Commission.h \
CompletionTimeStamp.h \
ContentChargingPoint.h \
ContentProvider.h \
ContentProviderIdentifier.h \
ContentProviderIdList.h \
ContentProviderIdType.h \
ContentProviderName.h \
ContentServiceUsed.h \
ContentServiceUsedList.h \
ContentTransactionBasicInfo.h \
ContentTransactionCode.h \
ContentTransactionType.h \
CseInformation.h \
CurrencyConversion.h \
CurrencyConversionList.h \
CustomerIdentifier.h \
CustomerIdType.h \
DataVolume.h \
DataVolumeIncoming.h \
DataVolumeOutgoing.h \
DateTime.h \
DateTimeLong.h \
DefaultCallHandlingIndicator.h \
DepositTimeStamp.h \
Destination.h \
DestinationNetwork.h \
DialledDigits.h \
Discount.h \
DiscountableAmount.h \
DiscountApplied.h \
DiscountCode.h \
DiscountInformation.h \
Discounting.h \
DiscountingList.h \
DiscountRate.h \
DiscountValue.h \
DistanceChargeBandCode.h \
EarliestCallTimeStamp.h \
ElementId.h \
ElementType.h \
EquipmentId.h \
EquipmentIdType.h \
Esn.h \
EventReference.h \
ExchangeRate.h \
ExchangeRateCode.h \
FileAvailableTimeStamp.h \
FileCreationTimeStamp.h \
FileSequenceNumber.h \
FileTypeIndicator.h \
FixedDiscountValue.h \
Fnur.h \
GeographicalLocation.h \
GprsBasicCallInformation.h \
GprsChargeableSubscriber.h \
GprsDestination.h \
GprsLocationInformation.h \
GprsNetworkLocation.h \
GprsServiceUsed.h \
GsmChargeableSubscriber.h \
GuaranteedBitRate.h \
HomeBid.h \
HomeIdentifier.h \
HomeIdType.h \
HomeLocationDescription.h \
HomeLocationInformation.h \
HorizontalAccuracyDelivered.h \
HorizontalAccuracyRequested.h \
HSCSDIndicator.h \
Imei.h \
ImeiOrEsn.h \
Imsi.h \
IMSSignallingContext.h \
InternetServiceProvider.h \
InternetServiceProviderIdList.h \
IspIdentifier.h \
IspIdType.h \
ISPList.h \
NetworkIdType.h \
NetworkIdentifier.h \
Network.h \
NetworkList.h \
LatestCallTimeStamp.h \
LCSQosDelivered.h \
LCSQosRequested.h \
LCSRequestTimestamp.h \
LCSSPIdentification.h \
LCSSPIdentificationList.h \
LCSSPInformation.h \
LCSTransactionStatus.h \
LocalCurrency.h \
LocalTimeStamp.h \
LocationArea.h \
LocationDescription.h \
LocationIdentifier.h \
LocationIdType.h \
LocationInformation.h \
LocationServiceUsage.h \
MaximumBitRate.h \
Mdn.h \
MessageDescription.h \
MessageDescriptionCode.h \
MessageDescriptionInformation.h \
MessageStatus.h \
MessageType.h \
MessagingEventService.h \
Min.h \
MinChargeableSubscriber.h \
MoBasicCallInformation.h \
MobileSessionService.h \
Msisdn.h \
MtBasicCallInformation.h \
NetworkAccessIdentifier.h \
NetworkElement.h \
NetworkElementList.h \
NetworkId.h \
NetworkInitPDPContext.h \
NetworkLocation.h \
NonChargedNumber.h \
NonChargedParty.h \
NonChargedPartyNumber.h \
NonChargedPublicUserId.h \
NumberOfDecimalPlaces.h \
ObjectType.h \
OperatorSpecInfoList.h \
OperatorSpecInformation.h \
OrderPlacedTimeStamp.h \
OriginatingNetwork.h \
PacketDataProtocolAddress.h \
PaidIndicator.h \
PartialTypeIndicator.h \
PaymentMethod.h \
PdpAddress.h \
PDPContextStartTimestamp.h \
PlmnId.h \
PositioningMethod.h \
PriorityCode.h \
PublicUserId.h \
RapFileSequenceNumber.h \
RecEntityCode.h \
RecEntityCodeList.h \
RecEntityId.h \
RecEntityInfoList.h \
RecEntityInformation.h \
RecEntityType.h \
Recipient.h \
ReleaseVersionNumber.h \
RequestedDeliveryTimeStamp.h \
ResponseTime.h \
ResponseTimeCategory.h \
ScuBasicInformation.h \
ScuChargeType.h \
ScuTimeStamps.h \
ScuChargeableSubscriber.h \
Sender.h \
ServiceStartTimestamp.h \
ServingBid.h \
ServingLocationDescription.h \
ServingNetwork.h \
ServingPartiesInformation.h \
SessionChargeInfoList.h \
SessionChargeInformation.h \
SimChargeableSubscriber.h \
SimToolkitIndicator.h \
SMSDestinationNumber.h \
SMSOriginator.h \
SpecificationVersionNumber.h \
SsParameters.h \
SupplServiceActionCode.h \
SupplServiceCode.h \
SupplServiceUsed.h \
TapCurrency.h \
TapDecimalPlaces.h \
TaxableAmount.h \
Taxation.h \
TaxationList.h \
TaxCode.h \
TaxIndicator.h \
TaxInformation.h \
TaxInformationList.h \
TaxRate.h \
TaxType.h \
TaxValue.h \
TeleServiceCode.h \
ThirdPartyInformation.h \
ThirdPartyNumber.h \
ThreeGcamelDestination.h \
TotalAdvisedCharge.h \
TotalAdvisedChargeRefund.h \
TotalAdvisedChargeValue.h \
TotalAdvisedChargeValueList.h \
TotalCallEventDuration.h \
TotalCharge.h \
TotalChargeRefund.h \
TotalCommission.h \
TotalCommissionRefund.h \
TotalDataVolume.h \
TotalDiscountRefund.h \
TotalDiscountValue.h \
TotalTaxRefund.h \
TotalTaxValue.h \
TotalTransactionDuration.h \
TrackedCustomerEquipment.h \
TrackedCustomerHomeId.h \
TrackedCustomerHomeIdList.h \
TrackedCustomerIdentification.h \
TrackedCustomerIdList.h \
TrackedCustomerInformation.h \
TrackedCustomerLocation.h \
TrackedCustomerLocList.h \
TrackingCustomerEquipment.h \
TrackingCustomerHomeId.h \
TrackingCustomerHomeIdList.h \
TrackingCustomerIdentification.h \
TrackingCustomerIdList.h \
TrackingCustomerInformation.h \
TrackingCustomerLocation.h \
TrackingCustomerLocList.h \
TrackingFrequency.h \
TrackingPeriod.h \
TransactionAuthCode.h \
TransactionDescriptionSupp.h \
TransactionDetailDescription.h \
TransactionIdentifier.h \
TransactionShortDescription.h \
TransactionStatus.h \
TransferCutOffTimeStamp.h \
TransparencyIndicator.h \
UserProtocolIndicator.h \
UtcTimeOffset.h \
UtcTimeOffsetCode.h \
UtcTimeOffsetInfo.h \
UtcTimeOffsetInfoList.h \
VerticalAccuracyDelivered.h \
VerticalAccuracyRequested.h \
AbsoluteAmount.h \
Bid.h \
Code.h \
AsciiString.h \
BCDString.h \
Currency.h \
HexString.h \
NumberString.h \
PercentageRate.h
ASN_MODULE_HEADERS+=INTEGER.h
ASN_MODULE_HEADERS+=NativeEnumerated.h
ASN_MODULE_SOURCES+=INTEGER.c
ASN_MODULE_SOURCES+=NativeEnumerated.c
ASN_MODULE_HEADERS+=NativeInteger.h
ASN_MODULE_SOURCES+=NativeInteger.c
ASN_MODULE_HEADERS+=asn_SEQUENCE_OF.h
ASN_MODULE_SOURCES+=asn_SEQUENCE_OF.c
ASN_MODULE_HEADERS+=asn_SET_OF.h
ASN_MODULE_SOURCES+=asn_SET_OF.c
ASN_MODULE_HEADERS+=constr_CHOICE.h
ASN_MODULE_SOURCES+=constr_CHOICE.c
ASN_MODULE_HEADERS+=constr_SEQUENCE.h
ASN_MODULE_SOURCES+=constr_SEQUENCE.c
ASN_MODULE_HEADERS+=constr_SEQUENCE_OF.h
ASN_MODULE_SOURCES+=constr_SEQUENCE_OF.c
ASN_MODULE_HEADERS+=constr_SET_OF.h
ASN_MODULE_SOURCES+=constr_SET_OF.c
ASN_MODULE_HEADERS+=asn_application.h
ASN_MODULE_HEADERS+=asn_system.h
ASN_MODULE_HEADERS+=asn_codecs.h
ASN_MODULE_HEADERS+=asn_internal.h
ASN_MODULE_HEADERS+=OCTET_STRING.h
ASN_MODULE_SOURCES+=OCTET_STRING.c
ASN_MODULE_HEADERS+=BIT_STRING.h
ASN_MODULE_SOURCES+=BIT_STRING.c
ASN_MODULE_SOURCES+=asn_codecs_prim.c
ASN_MODULE_HEADERS+=asn_codecs_prim.h
ASN_MODULE_HEADERS+=ber_tlv_length.h
ASN_MODULE_SOURCES+=ber_tlv_length.c
ASN_MODULE_HEADERS+=ber_tlv_tag.h
ASN_MODULE_SOURCES+=ber_tlv_tag.c
ASN_MODULE_HEADERS+=ber_decoder.h
ASN_MODULE_SOURCES+=ber_decoder.c
ASN_MODULE_HEADERS+=der_encoder.h
ASN_MODULE_SOURCES+=der_encoder.c
ASN_MODULE_HEADERS+=constr_TYPE.h
ASN_MODULE_SOURCES+=constr_TYPE.c
ASN_MODULE_HEADERS+=constraints.h
ASN_MODULE_SOURCES+=constraints.c
ASN_MODULE_HEADERS+=xer_support.h
ASN_MODULE_SOURCES+=xer_support.c
ASN_MODULE_HEADERS+=xer_decoder.h
ASN_MODULE_SOURCES+=xer_decoder.c
ASN_MODULE_HEADERS+=xer_encoder.h
ASN_MODULE_SOURCES+=xer_encoder.c
ASN_MODULE_HEADERS+=per_support.h
ASN_MODULE_SOURCES+=per_support.c
ASN_MODULE_HEADERS+=per_decoder.h
ASN_MODULE_SOURCES+=per_decoder.c
ASN_MODULE_HEADERS+=per_encoder.h
ASN_MODULE_SOURCES+=per_encoder.c
ASN_MODULE_HEADERS+=per_opentype.h
ASN_MODULE_SOURCES+=per_opentype.c
ASN_CONVERTER_SOURCES+=converter-sample.c
lib_LTLIBRARIES=libsomething.la
libsomething_la_SOURCES=$(ASN_MODULE_SOURCES) $(ASN_MODULE_HEADERS)
# This file may be used as an input for make(3)
# Remove the lines below to convert it into a pure .am file
TARGET = tap3dump TARGET = tap3dump
CFLAGS += -DASN_CONVERTER_TITLE="GSM TAP3 (Transferred Account Procedure, Version 3) decoder" -DHAVE_CONFIG_H -DJUNKTEST -D_DEFAULT_SOURCE -DPDU=DataInterChange -I. ASN_LIBRARY=libasncodec.a
OBJS=${ASN_MODULE_SOURCES:.c=.o} ${ASN_CONVERTER_SOURCES:.c=.o} LIBS += -lm
CFLAGS += -DASN_CONVERTER_TITLE="GSM TAP3 (Transferred Account Procedure, Version 3) decoder" -DHAVE_CONFIG_H -DJUNKTEST -D_DEFAULT_SOURCE $(ASN_MODULE_CFLAGS) -DPDU=DataInterChange -I.
ASN_CONVERTER_SOURCES := \
converter-example.c
all: maybe-wip-pause DataInterChange.c $(TARGET)
all: DataInterChange.c $(TARGET) $(TARGET): $(ASN_LIBRARY) $(ASN_CONVERTER_SOURCES:.c=.o)
$(CC) $(CFLAGS) $(CPPFLAGS) -o $(TARGET) $(ASN_CONVERTER_SOURCES:.c=.o) $(LDFLAGS) $(ASN_LIBRARY) $(LIBS)
$(TARGET): ${OBJS} $(ASN_LIBRARY): $(ASN_MODULE_SOURCES:.c=.o)
$(CC) $(CFLAGS) -o $(TARGET) ${OBJS} $(LDFLAGS) $(LIBS) $(AR) rcs $@ $^
.SUFFIXES: .SUFFIXES:
.SUFFIXES: .c .o .SUFFIXES: .c .o
...@@ -730,8 +22,8 @@ $(TARGET): ${OBJS} ...@@ -730,8 +22,8 @@ $(TARGET): ${OBJS}
$(CC) $(CFLAGS) -o $@ -c $< $(CC) $(CFLAGS) -o $@ -c $<
clean: clean:
rm -f $(TARGET) rm -f $(TARGET) $(ASN_LIBRARY)
rm -f $(OBJS) rm -f $(ASN_MODULE_SOURCES:.c=.o) $(ASN_CONVERTER_SOURCES:.c=.o)
regen: regenerate-from-asn1-source regen: regenerate-from-asn1-source
...@@ -750,73 +42,93 @@ regen-makefile: ...@@ -750,73 +42,93 @@ regen-makefile:
ASN1MODULES="../tap3.asn1" \ ASN1MODULES="../tap3.asn1" \
ASN1PDU=DataInterChange \ ASN1PDU=DataInterChange \
PROGNAME=tap3dump \ PROGNAME=tap3dump \
CFLAGS="" \
../sample.makefile.regen ../sample.makefile.regen
check: ${TARGET} check-ber check-xer check-per check: ${TARGET} check-ber check-xer check-oer check-per
@echo ================ @echo ================
@echo All tests passed @echo All tests passed
@echo ================ @echo ================
check-ber: check-ber:
@if test -f sample-DataInterChange-1.[db]er ; then \ @if test -f sample-DataInterChange-1.[db]er ; then \
for f in sample-DataInterChange-*.[db]er; do \ for f in sample-*-*.[db]er; do \
pdu=`echo $$f | sed -E -e "s/sample-([A-Za-z0-9-]+)-[0-9].*/\1/"`; \
for b in 1 17 33 980 8192; do \ for b in 1 17 33 980 8192; do \
echo "Recoding $$f into XER and back ($$b)..."; \ echo "Recoding $$f ($$pdu) into XER and back ($$b)..."; \
./${TARGET} -b $$b -iber -oxer $$f > ./.tmp.1.$$$$ || exit 2; \ ./${TARGET} -p $$pdu -b $$b -iber -oxer $$f > ./.tmp.1.$$$$ || exit 2; \
./${TARGET} -b $$b -ixer -oxer ./.tmp.1.$$$$ > ./.tmp.2.$$$$ || exit 3; \ ./${TARGET} -p $$pdu -b $$b -ixer -oxer ./.tmp.1.$$$$ > ./.tmp.2.$$$$ || exit 3; \
diff ./.tmp.1.$$$$ ./.tmp.2.$$$$ || exit 4; \ diff ./.tmp.1.$$$$ ./.tmp.2.$$$$ || exit 4; \
rm -f ./.tmp.[12].$$$$; \ rm -f ./.tmp.[12].$$$$; \
echo "Test junking $$f (please wait)..."; \ echo "Test junking $$f (please wait)..."; \
./${TARGET} -J0.0001 -n 1000 -b $$b -iber -onull $$f || exit 5; \ ./${TARGET} -J0.0001 -n 1000 -p $$pdu -b $$b -iber -onull $$f || exit 5; \
./${TARGET} -J0.001 -n 1000 -b $$b -iber -onull $$f || exit 6; \ ./${TARGET} -J0.001 -n 1000 -p $$pdu -b $$b -iber -onull $$f || exit 6; \
done; done; fi done; done; fi
check-xer: check-xer:
@if test -f sample-DataInterChange-1.xer ; then \ @if test -f sample-DataInterChange-1.xer ; then \
for f in sample-DataInterChange-*.xer; do \ for f in sample-*-*.xer; do \
pdu=`echo $$f | sed -E -e "s/sample-([A-Za-z0-9-]+)-[0-9].*/\1/"`; \
for b in 1 17 33 980 8192; do \ for b in 1 17 33 980 8192; do \
echo "Recoding $$f into DER and back ($$b)..."; \ echo "Recoding $$f ($$pdu) into DER and back ($$b)..."; \
./${TARGET} -b $$b -ixer -oder $$f > ./.tmp.1.$$$$ || exit 2; \ ./${TARGET} -p $$pdu -b $$b -ixer -oder $$f > ./.tmp.1.$$$$ || exit 2; \
./${TARGET} -b $$b -iber -oxer ./.tmp.1.$$$$ > ./.tmp.2.$$$$ || exit 3; \ ./${TARGET} -p $$pdu -b $$b -iber -oxer ./.tmp.1.$$$$ > ./.tmp.2.$$$$ || exit 3; \
diff $$f ./.tmp.2.$$$$ || exit 4; \ diff $$f ./.tmp.2.$$$$ || exit 4; \
rm -f ./.tmp.[12].$$$$; \ rm -f ./.tmp.[12].$$$$; \
echo "Test junking $$f (please wait)..."; \ echo "Test junking $$f (please wait)..."; \
./${TARGET} -J0.0001 -n 1000 -b $$b -ixer -onull $$f || exit 5; \ ./${TARGET} -J0.0001 -n 1000 -p $$pdu -b $$b -ixer -onull $$f || exit 5; \
./${TARGET} -J0.001 -n 1000 -b $$b -ixer -onull $$f || exit 6; \ ./${TARGET} -J0.001 -n 1000 -p $$pdu -b $$b -ixer -onull $$f || exit 6; \
done; done; fi
check-oer:
@if test -f sample-DataInterChange-1.*oer ; then \
for f in sample-*-*.*oer; do \
pdu=`echo $$f | sed -E -e "s/sample-([A-Za-z0-9-]+)-[0-9].*/\1/"`; \
for b in 1 17 33 980 8192; do \
echo "Recoding $$f ($$pdu) into XER and back ($$b)..."; \
./${TARGET} -p $$pdu -b $$b -ioer -oxer $$f > ./.tmp.1.$$$$ || exit 2; \
./${TARGET} -p $$pdu -b $$b -ixer -ooer ./.tmp.1.$$$$ > ./.tmp.2.$$$$ || exit 3; \
diff $$f ./.tmp.2.$$$$ || exit 4; \
rm -f ./.tmp.[12].$$$$; \
echo "Test junking $$f (please wait) ($$b) ..."; \
./${TARGET} -J0.0001 -n 1000 -p $$pdu -b $$b -ioer -onull $$f || exit 5; \
./${TARGET} -J0.001 -n 1000 -p $$pdu -b $$b -ioer -onull $$f || exit 6; \
done; done; fi done; done; fi
check-per: check-per:
@if test -f sample-DataInterChange-1-nopad.per ; then \ @if test -f sample-DataInterChange-1-nopad.per ; then \
for f in sample-DataInterChange-[1-9]-nopad.per; do \ for f in sample-*-[1-9]-nopad.per; do \
pdu=`echo $$f | sed -E -e "s/sample-([A-Za-z0-9-]+)-[0-9].*/\1/"`; \
for b in 1 17 33 980 8192; do \ for b in 1 17 33 980 8192; do \
echo "Recoding non-padded $$f into DER into XER and back ($$b)..."; \ echo "Recoding non-padded $$f ($$pdu) into DER into XER and back ($$b)..."; \
./${TARGET} -b $$b -per-nopad -iper -oder $$f > ./.tmp.1.$$$$ || exit 2; \ ./${TARGET} -p $$pdu -b $$b -per-nopad -iper -oder $$f > ./.tmp.1.$$$$ || exit 2; \
./${TARGET} -b $$b -iber -oxer ./.tmp.1.$$$$ > ./.tmp.2.$$$$ || exit 3; \ ./${TARGET} -p $$pdu -b $$b -iber -oxer ./.tmp.1.$$$$ > ./.tmp.2.$$$$ || exit 3; \
./${TARGET} -b $$b -ixer -oder ./.tmp.2.$$$$ > ./.tmp.3.$$$$ || exit 4; \ ./${TARGET} -p $$pdu -b $$b -ixer -oder ./.tmp.2.$$$$ > ./.tmp.3.$$$$ || exit 4; \
diff ./.tmp.1.$$$$ ./.tmp.3.$$$$ || exit 5; \ diff ./.tmp.1.$$$$ ./.tmp.3.$$$$ || exit 5; \
rm -f ./.tmp.[123].$$$$; \ rm -f ./.tmp.[123].$$$$; \
echo "Test junking $$f (please wait)..."; \ echo "Test junking $$f (please wait)..."; \
./${TARGET} -J0.0001 -n 1000 -b $$b -per-nopad -iper -onull $$f || exit 6; \ ./${TARGET} -J0.0001 -n 1000 -p $$pdu -b $$b -per-nopad -iper -onull $$f || exit 6; \
./${TARGET} -J0.001 -n 1000 -b $$b -per-nopad -iper -onull $$f || exit 7; \ ./${TARGET} -J0.001 -n 1000 -p $$pdu -b $$b -per-nopad -iper -onull $$f || exit 7; \
done; done; fi done; done; fi
@if test -f sample-DataInterChange-1.per ; then \ @if test -f sample-DataInterChange-1.per ; then \
for f in sample-*-[1-9].per; do \ for f in sample-*-[1-9].per; do \
pdu=`echo $$f | sed -E -e "s/sample-([A-Za-z-]+)-[0-9].*/\1/"`; \ pdu=`echo $$f | sed -E -e "s/sample-([A-Za-z0-9-]+)-[0-9].*/\1/"`; \
for b in 1 17 33 980 8192; do \ for b in 1 17 33 980 8192; do \
echo "Recoding $$f into DER into XER and back ($$b)..."; \ echo "Recoding $$f ($$pdu) into DER into XER and back ($$b)..."; \
./${TARGET} -b $$b -p $$pdu -iper -oder $$f > ./.tmp.1.$$$$ || exit 3; \ ./${TARGET} -p $$pdu -b $$b -iper -oder $$f > ./.tmp.1.$$$$ || exit 3; \
./${TARGET} -b $$b -p $$pdu -iber -oxer ./.tmp.1.$$$$ > ./.tmp.2.$$$$ || exit 4; \ ./${TARGET} -p $$pdu -b $$b -iber -oxer ./.tmp.1.$$$$ > ./.tmp.2.$$$$ || exit 4; \
./${TARGET} -b $$b -p $$pdu -ixer -oper ./.tmp.2.$$$$ > ./.tmp.1.$$$$ || exit 5; \ ./${TARGET} -p $$pdu -b $$b -ixer -oper ./.tmp.2.$$$$ > ./.tmp.1.$$$$ || exit 5; \
diff $$f ./.tmp.1.$$$$ || exit 6; \ diff $$f ./.tmp.1.$$$$ || exit 6; \
rm -f ./.tmp.[12].$$$$; \ rm -f ./.tmp.[12].$$$$; \
echo "Test junking $$f (please wait)..."; \ echo "Test junking $$f (please wait)..."; \
./${TARGET} -J0.0001 -n 1000 -b $$b -iper -onull $$f || exit 7; \ ./${TARGET} -J0.0001 -n 1000 -p $$pdu -b $$b -iper -onull $$f || exit 7; \
./${TARGET} -J0.001 -n 1000 -b $$b -iper -onull $$f || exit 8; \ ./${TARGET} -J0.001 -n 1000 -p $$pdu -b $$b -iper -onull $$f || exit 8; \
done; done; fi done; done; fi
maybe-wip-pause:
@if [ -f WIP ]; then cat WIP; sleep 2; fi
distclean: clean distclean: clean
rm -f $(ASN_MODULE_SOURCES) rm -f $(ASN_MODULE_SOURCES)
rm -f $(ASN_MODULE_HEADERS) rm -f $(ASN_MODULE_HEADERS)
rm -f $(ASN_CONVERTER_SOURCES) $(ASN_CONVERTER_HEADERS) rm -f $(ASN_CONVERTER_SOURCES) $(ASN_CONVERTER_HEADERS)
rm -f Makefile.am.sample rm -f Makefile.am.example
ASN_MODULE_SOURCES= \ -include Makefile.am.libasncodec
ULP-PDU.c \
UlpMessage.c \
SUPLINIT.c \
Notification.c \
NotificationType.c \
EncodingType.c \
FormatIndicator.c \
SLPMode.c \
MAC.c \
KeyIdentity.c \
SUPLSTART.c \
SETCapabilities.c \
PosTechnology.c \
PrefMethod.c \
PosProtocol.c \
SUPLRESPONSE.c \
SETAuthKey.c \
KeyIdentity4.c \
SUPLPOSINIT.c \
RequestedAssistData.c \
NavigationModel.c \
SatelliteInfo.c \
SatelliteInfoElement.c \
SUPLPOS.c \
PosPayLoad.c \
SUPLEND.c \
SUPLAUTHREQ.c \
SETNonce.c \
KeyIdentity2.c \
SUPLAUTHRESP.c \
SPCAuthKey.c \
KeyIdentity3.c \
Version.c \
SessionID.c \
SetSessionID.c \
SETId.c \
SlpSessionID.c \
IPAddress.c \
SLPAddress.c \
FQDN.c \
Ver.c \
LocationId.c \
Status.c \
CellInfo.c \
Position.c \
PositionEstimate.c \
AltitudeInfo.c \
CdmaCellInformation.c \
GsmCellInformation.c \
WcdmaCellInformation.c \
FrequencyInfo.c \
FrequencyInfoFDD.c \
FrequencyInfoTDD.c \
UARFCN.c \
NMR.c \
NMRelement.c \
MeasuredResultsList.c \
MeasuredResults.c \
CellMeasuredResultsList.c \
UTRA-CarrierRSSI.c \
CellMeasuredResults.c \
CellParametersID.c \
TGSN.c \
PrimaryCCPCH-RSCP.c \
TimeslotISCP.c \
TimeslotISCP-List.c \
PrimaryCPICH-Info.c \
CPICH-Ec-N0.c \
CPICH-RSCP.c \
Pathloss.c \
StatusCode.c \
QoP.c \
Velocity.c \
Horvel.c \
Horandvervel.c \
Horveluncert.c \
Horandveruncert.c \
PosMethod.c
ASN_MODULE_HEADERS= \
ULP-PDU.h \
UlpMessage.h \
SUPLINIT.h \
Notification.h \
NotificationType.h \
EncodingType.h \
FormatIndicator.h \
SLPMode.h \
MAC.h \
KeyIdentity.h \
SUPLSTART.h \
SETCapabilities.h \
PosTechnology.h \
PrefMethod.h \
PosProtocol.h \
SUPLRESPONSE.h \
SETAuthKey.h \
KeyIdentity4.h \
SUPLPOSINIT.h \
RequestedAssistData.h \
NavigationModel.h \
SatelliteInfo.h \
SatelliteInfoElement.h \
SUPLPOS.h \
PosPayLoad.h \
SUPLEND.h \
SUPLAUTHREQ.h \
SETNonce.h \
KeyIdentity2.h \
SUPLAUTHRESP.h \
SPCAuthKey.h \
KeyIdentity3.h \
Version.h \
SessionID.h \
SetSessionID.h \
SETId.h \
SlpSessionID.h \
IPAddress.h \
SLPAddress.h \
FQDN.h \
Ver.h \
LocationId.h \
Status.h \
CellInfo.h \
Position.h \
PositionEstimate.h \
AltitudeInfo.h \
CdmaCellInformation.h \
GsmCellInformation.h \
WcdmaCellInformation.h \
FrequencyInfo.h \
FrequencyInfoFDD.h \
FrequencyInfoTDD.h \
UARFCN.h \
NMR.h \
NMRelement.h \
MeasuredResultsList.h \
MeasuredResults.h \
CellMeasuredResultsList.h \
UTRA-CarrierRSSI.h \
CellMeasuredResults.h \
CellParametersID.h \
TGSN.h \
PrimaryCCPCH-RSCP.h \
TimeslotISCP.h \
TimeslotISCP-List.h \
PrimaryCPICH-Info.h \
CPICH-Ec-N0.h \
CPICH-RSCP.h \
Pathloss.h \
StatusCode.h \
QoP.h \
Velocity.h \
Horvel.h \
Horandvervel.h \
Horveluncert.h \
Horandveruncert.h \
PosMethod.h
ASN_MODULE_HEADERS+=BOOLEAN.h
ASN_MODULE_SOURCES+=BOOLEAN.c
ASN_MODULE_HEADERS+=ENUMERATED.h
ASN_MODULE_SOURCES+=ENUMERATED.c
ASN_MODULE_HEADERS+=INTEGER.h
ASN_MODULE_HEADERS+=NativeEnumerated.h
ASN_MODULE_HEADERS+=GeneralizedTime.h
ASN_MODULE_SOURCES+=GeneralizedTime.c
ASN_MODULE_HEADERS+=IA5String.h
ASN_MODULE_SOURCES+=IA5String.c
ASN_MODULE_SOURCES+=INTEGER.c
ASN_MODULE_SOURCES+=NativeEnumerated.c
ASN_MODULE_HEADERS+=NativeInteger.h
ASN_MODULE_SOURCES+=NativeInteger.c
ASN_MODULE_HEADERS+=UTCTime.h
ASN_MODULE_SOURCES+=UTCTime.c
ASN_MODULE_HEADERS+=VisibleString.h
ASN_MODULE_SOURCES+=VisibleString.c
ASN_MODULE_HEADERS+=asn_SEQUENCE_OF.h
ASN_MODULE_SOURCES+=asn_SEQUENCE_OF.c
ASN_MODULE_HEADERS+=asn_SET_OF.h
ASN_MODULE_SOURCES+=asn_SET_OF.c
ASN_MODULE_HEADERS+=constr_CHOICE.h
ASN_MODULE_SOURCES+=constr_CHOICE.c
ASN_MODULE_HEADERS+=constr_SEQUENCE.h
ASN_MODULE_SOURCES+=constr_SEQUENCE.c
ASN_MODULE_HEADERS+=constr_SEQUENCE_OF.h
ASN_MODULE_SOURCES+=constr_SEQUENCE_OF.c
ASN_MODULE_HEADERS+=constr_SET_OF.h
ASN_MODULE_SOURCES+=constr_SET_OF.c
ASN_MODULE_HEADERS+=asn_application.h
ASN_MODULE_HEADERS+=asn_system.h
ASN_MODULE_HEADERS+=asn_codecs.h
ASN_MODULE_HEADERS+=asn_internal.h
ASN_MODULE_HEADERS+=OCTET_STRING.h
ASN_MODULE_SOURCES+=OCTET_STRING.c
ASN_MODULE_HEADERS+=BIT_STRING.h
ASN_MODULE_SOURCES+=BIT_STRING.c
ASN_MODULE_SOURCES+=asn_codecs_prim.c
ASN_MODULE_HEADERS+=asn_codecs_prim.h
ASN_MODULE_HEADERS+=ber_tlv_length.h
ASN_MODULE_SOURCES+=ber_tlv_length.c
ASN_MODULE_HEADERS+=ber_tlv_tag.h
ASN_MODULE_SOURCES+=ber_tlv_tag.c
ASN_MODULE_HEADERS+=ber_decoder.h
ASN_MODULE_SOURCES+=ber_decoder.c
ASN_MODULE_HEADERS+=der_encoder.h
ASN_MODULE_SOURCES+=der_encoder.c
ASN_MODULE_HEADERS+=constr_TYPE.h
ASN_MODULE_SOURCES+=constr_TYPE.c
ASN_MODULE_HEADERS+=constraints.h
ASN_MODULE_SOURCES+=constraints.c
ASN_MODULE_HEADERS+=xer_support.h
ASN_MODULE_SOURCES+=xer_support.c
ASN_MODULE_HEADERS+=xer_decoder.h
ASN_MODULE_SOURCES+=xer_decoder.c
ASN_MODULE_HEADERS+=xer_encoder.h
ASN_MODULE_SOURCES+=xer_encoder.c
ASN_MODULE_HEADERS+=per_support.h
ASN_MODULE_SOURCES+=per_support.c
ASN_MODULE_HEADERS+=per_decoder.h
ASN_MODULE_SOURCES+=per_decoder.c
ASN_MODULE_HEADERS+=per_encoder.h
ASN_MODULE_SOURCES+=per_encoder.c
ASN_MODULE_HEADERS+=per_opentype.h
ASN_MODULE_SOURCES+=per_opentype.c
ASN_CONVERTER_SOURCES+=converter-sample.c
ASN_CONVERTER_SOURCES+=pdu_collection.c
lib_LTLIBRARIES=libsomething.la
libsomething_la_SOURCES=$(ASN_MODULE_SOURCES) $(ASN_MODULE_HEADERS)
# This file may be used as an input for make(3)
# Remove the lines below to convert it into a pure .am file
TARGET = ulp-dump TARGET = ulp-dump
CFLAGS += -DASN_CONVERTER_TITLE="OMA UserPlane Location Protocol decoder" -DHAVE_CONFIG_H -DJUNKTEST -D_DEFAULT_SOURCE -DPDU=ULP_PDU -DASN_PDU_COLLECTION -I. ASN_LIBRARY=libasncodec.a
OBJS=${ASN_MODULE_SOURCES:.c=.o} ${ASN_CONVERTER_SOURCES:.c=.o} LIBS += -lm
CFLAGS += -DASN_CONVERTER_TITLE="OMA UserPlane Location Protocol decoder" -DHAVE_CONFIG_H -DJUNKTEST -D_DEFAULT_SOURCE $(ASN_MODULE_CFLAGS) -DPDU=ULP_PDU -DASN_PDU_COLLECTION -I.
ASN_CONVERTER_SOURCES := \
converter-example.c\
pdu_collection.c
all: maybe-wip-pause ULP-PDU.c $(TARGET)
all: ULP-PDU.c $(TARGET) $(TARGET): $(ASN_LIBRARY) $(ASN_CONVERTER_SOURCES:.c=.o)
$(CC) $(CFLAGS) $(CPPFLAGS) -o $(TARGET) $(ASN_CONVERTER_SOURCES:.c=.o) $(LDFLAGS) $(ASN_LIBRARY) $(LIBS)
$(TARGET): ${OBJS} $(ASN_LIBRARY): $(ASN_MODULE_SOURCES:.c=.o)
$(CC) $(CFLAGS) -o $(TARGET) ${OBJS} $(LDFLAGS) $(LIBS) $(AR) rcs $@ $^
.SUFFIXES: .SUFFIXES:
.SUFFIXES: .c .o .SUFFIXES: .c .o
...@@ -249,8 +23,8 @@ $(TARGET): ${OBJS} ...@@ -249,8 +23,8 @@ $(TARGET): ${OBJS}
$(CC) $(CFLAGS) -o $@ -c $< $(CC) $(CFLAGS) -o $@ -c $<
clean: clean:
rm -f $(TARGET) rm -f $(TARGET) $(ASN_LIBRARY)
rm -f $(OBJS) rm -f $(ASN_MODULE_SOURCES:.c=.o) $(ASN_CONVERTER_SOURCES:.c=.o)
regen: regenerate-from-asn1-source regen: regenerate-from-asn1-source
...@@ -269,73 +43,93 @@ regen-makefile: ...@@ -269,73 +43,93 @@ regen-makefile:
ASN1MODULES="../ulp.asn1" \ ASN1MODULES="../ulp.asn1" \
ASN1PDU=ULP-PDU \ ASN1PDU=ULP-PDU \
PROGNAME=ulp-dump \ PROGNAME=ulp-dump \
CFLAGS="" \
../sample.makefile.regen ../sample.makefile.regen
check: ${TARGET} check-ber check-xer check-per check: ${TARGET} check-ber check-xer check-oer check-per
@echo ================ @echo ================
@echo All tests passed @echo All tests passed
@echo ================ @echo ================
check-ber: check-ber:
@if test -f sample-ULP-PDU-1.[db]er ; then \ @if test -f sample-ULP-PDU-1.[db]er ; then \
for f in sample-ULP-PDU-*.[db]er; do \ for f in sample-*-*.[db]er; do \
pdu=`echo $$f | sed -E -e "s/sample-([A-Za-z0-9-]+)-[0-9].*/\1/"`; \
for b in 1 17 33 980 8192; do \ for b in 1 17 33 980 8192; do \
echo "Recoding $$f into XER and back ($$b)..."; \ echo "Recoding $$f ($$pdu) into XER and back ($$b)..."; \
./${TARGET} -b $$b -iber -oxer $$f > ./.tmp.1.$$$$ || exit 2; \ ./${TARGET} -p $$pdu -b $$b -iber -oxer $$f > ./.tmp.1.$$$$ || exit 2; \
./${TARGET} -b $$b -ixer -oxer ./.tmp.1.$$$$ > ./.tmp.2.$$$$ || exit 3; \ ./${TARGET} -p $$pdu -b $$b -ixer -oxer ./.tmp.1.$$$$ > ./.tmp.2.$$$$ || exit 3; \
diff ./.tmp.1.$$$$ ./.tmp.2.$$$$ || exit 4; \ diff ./.tmp.1.$$$$ ./.tmp.2.$$$$ || exit 4; \
rm -f ./.tmp.[12].$$$$; \ rm -f ./.tmp.[12].$$$$; \
echo "Test junking $$f (please wait)..."; \ echo "Test junking $$f (please wait)..."; \
./${TARGET} -J0.0001 -n 1000 -b $$b -iber -onull $$f || exit 5; \ ./${TARGET} -J0.0001 -n 1000 -p $$pdu -b $$b -iber -onull $$f || exit 5; \
./${TARGET} -J0.001 -n 1000 -b $$b -iber -onull $$f || exit 6; \ ./${TARGET} -J0.001 -n 1000 -p $$pdu -b $$b -iber -onull $$f || exit 6; \
done; done; fi done; done; fi
check-xer: check-xer:
@if test -f sample-ULP-PDU-1.xer ; then \ @if test -f sample-ULP-PDU-1.xer ; then \
for f in sample-ULP-PDU-*.xer; do \ for f in sample-*-*.xer; do \
pdu=`echo $$f | sed -E -e "s/sample-([A-Za-z0-9-]+)-[0-9].*/\1/"`; \
for b in 1 17 33 980 8192; do \ for b in 1 17 33 980 8192; do \
echo "Recoding $$f into DER and back ($$b)..."; \ echo "Recoding $$f ($$pdu) into DER and back ($$b)..."; \
./${TARGET} -b $$b -ixer -oder $$f > ./.tmp.1.$$$$ || exit 2; \ ./${TARGET} -p $$pdu -b $$b -ixer -oder $$f > ./.tmp.1.$$$$ || exit 2; \
./${TARGET} -b $$b -iber -oxer ./.tmp.1.$$$$ > ./.tmp.2.$$$$ || exit 3; \ ./${TARGET} -p $$pdu -b $$b -iber -oxer ./.tmp.1.$$$$ > ./.tmp.2.$$$$ || exit 3; \
diff $$f ./.tmp.2.$$$$ || exit 4; \ diff $$f ./.tmp.2.$$$$ || exit 4; \
rm -f ./.tmp.[12].$$$$; \ rm -f ./.tmp.[12].$$$$; \
echo "Test junking $$f (please wait)..."; \ echo "Test junking $$f (please wait)..."; \
./${TARGET} -J0.0001 -n 1000 -b $$b -ixer -onull $$f || exit 5; \ ./${TARGET} -J0.0001 -n 1000 -p $$pdu -b $$b -ixer -onull $$f || exit 5; \
./${TARGET} -J0.001 -n 1000 -b $$b -ixer -onull $$f || exit 6; \ ./${TARGET} -J0.001 -n 1000 -p $$pdu -b $$b -ixer -onull $$f || exit 6; \
done; done; fi
check-oer:
@if test -f sample-ULP-PDU-1.*oer ; then \
for f in sample-*-*.*oer; do \
pdu=`echo $$f | sed -E -e "s/sample-([A-Za-z0-9-]+)-[0-9].*/\1/"`; \
for b in 1 17 33 980 8192; do \
echo "Recoding $$f ($$pdu) into XER and back ($$b)..."; \
./${TARGET} -p $$pdu -b $$b -ioer -oxer $$f > ./.tmp.1.$$$$ || exit 2; \
./${TARGET} -p $$pdu -b $$b -ixer -ooer ./.tmp.1.$$$$ > ./.tmp.2.$$$$ || exit 3; \
diff $$f ./.tmp.2.$$$$ || exit 4; \
rm -f ./.tmp.[12].$$$$; \
echo "Test junking $$f (please wait) ($$b) ..."; \
./${TARGET} -J0.0001 -n 1000 -p $$pdu -b $$b -ioer -onull $$f || exit 5; \
./${TARGET} -J0.001 -n 1000 -p $$pdu -b $$b -ioer -onull $$f || exit 6; \
done; done; fi done; done; fi
check-per: check-per:
@if test -f sample-ULP-PDU-1-nopad.per ; then \ @if test -f sample-ULP-PDU-1-nopad.per ; then \
for f in sample-ULP-PDU-[1-9]-nopad.per; do \ for f in sample-*-[1-9]-nopad.per; do \
pdu=`echo $$f | sed -E -e "s/sample-([A-Za-z0-9-]+)-[0-9].*/\1/"`; \
for b in 1 17 33 980 8192; do \ for b in 1 17 33 980 8192; do \
echo "Recoding non-padded $$f into DER into XER and back ($$b)..."; \ echo "Recoding non-padded $$f ($$pdu) into DER into XER and back ($$b)..."; \
./${TARGET} -b $$b -per-nopad -iper -oder $$f > ./.tmp.1.$$$$ || exit 2; \ ./${TARGET} -p $$pdu -b $$b -per-nopad -iper -oder $$f > ./.tmp.1.$$$$ || exit 2; \
./${TARGET} -b $$b -iber -oxer ./.tmp.1.$$$$ > ./.tmp.2.$$$$ || exit 3; \ ./${TARGET} -p $$pdu -b $$b -iber -oxer ./.tmp.1.$$$$ > ./.tmp.2.$$$$ || exit 3; \
./${TARGET} -b $$b -ixer -oder ./.tmp.2.$$$$ > ./.tmp.3.$$$$ || exit 4; \ ./${TARGET} -p $$pdu -b $$b -ixer -oder ./.tmp.2.$$$$ > ./.tmp.3.$$$$ || exit 4; \
diff ./.tmp.1.$$$$ ./.tmp.3.$$$$ || exit 5; \ diff ./.tmp.1.$$$$ ./.tmp.3.$$$$ || exit 5; \
rm -f ./.tmp.[123].$$$$; \ rm -f ./.tmp.[123].$$$$; \
echo "Test junking $$f (please wait)..."; \ echo "Test junking $$f (please wait)..."; \
./${TARGET} -J0.0001 -n 1000 -b $$b -per-nopad -iper -onull $$f || exit 6; \ ./${TARGET} -J0.0001 -n 1000 -p $$pdu -b $$b -per-nopad -iper -onull $$f || exit 6; \
./${TARGET} -J0.001 -n 1000 -b $$b -per-nopad -iper -onull $$f || exit 7; \ ./${TARGET} -J0.001 -n 1000 -p $$pdu -b $$b -per-nopad -iper -onull $$f || exit 7; \
done; done; fi done; done; fi
@if test -f sample-ULP-PDU-1.per ; then \ @if test -f sample-ULP-PDU-1.per ; then \
for f in sample-*-[1-9].per; do \ for f in sample-*-[1-9].per; do \
pdu=`echo $$f | sed -E -e "s/sample-([A-Za-z-]+)-[0-9].*/\1/"`; \ pdu=`echo $$f | sed -E -e "s/sample-([A-Za-z0-9-]+)-[0-9].*/\1/"`; \
for b in 1 17 33 980 8192; do \ for b in 1 17 33 980 8192; do \
echo "Recoding $$f into DER into XER and back ($$b)..."; \ echo "Recoding $$f ($$pdu) into DER into XER and back ($$b)..."; \
./${TARGET} -b $$b -p $$pdu -iper -oder $$f > ./.tmp.1.$$$$ || exit 3; \ ./${TARGET} -p $$pdu -b $$b -iper -oder $$f > ./.tmp.1.$$$$ || exit 3; \
./${TARGET} -b $$b -p $$pdu -iber -oxer ./.tmp.1.$$$$ > ./.tmp.2.$$$$ || exit 4; \ ./${TARGET} -p $$pdu -b $$b -iber -oxer ./.tmp.1.$$$$ > ./.tmp.2.$$$$ || exit 4; \
./${TARGET} -b $$b -p $$pdu -ixer -oper ./.tmp.2.$$$$ > ./.tmp.1.$$$$ || exit 5; \ ./${TARGET} -p $$pdu -b $$b -ixer -oper ./.tmp.2.$$$$ > ./.tmp.1.$$$$ || exit 5; \
diff $$f ./.tmp.1.$$$$ || exit 6; \ diff $$f ./.tmp.1.$$$$ || exit 6; \
rm -f ./.tmp.[12].$$$$; \ rm -f ./.tmp.[12].$$$$; \
echo "Test junking $$f (please wait)..."; \ echo "Test junking $$f (please wait)..."; \
./${TARGET} -J0.0001 -n 1000 -b $$b -iper -onull $$f || exit 7; \ ./${TARGET} -J0.0001 -n 1000 -p $$pdu -b $$b -iper -onull $$f || exit 7; \
./${TARGET} -J0.001 -n 1000 -b $$b -iper -onull $$f || exit 8; \ ./${TARGET} -J0.001 -n 1000 -p $$pdu -b $$b -iper -onull $$f || exit 8; \
done; done; fi done; done; fi
maybe-wip-pause:
@if [ -f WIP ]; then cat WIP; sleep 2; fi
distclean: clean distclean: clean
rm -f $(ASN_MODULE_SOURCES) rm -f $(ASN_MODULE_SOURCES)
rm -f $(ASN_MODULE_HEADERS) rm -f $(ASN_MODULE_HEADERS)
rm -f $(ASN_CONVERTER_SOURCES) $(ASN_CONVERTER_HEADERS) rm -f $(ASN_CONVERTER_SOURCES) $(ASN_CONVERTER_HEADERS)
rm -f Makefile.am.sample rm -f Makefile.am.example
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment