curl/lib
Viktor Szakats a8861b6ccd
Makefile.mk: portable Makefile.m32
Update bare GNU Make `Makefile.m32` to:

- Move objects into a subdirectory.
- Add support for MS-DOS. Tested with DJGPP.
- Add support for Watt-32 (on MS-DOS).
- Add support for AmigaOS.
- Rename `Makefile.m32` to `Makefile.mk`
- Replace `ARCH` with `TRIPLET`.
- Build `tool_hugehelp.c` proper (when tools are available).
- Drop MS-DOS compatibility macro `USE_ZLIB` (replaced by `HAVE_LIBZ`)
- Add support for `ZLIB_LIBS` to override `-lz`.
- Omit object files when building examples.
- Default `CC` to `gcc` once again, for convenience. (Caveat: compiler
  name `cc` cannot be set now.)
- Set `-DCURL_NO_OLDIES` for examples, like autotools does.
- Delete `makefile.dj` files. Notice the configuration details and
  defaults are not retained with the new method.
- Delete `makefile.amiga` files. A successful build needs a few custom
  options. We're also not retaining all build details from the existing
  Amiga make files.
- Rename `Makefile.m32` to `Makefile.mk` to reflect that they are not
  Windows/MinGW32-specific anymore.
- Add support for new `CFG` options: `-map`, `-debug`, `-trackmem`
- Set `-DNDEBUG` by default.
- Allow using `-DOS=...` in all `lib/config-*.h` headers, syncing this
  with `config-win32.h`.
- Look for zlib parts in `ZLIB_PATH/include` and `ZLIB_PATH/lib`
  instead of bare `ZLIB_PATH`.

Note that existing build configurations for MS-DOS and AmigaOS likely
become incompatible with this change.

Example AmigaOS configuration:
```
export CROSSPREFIX=/opt/amiga/bin/m68k-amigaos-
export CC=gcc
export CPPFLAGS='-DHAVE_PROTO_BSDSOCKET_H'
export CFLAGS='-mcrt=clib2'
export LDFLAGS="${CFLAGS}"
export LIBS='-lnet -lm'
make -C lib -f Makefile.mk
make -C src -f Makefile.mk
```

Example MS-DOS configuration:
```
export CROSSPREFIX=/opt/djgpp/bin/i586-pc-msdosdjgpp-
export WATT_PATH=/opt/djgpp/net/watt
export ZLIB_PATH=/opt/djgpp
export OPENSSL_PATH=/opt/djgpp
export OPENSSL_LIBS='-lssl -lcrypt'
export CFG=-zlib-ssl
make -C lib -f Makefile.mk
make -C src -f Makefile.mk
```

