r10576: Add testprog for named pipes. Also add GNUmakefile's for cross-compilation
[ira/wip.git] / testprogs / win32 / npecho / GNUmakefile
diff --git a/testprogs/win32/npecho/GNUmakefile b/testprogs/win32/npecho/GNUmakefile
new file mode 100755 (executable)
index 0000000..33cf95d
--- /dev/null
@@ -0,0 +1,20 @@
+INCLUDES=-I.
+CFLAGS=$(INCLUDES) 
+
+all: npecho_client.exe npecho_server.exe
+
+CC = i586-mingw32msvc-gcc
+
+.SUFFIXES: .c .obj
+
+.c.obj: 
+       $(CC) $(CFLAGS) -c $< -o $@
+
+clean:
+       del *~ *.obj *.exe 
+
+npecho_client.exe: npecho_client.obj
+npecho_server.exe: npecho_server.obj
+
+%.exe: 
+       $(CC) $(CFLAGS) -o $@ $< $(LIBS)