diff options
Diffstat (limited to 'win32/MinGW')
-rw-r--r-- | win32/MinGW/Makefile | 68 | ||||
-rw-r--r-- | win32/MinGW/compile.bat | 2 | ||||
-rw-r--r-- | win32/MinGW/config.h | 195 | ||||
-rw-r--r-- | win32/MinGW/readme.txt | 1 |
4 files changed, 266 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
diff --git a/win32/MinGW/compile.bat b/win32/MinGW/compile.bat new file mode 100644 index 0000000..f0dffa3 --- /dev/null +++ b/win32/MinGW/compile.bat @@ -0,0 +1,2 @@ +set PATH=c:\MinGW\bin +mingw32-make diff --git a/win32/MinGW/config.h b/win32/MinGW/config.h new file mode 100644 index 0000000..057f7a1 --- /dev/null +++ b/win32/MinGW/config.h @@ -0,0 +1,195 @@ +/* config.h. Generated by configure. */ +/* config.h.in. Generated from configure.ac by autoheader. */ + +/* Define to 1 if you have the <arpa/inet.h> header file. */ +/* FA: */ +#undef HAVE_ARPA_INET_H + +/* Define to 1 if you have the <ctype.h> header file. */ +#define HAVE_CTYPE_H 1 + +/* Define to 1 if you have the <dlfcn.h> header file. */ +#define HAVE_DLFCN_H 1 + +/* Define to 1 if you don't have `vprintf' but do have `_doprnt.' */ +/* #undef HAVE_DOPRNT */ + +/* Define to 1 if you have the <errno.h> header file. */ +#define HAVE_ERRNO_H 1 + +/* Define to 1 if you have the <fcntl.h> header file. */ +#define HAVE_FCNTL_H 1 + +/* Define to 1 if you have the `gethostbyname' function. */ +#define HAVE_GETHOSTBYNAME 1 + +/* Define to 1 if you have the `inet_ntoa' function. */ +#define HAVE_INET_NTOA 1 + +/* Define to 1 if you have the <inttypes.h> header file. */ +#define HAVE_INTTYPES_H 1 + +/* Define to 1 if you have the <io.h> header file. */ +/* #undef HAVE_IO_H */ + +/* Define to 1 if you have the `localtime_r' function. */ +#define HAVE_LOCALTIME_R 1 + +/* Define to 1 if your system has a GNU libc compatible `malloc' function, and + to 0 otherwise. */ +#define HAVE_MALLOC 1 + +/* Define to 1 if you have the <malloc.h> header file. */ +#define HAVE_MALLOC_H 1 + +/* Define to 1 if you have the `memmove' function. */ +#define HAVE_MEMMOVE 1 + +/* Define to 1 if you have the <memory.h> header file. */ +#define HAVE_MEMORY_H 1 + +/* Define to 1 if you have the `memset' function. */ +#define HAVE_MEMSET 1 + +/* Define to 1 if you have the `mkdir' function. */ +#define HAVE_MKDIR 1 + +/* Define to 1 if you have the <netdb.h> header file. */ +/* FA: */ +#undef HAVE_NETDB_H + +/* Define to 1 if you have the <netinet/in.h> header file. */ +/* FA: */ +#undef HAVE_NETINET_IN_H + +/* Define to 1 if you have the <openssl/err.h> header file. */ +#define HAVE_OPENSSL_ERR_H 1 + +/* Define to 1 if you have the <openssl/rand.h> header file. */ +#define HAVE_OPENSSL_RAND_H 1 + +/* Define to 1 if you have the <pthread.h> header file. */ +/* FA: */ +#undef HAVE_PTHREAD_H + +/* Define to 1 if you have the `select' function. */ +#define HAVE_SELECT 1 + +/* Define to 1 if you have the <signal.h> header file. */ +#define HAVE_SIGNAL_H 1 + +/* Define to 1 if you have the `socket' function. */ +#define HAVE_SOCKET 1 + +/* Define to 1 if you have the <stdarg.h> header file. */ +#define HAVE_STDARG_H 1 + +/* Define to 1 if you have the <stdint.h> header file. */ +#define HAVE_STDINT_H 1 + +/* Define to 1 if you have the <stdio.h> header file. */ +#define HAVE_STDIO_H 1 + +/* Define to 1 if you have the <stdlib.h> header file. */ +#define HAVE_STDLIB_H 1 + +/* Define to 1 if you have the `strchr' function. */ +#define HAVE_STRCHR 1 + +/* Define to 1 if you have the `strdup' function. */ +#define HAVE_STRDUP 1 + +/* Define to 1 if you have the `strftime' function. */ +#define HAVE_STRFTIME 1 + +/* Define to 1 if you have the <strings.h> header file. */ +#define HAVE_STRINGS_H 1 + +/* Define to 1 if you have the <string.h> header file. */ +#define HAVE_STRING_H 1 + +/* Define to 1 if you have the `strncasecmp' function. */ +#define HAVE_STRNCASECMP 1 + +/* Define to 1 if you have the `strpbrk' function. */ +#define HAVE_STRPBRK 1 + +/* Define to 1 if you have the `strspn' function. */ +#define HAVE_STRSPN 1 + +/* Define to 1 if you have the `strstr' function. */ +#define HAVE_STRSTR 1 + +/* Define to 1 if you have the `strtol' function. */ +#define HAVE_STRTOL 1 + +/* Define to 1 if you have the <sys/select.h> header file. */ +/* FA: */ +#undef HAVE_SYS_SELECT_H + +/* Define to 1 if you have the <sys/socket.h> header file. */ +/* FA: */ +#undef HAVE_SYS_SOCKET_H + +/* Define to 1 if you have the <sys/stat.h> header file. */ +#define HAVE_SYS_STAT_H 1 + +/* Define to 1 if you have the <sys/time.h> header file. */ +#define HAVE_SYS_TIME_H 1 + +/* Define to 1 if you have the <sys/types.h> header file. */ +#define HAVE_SYS_TYPES_H 1 + +/* Define to 1 if you have the <unistd.h> header file. */ +#define HAVE_UNISTD_H 1 + +/* Define to 1 if you have the `vprintf' function. */ +#define HAVE_VPRINTF 1 + +/* Define to the address where bug reports for this package should be sent. */ +#define PACKAGE_BUGREPORT "" + +/* Define to the full name of this package. */ +#define PACKAGE_NAME "" + +/* Define to the full name and version of this package. */ +#define PACKAGE_STRING "" + +/* Define to the one symbol short name of this package. */ +#define PACKAGE_TARNAME "" + +/* Define to the version of this package. */ +#define PACKAGE_VERSION "" + +/* Define as the return type of signal handlers (`int' or `void'). */ +#define RETSIGTYPE void + +/* Define to the type of arg 1 for `select'. */ +#define SELECT_TYPE_ARG1 int + +/* Define to the type of args 2, 3 and 4 for `select'. */ +#define SELECT_TYPE_ARG234 (fd_set *) + +/* Define to the type of arg 5 for `select'. */ +#define SELECT_TYPE_ARG5 (struct timeval *) + +/* Define to 1 if you have the ANSI C header files. */ +#define STDC_HEADERS 1 + +/* Define to 1 if you can safely include both <sys/time.h> and <time.h>. */ +#define TIME_WITH_SYS_TIME 1 + +/* Define to 1 if your <sys/time.h> declares `struct tm'. */ +/* #undef TM_IN_SYS_TIME */ + +/* Define to empty if `const' does not conform to ANSI C. */ +/* #undef const */ + +/* Define to rpl_malloc if the replacement function should be used. */ +/* #undef malloc */ + +/* Define to `unsigned' if <sys/types.h> does not define. */ +/* #undef size_t */ + +/* Define to `int' if <sys/types.h> does not define. */ +/* #undef ssize_t */ diff --git a/win32/MinGW/readme.txt b/win32/MinGW/readme.txt new file mode 100644 index 0000000..78125fe --- /dev/null +++ b/win32/MinGW/readme.txt @@ -0,0 +1 @@ + wine wcmd /c compile.bat |