summaryrefslogtreecommitdiff
path: root/src/main.c
diff options
context:
space:
mode:
authorPaul Smith <psmith@gnu.org>2023-01-15 17:32:15 -0500
committerPaul Smith <psmith@gnu.org>2023-01-15 17:32:15 -0500
commitd4692df20de2db10c186d981ee04ce20487a79c3 (patch)
tree72ef52be87feb4d0cc96cc98010e364fce8c5518 /src/main.c
parente6bd61d949df4bde73d2f7c09d09df687c9283b2 (diff)
downloadmake-git-d4692df20de2db10c186d981ee04ce20487a79c3.tar.gz
Remove support for AmigaOS
There is a lot of specialized code for supporting AmigaOS and it has not been maintained for a number of years. It's highly unlikely that the latest versions even compile properly on AmigaOS anymore. After requesting that someone step forward to own the maintenance of the port in the GNU Make 4.4 release and getting no takers, I removed it. * NEWS: Announce the removal. * README.in: Remove README.Amiga reference. * README.Amiga: Remove unused file. * SCOPTIONS: Ditto. * src/amiga.c: Ditto. * src/amiga.h: Ditto. * src/config.ami: Ditto. * mk/Amiga.mk: Ditto. * Makefile.am: Remove references to deleted files. * Basic.mk.template: Ditto. * maintMakefile: Ditto. * src/commands.c: Remove ifdef'd Amiga code. * src/default.c: Ditto. * src/dir.c: Ditto. * src/file.c: Ditto. * src/function.c: Ditto. * src/job.c: Ditto. * src/job.h: Ditto. * src/main.c: Ditto. * src/os.h: Ditto. * src/read.c: Ditto. * src/remake.c: Ditto.
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c57
1 files changed, 2 insertions, 55 deletions
diff --git a/src/main.c b/src/main.c
index a9d3a644..5b9a141d 100644
--- a/src/main.c
+++ b/src/main.c
@@ -27,10 +27,6 @@ this program. If not, see <https://www.gnu.org/licenses/>. */
#include "shuffle.h"
#include <assert.h>
-#ifdef _AMIGA
-# include <dos/dos.h>
-# include <proto/dos.h>
-#endif
#ifdef WINDOWS32
# include <windows.h>
# include <io.h>
@@ -46,9 +42,6 @@ this program. If not, see <https://www.gnu.org/licenses/>. */
# include <fcntl.h>
#endif
-#ifdef _AMIGA
-int __stack = 20000; /* Make sure we have 20K of stack space */
-#endif
#ifdef VMS
int vms_use_mcr_command = 0;
int vms_always_use_cmd_file = 0;
@@ -1164,7 +1157,7 @@ temp_stdin_unlink ()
extern char **environ;
#endif
-#if defined(_AMIGA) || defined(MK_OS_ZOS)
+#if defined(MK_OS_ZOS)
int
main (int argc, char **argv)
#else
@@ -1486,7 +1479,6 @@ main (int argc, char **argv, char **envp)
char **envp = environ;
#endif
-#ifndef _AMIGA
{
unsigned int i;
@@ -1558,35 +1550,6 @@ main (int argc, char **argv, char **envp)
define_variable_cname ("PATH", windows32_path ? windows32_path : "",
o_env, 1)->export = v_export;
#endif
-#else /* For Amiga, read the ENV: device, ignoring all dirs */
- {
- BPTR env, file, old;
- char buffer[1024];
- int len;
- __aligned struct FileInfoBlock fib;
-
- env = Lock ("ENV:", ACCESS_READ);
- if (env)
- {
- old = CurrentDir (DupLock (env));
- Examine (env, &fib);
-
- while (ExNext (env, &fib))
- {
- if (fib.fib_DirEntryType < 0) /* File */
- {
- /* Define an empty variable. It will be filled in
- variable_lookup(). Makes startup quite a bit faster. */
- define_variable (fib.fib_FileName,
- strlen (fib.fib_FileName),
- "", o_env, 1)->export = v_export;
- }
- }
- UnLock (env);
- UnLock (CurrentDir (old));
- }
- }
-#endif
/* Decode the switches. */
if (lookup_variable (STRING_SIZE_TUPLE (GNUMAKEFLAGS_NAME)))
@@ -2729,7 +2692,6 @@ main (int argc, char **argv, char **envp)
fflush (stdout);
}
-#ifndef _AMIGA
{
char **p;
for (p = environ; *p != 0; ++p)
@@ -2751,18 +2713,6 @@ main (int argc, char **argv, char **envp)
}
}
}
-#else /* AMIGA */
- {
- char buffer[256];
-
- sprintf (buffer, "%u", makelevel);
- SetVar (MAKELEVEL_NAME, buffer, -1, GVF_GLOBAL_ONLY);
-
- sprintf (buffer, "%s%u", OUTPUT_IS_TRACED () ? "-" : "", restarts);
- SetVar ("MAKE_RESTARTS", buffer, -1, GVF_GLOBAL_ONLY);
- restarts = 0;
- }
-#endif
/* If we didn't set the restarts variable yet, add it. */
if (restarts)
@@ -2781,10 +2731,7 @@ main (int argc, char **argv, char **envp)
/* The exec'd "child" will be another make, of course. */
jobserver_pre_child(1);
-#ifdef _AMIGA
- exec_command (nargv);
- exit (0);
-#elif defined (__EMX__)
+#if defined (__EMX__)
{
/* It is not possible to use execve() here because this
would cause the parent process to be terminated with