mirror of
https://git.openafs.org/openafs.git
synced 2025-01-31 13:38:01 +00:00
KDFS-windows-afsrdr-makefile-20081230
LICENSE MIT terminate the build on error copy the built files to $(DESTDIR)\root.client\usr\vice\etc
This commit is contained in:
parent
a8b150c717
commit
4954d8601f
@ -21,13 +21,19 @@ $(OUT)\ddkbuild.cmd: NTMakefile
|
|||||||
echo cd /d $(AFSROOT)\src\WINNT\afsrdr >> $@
|
echo cd /d $(AFSROOT)\src\WINNT\afsrdr >> $@
|
||||||
echo cd kernel >> $@
|
echo cd kernel >> $@
|
||||||
echo build.exe -M >> $@
|
echo build.exe -M >> $@
|
||||||
echo cd ..\npdll >> $@
|
echo if errorlevel neq 0 exit 1 >> $@
|
||||||
echo build.exe -M >> $@
|
|
||||||
echo cd ..\build\$(CPU) >> $@
|
echo cd ..\build\$(CPU) >> $@
|
||||||
!IFDEF CODESIGN_KERNEL
|
!IFDEF CODESIGN_KERNEL
|
||||||
echo $(CODESIGN_KERNEL) AFSRDFSProvider.dll AFSRedir.sys >> $@
|
echo $(CODESIGN_KERNEL) AFSRedir.sys >> $@
|
||||||
!ENDIF
|
!ENDIF
|
||||||
echo exit >> $@
|
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
|
$(OUT)\ddkclean.cmd: NTMakefile
|
||||||
echo CALL "$(NTDDKDIR)\bin\setenv.bat" $(NTDDKDIR) $(DDK_ARCH) $(DDK_PLATFORM) $(AFSDEV_BUILDTYPE) > $@
|
echo CALL "$(NTDDKDIR)\bin\setenv.bat" $(NTDDKDIR) $(DDK_ARCH) $(DDK_PLATFORM) $(AFSDEV_BUILDTYPE) > $@
|
||||||
@ -36,11 +42,15 @@ $(OUT)\ddkclean.cmd: NTMakefile
|
|||||||
echo build.exe -c -0 >> $@
|
echo build.exe -c -0 >> $@
|
||||||
echo cd ..\npdll >> $@
|
echo cd ..\npdll >> $@
|
||||||
echo build.exe -c -0 >> $@
|
echo build.exe -c -0 >> $@
|
||||||
echo exit >> $@
|
echo exit 0 >> $@
|
||||||
|
|
||||||
install: AFS_component_version_number.h $(OUT)\ddkbuild.cmd $(OUT)\ddkclean.cmd kernel\AFSRedirInstall.inf
|
install: AFS_component_version_number.h $(OUT)\ddkbuild.cmd $(OUT)\ddkclean.cmd kernel\AFSRedirInstall.inf
|
||||||
type $(OUT)\ddkbuild.cmd
|
type $(OUT)\ddkbuild.cmd
|
||||||
|
-$(DEL) build\$(CPU)\AFSRedir.sys
|
||||||
|
-$(DEL) build\$(CPU)\AFSRDFSProvider.dll
|
||||||
cmd /c start /wait $(OUT)\ddkbuild.cmd
|
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)\AFSRDFSProvider.dll exit 1
|
||||||
$(COPY) kernel\AFSRedirInstall.inf build\$(CPU)\AFSRedirInstall.inf
|
$(COPY) kernel\AFSRedirInstall.inf build\$(CPU)\AFSRedirInstall.inf
|
||||||
cd tools/gettrace
|
cd tools/gettrace
|
||||||
$(MAKE) -f ntmakefile install
|
$(MAKE) -f ntmakefile install
|
||||||
@ -49,6 +59,8 @@ install: AFS_component_version_number.h $(OUT)\ddkbuild.cmd $(OUT)\ddkclean.cmd
|
|||||||
cd ../crash
|
cd ../crash
|
||||||
$(MAKE) -f ntmakefile install
|
$(MAKE) -f ntmakefile install
|
||||||
cd ../..
|
cd ../..
|
||||||
|
$(COPY) build\$(CPU)\* $(TARGETPATH)
|
||||||
|
|
||||||
clean::
|
clean::
|
||||||
$(DEL) $(OUT)\ddkbuild.cmd
|
$(DEL) $(OUT)\ddkbuild.cmd
|
||||||
-type $(OUT)\ddkclean.cmd
|
-type $(OUT)\ddkclean.cmd
|
||||||
|
Loading…
x
Reference in New Issue
Block a user