aboutsummaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
authorLev Walkin <vlm@lionet.info>2004-10-28 11:56:26 +0000
committerLev Walkin <vlm@lionet.info>2004-10-28 11:56:26 +0000
commitda0ab72fa3cf5d98e850ae0f678619e9dfdccf89 (patch)
tree679e0daa952a8413d8b1280f9fda3d93a290fee9 /examples
parentd54f255d7415daa444fff9449ae060d20dd41744 (diff)
more generic approach
Diffstat (limited to 'examples')
-rw-r--r--examples/Makefile.am2
-rw-r--r--examples/Makefile.in2
-rw-r--r--examples/sample.source.PKIX1/Makefile3
-rw-r--r--examples/sample.source.PKIX1/README5
4 files changed, 8 insertions, 4 deletions
diff --git a/examples/Makefile.am b/examples/Makefile.am
index 2fb1c2cc..4890a55d 100644
--- a/examples/Makefile.am
+++ b/examples/Makefile.am
@@ -22,8 +22,8 @@ $(ASN1_FILES_1): crfc2asn1.pl $(ASN1_SOURCE_1)
./crfc2asn1.pl $(ASN1_SOURCE_1)
EXTRA_DIST = rfc*.txt \
+ decoder-template.c \
sample.source.PKIX1/README \
- sample.source.PKIX1/x509dump.c \
sample.source.PKIX1/config.h \
sample.source.PKIX1/Makefile \
sample.source.PKIX1/regenerate.Makefile
diff --git a/examples/Makefile.in b/examples/Makefile.in
index 7aad746b..61bc66d8 100644
--- a/examples/Makefile.in
+++ b/examples/Makefile.in
@@ -174,8 +174,8 @@ ASN1_FILES_1 = \
rfc3280-PKIX1Implicit88.asn1
EXTRA_DIST = rfc*.txt \
+ decoder-template.c \
sample.source.PKIX1/README \
- sample.source.PKIX1/x509dump.c \
sample.source.PKIX1/config.h \
sample.source.PKIX1/Makefile \
sample.source.PKIX1/regenerate.Makefile
diff --git a/examples/sample.source.PKIX1/Makefile b/examples/sample.source.PKIX1/Makefile
index 96260630..a69669dd 100644
--- a/examples/sample.source.PKIX1/Makefile
+++ b/examples/sample.source.PKIX1/Makefile
@@ -357,6 +357,9 @@ Attribute.c: regenerate.Makefile
./regenerate.Makefile
make
+$(TARGET).o: ../decoder-template.c
+ $(CC) $(CFLAGS) -Dasn_DEF=asn_DEF_Certificate -o $(TARGET).o -c ../decoder-template.c
+
distclean: clean
rm -f $(ASN_MODULE_SOURCES) $(ASN_MODULE_HEADERS)
rm -f Makefile.am.sample
diff --git a/examples/sample.source.PKIX1/README b/examples/sample.source.PKIX1/README
index 76762f01..6a4ecb4d 100644
--- a/examples/sample.source.PKIX1/README
+++ b/examples/sample.source.PKIX1/README
@@ -1,5 +1,6 @@
The X.509 (PKIX1) certificate decoder. Invoking `make` will compile the ASN.1
-specifications from the RFC3280 in the above directory. This x509dump.c will
-supply the missing "int main()" routine which drives the decoding process.
+specifications from the RFC3280 in the above directory.
+The ../decoder-template.c will supply the missing "int main()" routine
+which drives the decoding process.