#
# Makefile that recurses into cns subdirectory.
#
-all-windows::
+all-windows:: ntsecapitest
@echo Making in windows\lib
cd lib
$(MAKE) -$(MFLAGS)
$(MAKE) -$(MFLAGS)
@echo Making in windows\gss
cd ..\gss
+ cd
$(MAKE) -$(MFLAGS)
@echo Making in windows\gina
cd ..\gina
!endif
cd ..
-clean-windows::
+clean-windows:: clean-ntsecapitest
@echo Making clean in windows\lib
cd lib
$(MAKE) -$(MFLAGS) clean
$(MAKE) -$(MFLAGS) clean
!endif
cd ..
+
+# If ntsecapi.h contains the string that indicates it came from the Vista SDK,
+# then ntsecapitest.i will be left behind. If the string is not present,
+# ntsecapitest.i will be deleted.
+ntsecapitest:: ntsecapitest.i
+ ntsecapitest.pl
+
+clean-ntsecapitest::
+ $(RM) ntsecapitest.i
+
+{}.c{}.i:
+ @$(C_RULE) -P
system("rm -rf $out/a.tmp"); ## Clean up junk.
system("rm -rf $out/ziptemp"); ## Clean up junk.
+ print "Now check for ntsecapitest.i.\n";
+ $dir = "$wd\\athena\\auth\\krb5\\src\\windows";
+ chdir($dir) or die "Fatal -- Couldn't cd to $dir";
+ print "Info -- chdir to ".`cd`."\n" if ($verbose);
+
# End logging:
if ($odr->{logfile}->{def}) {$l->stop;}
--- /dev/null
+/* Simple program to show what is in ntsecapi.h.\r
+ Compile -P to generate preprocessor output.\r
+ */\r
+\r
+#include "ntsecapi.h"\r
+\r
+#ifdef TRUST_ATTRIBUTE_TRUST_USES_AES_KEYS \r
+VISTA_SDK_VERSION\r
+#else\r
+NT_SDK_VERSION\r
+#endif
\ No newline at end of file
--- /dev/null
+#!perl -w\r
+\r
+$filename = "ntsecapitest.i";\r
+$string = "VISTA_SDK_VERSION";\r
+\r
+if (system("grep $string $filename")) {\r
+ print "$string not found; deleting $filename.\n";\r
+ system("rm $filename");\r
+ }\r
+\r
+exit(0);
\ No newline at end of file