curl/src
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
..
.gitignore copyright: make repository REUSE compliant 2022-06-13 09:13:00 +02:00
CMakeLists.txt tool_hugehelp: make hugehelp a blank macro when disabled 2022-09-14 08:04:49 +02:00
curl.rc copyright: make repository REUSE compliant 2022-06-13 09:13:00 +02:00
Makefile.am Makefile.mk: portable Makefile.m32 2022-11-22 08:28:41 +00:00
Makefile.inc curl_ctype: convert to macros-only 2022-09-06 08:36:33 +02:00
Makefile.mk Makefile.mk: portable Makefile.m32 2022-11-22 08:28:41 +00:00
mkhelp.pl tool_hugehelp: make hugehelp a blank macro when disabled 2022-09-14 08:04:49 +02:00
slist_wc.c copyright: make repository REUSE compliant 2022-06-13 09:13:00 +02:00
slist_wc.h copyright: make repository REUSE compliant 2022-06-13 09:13:00 +02:00
tool_binmode.c copyright: make repository REUSE compliant 2022-06-13 09:13:00 +02:00
tool_binmode.h copyright: make repository REUSE compliant 2022-06-13 09:13:00 +02:00
tool_bname.c copyright: make repository REUSE compliant 2022-06-13 09:13:00 +02:00
tool_bname.h copyright: make repository REUSE compliant 2022-06-13 09:13:00 +02:00
tool_cb_dbg.c trace: 0x7F character is non-printable 2022-07-17 10:10:35 +00:00
tool_cb_dbg.h copyright: make repository REUSE compliant 2022-06-13 09:13:00 +02:00
tool_cb_hdr.c lib: add CURL_WRITEFUNC_ERROR to signal write callback error 2022-11-10 03:13:58 -05:00
tool_cb_hdr.h copyright: make repository REUSE compliant 2022-06-13 09:13:00 +02:00
tool_cb_prg.c copyright: make repository REUSE compliant 2022-06-13 09:13:00 +02:00
tool_cb_prg.h copyright: make repository REUSE compliant 2022-06-13 09:13:00 +02:00
tool_cb_rea.c curl: timeout in the read callback 2022-10-28 17:57:14 +02:00
tool_cb_rea.h copyright: make repository REUSE compliant 2022-06-13 09:13:00 +02:00
tool_cb_see.c copyright: make repository REUSE compliant 2022-06-13 09:13:00 +02:00
tool_cb_see.h copyright: make repository REUSE compliant 2022-06-13 09:13:00 +02:00
tool_cb_wrt.c lib: add CURL_WRITEFUNC_ERROR to signal write callback error 2022-11-10 03:13:58 -05:00
tool_cb_wrt.h copyright: make repository REUSE compliant 2022-06-13 09:13:00 +02:00
tool_cfgable.c curl: add --url-query 2022-11-08 14:37:34 +01:00
tool_cfgable.h curl: add --url-query 2022-11-08 14:37:34 +01:00
tool_dirhie.c copyright: make repository REUSE compliant 2022-06-13 09:13:00 +02:00
tool_dirhie.h copyright: make repository REUSE compliant 2022-06-13 09:13:00 +02:00
tool_doswin.c tool: use feature names instead of bit mask, when possible 2022-11-14 09:19:10 +01:00
tool_doswin.h copyright: make repository REUSE compliant 2022-06-13 09:13:00 +02:00
tool_easysrc.c copyright: make repository REUSE compliant 2022-06-13 09:13:00 +02:00
tool_easysrc.h tool_operate: avoid a few #ifdefs for disabled-libcurl builds 2022-09-13 10:28:50 +02:00
tool_filetime.c copyright: make repository REUSE compliant 2022-06-13 09:13:00 +02:00
tool_filetime.h copyright: make repository REUSE compliant 2022-06-13 09:13:00 +02:00
tool_findfile.c copyright: make repository REUSE compliant 2022-06-13 09:13:00 +02:00
tool_findfile.h copyright: make repository REUSE compliant 2022-06-13 09:13:00 +02:00
tool_formparse.c tool_formparse: unroll the NULL_CHECK and CONST_FREE macros 2022-10-14 11:50:28 +02:00
tool_formparse.h tool_formparse: unroll the NULL_CHECK and CONST_FREE macros 2022-10-14 11:50:28 +02:00
tool_getparam.c lib: parse numbers with fixed known base 10 2022-11-17 23:15:37 +01:00
tool_getparam.h getparam: correctly clean args 2022-08-31 01:03:36 +02:00
tool_getpass.c copyright: make repository REUSE compliant 2022-06-13 09:13:00 +02:00
tool_getpass.h copyright: make repository REUSE compliant 2022-06-13 09:13:00 +02:00
tool_help.c tool: use feature names instead of bit mask, when possible 2022-11-14 09:19:10 +01:00
tool_help.h copyright: make repository REUSE compliant 2022-06-13 09:13:00 +02:00
tool_helpers.c copyright: make repository REUSE compliant 2022-06-13 09:13:00 +02:00
tool_helpers.h copyright: make repository REUSE compliant 2022-06-13 09:13:00 +02:00
tool_hugehelp.c.cvs copyright: make repository REUSE compliant 2022-06-13 09:13:00 +02:00
tool_hugehelp.h tool_hugehelp: make hugehelp a blank macro when disabled 2022-09-14 08:04:49 +02:00
tool_libinfo.c tool: use feature names instead of bit mask, when possible 2022-11-14 09:19:10 +01:00
tool_libinfo.h tool: use feature names instead of bit mask, when possible 2022-11-14 09:19:10 +01:00
tool_listhelp.c curl: add --url-query 2022-11-08 14:37:34 +01:00
tool_main.c curl/main_checkfds: check the fcntl return code better 2022-10-12 23:51:15 +02:00
tool_main.h copyright: make repository REUSE compliant 2022-06-13 09:13:00 +02:00
tool_msgs.c misc: ISSPACE() => ISBLANK() 2022-09-06 08:34:30 +02:00
tool_msgs.h copyright: make repository REUSE compliant 2022-06-13 09:13:00 +02:00
tool_operate.c CURLOPT_QUICK_EXIT: don't wait for DNS thread on exit 2022-11-18 00:17:27 +01:00
tool_operate.h curl: timeout in the read callback 2022-10-28 17:57:14 +02:00
tool_operhlp.c tool_operate: more transfer cleanup after parallel transfer fail 2022-10-18 08:41:38 +02:00
tool_operhlp.h curl/add_file_name_to_url: use the libcurl URL parser 2022-10-10 22:39:41 +02:00
tool_panykey.c copyright: make repository REUSE compliant 2022-06-13 09:13:00 +02:00
tool_panykey.h copyright: make repository REUSE compliant 2022-06-13 09:13:00 +02:00
tool_paramhlp.c lib: parse numbers with fixed known base 10 2022-11-17 23:15:37 +01:00
tool_paramhlp.h curl: timeout in the read callback 2022-10-28 17:57:14 +02:00
tool_parsecfg.c getparam: correctly clean args 2022-08-31 01:03:36 +02:00
tool_parsecfg.h copyright: make repository REUSE compliant 2022-06-13 09:13:00 +02:00
tool_progress.c tool_progress: remove 'Qd' from the parallel progress bar 2022-08-31 15:58:15 +02:00
tool_progress.h copyright: make repository REUSE compliant 2022-06-13 09:13:00 +02:00
tool_sdecls.h curl: timeout in the read callback 2022-10-28 17:57:14 +02:00
tool_setopt.c misc: remove duplicated include files 2022-10-26 11:27:59 +02:00
tool_setopt.h cli tool: do not use disabled protocols 2022-09-16 23:29:08 +02:00
tool_setup.h copyright: make repository REUSE compliant 2022-06-13 09:13:00 +02:00
tool_sleep.c copyright: make repository REUSE compliant 2022-06-13 09:13:00 +02:00
tool_sleep.h copyright: make repository REUSE compliant 2022-06-13 09:13:00 +02:00
tool_strdup.c copyright: make repository REUSE compliant 2022-06-13 09:13:00 +02:00
tool_strdup.h copyright: make repository REUSE compliant 2022-06-13 09:13:00 +02:00
tool_urlglob.c misc: typo and grammar fixes 2022-10-27 10:01:30 +02:00
tool_urlglob.h copyright: make repository REUSE compliant 2022-06-13 09:13:00 +02:00
tool_util.c tool: remove protocol count limitation 2022-09-22 13:49:10 +02:00
tool_util.h tool: remove protocol count limitation 2022-09-22 13:49:10 +02:00
tool_version.h copyright: make repository REUSE compliant 2022-06-13 09:13:00 +02:00
tool_vms.c copyright: make repository REUSE compliant 2022-06-13 09:13:00 +02:00
tool_vms.h copyright: make repository REUSE compliant 2022-06-13 09:13:00 +02:00
tool_writeout_json.c copyright: make repository REUSE compliant 2022-06-13 09:13:00 +02:00
tool_writeout_json.h copyright: make repository REUSE compliant 2022-06-13 09:13:00 +02:00
tool_writeout.c tool_operate: reduce errorbuffer allocs 2022-09-01 09:25:00 +02:00
tool_writeout.h copyright: make repository REUSE compliant 2022-06-13 09:13:00 +02:00
tool_xattr.c test644: verify --xattr (with redirect) 2022-10-22 23:56:38 +02:00
tool_xattr.h test644: verify --xattr (with redirect) 2022-10-22 23:56:38 +02:00