Skip to content
Snippets Groups Projects
Commit 31303c09 authored by Lev Walkin's avatar Lev Walkin
Browse files

generalization

parent 9e366ba6
No related branches found
No related tags found
No related merge requests found
......@@ -358,14 +358,14 @@ regenerate-from-asn1-source:
../../asn1c/asn1c -S ../../skeletons ../rfc3280-PKIX1Explicit88.asn1 ../rfc3280-PKIX1Implicit88.asn1
Attribute.c: regenerate.Makefile
Certificate.c: regenerate.Makefile
./regenerate.Makefile
@touch Attribute.c
@touch Certificate.c
make
ASN_DECODER_TEMPLATE=../../skeletons/asn-decoder-template.c
$(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
rm -f $(ASN_MODULE_SOURCES) $(ASN_MODULE_HEADERS)
......
......@@ -8,5 +8,3 @@ extern int opt_debug;
__FILE__, __LINE__); \
} while(0)
/* Which type is the PDU; for ../../skeletons/asn-decoder-template.c */
#define asn_DEF asn_DEF_Certificate
......@@ -702,7 +702,7 @@ DataInterChange.c: ../tap3.asn1 regenerate.Makefile
ASN_DECODER_TEMPLATE=../../skeletons/asn-decoder-template.c
$(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
rm -f $(ASN_MODULE_SOURCES) $(ASN_MODULE_HEADERS)
......
......@@ -8,5 +8,3 @@ extern int opt_debug;
__FILE__, __LINE__); \
} while(0)
/* Which type is the PDU; for ../../skeletons/asn-decoder-template.c */
#define asn_DEF asn_DEF_DataInterChange
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment