windows-test-winflock-20090130
authorJeffrey Altman <jaltman@secure-endpoints.com>
Sat, 31 Jan 2009 03:37:18 +0000 (03:37 +0000)
committerJeffrey Altman <jaltman@secure-endpoints.com>
Sat, 31 Jan 2009 03:37:18 +0000 (03:37 +0000)
LICENSE BSD

permit winflock to build under the openafs build system

src/WINNT/tests/winflock/NTMakefile [new file with mode: 0644]
src/WINNT/tests/winflock/winflock.h
src/WINNT/tests/winflock/winflock.sln [deleted file]

diff --git a/src/WINNT/tests/winflock/NTMakefile b/src/WINNT/tests/winflock/NTMakefile
new file mode 100644 (file)
index 0000000..1ad0655
--- /dev/null
@@ -0,0 +1,35 @@
+#                                                                                                                                
+# Copyright (c) 2009 Secure Endpoints Inc.
+#
+
+RELDIR=WINNT\tests\winflock
+!INCLUDE ..\..\..\config\NTMakefile.$(SYS_NAME)
+!INCLUDE ..\..\..\config\NTMakefile.version
+
+idirs:
+!       if !(exist($(OJT)\WINNT\tests))
+                md $(OJT)\WINNT\tests
+!       endif
+!       if !(exist($(OJT)\WINNT\tests\winflock))
+                md $(OJT)\WINNT\tests\winflock
+!       endif
+
+EXEDIR = $(DESTDIR)\bin
+
+OBJS =  $(OUT)\main.obj \
+        $(OUT)\sync.obj \
+        $(OUT)\tests.obj
+
+LIBS =  $(DESTDIR)\lib\afs\afsutil.lib
+
+$(EXEDIR)\winflock.exe: $(OBJS) $(LIBS)
+        $(EXECONLINK) 
+        $(_VC_MANIFEST_EMBED_EXE)
+        $(EXEPREP)
+        $(CODESIGN_USERLAND)
+
+install: idirs $(EXEDIR)\winflock.exe
+
+clean::
+        
+
index baf52c8..a617e83 100644 (file)
@@ -3,7 +3,9 @@
 #include<windows.h>
 #include<tchar.h>
 #include<iostream>
+extern "C" {
 #include<cassert>
+}
 
 #include<strsafe.h>
 
diff --git a/src/WINNT/tests/winflock/winflock.sln b/src/WINNT/tests/winflock/winflock.sln
deleted file mode 100644 (file)
index 63f963d..0000000
+++ /dev/null
@@ -1,21 +0,0 @@
-Microsoft Visual Studio Solution File, Format Version 8.00
-Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "winflock", "winflock.vcproj", "{60F4E436-B15A-48B3-A627-7C62A6C97C03}"
-       ProjectSection(ProjectDependencies) = postProject
-       EndProjectSection
-EndProject
-Global
-       GlobalSection(SolutionConfiguration) = preSolution
-               Debug = Debug
-               Release = Release
-       EndGlobalSection
-       GlobalSection(ProjectConfiguration) = postSolution
-               {60F4E436-B15A-48B3-A627-7C62A6C97C03}.Debug.ActiveCfg = Debug|Win32
-               {60F4E436-B15A-48B3-A627-7C62A6C97C03}.Debug.Build.0 = Debug|Win32
-               {60F4E436-B15A-48B3-A627-7C62A6C97C03}.Release.ActiveCfg = Release|Win32
-               {60F4E436-B15A-48B3-A627-7C62A6C97C03}.Release.Build.0 = Release|Win32
-       EndGlobalSection
-       GlobalSection(ExtensibilityGlobals) = postSolution
-       EndGlobalSection
-       GlobalSection(ExtensibilityAddIns) = postSolution
-       EndGlobalSection
-EndGlobal