Changeset 244 in Main
- Timestamp:
- Oct 4, 2024, 5:04:15 AM (6 weeks ago)
- Location:
- trunk
- Files:
-
- 5 added
- 11 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Makefile
r240 r244 6 6 PREFIX = /usr/local 7 7 MODULE = ./Module 8 OBJ = o 8 9 9 10 include Platform/$(PLATFORM).mk … … 25 26 26 27 ./Server:: ./Common ./Tool/option ./Tool/genconf ./Tool/itworks 27 $(MAKE) -C $@ $(FLAGS) EXTOBJS="`./Tool/option objs ../ `" EXTLIBS="`./Tool/option libs ../ $(PLATFORM_IDENT)`" EXTCFLAGS="`./Tool/option cflags ../`" EXTLDFLAGS="`./Tool/option ldflags ../`"28 $(MAKE) -C $@ $(FLAGS) EXTOBJS="`./Tool/option objs ../ $(PLATFORM_IDENT) $(OBJ)`" EXTLIBS="`./Tool/option libs ../ $(PLATFORM_IDENT) $(OBJ)`" EXTCFLAGS="`./Tool/option cflags ../ $(PLATFORM_IDENT) $(OBJ)`" EXTLDFLAGS="`./Tool/option ldflags ../ $(PLATFORM_IDENT) $(OBJ)`" 28 29 29 30 ./Module:: ./Common -
trunk/Platform/bcc.mk
r240 r244 15 15 LIBSUF = .dll 16 16 OBJ = obj 17 REQOBJS = tewi_bcc.res 17 REQOBJS = tewi_bcc.res gui_bcc.res -
trunk/Platform/vc6.mk
r240 r244 14 14 LIBSUF = .dll 15 15 OBJ = obj 16 PREOBJS = tewi_vc6.res 16 PREOBJS = tewi_vc6.res gui_vc6.res -
trunk/Platform/watcom.mk
r240 r244 14 14 LIBSUF = .dll 15 15 OBJ = obj 16 SERVADD = wrc -bt=nt -i=$(WATCOM)/h/nt -fe=tewi.exe tewi.rc16 SERVADD = wrc -bt=nt -i=$(WATCOM)/h/nt tewi.rc tewi.exe && wrc -bt=nt -i=$(WATCOM)/h/nt gui.rc tewi.exe -
trunk/Platform/win32.mk
r240 r244 12 12 EXEC = .exe 13 13 LIBSUF = .dll 14 PREOBJS = tewi.res 14 PREOBJS = tewi.res gui.res -
trunk/Platform/win64.mk
r240 r244 12 12 EXEC = .exe 13 13 LIBSUF = .dll 14 PREOBJS = tewi.res 14 PREOBJS = tewi.res gui.res -
trunk/Server/Makefile
r215 r244 55 55 brc32 -r -fo$@ tewi.rc 56 56 57 gui.res: gui.rc gui.h 58 $(WINDRES) gui.rc -O coff -o $@ 59 60 gui_vc6.res: gui.rc gui.h 61 rc /fo$@ gui.rc 62 63 gui_bcc.res: gui.rc gui.h 64 brc32 -r -fo$@ gui.rc 65 57 66 clean: 58 67 rm -f *.o tewi *.exe *.res *.elf *.sfo *.pbp *.self *.pkg *.obj -
trunk/Server/main.c
r219 r244 8 8 9 9 #pragma resource "tewi_bcc.res" 10 #pragma resource "gui_bcc.res" 10 11 11 12 #endif … … 31 32 #include "tw_version.h" 32 33 33 #if defined(__MINGW32__) || defined(_MSC_VER) || defined(__BORLANDC__) 34 #if defined(__MINGW32__) || defined(_MSC_VER) || defined(__BORLANDC__) || defined(__WATCOMC__) 34 35 #include <windows.h> 35 36 #endif … … 525 526 #endif 526 527 528 #if !defined(BUILD_GUI) || !(defined(__MINGW32__) || defined(_MSC_VER) || defined(__BORLANDC__) || defined(__WATCOMC__)) 527 529 int main(int argc, char** argv) { 528 530 int st; … … 705 707 return 0; 706 708 } 709 #endif 707 710 708 711 int startup(int argc, char** argv) { -
trunk/Server/tewi.rc
r128 r244 3 3 #include "../config.h" 4 4 5 idICON "../Binary/tewi.ico"5 TEWI ICON "../Binary/tewi.ico" 6 6 VS_VERSION_INFO VERSIONINFO 7 7 FILEVERSION 1,0,0,0 -
trunk/Tool/option.c
r240 r244 15 15 printf("-I %s/openssl/include", argv[2]); 16 16 #endif 17 #ifdef BUILD_GUI 18 if(strcmp(argv[3], "WINDOWS_WATCOM") == 0){ 19 printf(" -b nt_win"); 20 }else if(strcmp(argv[3], "WINDOWS") == 0){ 21 printf(" -mwindows"); 22 } 23 #endif 17 24 } else if(strcmp(argv[1], "ldflags") == 0) { 18 25 #ifndef NO_SSL 19 26 printf("-L %s/openssl/lib", argv[2]); 20 27 #endif 28 #ifdef BUILD_GUI 29 if(strcmp(argv[3], "WINDOWS_WATCOM") == 0){ 30 printf(" -b nt_win"); 31 }else if(strcmp(argv[3], "WINDOWS") == 0){ 32 printf(" -mwindows"); 33 } 34 #endif 21 35 } else if(strcmp(argv[1], "objs") == 0) { 22 36 #ifndef NO_SSL 23 printf("ssl.o"); 37 printf("ssl.%s", argv[4]); 38 #endif 39 #ifdef BUILD_GUI 40 if(strcmp(argv[3], "WINDOWS") == 0 || strcmp(argv[3], "WINDOWS_WATCOM") == 0){ 41 printf(" gui.%s", argv[4]); 42 } 24 43 #endif 25 44 } else if(strcmp(argv[1], "libs") == 0) { … … 33 52 printf(" -lws2_32"); 34 53 #endif 54 #ifdef BUILD_GUI 55 printf(" -lcomctl32"); 56 #endif 35 57 }else if(strcmp(argv[3], "WINDOWS_WATCOM") == 0){ 36 58 #ifdef USE_WINSOCK1 … … 39 61 printf(" ws2_32.lib"); 40 62 #endif 63 #ifdef BUILD_GUI 64 printf(" comctl32.lib"); 65 #endif 41 66 } 42 67 } -
trunk/config.h.tmpl
r240 r244 12 12 #undef NO_GETADDRINFO 13 13 #undef USE_WINSOCK1 14 #undef BUILD_GUI 14 15 15 16 /* DO NOT EDIT BELOW THIS LINE */ … … 23 24 /* Force select(2) for Windows */ 24 25 #endif 26 25 27 #if (defined(__MINGW32__) || defined(_MSC_VER) || defined(__BORLANDC__) || defined(__WATCOMC__)) && defined(USE_WINSOCK1) && !defined(NO_GETADDRINFO) 26 28 #define NO_GETADDRINFO
Note:
See TracChangeset
for help on using the changeset viewer.