mirror of
https://github.com/WinDurango/Detours.git
synced 2026-01-31 00:55:20 +01:00
- Import the Catch2 self-contained C++ test framework. It's used by many Microsoft OSS projects: - https://github.com/microsoft/cppwinrt/tree/master/test - https://github.com/microsoft/wil/tree/master/tests As well as many OSS projects in general. When the CMake PR is merged, we can remove this as a checked in development dependency, and can instead download it using CMake. - Start basic set of unit tests to validate failure modes of - Hook the execution into the existing NMake build system. - Hook test execution into CI pipeline
64 lines
2.0 KiB
Makefile
64 lines
2.0 KiB
Makefile
##############################################################################
|
|
##
|
|
## Makefile for Detours.
|
|
##
|
|
## Microsoft Research Detours Package
|
|
##
|
|
## Copyright (c) Microsoft Corporation. All rights reserved.
|
|
##
|
|
|
|
ROOT = .
|
|
!include "$(ROOT)\system.mak"
|
|
|
|
all:
|
|
cd "$(MAKEDIR)"
|
|
@if exist "$(MAKEDIR)\core\makefile" cd "$(MAKEDIR)\core" && $(MAKE) /NOLOGO /$(MAKEFLAGS)
|
|
cd "$(MAKEDIR)\src"
|
|
@$(MAKE) /NOLOGO /$(MAKEFLAGS)
|
|
cd "$(MAKEDIR)\samples"
|
|
@$(MAKE) /NOLOGO /$(MAKEFLAGS)
|
|
cd "$(MAKEDIR)\tests"
|
|
@$(MAKE) /NOLOGO /$(MAKEFLAGS)
|
|
@if exist "$(MAKEDIR)\bugs\makefile" cd "$(MAKEDIR)\bugs" && $(MAKE) /NOLOGO /$(MAKEFLAGS)
|
|
cd "$(MAKEDIR)"
|
|
|
|
clean:
|
|
cd "$(MAKEDIR)"
|
|
@if exist "$(MAKEDIR)\core\makefile" cd "$(MAKEDIR)\core" && $(MAKE) /NOLOGO /$(MAKEFLAGS) clean
|
|
cd "$(MAKEDIR)\src"
|
|
@$(MAKE) /NOLOGO /$(MAKEFLAGS) clean
|
|
cd "$(MAKEDIR)\samples"
|
|
@$(MAKE) /NOLOGO /$(MAKEFLAGS) clean
|
|
cd "$(MAKEDIR)\tests"
|
|
@$(MAKE) /NOLOGO /$(MAKEFLAGS) clean
|
|
@if exist "$(MAKEDIR)\bugs\makefile" cd "$(MAKEDIR)\bugs" && $(MAKE) /NOLOGO /$(MAKEFLAGS) clean
|
|
cd "$(MAKEDIR)"
|
|
|
|
realclean: clean
|
|
cd "$(MAKEDIR)"
|
|
@if exist "$(MAKEDIR)\core\makefile" cd "$(MAKEDIR)\core" && $(MAKE) /NOLOGO /$(MAKEFLAGS) realclean
|
|
cd "$(MAKEDIR)\src"
|
|
@$(MAKE) /NOLOGO /$(MAKEFLAGS) realclean
|
|
cd "$(MAKEDIR)\samples"
|
|
@$(MAKE) /NOLOGO /$(MAKEFLAGS) realclean
|
|
cd "$(MAKEDIR)\tests"
|
|
@$(MAKE) /NOLOGO /$(MAKEFLAGS) realclean
|
|
@if exist "$(MAKEDIR)\bugs\makefile" cd "$(MAKEDIR)\bugs" && $(MAKE) /NOLOGO /$(MAKEFLAGS) realclean
|
|
cd "$(MAKEDIR)"
|
|
-rmdir /q /s $(INCDS) 2> nul
|
|
-rmdir /q /s $(LIBDS) 2> nul
|
|
-rmdir /q /s $(BINDS) 2> nul
|
|
-rmdir /q /s dist 2> nul
|
|
-del docsrc\detours.chm 2> nul
|
|
-del /q *.msi 2>nul
|
|
-del /q /f /s *~ 2>nul
|
|
|
|
test:
|
|
cd "$(MAKEDIR)\samples"
|
|
@$(MAKE) /NOLOGO /$(MAKEFLAGS) test
|
|
cd "$(MAKEDIR)\tests"
|
|
@$(MAKE) /NOLOGO /$(MAKEFLAGS) test
|
|
cd "$(MAKEDIR)"
|
|
|
|
################################################################# End of File.
|