- Timestamp:
- Oct 3, 2024, 2:54:55 PM (6 weeks ago)
- Location:
- trunk
- Files:
-
- 15 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Makefile
r217 r240 3 3 PWD = `pwd` 4 4 PLATFORM = generic 5 PLATFORM_IDENT = NOT_WINDOWS 5 6 PREFIX = /usr/local 6 7 MODULE = ./Module … … 24 25 25 26 ./Server:: ./Common ./Tool/option ./Tool/genconf ./Tool/itworks 26 $(MAKE) -C $@ $(FLAGS) EXTOBJS="`./Tool/option objs ../`" EXTLIBS="`./Tool/option libs ../ `" EXTCFLAGS="`./Tool/option cflags ../`" EXTLDFLAGS="`./Tool/option ldflags ../`"27 $(MAKE) -C $@ $(FLAGS) EXTOBJS="`./Tool/option objs ../`" EXTLIBS="`./Tool/option libs ../ $(PLATFORM_IDENT)`" EXTCFLAGS="`./Tool/option cflags ../`" EXTLDFLAGS="`./Tool/option ldflags ../`" 27 28 28 29 ./Module:: ./Common -
trunk/Platform/bcc.mk
r215 r240 3 3 PREFIX = C:/Tewi 4 4 5 PLATFORM_IDENT = WINDOWS 5 6 CC = ../bcc.sh 6 7 AR = tlib … … 9 10 CFLAGS = -g -std=c99 -DPREFIX=\"$(PREFIX)\" -I ../Common -fPIC 10 11 LDFLAGS = 11 LIBS = -lws2_3212 LIBS = 12 13 EXEC = 13 14 STATIC = lib -
trunk/Platform/vc6.mk
r215 r240 3 3 PREFIX = C:/Tewi 4 4 5 PLATFORM_IDENT = WINDOWS 5 6 CC = ../vc6.sh 6 7 AR = lib … … 8 9 CFLAGS = -g -std=c99 -DPREFIX=\"$(PREFIX)\" -I ../Common -fPIC 9 10 LDFLAGS = 10 LIBS = -l ws2_32 -ladvapi32 -llibcmt11 LIBS = -ladvapi32 -llibcmt 11 12 EXEC = 12 13 STATIC = lib -
trunk/Platform/watcom.mk
r220 r240 3 3 PREFIX = C:/Tewi 4 4 5 PLATFORM_IDENT = WINDOWS_WATCOM 5 6 CC = owcc 6 7 AR = wlib … … 8 9 CFLAGS = -b nt$(END) -I $(WATCOM)/h/nt -g -std=c99 -DPREFIX=\"$(PREFIX)\" -I ../Common -fPIC 9 10 LDFLAGS = -b nt$(END) 10 LIBS = ws2_32.lib11 LIBS = 11 12 EXEC = .exe 12 13 STATIC = lib -
trunk/Platform/win32-service.mk
r216 r240 3 3 PREFIX = C:/Tewi 4 4 5 PLATFORM_IDENT = WINDOWS 5 6 CC = i686-w64-mingw32-gcc 6 7 AR = i686-w64-mingw32-ar … … 8 9 CFLAGS = -g -std=c99 -DPREFIX=\"$(PREFIX)\" -I $(PWD)/Common -fPIC -DSERVICE -mwindows 9 10 LDFLAGS = -mwindows 10 LIBS = -lws2_3211 LIBS = 11 12 EXEC = .exe 12 13 LIBSUF = .dll -
trunk/Platform/win32.mk
r216 r240 3 3 PREFIX = C:/Tewi 4 4 5 PLATFORM_IDENT = WINDOWS 5 6 CC = i686-w64-mingw32-gcc 6 7 AR = i686-w64-mingw32-ar … … 8 9 CFLAGS = -g -std=c99 -DPREFIX=\"$(PREFIX)\" -I $(PWD)/Common -fPIC 9 10 LDFLAGS = 10 LIBS = -lws2_3211 LIBS = 11 12 EXEC = .exe 12 13 LIBSUF = .dll -
trunk/Platform/win64-service.mk
r216 r240 3 3 PREFIX = C:/Tewi 4 4 5 PLATFORM_IDENT = WINDOWS 5 6 CC = x86_64-w64-mingw32-gcc 6 7 AR = x86_64-w64-mingw32-ar … … 8 9 CFLAGS = -g -std=c99 -DPREFIX=\"$(PREFIX)\" -I $(PWD)/Common -fPIC -DSERVICE -mwindows 9 10 LDFLAGS = -mwindows 10 LIBS = -lws2_3211 LIBS = 11 12 EXEC = .exe 12 13 LIBSUF = .dll -
trunk/Platform/win64.mk
r216 r240 3 3 PREFIX = C:/Tewi 4 4 5 PLATFORM_IDENT = WINDOWS 5 6 CC = x86_64-w64-mingw32-gcc 6 7 AR = x86_64-w64-mingw32-ar … … 8 9 CFLAGS = -g -std=c99 -DPREFIX=\"$(PREFIX)\" -I $(PWD)/Common -fPIC 9 10 LDFLAGS = 10 LIBS = -lws2_3211 LIBS = 11 12 EXEC = .exe 12 13 LIBSUF = .dll -
trunk/Server/config.c
r215 r240 16 16 17 17 #if defined(__MINGW32__) || defined(_MSC_VER) || defined(__BORLANDC__) 18 #ifdef USE_WINSOCK1 19 #include <winsock.h> 20 #else 18 21 #include <winsock2.h> 22 #endif 19 23 #endif 20 24 -
trunk/Server/http.c
r219 r240 17 17 18 18 #if defined(__MINGW32__) || defined(_MSC_VER) || defined(__BORLANDC__) || defined(__WATCOMC__) 19 #ifdef USE_WINSOCK1 20 #include <winsock.h> 21 #else 19 22 #include <winsock2.h> 23 #endif 20 24 #else 21 25 #ifdef USE_POLL -
trunk/Server/server.c
r219 r240 38 38 #include <wspiapi.h> 39 39 #endif 40 #ifdef USE_WINSOCK1 41 #include <winsock.h> 42 #else 40 43 #include <winsock2.h> 44 #endif 41 45 #include <process.h> 42 46 #include <windows.h> … … 123 127 #if defined(__MINGW32__) || defined(_MSC_VER) || defined(__BORLANDC__) || defined(__WATCOMC__) 124 128 WSADATA wsa; 129 #ifdef USE_WINSOCK1 130 WSAStartup(MAKEWORD(1, 1), &wsa); 131 #else 125 132 WSAStartup(MAKEWORD(2, 0), &wsa); 133 #endif 126 134 #endif 127 135 for(i = 0; config.ports[i] != -1; i++) -
trunk/Server/tw_config.h
r219 r240 16 16 17 17 #if defined(__MINGW32__) || defined(_MSC_VER) || defined(__BORLANDC__) || defined(__WATCOMC__) 18 #ifdef USE_WINSOCK1 19 #include <winsock.h> 20 #else 18 21 #include <winsock2.h> 22 #endif 19 23 #define NO_IPV6 20 24 #else -
trunk/Tool/option.c
r168 r240 27 27 printf("-lssl -lcrypto"); 28 28 #endif 29 if(strcmp(argv[3], "WINDOWS") == 0){ 30 #ifdef USE_WINSOCK1 31 printf(" -lwsock32"); 32 #else 33 printf(" -lws2_32"); 34 #endif 35 }else if(strcmp(argv[3], "WINDOWS_WATCOM") == 0){ 36 #ifdef USE_WINSOCK1 37 printf(" wsock32.lib"); 38 #else 39 printf(" ws2_32.lib"); 40 #endif 41 } 29 42 } 30 43 printf("\n"); -
trunk/bcc.sh
r226 r240 32 32 options="$options -`echo "$i" | sed "s/^-//g"`" 33 33 elif [ "`echo "$i" | grep -Eo "^-l"`" = "-l" ]; then 34 libraries="$libraries `echo "$i" | sed "s/^-l//g"`.lib" 34 if [ ! "$i" = "-lwsock32" ]; then 35 libraries="$libraries `echo "$i" | sed "s/^-l//g"`.lib" 36 fi 35 37 elif [ "$dowhat" = "output" ]; then 36 38 dowhat="" -
trunk/config.h.tmpl
r219 r240 11 11 #define HAS_CHROOT 12 12 #undef NO_GETADDRINFO 13 #undef USE_WINSOCK1 13 14 14 15 /* DO NOT EDIT BELOW THIS LINE */ … … 21 22 #undef USE_POLL 22 23 /* Force select(2) for Windows */ 24 #endif 25 #if (defined(__MINGW32__) || defined(_MSC_VER) || defined(__BORLANDC__) || defined(__WATCOMC__)) && defined(USE_WINSOCK1) && !defined(NO_GETADDRINFO) 26 #define NO_GETADDRINFO 27 /* getaddrinfo is not on winsock 1 */ 23 28 #endif 24 29
Note:
See TracChangeset
for help on using the changeset viewer.