aboutsummaryrefslogtreecommitdiffhomepage
path: root/samples/dumpe/Makefile
diff options
context:
space:
mode:
authorAndrzej Janik <[email protected]>2021-01-03 17:52:14 +0100
committerAndrzej Janik <[email protected]>2021-01-03 17:52:14 +0100
commitdabc40cb19bf4e297c32284d26c74adbd6775e49 (patch)
tree6f71c14ef264998a9bccb3b6891c71542d9ace7a /samples/dumpe/Makefile
downloadZLUDA-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/dumpe/Makefile')
-rw-r--r--samples/dumpe/Makefile53
1 files changed, 53 insertions, 0 deletions
diff --git a/samples/dumpe/Makefile b/samples/dumpe/Makefile
new file mode 100644
index 0000000..bca7481
--- /dev/null
+++ b/samples/dumpe/Makefile
@@ -0,0 +1,53 @@
+##############################################################################
+##
+## 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)\dumpe.exe \
+!IF $(DETOURS_SOURCE_BROWSING)==1
+ $(OBJD)\dumpe.bsc
+!ENDIF
+
+clean:
+ -del *~ 2>nul
+ -del $(BIND)\dumpe.* 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)\dumpe.obj : dumpe.cpp
+
+$(BIND)\dumpe.exe : $(OBJD)\dumpe.obj $(DEPS)
+ cl $(CFLAGS) /Fe$@ /Fd$(@R).pdb $(OBJD)\dumpe.obj \
+ /link $(LINKFLAGS) $(LIBS) \
+ /subsystem:console
+
+$(OBJD)\dumpe.bsc : $(OBJD)\dumpe.obj
+ bscmake /v /n /o $@ $(OBJD)\dumpe.sbr
+
+##############################################################################
+
+test: $(BIND)\dumpe.exe
+ $(BIND)\dumpe.exe $(BIND)\slept.dll
+
+testx: $(BIND)\dumpe.exe
+ cd $(MAKEDIR)\..\..\src
+ nmake
+ cd $(MAKEDIR)
+ if exist $(SYSTEMROOT)\system32\browseui.dll $(BIND)\dumpe.exe browseui.dll
+
+################################################################# End of File.