diff options
author | Andrzej Janik <[email protected]> | 2021-01-03 17:52:14 +0100 |
---|---|---|
committer | Andrzej Janik <[email protected]> | 2021-01-03 17:52:14 +0100 |
commit | dabc40cb19bf4e297c32284d26c74adbd6775e49 (patch) | |
tree | 6f71c14ef264998a9bccb3b6891c71542d9ace7a /samples/withdll/Makefile | |
download | ZLUDA-dabc40cb19bf4e297c32284d26c74adbd6775e49.tar.gz ZLUDA-dabc40cb19bf4e297c32284d26c74adbd6775e49.zip |
Squashed 'ext/detours/' content from commit 39aa864
git-subtree-dir: ext/detours
git-subtree-split: 39aa864d2985099c8d847e29a5fb86618039b9c4
Diffstat (limited to 'samples/withdll/Makefile')
-rw-r--r-- | samples/withdll/Makefile | 60 |
1 files changed, 60 insertions, 0 deletions
diff --git a/samples/withdll/Makefile b/samples/withdll/Makefile new file mode 100644 index 0000000..cafca4f --- /dev/null +++ b/samples/withdll/Makefile @@ -0,0 +1,60 @@ +############################################################################## +## +## Makefile for Detours Test Programs. +## +## Microsoft Research Detours Package +## +## Copyright (c) Microsoft Corporation. All rights reserved. +## + +!include ..\common.mak + +LIBS=$(LIBS) kernel32.lib + +############################################################################## + +all: dirs \ + $(BIND)\withdll.exe \ +!IF $(DETOURS_SOURCE_BROWSING)==1 + $(OBJD)\withdll.bsc \ +!ENDIF + option + +clean: + -del *~ 2>nul + -del $(BIND)\withdll.* 2>nul + -rmdir /q /s $(OBJD) 2>nul + +realclean: clean + -rmdir /q /s $(OBJDS) 2>nul + +############################################################################## + +dirs: + @if not exist $(BIND) mkdir $(BIND) && echo. Created $(BIND) + @if not exist $(OBJD) mkdir $(OBJD) && echo. Created $(OBJD) + +$(OBJD)\withdll.obj : withdll.cpp + +$(BIND)\withdll.exe : $(OBJD)\withdll.obj $(DEPS) + cl $(CFLAGS) /Fe$@ /Fd$(@R).pdb $(OBJD)\withdll.obj \ + /link $(LINKFLAGS) $(LIBS) /subsystem:console + +$(OBJD)\withdll.bsc : $(OBJD)\withdll.obj + bscmake /v /n /o $@ $(OBJD)\withdll.sbr + +############################################### Install non-bit-size binaries. + +option: + +############################################################################## + +test: all + $(BIND)\withdll.exe -d:$(BIND)\slept$(DETOURS_BITS).dll $(BIND)\sleepold.exe + $(BIND)\withdll.exe -v -d:$(BIND)\slept$(DETOURS_BITS).dll $(BIND)\sleepold.exe + +debug: all + windbg -c ".srcfix;l+s;l+t" -o \ + $(BIND)\withdll.exe -d:$(BIND)\slept$(DETOURS_BITS).dll $(BIND)\sleepold.exe + +################################################################# End of File. |