summaryrefslogtreecommitdiffstats
path: root/win32/MinGW/Makefile
diff options
context:
space:
mode:
authorGravatar snowdrop2006-02-24 09:11:41 +0000
committerGravatar snowdrop2006-02-24 09:11:41 +0000
commit7edb65a5bdfaff60f7bb29461edb4f61e32ff189 (patch)
tree9cde2047d17a3d21113d397babf794f67d301c88 /win32/MinGW/Makefile
parentb0af9209e34ae1aec62ca1603c4e25d76bcc8c12 (diff)
downloadcsoap-7edb65a5bdfaff60f7bb29461edb4f61e32ff189.tar.gz
csoap-7edb65a5bdfaff60f7bb29461edb4f61e32ff189.tar.bz2
initial import
Diffstat (limited to 'win32/MinGW/Makefile')
-rw-r--r--win32/MinGW/Makefile68
1 files changed, 68 insertions, 0 deletions
diff --git a/win32/MinGW/Makefile b/win32/MinGW/Makefile
new file mode 100644
index 0000000..41c1324
--- /dev/null
+++ b/win32/MinGW/Makefile
@@ -0,0 +1,68 @@
+# mingw32-make
+
+#---------------------------------------------------------
+# LIBXML2
+#---------------------------------------------------------
+LIBXML2_DIR=../../../libxml2-2.6.23.win32
+ICONV_DIR=../../../iconv-1.9.1.win32
+
+#---------------------------------------------------------
+# LIBSOAP
+#---------------------------------------------------------
+LIBSOAP_DIR=../../libcsoap
+
+LIBSOAP_SOURCE=\
+ $(LIBSOAP_DIR)/soap-client.c \
+ $(LIBSOAP_DIR)/soap-ctx.c \
+ $(LIBSOAP_DIR)/soap-env.c \
+ $(LIBSOAP_DIR)/soap-fault.c \
+ $(LIBSOAP_DIR)/soap-router.c \
+ $(LIBSOAP_DIR)/soap-server.c \
+ $(LIBSOAP_DIR)/soap-service.c \
+ $(LIBSOAP_DIR)/soap-xml.c
+
+LIBSOAP_HEADER = $(addsuffix .c, $(basename $(LIBSOAP_SOURCE)))
+LIBSOAP_OBJECTS = $(addsuffix .o, $(basename $(LIBSOAP_SOURCE)))
+
+#---------------------------------------------------------
+# NANOHTTP
+#---------------------------------------------------------
+NANOHTTP_DIR=../../nanohttp
+
+NANOHTTP_SOURCE=\
+ $(NANOHTTP_DIR)\nanohttp-base64.c \
+ $(NANOHTTP_DIR)\nanohttp-client.c \
+ $(NANOHTTP_DIR)\nanohttp-common.c \
+ $(NANOHTTP_DIR)\nanohttp-mime.c \
+ $(NANOHTTP_DIR)\nanohttp-request.c \
+ $(NANOHTTP_DIR)\nanohttp-response.c \
+ $(NANOHTTP_DIR)\nanohttp-server.c \
+ $(NANOHTTP_DIR)\nanohttp-socket.c \
+ $(NANOHTTP_DIR)\nanohttp-ssl.c \
+ $(NANOHTTP_DIR)\nanohttp-stream.c
+
+NANOHTTP_HEADER = $(addsuffix .h, $(basename $(NANOHTTP_SOURCE)))
+NANOHTTP_OBJECTS = $(addsuffix .o, $(basename $(NANOHTTP_SOURCE)))
+
+CC=gcc.exe
+AR=ar.exe
+INCLUDE=-I. -I../include -I../.. -I$(LIBXML2_DIR)/include -I$(ICONV_DIR)/include
+
+
+.c.o:
+ $(CC) -Wall $(INCLUDE) -DHAVE_CONFIG_H -c $? -o $(addsuffix .o, $(basename $?))
+
+all: nanohttp libsoap simpleclient simpleserver
+ echo OK
+
+nanohttp: $(NANOHTTP_OBJECTS)
+ $(AR) cru libnanohttp.a $?
+
+libsoap: $(LIBSOAP_OBJECTS)
+ $(AR) cru libsoap.a $?
+
+simpleclient: ../../examples/csoap/simpleclient.o
+ $(CC) -o simpleclient $? -L$(LIBXML2_DIR)/lib -L. -lsoap -lnanohttp -lxml2 -lws2_32
+
+simpleserver: ../../examples/csoap/simpleserver.o
+ $(CC) -o simpleserver $? -L$(LIBXML2_DIR)/lib -L. -lsoap -lnanohttp -lxml2 -lws2_32