11 SceneCoordinateSystem.c \
22 ResidentProgramClass.c \
23 RemoteProgramClass.c \
24 InterchangedProgramClass.c \
30 BooleanVariableClass.c \
31 IntegerVariableClass.c \
32 OctetStringVariableClass.c \
33 ObjectRefVariableClass.c \
34 ContentRefVariableClass.c \
47 DynamicLineArtClass.c \
91 GetAvailabilityStatus.c \
99 GetHighlightStatus.c \
100 GetInteractionStatus.c \
103 GetLastAnchorFired.c \
113 GetSelectionStatus.c \
134 SetCounterEndPosition.c \
135 SetCounterPosition.c \
136 SetCounterTrigger.c \
137 SetCursorPosition.c \
144 SetHighlightStatus.c \
145 SetInteractionStatus.c \
167 ConnectionTagOrNull.c \
169 EmulatedEventData.c \
173 NewReferencedContent.c \
180 ExternalReference.c \
181 IndirectReference.c \
183 GenericObjectReference.c \
184 GenericContentReference.c \
187 GenericOctetString.c \
192 InterchangedObject.h \
195 StandardIdentifier.h \
201 SceneCoordinateSystem.h \
206 ReferencedContent.h \
212 ResidentProgramClass.h \
213 RemoteProgramClass.h \
214 InterchangedProgramClass.h \
220 BooleanVariableClass.h \
221 IntegerVariableClass.h \
222 OctetStringVariableClass.h \
223 ObjectRefVariableClass.h \
224 ContentRefVariableClass.h \
226 TokenManagerClass.h \
237 DynamicLineArtClass.h \
249 InteractibleClass.h \
259 SwitchButtonClass.h \
281 GetAvailabilityStatus.h \
284 GetCursorPosition.h \
289 GetHighlightStatus.h \
290 GetInteractionStatus.h \
293 GetLastAnchorFired.h \
303 GetSelectionStatus.h \
324 SetCounterEndPosition.h \
325 SetCounterPosition.h \
326 SetCounterTrigger.h \
327 SetCursorPosition.h \
334 SetHighlightStatus.h \
335 SetInteractionStatus.h \
357 ConnectionTagOrNull.h \
359 EmulatedEventData.h \
363 NewReferencedContent.h \
370 ExternalReference.h \
371 IndirectReference.h \
373 GenericObjectReference.h \
374 GenericContentReference.h \
377 GenericOctetString.h \
381 ASN_MODULE_HDRS+=BOOLEAN.h
382 ASN_MODULE_SRCS+=BOOLEAN.c
383 ASN_MODULE_HDRS+=INTEGER.h
384 ASN_MODULE_HDRS+=NativeEnumerated.h
385 ASN_MODULE_SRCS+=INTEGER.c
386 ASN_MODULE_HDRS+=NULL.h
387 ASN_MODULE_SRCS+=NULL.c
388 ASN_MODULE_SRCS+=NativeEnumerated.c
389 ASN_MODULE_HDRS+=NativeInteger.h
390 ASN_MODULE_SRCS+=NativeInteger.c
391 ASN_MODULE_HDRS+=asn_SEQUENCE_OF.h
392 ASN_MODULE_SRCS+=asn_SEQUENCE_OF.c
393 ASN_MODULE_HDRS+=asn_SET_OF.h
394 ASN_MODULE_SRCS+=asn_SET_OF.c
395 ASN_MODULE_HDRS+=constr_CHOICE.h
396 ASN_MODULE_SRCS+=constr_CHOICE.c
397 ASN_MODULE_HDRS+=constr_SEQUENCE.h
398 ASN_MODULE_SRCS+=constr_SEQUENCE.c
399 ASN_MODULE_HDRS+=constr_SEQUENCE_OF.h
400 ASN_MODULE_SRCS+=constr_SEQUENCE_OF.c
401 ASN_MODULE_HDRS+=constr_SET_OF.h
402 ASN_MODULE_HDRS+=constr_SET.h
403 ASN_MODULE_SRCS+=constr_SET.c
404 ASN_MODULE_SRCS+=constr_SET_OF.c
405 ASN_MODULE_HDRS+=asn_application.h
406 ASN_MODULE_HDRS+=asn_system.h
407 ASN_MODULE_HDRS+=asn_codecs.h
408 ASN_MODULE_HDRS+=asn_internal.h
409 ASN_MODULE_HDRS+=OCTET_STRING.h
410 ASN_MODULE_SRCS+=OCTET_STRING.c
411 ASN_MODULE_HDRS+=BIT_STRING.h
412 ASN_MODULE_SRCS+=BIT_STRING.c
413 ASN_MODULE_SRCS+=asn_codecs_prim.c
414 ASN_MODULE_HDRS+=asn_codecs_prim.h
415 ASN_MODULE_HDRS+=ber_tlv_length.h
416 ASN_MODULE_SRCS+=ber_tlv_length.c
417 ASN_MODULE_HDRS+=ber_tlv_tag.h
418 ASN_MODULE_SRCS+=ber_tlv_tag.c
419 ASN_MODULE_HDRS+=ber_decoder.h
420 ASN_MODULE_SRCS+=ber_decoder.c
421 ASN_MODULE_HDRS+=der_encoder.h
422 ASN_MODULE_SRCS+=der_encoder.c
423 ASN_MODULE_HDRS+=constr_TYPE.h
424 ASN_MODULE_SRCS+=constr_TYPE.c
425 ASN_MODULE_HDRS+=constraints.h
426 ASN_MODULE_SRCS+=constraints.c
427 ASN_MODULE_HDRS+=xer_support.h
428 ASN_MODULE_SRCS+=xer_support.c
429 ASN_MODULE_HDRS+=xer_decoder.h
430 ASN_MODULE_SRCS+=xer_decoder.c
431 ASN_MODULE_HDRS+=xer_encoder.h
432 ASN_MODULE_SRCS+=xer_encoder.c
433 ASN_MODULE_HDRS+=per_support.h
434 ASN_MODULE_SRCS+=per_support.c
435 ASN_MODULE_HDRS+=per_decoder.h
436 ASN_MODULE_SRCS+=per_decoder.c
437 ASN_MODULE_HDRS+=per_encoder.h
438 ASN_MODULE_SRCS+=per_encoder.c
439 ASN_MODULE_HDRS+=per_opentype.h
440 ASN_MODULE_SRCS+=per_opentype.c
441 ASN_CONVERTER_SOURCES+=converter-sample.c
444 lib_LTLIBRARIES=libsomething.la
445 libsomething_la_SOURCES=$(ASN_MODULE_SRCS) $(ASN_MODULE_HDRS)
447 # This file may be used as an input for make(3)
448 # Remove the lines below to convert it into a pure .am file
450 CFLAGS += -DHAVE_CONFIG_H -DJUNKTEST -D_DEFAULT_SOURCE -DPDU=InterchangedObject -I.
451 OBJS=${ASN_MODULE_SRCS:.c=.o} ${ASN_CONVERTER_SOURCES:.c=.o}
453 all: InterchangedObject.c $(TARGET)
456 $(CC) $(CFLAGS) -o $(TARGET) ${OBJS} $(LDFLAGS) $(LIBS)
462 $(CC) $(CFLAGS) -o $@ -c $<
468 regen: regenerate-from-asn1-source
470 regenerate-from-asn1-source:
471 ../../asn1c/asn1c -S ../../skeletons -pdu=InterchangedObject -fcompound-names ../ISO13522-MHEG-5.asn
474 InterchangedObject.c: ../sample.makefile.regen ../ISO13522-MHEG-5.asn
476 @touch InterchangedObject.c
480 ASN_CMDOPTS="-fcompound-names" \
481 ASN_MODULES="../ISO13522-MHEG-5.asn" \
482 ASN_PDU=InterchangedObject \
483 ASN_PROGRAM=mheg5dump \
485 ../sample.makefile.regen
487 check: ${TARGET} check-ber check-xer check-per
488 @echo ================
489 @echo All tests passed
490 @echo ================
493 @if test -f sample-InterchangedObject-1.[db]er ; then \
494 for f in sample-InterchangedObject-*.[db]er; do \
495 for b in 1 17 33 980 8192; do \
496 echo "Recoding $$f into XER and back ($$b)..."; \
497 ./${TARGET} -b $$b -iber -oxer $$f > ./.tmp.1.$$$$ || exit 2; \
498 ./${TARGET} -b $$b -ixer -oxer ./.tmp.1.$$$$ > ./.tmp.2.$$$$ || exit 3; \
499 diff ./.tmp.1.$$$$ ./.tmp.2.$$$$ || exit 4; \
500 rm -f ./.tmp.[12].$$$$; \
501 echo "Test junking $$f (please wait)..."; \
502 ./${TARGET} -J0.0001 -n 1000 -b $$b -iber -onull $$f || exit 5; \
503 ./${TARGET} -J0.001 -n 1000 -b $$b -iber -onull $$f || exit 6; \
507 @if test -f sample-InterchangedObject-1.xer ; then \
508 for f in sample-InterchangedObject-*.xer; do \
509 for b in 1 17 33 980 8192; do \
510 echo "Recoding $$f into DER and back ($$b)..."; \
511 ./${TARGET} -b $$b -ixer -oder $$f > ./.tmp.1.$$$$ || exit 2; \
512 ./${TARGET} -b $$b -iber -oxer ./.tmp.1.$$$$ > ./.tmp.2.$$$$ || exit 3; \
513 diff $$f ./.tmp.2.$$$$ || exit 4; \
514 rm -f ./.tmp.[12].$$$$; \
515 echo "Test junking $$f (please wait)..."; \
516 ./${TARGET} -J0.0001 -n 1000 -b $$b -ixer -onull $$f || exit 5; \
517 ./${TARGET} -J0.001 -n 1000 -b $$b -ixer -onull $$f || exit 6; \
521 @if test -f sample-InterchangedObject-1-nopad.per ; then \
522 for f in sample-InterchangedObject-[1-9]-nopad.per; do \
523 for b in 1 17 33 980 8192; do \
524 echo "Recoding non-padded $$f into DER into XER and back ($$b)..."; \
525 ./${TARGET} -b $$b -per-nopad -iper -oder $$f > ./.tmp.1.$$$$ || exit 2; \
526 ./${TARGET} -b $$b -iber -oxer ./.tmp.1.$$$$ > ./.tmp.2.$$$$ || exit 3; \
527 ./${TARGET} -b $$b -ixer -oder ./.tmp.2.$$$$ > ./.tmp.3.$$$$ || exit 4; \
528 diff ./.tmp.1.$$$$ ./.tmp.3.$$$$ || exit 5; \
529 rm -f ./.tmp.[123].$$$$; \
530 echo "Test junking $$f (please wait)..."; \
531 ./${TARGET} -J0.0001 -n 1000 -b $$b -per-nopad -iper -onull $$f || exit 6; \
532 ./${TARGET} -J0.001 -n 1000 -b $$b -per-nopad -iper -onull $$f || exit 7; \
534 @if test -f sample-InterchangedObject-1.per ; then \
535 for f in sample-*-[1-9].per; do \
536 pdu=`echo $$f | sed -E -e "s/sample-([A-Za-z-]+)-[0-9].*/\1/"`; \
537 for b in 1 17 33 980 8192; do \
538 echo "Recoding $$f into DER into XER and back ($$b)..."; \
539 ./${TARGET} -b $$b -p $$pdu -iper -oder $$f > ./.tmp.1.$$$$ || exit 3; \
540 ./${TARGET} -b $$b -p $$pdu -iber -oxer ./.tmp.1.$$$$ > ./.tmp.2.$$$$ || exit 4; \
541 ./${TARGET} -b $$b -p $$pdu -ixer -oper ./.tmp.2.$$$$ > ./.tmp.1.$$$$ || exit 5; \
542 diff $$f ./.tmp.1.$$$$ || exit 6; \
543 rm -f ./.tmp.[12].$$$$; \
544 echo "Test junking $$f (please wait)..."; \
545 ./${TARGET} -J0.0001 -n 1000 -b $$b -iper -onull $$f || exit 7; \
546 ./${TARGET} -J0.001 -n 1000 -b $$b -iper -onull $$f || exit 8; \
550 rm -f $(ASN_MODULE_SRCS)
551 rm -f $(ASN_MODULE_HDRS)
552 rm -f $(ASN_CONVERTER_SOURCES) $(ASN_CONVERTER_HEADERS)
553 rm -f Makefile.am.sample