From a858821194d013a01aec32066fa149f2a8740121 Mon Sep 17 00:00:00 2001 From: Nicolas Williams Date: Thu, 11 Mar 2021 09:50:48 -0600 Subject: [PATCH] asn1: Fix Windows build --- lib/asn1/NTMakefile | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/lib/asn1/NTMakefile b/lib/asn1/NTMakefile index fe4ff2da4..762646847 100644 --- a/lib/asn1/NTMakefile +++ b/lib/asn1/NTMakefile @@ -61,6 +61,8 @@ gen_files_test = $(OBJ)\asn1_test_asn1.x gen_files_test_template = $(OBJ)\asn1_test_template_asn1.x +gen_files_x690sample_template = $(OBJ)\asn1_x690sample_template_asn1.x + gen_files_digest = $(OBJ)\asn1_digest_asn1.x gen_files_kx509 = $(OBJ)\asn1_kx509_asn1.x @@ -196,6 +198,8 @@ $(gen_files_test:.x=.c) : $$(@R).x $(gen_files_test_template:.x=.c) : $$(@R).x +$(gen_files_x690sample_template:.x=.c) : $$(@R).x + $(gen_files_krb5) $(OBJ)\krb5_asn1.hx: $(BINDIR)\asn1_compile.exe krb5.asn1 krb5.opt cd $(OBJ) $(BINDIR)\asn1_compile.exe \ @@ -329,6 +333,15 @@ $(gen_files_test_template) $(OBJ)\test_template_asn1.hx: $(BINDIR)\asn1_compile. || ($(RM) $(OBJ)\test_template_asn1.h ; exit /b 1) cd $(SRCDIR) +$(gen_files_x690sample_template) $(OBJ)\x690sample_template_asn1.hx: $(BINDIR)\asn1_compile.exe x690sample.asn1 + cd $(OBJ) + $(BINDIR)\asn1_compile.exe \ + --template \ + --one-code-file --template \ + $(SRCDIR)\x690sample.asn1 x690sample_template_asn1 \ + || ($(RM) $(OBJ)\x690sample_template_asn1.h ; exit /b 1) + cd $(SRCDIR) + INCFILES= \ $(INCDIR)\der.h \ $(INCDIR)\heim_asn1.h \ @@ -450,7 +463,8 @@ $(OBJ)\check-der.exe: $(OBJ)\check-der.obj $(OBJ)\check-common.obj \ $(EXEPREP_NODIST) $(OBJ)\check-gen-template.exe: $(OBJ)\check-gen.obj $(OBJ)\check-common.obj \ - $(LIBHEIMDAL) $(LIBROKEN) $(gen_files_test_template:.x=.obj) + $(LIBHEIMDAL) $(LIBROKEN) $(gen_files_test_template:.x=.obj) \ + $(gen_files_x690sample_template:.x=.obj) $(EXECONLINK) $(EXEPREP_NODIST)