generalization

This commit is contained in:
Lev Walkin 2005-04-13 12:02:54 +00:00
parent 9e366ba659
commit 31303c0981
4 changed files with 4 additions and 8 deletions

View File

@ -358,14 +358,14 @@ regenerate-from-asn1-source:
../../asn1c/asn1c -S ../../skeletons ../rfc3280-PKIX1Explicit88.asn1 ../rfc3280-PKIX1Implicit88.asn1 ../../asn1c/asn1c -S ../../skeletons ../rfc3280-PKIX1Explicit88.asn1 ../rfc3280-PKIX1Implicit88.asn1
Attribute.c: regenerate.Makefile Certificate.c: regenerate.Makefile
./regenerate.Makefile ./regenerate.Makefile
@touch Attribute.c @touch Certificate.c
make make
ASN_DECODER_TEMPLATE=../../skeletons/asn-decoder-template.c ASN_DECODER_TEMPLATE=../../skeletons/asn-decoder-template.c
$(TARGET).o: $(ASN_DECODER_TEMPLATE) $(TARGET).o: $(ASN_DECODER_TEMPLATE)
$(CC) $(CFLAGS) -o $(TARGET).o -c $(ASN_DECODER_TEMPLATE) $(CC) $(CFLAGS) -Dasn_DEF=asn_DEF_Certificate -o $(TARGET).o -c $(ASN_DECODER_TEMPLATE)
distclean: clean distclean: clean
rm -f $(ASN_MODULE_SOURCES) $(ASN_MODULE_HEADERS) rm -f $(ASN_MODULE_SOURCES) $(ASN_MODULE_HEADERS)

View File

@ -8,5 +8,3 @@ extern int opt_debug;
__FILE__, __LINE__); \ __FILE__, __LINE__); \
} while(0) } while(0)
/* Which type is the PDU; for ../../skeletons/asn-decoder-template.c */
#define asn_DEF asn_DEF_Certificate

View File

@ -702,7 +702,7 @@ DataInterChange.c: ../tap3.asn1 regenerate.Makefile
ASN_DECODER_TEMPLATE=../../skeletons/asn-decoder-template.c ASN_DECODER_TEMPLATE=../../skeletons/asn-decoder-template.c
$(TARGET).o: $(ASN_DECODER_TEMPLATE) $(TARGET).o: $(ASN_DECODER_TEMPLATE)
$(CC) $(CFLAGS) -o $(TARGET).o -c $(ASN_DECODER_TEMPLATE) $(CC) $(CFLAGS) -Dasn_DEF=asn_DEF_DataInterChange -o $(TARGET).o -c $(ASN_DECODER_TEMPLATE)
distclean: clean distclean: clean
rm -f $(ASN_MODULE_SOURCES) $(ASN_MODULE_HEADERS) rm -f $(ASN_MODULE_SOURCES) $(ASN_MODULE_HEADERS)

View File

@ -8,5 +8,3 @@ extern int opt_debug;
__FILE__, __LINE__); \ __FILE__, __LINE__); \
} while(0) } while(0)
/* Which type is the PDU; for ../../skeletons/asn-decoder-template.c */
#define asn_DEF asn_DEF_DataInterChange