From 7edb65a5bdfaff60f7bb29461edb4f61e32ff189 Mon Sep 17 00:00:00 2001 From: snowdrop Date: Fri, 24 Feb 2006 09:11:41 +0000 Subject: initial import --- win32/MinGW/Makefile | 68 +++++++++++++++++ win32/MinGW/compile.bat | 2 + win32/MinGW/config.h | 195 ++++++++++++++++++++++++++++++++++++++++++++++++ win32/MinGW/readme.txt | 1 + 4 files changed, 266 insertions(+) create mode 100644 win32/MinGW/Makefile create mode 100644 win32/MinGW/compile.bat create mode 100644 win32/MinGW/config.h create mode 100644 win32/MinGW/readme.txt (limited to 'win32') 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 header file. */ +/* FA: */ +#undef HAVE_ARPA_INET_H + +/* Define to 1 if you have the header file. */ +#define HAVE_CTYPE_H 1 + +/* Define to 1 if you have the 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 header file. */ +#define HAVE_ERRNO_H 1 + +/* Define to 1 if you have the 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 header file. */ +#define HAVE_INTTYPES_H 1 + +/* Define to 1 if you have the 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 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 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 header file. */ +/* FA: */ +#undef HAVE_NETDB_H + +/* Define to 1 if you have the header file. */ +/* FA: */ +#undef HAVE_NETINET_IN_H + +/* Define to 1 if you have the header file. */ +#define HAVE_OPENSSL_ERR_H 1 + +/* Define to 1 if you have the header file. */ +#define HAVE_OPENSSL_RAND_H 1 + +/* Define to 1 if you have the 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 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 header file. */ +#define HAVE_STDARG_H 1 + +/* Define to 1 if you have the header file. */ +#define HAVE_STDINT_H 1 + +/* Define to 1 if you have the header file. */ +#define HAVE_STDIO_H 1 + +/* Define to 1 if you have the 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 header file. */ +#define HAVE_STRINGS_H 1 + +/* Define to 1 if you have the 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 header file. */ +/* FA: */ +#undef HAVE_SYS_SELECT_H + +/* Define to 1 if you have the header file. */ +/* FA: */ +#undef HAVE_SYS_SOCKET_H + +/* Define to 1 if you have the header file. */ +#define HAVE_SYS_STAT_H 1 + +/* Define to 1 if you have the header file. */ +#define HAVE_SYS_TIME_H 1 + +/* Define to 1 if you have the header file. */ +#define HAVE_SYS_TYPES_H 1 + +/* Define to 1 if you have the 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 and . */ +#define TIME_WITH_SYS_TIME 1 + +/* Define to 1 if your 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 does not define. */ +/* #undef size_t */ + +/* Define to `int' if 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 -- cgit v1.1-32-gdbae