From b557da03d5089749b37ae356cadb4d00ff6d5af5 Mon Sep 17 00:00:00 2001 From: Jeffrey Altman Date: Sat, 31 Jan 2009 03:37:18 +0000 Subject: [PATCH] windows-test-winflock-20090130 LICENSE BSD permit winflock to build under the openafs build system --- src/WINNT/tests/winflock/NTMakefile | 35 +++++++++++++++++++++++++++ src/WINNT/tests/winflock/winflock.h | 2 ++ src/WINNT/tests/winflock/winflock.sln | 21 ---------------- 3 files changed, 37 insertions(+), 21 deletions(-) create mode 100644 src/WINNT/tests/winflock/NTMakefile delete mode 100644 src/WINNT/tests/winflock/winflock.sln diff --git a/src/WINNT/tests/winflock/NTMakefile b/src/WINNT/tests/winflock/NTMakefile new file mode 100644 index 000000000..1ad0655ee --- /dev/null +++ b/src/WINNT/tests/winflock/NTMakefile @@ -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:: + + diff --git a/src/WINNT/tests/winflock/winflock.h b/src/WINNT/tests/winflock/winflock.h index baf52c8c2..a617e83f2 100644 --- a/src/WINNT/tests/winflock/winflock.h +++ b/src/WINNT/tests/winflock/winflock.h @@ -3,7 +3,9 @@ #include #include #include +extern "C" { #include +} #include diff --git a/src/WINNT/tests/winflock/winflock.sln b/src/WINNT/tests/winflock/winflock.sln deleted file mode 100644 index 63f963d6c..000000000 --- a/src/WINNT/tests/winflock/winflock.sln +++ /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 -- 2.39.5