Subversion Repositories Tewi

Rev

Rev 240 | Rev 249 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 240 Rev 244
Line 1... Line 1...
1
/* $Id: option.c 240 2024-10-03 05:54:55Z nishi $ */
1
/* $Id: option.c 244 2024-10-03 20:04:15Z nishi $ */
2
/* This file is not intended to be in the server. */
2
/* This file is not intended to be in the server. */
3
 
3
 
4
#include <stdio.h>
4
#include <stdio.h>
5
#include <string.h>
5
#include <string.h>
6
 
6
 
Line 12... Line 12...
12
	}
12
	}
13
	if(strcmp(argv[1], "cflags") == 0) {
13
	if(strcmp(argv[1], "cflags") == 0) {
14
#ifndef NO_SSL
14
#ifndef NO_SSL
15
		printf("-I %s/openssl/include", argv[2]);
15
		printf("-I %s/openssl/include", argv[2]);
16
#endif
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
	} else if(strcmp(argv[1], "ldflags") == 0) {
24
	} else if(strcmp(argv[1], "ldflags") == 0) {
18
#ifndef NO_SSL
25
#ifndef NO_SSL
19
		printf("-L %s/openssl/lib", argv[2]);
26
		printf("-L %s/openssl/lib", argv[2]);
20
#endif
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
	} else if(strcmp(argv[1], "objs") == 0) {
35
	} else if(strcmp(argv[1], "objs") == 0) {
22
#ifndef NO_SSL
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
#endif
43
#endif
25
	} else if(strcmp(argv[1], "libs") == 0) {
44
	} else if(strcmp(argv[1], "libs") == 0) {
26
#ifndef NO_SSL
45
#ifndef NO_SSL
27
		printf("-lssl -lcrypto");
46
		printf("-lssl -lcrypto");
28
#endif
47
#endif
Line 30... Line 49...
30
#ifdef USE_WINSOCK1
49
#ifdef USE_WINSOCK1
31
			printf(" -lwsock32");
50
			printf(" -lwsock32");
32
#else
51
#else
33
			printf(" -lws2_32");
52
			printf(" -lws2_32");
34
#endif
53
#endif
-
 
54
#ifdef BUILD_GUI
-
 
55
			printf(" -lcomctl32");
-
 
56
#endif
35
		}else if(strcmp(argv[3], "WINDOWS_WATCOM") == 0){
57
		}else if(strcmp(argv[3], "WINDOWS_WATCOM") == 0){
36
#ifdef USE_WINSOCK1
58
#ifdef USE_WINSOCK1
37
			printf(" wsock32.lib");
59
			printf(" wsock32.lib");
38
#else
60
#else
39
			printf(" ws2_32.lib");
61
			printf(" ws2_32.lib");
40
#endif
62
#endif
-
 
63
#ifdef BUILD_GUI
-
 
64
			printf(" comctl32.lib");
-
 
65
#endif
41
		}
66
		}
42
	}
67
	}
43
	printf("\n");
68
	printf("\n");
44
	return 0;
69
	return 0;
45
}
70
}