summaryrefslogtreecommitdiff
path: root/testprogs/win32/midltests/Makefile.tcp
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2010-09-28 11:04:59 +0200
committerStefan Metzmacher <metze@samba.org>2010-09-29 01:42:28 +0200
commit115ad6012540338a73abd9de13c6bb4de3a12cf2 (patch)
treeb0eef4839d67d96a382541ad6404fe12cfcf6cfb /testprogs/win32/midltests/Makefile.tcp
parentcf4e57281b867878521d6f38ec5b0f552c4d2c90 (diff)
downloadsamba-115ad6012540338a73abd9de13c6bb4de3a12cf2.tar.gz
samba-115ad6012540338a73abd9de13c6bb4de3a12cf2.tar.bz2
samba-115ad6012540338a73abd9de13c6bb4de3a12cf2.zip
midltests: add a midltests_tcp.exe tool
This uses a man in the middle approach in order to dump the request and response pdus. It also tests NDR32 and NDR64. metze
Diffstat (limited to 'testprogs/win32/midltests/Makefile.tcp')
-rw-r--r--testprogs/win32/midltests/Makefile.tcp22
1 files changed, 22 insertions, 0 deletions
diff --git a/testprogs/win32/midltests/Makefile.tcp b/testprogs/win32/midltests/Makefile.tcp
new file mode 100644
index 0000000000..19c1f11d8a
--- /dev/null
+++ b/testprogs/win32/midltests/Makefile.tcp
@@ -0,0 +1,22 @@
+INCLUDES=-I
+CFLAGS=$(INCLUDES) -Zi -D_WIN32_WINNT=0x610
+LIBS=rpcrt4.lib ws2_32.lib
+
+all: midltests_tcp.exe
+
+clean:
+ del *~ *.obj *.exe midltests.h midltests_s.c midltests_c.c
+
+MIDL_ARGS=/target NT60 /prefix client cli_ /prefix server srv_ /prefix switch swi_
+midltests.h midltests_s.c midltests_c.c: midltests.idl midltests.acf
+ midl $(MIDL_ARGS) /acf midltests.acf midltests.idl
+
+MIDLTESTS_OBJ = midltests_tcp.obj midltests_s.obj midltests_c.obj midltests_marshall.obj utils.obj
+midltests_tcp.exe: $(MIDLTESTS_OBJ)
+ $(CC) -o midltests_tcp.exe $(MIDLTESTS_OBJ) $(LIBS)
+
+midltests_tcp.obj: midltests.h midltests.idl
+
+midltests_tcp.obj: midltests.h midltests.idl midltests_tcp.c
+midltests_marshall.obj: midltests.h midltests_marshall.c
+utils.obj: midltests.h utils.c