more generic approach

diff --git a/examples/sample.source.PKIX1/Makefile b/examples/sample.source.PKIX1/Makefile
index 9626063..a69669d 100644
--- a/examples/sample.source.PKIX1/Makefile
+++ b/examples/sample.source.PKIX1/Makefile
@@ -357,6 +357,9 @@
 	./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 76762f0..6a4ecb4 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.