source: Main/trunk/Tool/option.c@ 161

Last change on this file since 161 was 128, checked in by Nishi, on Sep 23, 2024 at 7:19:19 PM

release 1.04

  • Property svn:keywords set to Id
File size: 603 bytes
Line 
1/* $Id: option.c 128 2024-09-23 10:19:19Z nishi $ */
2/* This file is not intended to be in the server. */
3
4#include <stdio.h>
5#include <string.h>
6
7#include "../config.h"
8
9int main(int argc, char** argv) {
10 if(argc < 3) {
11 return 1;
12 }
13 if(strcmp(argv[1], "cflags") == 0) {
14#ifndef NO_SSL
15 printf("-I %s/openssl/include", argv[2]);
16#endif
17 } else if(strcmp(argv[1], "ldflags") == 0) {
18#ifndef NO_SSL
19 printf("-L %s/openssl/lib", argv[2]);
20#endif
21 } else if(strcmp(argv[1], "objs") == 0) {
22#ifndef NO_SSL
23 printf("ssl.o");
24#endif
25 } else if(strcmp(argv[1], "libs") == 0) {
26#ifndef NO_SSL
27 printf("-lssl -lcrypto");
28#endif
29 }
30 printf("\n");
31}
Note: See TracBrowser for help on using the repository browser.