Closes #9764
2022-11-22 08:28:41 +00:00
..
vauth
vquic
vssh lib: parse numbers with fixed known base 10 2022-11-17 23:15:37 +01:00
vtls cfiler: filter types have flags indicating what they do 2022-11-22 08:20:38 +01:00
.checksrc
.gitattributes
.gitignore
altsvc.c
altsvc.h
amigaos.c
amigaos.h
arpa_telnet.h
asyn-ares.c
asyn-thread.c CURLOPT_QUICK_EXIT: don't wait for DNS thread on exit 2022-11-18 00:17:27 +01:00
asyn.h
base64.c
bufref.c
bufref.h
c-hyper.c hyper: classify headers as CONNECT and 1XX 2022-11-19 13:01:12 +01:00
c-hyper.h
cfilters.c cfiler: filter types have flags indicating what they do 2022-11-22 08:20:38 +01:00
cfilters.h cfiler: filter types have flags indicating what they do 2022-11-22 08:20:38 +01:00
CMakeLists.txt
config-amigaos.h Makefile.mk: portable Makefile.m32 2022-11-22 08:28:41 +00:00
config-dos.h Makefile.mk: portable Makefile.m32 2022-11-22 08:28:41 +00:00
config-mac.h Makefile.mk: portable Makefile.m32 2022-11-22 08:28:41 +00:00
config-os400.h Makefile.mk: portable Makefile.m32 2022-11-22 08:28:41 +00:00
config-plan9.h Makefile.mk: portable Makefile.m32 2022-11-22 08:28:41 +00:00
config-riscos.h Makefile.mk: portable Makefile.m32 2022-11-22 08:28:41 +00:00
config-win32.h Makefile.mk: portable Makefile.m32 2022-11-22 08:28:41 +00:00
config-win32ce.h Makefile.mk: portable Makefile.m32 2022-11-22 08:28:41 +00:00
conncache.c
conncache.h
connect.c cfiler: filter types have flags indicating what they do 2022-11-22 08:20:38 +01:00
connect.h lib: connection filters (cfilter) addition to curl: 2022-11-11 15:17:51 +01:00
content_encoding.c
content_encoding.h
cookie.c cookie: expire cookies at once when max-age is negative 2022-11-17 13:47:24 +01:00
cookie.h
curl_addrinfo.c
curl_addrinfo.h
curl_base64.h
curl_config.h.cmake
curl_ctype.h
curl_des.c
curl_des.h
curl_endian.c
curl_endian.h
curl_fnmatch.c
curl_fnmatch.h
curl_get_line.c
curl_get_line.h
curl_gethostname.c
curl_gethostname.h
curl_gssapi.c
curl_gssapi.h
curl_hmac.h
curl_krb5.h
curl_ldap.h
curl_md4.h
curl_md5.h
curl_memory.h
curl_memrchr.c
curl_memrchr.h
curl_multibyte.c
curl_multibyte.h
curl_ntlm_core.c ntlm: improve comment for encrypt_des 2022-11-16 11:26:22 +01:00
curl_ntlm_core.h
curl_ntlm_wb.c
curl_ntlm_wb.h
curl_path.c
curl_path.h
curl_printf.h
curl_range.c lib: parse numbers with fixed known base 10 2022-11-17 23:15:37 +01:00
curl_range.h
curl_rtmp.c
curl_rtmp.h
curl_sasl.c
curl_sasl.h
curl_setup_once.h
curl_setup.h Makefile.mk: portable Makefile.m32 2022-11-22 08:28:41 +00:00
curl_sha256.h
curl_sspi.c
curl_sspi.h
curl_threads.c
curl_threads.h
curlx.h
dict.c
dict.h
doh.c
doh.h
dynbuf.c
dynbuf.h
easy_lock.h
easy.c
easygetopt.c
easyif.h
easyoptions.c CURLOPT_QUICK_EXIT: don't wait for DNS thread on exit 2022-11-18 00:17:27 +01:00
easyoptions.h
escape.c
escape.h
file.c lib: remove bad set.opt_no_body assignments 2022-11-11 15:56:05 +01:00
file.h
fileinfo.c
fileinfo.h
fopen.c
fopen.h
formdata.c
formdata.h
ftp.c cfiler: filter types have flags indicating what they do 2022-11-22 08:20:38 +01:00
ftp.h
ftplistparser.c
ftplistparser.h
functypes.h
getenv.c
getinfo.c lib: connection filters (cfilter) addition to curl: 2022-11-11 15:17:51 +01:00
getinfo.h
gopher.c lib: connection filters (cfilter) addition to curl: 2022-11-11 15:17:51 +01:00
gopher.h
h2h3.c
h2h3.h
hash.c
hash.h
headers.c
headers.h
hmac.c
hostasyn.c
hostip4.c
hostip6.c
hostip.c
hostip.h
hostsyn.c
hsts.c
hsts.h
http2.c
http2.h
http_aws_sigv4.c
http_aws_sigv4.h
http_chunks.c
http_chunks.h
http_digest.c
http_digest.h
http_negotiate.c
http_negotiate.h
http_ntlm.c
http_ntlm.h
http_proxy.c cfiler: filter types have flags indicating what they do 2022-11-22 08:20:38 +01:00
http_proxy.h proxy: haproxy filter is only available when PROXY and HTTP are 2022-11-17 13:45:36 +01:00
http.c http: restore h3 to working condition after connection filter introduction 2022-11-19 00:00:27 +01:00
http.h
idn_win32.c
if2ip.c
if2ip.h
imap.c lib: remove bad set.opt_no_body assignments 2022-11-11 15:56:05 +01:00
imap.h
inet_ntop.c
inet_ntop.h
inet_pton.c
inet_pton.h
krb5.c sendf: change Curl_read_plain to wrap Curl_recv_plain (take 2) 2022-11-20 03:54:36 -05:00
ldap.c
libcurl.plist.in
libcurl.rc
libcurl.vers.in
llist.c
llist.h
Makefile.am Makefile.mk: portable Makefile.m32 2022-11-22 08:28:41 +00:00
Makefile.inc lib: connection filters (cfilter) addition to curl: 2022-11-11 15:17:51 +01:00
Makefile.mk Makefile.mk: portable Makefile.m32 2022-11-22 08:28:41 +00:00
md4.c
md5.c
memdebug.c
memdebug.h
mime.c
mime.h
mprintf.c
mqtt.c
mqtt.h
multi.c lib: connection filters (cfilter) addition to curl: 2022-11-11 15:17:51 +01:00
multihandle.h
multiif.h
netrc.c
netrc.h
nonblock.c
nonblock.h
noproxy.c
noproxy.h
openldap.c lib: connection filters (cfilter) addition to curl: 2022-11-11 15:17:51 +01:00
optiontable.pl
parsedate.c
parsedate.h
pingpong.c lib: connection filters (cfilter) addition to curl: 2022-11-11 15:17:51 +01:00
pingpong.h
pop3.c lib: remove bad set.opt_no_body assignments 2022-11-11 15:56:05 +01:00
pop3.h
progress.c
progress.h
psl.c
psl.h
quic.h
rand.c lib: connection filters (cfilter) addition to curl: 2022-11-11 15:17:51 +01:00
rand.h
rename.c
rename.h
rtsp.c lib: remove bad set.opt_no_body assignments 2022-11-11 15:56:05 +01:00
rtsp.h
select.c
select.h
sendf.c sendf: change Curl_read_plain to wrap Curl_recv_plain (take 2) 2022-11-20 03:54:36 -05:00
sendf.h sendf: change Curl_read_plain to wrap Curl_recv_plain (take 2) 2022-11-20 03:54:36 -05:00
setopt.c urldata: change port num storage to int and unsigned short 2022-11-18 23:54:38 +01:00
setopt.h
setup-os400.h
setup-vms.h
setup-win32.h
sha256.c
share.c
share.h
sigpipe.h
slist.c
slist.h
smb.c lib: connection filters (cfilter) addition to curl: 2022-11-11 15:17:51 +01:00
smb.h
smtp.c lib: remove bad set.opt_no_body assignments 2022-11-11 15:56:05 +01:00
smtp.h
sockaddr.h
socketpair.c
socketpair.h
socks_gssapi.c
socks_sspi.c
socks.c cfiler: filter types have flags indicating what they do 2022-11-22 08:20:38 +01:00
socks.h lib: connection filters (cfilter) addition to curl: 2022-11-11 15:17:51 +01:00
speedcheck.c
speedcheck.h
splay.c
splay.h
strcase.c
strcase.h
strdup.c
strdup.h
strerror.c
strerror.h
strtok.c
strtok.h
strtoofft.c lib: parse numbers with fixed known base 10 2022-11-17 23:15:37 +01:00
strtoofft.h
system_win32.c
system_win32.h
telnet.c lib: connection filters (cfilter) addition to curl: 2022-11-11 15:17:51 +01:00
telnet.h
tftp.c
tftp.h
timediff.c
timediff.h
timeval.c
timeval.h
transfer.c http: mark it 'this_is_a_follow' in the Location: logic 2022-11-12 00:12:46 +01:00
transfer.h
url.c url: move back the IDN conversion of proxy names 2022-11-18 08:22:05 +01:00
url.h lib: connection filters (cfilter) addition to curl: 2022-11-11 15:17:51 +01:00
urlapi-int.h
urlapi.c
urldata.h urldata: change port num storage to int and unsigned short 2022-11-18 23:54:38 +01:00
version_win32.c
version_win32.h
version.c version: add a feature names array to curl_version_info_data 2022-11-14 09:18:53 +01:00
warnless.c
warnless.h
wildcard.c
wildcard.h
ws.c Websocket: fixes for partial frames and buffer updates. 2022-11-12 00:51:24 +01:00
ws.h Websocket: fixes for partial frames and buffer updates. 2022-11-12 00:51:24 +01:00