VirtualBox

source: vbox/trunk/src/libs/curl-7.83.1/Makefile.kmk@ 97078

Last change on this file since 97078 was 96407, checked in by vboxsync, 2 years ago

scm copyright and license note update

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id Revision
File size: 4.3 KB
Line 
1# $Id: Makefile.kmk 96407 2022-08-22 17:43:14Z vboxsync $
2## @file
3# Sub-Makefile for the libcurl library.
4#
5
6#
7# Copyright (C) 2009-2022 Oracle and/or its affiliates.
8#
9# This file is part of VirtualBox base platform packages, as
10# available from https://www.virtualbox.org.
11#
12# This program is free software; you can redistribute it and/or
13# modify it under the terms of the GNU General Public License
14# as published by the Free Software Foundation, in version 3 of the
15# License.
16#
17# This program is distributed in the hope that it will be useful, but
18# WITHOUT ANY WARRANTY; without even the implied warranty of
19# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
20# General Public License for more details.
21#
22# You should have received a copy of the GNU General Public License
23# along with this program; if not, see <https://www.gnu.org/licenses>.
24#
25# SPDX-License-Identifier: GPL-3.0-only
26#
27
28SUB_DEPTH = ../../..
29include $(KBUILD_PATH)/subheader.kmk
30
31VBOX_PATH_LIBCURL = $(PATH_ROOT)/src/libs/curl-7.83.1
32
33LIBRARIES += VBox-libcurl
34VBox-libcurl_TEMPLATE = VBoxR3RuntimeDllNonPedantic
35VBox-libcurl_SDKS = VBOX_ZLIB VBOX_OPENSSL
36VBox-libcurl_DEFS = \
37 IN_RT_R3 \
38 CURL_STATICLIB \
39 OPENSSL_NO_ENGINE \
40 BUILDING_LIBCURL \
41 HAVE_CONFIG_H \
42 CURL_DISABLE_ALTSVC \
43 CURL_DISABLE_GOPHER \
44 CURL_DISABLE_FILE \
45 CURL_DISABLE_DICT \
46 CURL_DISABLE_HSTS \
47 CURL_DISABLE_IMAP \
48 CURL_DISABLE_MQTT \
49 CURL_DISABLE_NTLM \
50 CURL_DISABLE_POP3 \
51 CURL_DISABLE_RTSP \
52 CURL_DISABLE_SMTP \
53 CURL_DISABLE_TELNET
54VBox-libcurl_DEPS = $(VBox-libcurl_0_OUTDIR)/lib/curl_config.h
55VBox-libcurl_CLEAN = $(VBox-libcurl_DEPS)
56VBox-libcurl_CFLAGS.win += -wd4826 # formdata.c(390) : warning C4826: Conversion from 'char *' to 'curl_off_t' is sign-extended. This may cause unexpected runtime behavior.
57VBox-libcurl_CFLAGS.win += -wd4310 # warnless.c(189) : warning C4310: cast truncates constant value
58VBox-libcurl_CFLAGS.win += -wd4090 # openssl/lhash.h(198) : warning C4090: 'function' : different 'const' qualifiers
59if "$(VBOX_VCC_TOOL_STEM)" >= "VCC140"
60 VBox-libcurl_CFLAGS.win += -wd4774 # mprintf.c(949): warning C4774: 'sprintf' : format string expected in argument 2 is not a string literal
61endif
62VBox-libcurl_INCS = include $(VBox-libcurl_0_OUTDIR)/lib $(VBOX_PATH_LIBCURL)/lib
63VBox-libcurl_SOURCES = \
64 lib/base64.c \
65 lib/bufref.c \
66 lib/conncache.c \
67 lib/connect.c \
68 lib/content_encoding.c \
69 lib/cookie.c \
70 lib/curl_addrinfo.c \
71 lib/curl_ctype.c \
72 lib/curl_get_line.c \
73 lib/curl_fnmatch.c \
74 lib/curl_memrchr.c \
75 lib/curl_sasl.c \
76 lib/curl_range.c \
77 lib/doh.c \
78 lib/dotdot.c \
79 lib/dynbuf.c \
80 lib/easy.c \
81 lib/escape.c \
82 lib/fileinfo.c \
83 lib/formdata.c \
84 lib/ftp.c \
85 lib/ftplistparser.c \
86 lib/getenv.c \
87 lib/getinfo.c \
88 lib/hash.c \
89 lib/hmac.c \
90 lib/hostip.c \
91 lib/hostip4.c \
92 lib/hostip6.c \
93 lib/hostsyn.c \
94 lib/http.c \
95 lib/http_aws_sigv4.c \
96 lib/http_chunks.c \
97 lib/http_digest.c \
98 lib/http_proxy.c \
99 lib/if2ip.c \
100 lib/inet_ntop.c \
101 lib/inet_pton.c \
102 lib/llist.c \
103 lib/md5.c \
104 lib/mime.c \
105 lib/mprintf.c \
106 lib/multi.c \
107 lib/netrc.c \
108 lib/nonblock.c \
109 lib/parsedate.c \
110 lib/pingpong.c \
111 lib/progress.c \
112 lib/rand.c \
113 lib/rename.c \
114 lib/select.c \
115 lib/sendf.c \
116 lib/setopt.c \
117 lib/sha256.c \
118 lib/share.c \
119 lib/slist.c \
120 lib/socketpair.c \
121 lib/socks.c \
122 lib/speedcheck.c \
123 lib/splay.c \
124 lib/strcase.c \
125 lib/strdup.c \
126 lib/strerror.c \
127 lib/strtok.c \
128 lib/strtoofft.c \
129 lib/tftp.c \
130 lib/timediff.c \
131 lib/timeval.c \
132 lib/transfer.c \
133 lib/url.c \
134 lib/urlapi.c \
135 lib/vtls/openssl.c \
136 lib/vtls/vtls.c \
137 lib/warnless.c \
138 lib/wildcard.c \
139 lib/version.c \
140 lib/vauth/digest.c \
141 lib/vauth/vauth.c \
142 lib/vtls/hostcheck.c \
143 lib/vtls/keylog.c
144VBox-libcurl_SOURCES.win = \
145 lib/curl_multibyte.c \
146 lib/system_win32.c \
147 lib/version_win32.c
148
149ifdef VBOX_WITH_32_ON_64_MAIN_API # 32-bit edition.
150 LIBRARIES += VBox-libcurl-x86
151 VBox-libcurl-x86_TEMPLATE = VBoxR3DllNonPedantic-x86
152 VBox-libcurl-x86_EXTENDS = VBox-libcurl
153endif
154
155include $(FILE_KBUILD_SUB_FOOTER)
156
157#
158# Use checked in config.h instead of running ./configure for it.
159#
160libcurl_config.h.$(KBUILD_TARGET).$(KBUILD_TARGET_ARCH) := $(VBOX_PATH_LIBCURL)/config.h.$(KBUILD_TARGET).$(KBUILD_TARGET_ARCH)
161
162$$(VBox-libcurl_0_OUTDIR)/lib/curl_config.h: $(libcurl_config.h.$(KBUILD_TARGET).$(KBUILD_TARGET_ARCH)) | $$(dir $$@)
163 $(CP) -f $^ $@
164
Note: See TracBrowser for help on using the repository browser.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette