mirror of
https://git.openafs.org/openafs.git
synced 2025-01-18 06:50:12 +00:00
Windows: Build the AFS Redirector world
All of the new build rules necessary to build the new AFS Redirector world. Change-Id: Ic5b8839eb6f10e44c3b6e185c85c3948f77b4d60 Reviewed-on: http://gerrit.openafs.org/5444 Reviewed-by: Rod Widdowson <rdw@steadingsoftware.com> Tested-by: Rod Widdowson <rdw@steadingsoftware.com> Tested-by: Jeffrey Altman <jaltman@openafs.org> Reviewed-by: Jeffrey Altman <jaltman@openafs.org>
This commit is contained in:
parent
effaebfe00
commit
c044db34a1
@ -690,6 +690,13 @@ netidmgr_plugin: xstat
|
||||
$(NTMAKE)
|
||||
$(CD) ..\..\..
|
||||
|
||||
afsrdr: netidmgr_plugin
|
||||
echo ***** $@
|
||||
$(DOCD) $(SRC)\WINNT\afsrdr
|
||||
$(CD) $(SRC)\WINNT\afsrdr
|
||||
$(NTMAKE)
|
||||
$(CD) ..\..\..
|
||||
|
||||
rpctestlib: fsint libafsrpc
|
||||
@echo ***** $@
|
||||
$(DOCD) $(TESTS)\$@
|
||||
@ -704,7 +711,7 @@ libafscp: libafscp_headers util afs volser vlserver rx auth fsint afsdobjs
|
||||
$(NTMAKE)
|
||||
$(CD) ..\..
|
||||
|
||||
extra: netidmgr_plugin rpctestlib
|
||||
extra: afsrdr rpctestlib
|
||||
! IF EXIST($(SRC)\WINNT\extra) && EXIST($(SRC)\WINNT\extra\NTMakefile)
|
||||
@echo ***** $@
|
||||
$(DOCD) $(SRC)\WINNT\$@
|
||||
|
8
src/WINNT/afsrdr/.gitignore
vendored
Normal file
8
src/WINNT/afsrdr/.gitignore
vendored
Normal file
@ -0,0 +1,8 @@
|
||||
# Applies to all subdirectories
|
||||
|
||||
buildchk*.log
|
||||
buildfre*.log
|
||||
objchk*
|
||||
objfre*
|
||||
*.asp
|
||||
/build
|
179
src/WINNT/afsrdr/NTMakefile
Normal file
179
src/WINNT/afsrdr/NTMakefile
Normal file
@ -0,0 +1,179 @@
|
||||
# Copyright (c) 2008, 2009, 2010, 2011 Kernel Drivers, LLC.
|
||||
# Copyright (c) 2009, 2010, 2011 Your File System, Inc.
|
||||
# All rights reserved.
|
||||
#
|
||||
# Redistribution and use in source and binary forms, with or without
|
||||
# modification, are permitted provided that the following conditions
|
||||
# are met:
|
||||
#
|
||||
# - Redistributions of source code must retain the above copyright notice,
|
||||
# this list of conditions and the following disclaimer.
|
||||
# - Redistributions in binary form must reproduce the above copyright
|
||||
# notice,
|
||||
# this list of conditions and the following disclaimer in the
|
||||
# documentation
|
||||
# and/or other materials provided with the distribution.
|
||||
# - Neither the names of Kernel Drivers, LLC and Your File System, Inc.
|
||||
# nor the names of their contributors may be used to endorse or promote
|
||||
# products derived from this software without specific prior written
|
||||
# permission from Kernel Drivers, LLC and Your File System, Inc.
|
||||
#
|
||||
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
||||
# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
|
||||
# TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
|
||||
# PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER
|
||||
# OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
|
||||
# EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
|
||||
# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
|
||||
# PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
|
||||
# LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
|
||||
# NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
||||
# SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
|
||||
# This file requires Microsoft Windows DDK/WDK 6001 or higher
|
||||
|
||||
!IF ("$(CPU)" == "x86")
|
||||
CPU = i386
|
||||
!ENDIF
|
||||
|
||||
RELDIR=WINNT\afsrdr
|
||||
!INCLUDE ..\..\config\NTMakefile.$(SYS_NAME)
|
||||
!INCLUDE ..\..\config\NTMakefile.version
|
||||
|
||||
TARGETPATH = $(DESTDIR)\root.client\usr\vice\etc
|
||||
|
||||
!IF ("$(CPU)" == "i386")
|
||||
DDK_ARCH=X86
|
||||
DDK_PLATFORM=WXP
|
||||
!ELSE IF ("$(CPU)" == "AMD64")
|
||||
DDK_ARCH=x64
|
||||
DDK_PLATFORM=WNET
|
||||
!ENDIF
|
||||
|
||||
!IF ("$(AFSDEV_BUILDTYPE)" == "FREE")
|
||||
DDK_BUILDTYPE=FRE
|
||||
!ELSE
|
||||
DDK_BUILDTYPE=CHK
|
||||
!ENDIF
|
||||
|
||||
$(OUT)\ddkbuild.cmd: NTMakefile
|
||||
echo CALL "$(NTDDKDIR)\bin\setenv.bat" $(NTDDKDIR) $(DDK_ARCH) $(DDK_PLATFORM) $(DDK_BUILDTYPE) > $@
|
||||
echo cd /d $(AFSROOT)\src\WINNT\afsrdr >> $@
|
||||
echo cd kernel\fs >> $@
|
||||
echo build.exe -M >> $@
|
||||
echo if errorlevel neq 0 exit 1 >> $@
|
||||
echo cd ..\..\build\$(CPU) >> $@
|
||||
!IFDEF CODESIGN_KERNEL
|
||||
echo $(CODESIGN_KERNEL) AFSRedir.sys >> $@
|
||||
!ENDIF
|
||||
echo cd ..\..\kernel\lib >> $@
|
||||
echo build.exe -M >> $@
|
||||
echo if errorlevel neq 0 exit 1 >> $@
|
||||
echo cd ..\..\build\$(CPU) >> $@
|
||||
!IFDEF CODESIGN_KERNEL
|
||||
echo $(CODESIGN_KERNEL) AFSRedirLib.sys >> $@
|
||||
!ENDIF
|
||||
echo cd ..\..\npdll >> $@
|
||||
echo build.exe -M >> $@
|
||||
echo if errorlevel neq 0 exit 1 >> $@
|
||||
echo cd ..\build\$(CPU) >> $@
|
||||
!IFDEF CODESIGN_KERNEL
|
||||
echo $(CODESIGN_KERNEL) AFSRDFSProvider.dll >> $@
|
||||
!ENDIF
|
||||
echo exit 0 >> $@
|
||||
|
||||
$(OUT)\ddkclean.cmd: NTMakefile
|
||||
echo CALL "$(NTDDKDIR)\bin\setenv.bat" $(NTDDKDIR) $(DDK_ARCH) $(DDK_PLATFORM) $(DDK_BUILDTYPE) > $@
|
||||
echo cd /d $(AFSROOT)\src\WINNT\afsrdr >> $@
|
||||
echo cd kernel\fs >> $@
|
||||
echo build.exe -c -0 >> $@
|
||||
echo cd ..\lib >> $@
|
||||
echo build.exe -c -0 >> $@
|
||||
echo cd ..\..\npdll >> $@
|
||||
echo build.exe -c -0 >> $@
|
||||
echo exit 0 >> $@
|
||||
|
||||
install: clean-build clean-kernel-fs clean-kernel-lib clean-npdll \
|
||||
AFS_component_version_number.h $(OUT)\ddkbuild.cmd $(OUT)\ddkclean.cmd \
|
||||
kernel\fs\AFSRedirInstall.inf \
|
||||
kernel\lib\AFSRedirLibInstall.inf
|
||||
!IF !EXIST(build\$(CPU))
|
||||
$(MKDIR) build\$(CPU)
|
||||
!ENDIF
|
||||
cd tools\gettrace
|
||||
$(MAKE) -f ntmakefile install
|
||||
cd ..\settrace
|
||||
$(MAKE) -f ntmakefile install
|
||||
cd ..\crash
|
||||
$(MAKE) -f ntmakefile install
|
||||
cd ..\authgroup
|
||||
$(MAKE) -f ntmakefile install
|
||||
cd ..\objstatus
|
||||
$(MAKE) -f ntmakefile install
|
||||
cd ..\..
|
||||
type $(OUT)\ddkbuild.cmd
|
||||
-$(DEL) build\$(CPU)\AFSRedir.sys
|
||||
-$(DEL) build\$(CPU)\AFSRedirLib.sys
|
||||
-$(DEL) build\$(CPU)\AFSRDFSProvider.dll
|
||||
cmd /c start /wait $(OUT)\ddkbuild.cmd
|
||||
cmd /c if not exist build\$(CPU)\AFSRedir.sys exit 1
|
||||
cmd /c if not exist build\$(CPU)\AFSRedirLib.sys exit 1
|
||||
cmd /c if not exist build\$(CPU)\AFSRDFSProvider.dll exit 1
|
||||
$(COPY) kernel\fs\AFSRedirInstall.inf build\$(CPU)\AFSRedirInstall.inf
|
||||
$(COPY) kernel\lib\AFSRedirLibInstall.inf build\$(CPU)\AFSRedirLibInstall.inf
|
||||
$(COPY) build\$(CPU)\* $(TARGETPATH)
|
||||
|
||||
clean-build:
|
||||
!IF EXIST(build\$(CPU))
|
||||
cd build\$(CPU)
|
||||
-$(DEL) *.sys
|
||||
-$(DEL) *.exe
|
||||
-$(DEL) *.dll
|
||||
-$(DEL) *.pdb
|
||||
-$(DEL) *.inf
|
||||
-$(DEL) *.manifest
|
||||
cd ..\..
|
||||
!ENDIF
|
||||
|
||||
clean-kernel-fs:
|
||||
cd kernel\fs
|
||||
-$(DEL) *.log
|
||||
-$(DEL) *.wrn
|
||||
-$(DEL) *.aps
|
||||
-$(DEL) *.suo
|
||||
cd ..\..
|
||||
|
||||
clean-kernel-lib:
|
||||
cd kernel\lib
|
||||
-$(DEL) *.log
|
||||
-$(DEL) *.wrn
|
||||
-$(DEL) *.aps
|
||||
-$(DEL) *.suo
|
||||
cd ..\..
|
||||
|
||||
clean-npdll:
|
||||
cd npdll
|
||||
-$(DEL) *.log
|
||||
-$(DEL) *.wrn
|
||||
-$(DEL) *.aps
|
||||
-$(DEL) *.suo
|
||||
cd ..
|
||||
|
||||
clean:: clean-build clean-kernel-fs clean-kernel-lib clean-npdll
|
||||
-$(DEL) $(OUT)\ddkbuild.cmd
|
||||
-type $(OUT)\ddkclean.cmd
|
||||
if exist $(OUT)\ddkclean.cmd start /wait $(OUT)\ddkclean.cmd
|
||||
-$(DEL) $(OUT)\ddkclean.cmd
|
||||
-$(DEL) AFS_component_version_number.h
|
||||
cd tools/gettrace
|
||||
$(MAKE) -f ntmakefile clean
|
||||
cd ../settrace
|
||||
$(MAKE) -f ntmakefile clean
|
||||
cd ../authgroup
|
||||
$(MAKE) -f ntmakefile clean
|
||||
cd ../objstatus
|
||||
$(MAKE) -f ntmakefile clean
|
||||
cd ../crash
|
||||
$(MAKE) -f ntmakefile clean
|
||||
cd ../..
|
@ -31,6 +31,12 @@ $(INCFILEDIR)\afsconfig.h: afsconfig-windows.h
|
||||
$(COPY) $? $@
|
||||
|
||||
idirs: doclink
|
||||
! IF (!EXIST($(SRC)\WINNT\afsrdr\build))
|
||||
$(MKDIR) $(SRC)\WINNT\afsrdr\build
|
||||
! ENDIF
|
||||
! IF (!EXIST($(SRC)\WINNT\afsrdr\build\$(CPU)))
|
||||
$(MKDIR) $(SRC)\WINNT\afsrdr\build\$(CPU)
|
||||
! ENDIF
|
||||
! IF (!EXIST($(OJT)))
|
||||
$(MKDIR) $(OJT)
|
||||
! ENDIF
|
||||
@ -283,6 +289,24 @@ idirs: doclink
|
||||
! IF (!EXIST($(OJT)\WINNT\afslegal\lang))
|
||||
$(MKDIR) $(OJT)\WINNT\afslegal\lang
|
||||
! ENDIF
|
||||
! IF (!EXIST($(OJT)\WINNT\afsrdr))
|
||||
$(MKDIR) $(OJT)\WINNT\afsrdr
|
||||
! ENDIF
|
||||
! IF (!EXIST($(OJT)\WINNT\afsrdr\tools))
|
||||
$(MKDIR) $(OJT)\WINNT\afsrdr\tools
|
||||
! ENDIF
|
||||
! IF (!EXIST($(OJT)\WINNT\afsrdr\tools\authgroup))
|
||||
$(MKDIR) $(OJT)\WINNT\afsrdr\tools\authgroup
|
||||
! ENDIF
|
||||
! IF (!EXIST($(OJT)\WINNT\afsrdr\tools\gettrace))
|
||||
$(MKDIR) $(OJT)\WINNT\afsrdr\tools\gettrace
|
||||
! ENDIF
|
||||
! IF (!EXIST($(OJT)\WINNT\afsrdr\tools\settrace))
|
||||
$(MKDIR) $(OJT)\WINNT\afsrdr\tools\settrace
|
||||
! ENDIF
|
||||
! IF (!EXIST($(OJT)\WINNT\afsrdr\tools\crash))
|
||||
$(MKDIR) $(OJT)\WINNT\afsrdr\tools\crash
|
||||
! ENDIF
|
||||
! IF (!EXIST($(OJT)\WINNT\afsreg))
|
||||
$(MKDIR) $(OJT)\WINNT\afsreg
|
||||
! ENDIF
|
||||
@ -328,6 +352,15 @@ idirs: doclink
|
||||
! IF (!EXIST($(OJT)\WINNT\aklog))
|
||||
$(MKDIR) $(OJT)\WINNT\aklog
|
||||
! ENDIF
|
||||
! IF (!EXIST($(OJT)\WINNT\afsrdr))
|
||||
$(MKDIR) $(OJT)\WINNT\afsrdr
|
||||
! ENDIF
|
||||
! IF (!EXIST($(OJT)\WINNT\afsrdr\kernel))
|
||||
$(MKDIR) $(OJT)\WINNT\afsrdr\kernel
|
||||
! ENDIF
|
||||
! IF (!EXIST($(OJT)\WINNT\afsrdr\npdll))
|
||||
$(MKDIR) $(OJT)\WINNT\afsrdr\npdll
|
||||
! ENDIF
|
||||
! IF (!EXIST($(OJT)\WINNT\bosctlsvc))
|
||||
$(MKDIR) $(OJT)\WINNT\bosctlsvc
|
||||
! ENDIF
|
||||
@ -513,7 +546,7 @@ doclink:
|
||||
version: $(DESTDIR)\bin\mkvers.exe NTMakefile.version
|
||||
|
||||
NTMakefile.version: NTMakefile.version-CML NTMakefile.version-NOCML
|
||||
-$(DEL) NTMakefile.version
|
||||
$(DEL) NTMakefile.version
|
||||
! IF (EXIST(..\..\src\CML\state) || EXIST(..\..\..\src\CML\state))
|
||||
$(COPY) NTMakefile.version-CML NTMakefile.version
|
||||
! ELSE
|
||||
|
Loading…
Reference in New Issue
Block a user