From: Stefan Metzmacher Date: Sat, 21 Sep 2013 20:01:46 +0000 (+0200) Subject: testprogs/win32/rpcecho-win32-pipe/ ndr64 X-Git-Url: http://git.samba.org/?p=metze%2Fsamba%2Fwip.git;a=commitdiff_plain;h=fdce2df2efc95c329608ac7784a51864e7a7a196 testprogs/win32/rpcecho-win32-pipe/ ndr64 --- diff --git a/testprogs/win32/rpcecho-win32-pipe/Makefile b/testprogs/win32/rpcecho-win32-pipe/Makefile new file mode 100755 index 000000000000..b5576e300732 --- /dev/null +++ b/testprogs/win32/rpcecho-win32-pipe/Makefile @@ -0,0 +1,24 @@ +#CC=E:\VC98\bin\cl -nologo +INCLUDES=-I +CFLAGS=$(INCLUDES) -Zi -D_WIN32_WINNT=0x610 -DTARGET_IS_NT60_OR_LATER +LIBS=rpcrt4.lib /ML ntdsapi.lib ws2_32.lib + +all: client server + +clean: + del *~ *.obj client server rpcecho_c.c rpcecho_s.c rpcecho.h + +rpcecho.h rpcecho_s.c rpcecho_c.c: rpcecho.idl rpcecho.acf + midl /target NT60 /acf rpcecho.acf rpcecho.idl + +client: client.obj rpcecho_c.obj utils.obj + $(CC) -o client client.obj rpcecho_c.obj utils.obj $(LIBS) + +server: server.obj rpcecho_s.obj utils.obj + $(CC) -o server server.obj rpcecho_s.obj utils.obj $(LIBS) + +client.obj: rpcecho.h client.c +server.obj: rpcecho.h server.c +rpcecho_c.obj: rpcecho.h rpcecho_c.c +rpcecho_s.obj: rpcecho.h rpcecho_s.c +utils.obj: rpcecho.h utils.c diff --git a/testprogs/win32/rpcecho-win32-pipe/server.c b/testprogs/win32/rpcecho-win32-pipe/server.c index 9324ff3679e6..4f4657af27a7 100755 --- a/testprogs/win32/rpcecho-win32-pipe/server.c +++ b/testprogs/win32/rpcecho-win32-pipe/server.c @@ -18,14 +18,16 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ -#define _WIN32_WINNT 0x0500 - #include #include #include #include "rpcecho.h" #include +#ifndef _M_AMD64 +#error "please run 'vcvarsall.bat amd64' -midltests_tcp needs 64-bit support!" +#endif + #define RPC_MIN_CALLS 1 #define RPC_MAX_CALLS 20 #define RPC_ENDPOINT "\\pipe\\rpcecho"