diff --git a/examples/sample.source.PKIX1/Makefile b/examples/sample.source.PKIX1/Makefile
index c625ed8c543a7449042e16567362665d4890a2e7..8125af7c9727fc2979e3c515b2738655f29c0af9 100644
--- a/examples/sample.source.PKIX1/Makefile
+++ b/examples/sample.source.PKIX1/Makefile
@@ -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)
diff --git a/examples/sample.source.PKIX1/config.h b/examples/sample.source.PKIX1/config.h
index 2f6a3921e62027d0532b19f81815d2086f064c7b..2dda9297a492229da4da21a2fa619f71e03940dc 100644
--- a/examples/sample.source.PKIX1/config.h
+++ b/examples/sample.source.PKIX1/config.h
@@ -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
diff --git a/examples/sample.source.TAP3/Makefile b/examples/sample.source.TAP3/Makefile
index fcc51262d0e3b6a00dd7168b1476a0e66debf364..f990b6d5d9405c29ffe29ed7af83d836ccc6a029 100644
--- a/examples/sample.source.TAP3/Makefile
+++ b/examples/sample.source.TAP3/Makefile
@@ -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)
diff --git a/examples/sample.source.TAP3/config.h b/examples/sample.source.TAP3/config.h
index 30728e12fbd14aaa9c02b4a254f2d61e08190761..2dda9297a492229da4da21a2fa619f71e03940dc 100644
--- a/examples/sample.source.TAP3/config.h
+++ b/examples/sample.source.TAP3/config.h
@@ -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