summaryrefslogtreecommitdiff
path: root/dmake/msdos/zortech
diff options
context:
space:
mode:
Diffstat (limited to 'dmake/msdos/zortech')
-rw-r--r--dmake/msdos/zortech/config.h52
-rw-r--r--dmake/msdos/zortech/config.mk73
-rw-r--r--dmake/msdos/zortech/environ.c59
-rw-r--r--dmake/msdos/zortech/lib.rsp1
-rw-r--r--dmake/msdos/zortech/libswp.rsp1
-rwxr-xr-xdmake/msdos/zortech/mkswp.bat36
-rw-r--r--dmake/msdos/zortech/obj.rsp34
-rw-r--r--dmake/msdos/zortech/objswp.rsp35
-rw-r--r--dmake/msdos/zortech/public.h169
-rw-r--r--dmake/msdos/zortech/startup.mk153
-rw-r--r--dmake/msdos/zortech/tempnam.c106
11 files changed, 0 insertions, 719 deletions
diff --git a/dmake/msdos/zortech/config.h b/dmake/msdos/zortech/config.h
deleted file mode 100644
index dabc8b014fe6..000000000000
--- a/dmake/msdos/zortech/config.h
+++ /dev/null
@@ -1,52 +0,0 @@
-/* RCS $Id: config.h,v 1.2 2008-03-05 18:37:45 kz Exp $
---
--- SYNOPSIS
--- Configurarion include file.
---
--- DESCRIPTION
--- There is one of these for each specific machine configuration.
--- It can be used to further tweek the machine specific sources
--- so that they compile.
---
--- AUTHOR
--- Dennis Vadura, dvadura@dmake.wticorp.com
---
--- WWW
--- http://dmake.wticorp.com/
---
--- COPYRIGHT
--- Copyright (c) 1996,1997 by WTI Corp. All rights reserved.
---
--- This program is NOT free software; you can redistribute it and/or
--- modify it under the terms of the Software License Agreement Provided
--- in the file <distribution-root>/readme/license.txt.
---
--- LOG
--- Use cvs log to obtain detailed change logs.
-*/
-
-/* in sysintf.c: SIGQUIT is used, this is not defined in ZTC */
-#ifndef SIGQUIT
-# define SIGQUIT SIGTERM
-#endif
-
-/* in sysintf.c: tzset is not supported by ZTC */
-#define tzset()
-
-/* ZTC uses it's own swapping spawn. */
-#define spawnvpe(a,b,c,d) spawnvp(a,b,c)
-
-#ifndef CONST
-# define CONST const
-#endif
-
-#ifndef MSDOS
-# define MSDOS 1
-#endif
-
-extern unsigned _psp;
-
-/* a small problem with pointer to voids on some unix machines needs this */
-#define DMPVOID void *
-
-#include <io.h>
diff --git a/dmake/msdos/zortech/config.mk b/dmake/msdos/zortech/config.mk
deleted file mode 100644
index e947dc87620b..000000000000
--- a/dmake/msdos/zortech/config.mk
+++ /dev/null
@@ -1,73 +0,0 @@
-# This is the ZTC DOS configuration file for DMAKE
-# It simply modifies the values of SRC, and checks to see if
-# OSENVIRONMENT is defined. If so it includes the appropriate
-# config.mk file.
-#
-# It also sets the values of .SOURCE.c and .SOURCE.h to include the local
-# directory.
-#
-osrdir := $(OS)$(DIRSEPSTR)$(OSRELEASE)
-
-TMPDIR :=
-.EXPORT : TMPDIR
-
-# Definition of macros for library, and C startup code.
-# Swapping for DOS versions is enabled by default. ZTC will automatically
-# perform swapping to XMS, EMS or disk by including _swapl.obj at link time.
-# To be most effective, _swapl.obj should be the first file linked so we
-# assign it to CSTARTUP if needed.
-.IF $(SWAP) == y
- CSTARTUP = _swapl.obj
-.END
-
-# The following sources are required for ZTC
-# The tempnam supplied with ZTC doesn't handle a NULL dir.
-OSR_SRC = tempnam.c environ.c
-.SETDIR=$(osrdir) : $(OSR_SRC)
-
-SRC += $(OSR_SRC)
-.SOURCE.h : $(osrdir)
-
-# Local configuration modifications for CFLAGS
-# If you have a 286, you can use -2 or appropriate to get better code,
-# in that case uncomment the line below. (You can also simply set
-# it in the CL environment variable.)
-#CFLAGS += -2
-ASFLAGS += -t -mx $(S_$(MODEL))
-
-# Redefine this, it isn't needed!
-LDTAIL = ;
-
-# Debugging libraries
-DB_LDFLAGS += -g
-DB_LDLIBS +=
-
-# NO Debug ZTC flags:
-#
-
-CFLAGS += -I$(osrdir) $(C_$(MODEL))
-CFLAGS += -DM_I86=1 -DMSDOS
-CFLAGS += -b # use large compiler
-#CFLAGS += -w # no warnings
-CFLAGS += -mi # integer only
-CFLAGS += -p # no auto-prototyping
-NDB_CFLAGS += -o
-DB_CFLAGS += -g
-
-# Redefine rule for making our objects, we don't need mv
-%$O : %.c ;% $(CC) -c $(CFLAGS) -o$@ $<
-
-# See if we modify anything in the lower levels.
-.IF $(OSENVIRONMENT) != $(NULL)
- .INCLUDE .IGNORE : $(osrdir)$(DIRSEPSTR)$(OSENVIRONMENT)$(DIRSEPSTR)config.mk
-.END
-
-C_s =
-C_m = -mM
-C_c = -mC
-C_l = -mL
-
-S_s = -Dmsmall
-S_m = -Dmmedium
-S_c = -Dmcompact
-S_l = -Dmlarge
diff --git a/dmake/msdos/zortech/environ.c b/dmake/msdos/zortech/environ.c
deleted file mode 100644
index c76d9a4831a6..000000000000
--- a/dmake/msdos/zortech/environ.c
+++ /dev/null
@@ -1,59 +0,0 @@
-/* RCS $Id: environ.c,v 1.1.1.1 2000-09-22 15:33:29 hr Exp $
---
--- SYNOPSIS
--- environment routines.
---
--- DESCRIPTION
--- Someone thought that Zortech needs this.
---
--- AUTHOR
--- Dennis Vadura, dvadura@dmake.wticorp.com
---
--- WWW
--- http://dmake.wticorp.com/
---
--- COPYRIGHT
--- Copyright (c) 1996,1997 by WTI Corp. All rights reserved.
---
--- This program is NOT free software; you can redistribute it and/or
--- modify it under the terms of the Software License Agreement Provided
--- in the file <distribution-root>/readme/license.txt.
---
--- LOG
--- Use cvs log to obtain detailed change logs.
-*/
-/*LINTLIBRARY*/
-#include <stdio.h>
-#include <string.h>
-#include <stdlib.h>
-#include "alloc.h"
-
-/* ZTC++ doesn't have environ, so we have to create one. */
-
-extern char *_envptr;
-char **environ = { NULL };
-
-void
-make_env()
-{
- int i;
- char *cp;
-
- for (i = 0, cp = _envptr; *cp; i++, cp += strlen(cp)+1)
- ;
-
- TALLOC(environ, i+1, char*);
-
- for (i = 0, cp = _envptr; *cp; i++, cp += strlen(cp)+1)
- environ[i] = cp;
-
- return;
-}
-
-void
-free_env()
-{
- FREE(environ);
-
- return;
-}
diff --git a/dmake/msdos/zortech/lib.rsp b/dmake/msdos/zortech/lib.rsp
deleted file mode 100644
index 8b137891791f..000000000000
--- a/dmake/msdos/zortech/lib.rsp
+++ /dev/null
@@ -1 +0,0 @@
-
diff --git a/dmake/msdos/zortech/libswp.rsp b/dmake/msdos/zortech/libswp.rsp
deleted file mode 100644
index 8b137891791f..000000000000
--- a/dmake/msdos/zortech/libswp.rsp
+++ /dev/null
@@ -1 +0,0 @@
-
diff --git a/dmake/msdos/zortech/mkswp.bat b/dmake/msdos/zortech/mkswp.bat
deleted file mode 100755
index 60c12d37217e..000000000000
--- a/dmake/msdos/zortech/mkswp.bat
+++ /dev/null
@@ -1,36 +0,0 @@
-md objects
-ztc -c -I. -Imsdos -Imsdos\zortech -mL -DM_I86=1 -DMSDOS -b -mi -p -o -oobjects\infer.obj infer.c
-ztc -c -I. -Imsdos -Imsdos\zortech -mL -DM_I86=1 -DMSDOS -b -mi -p -o -oobjects\make.obj make.c
-ztc -c -I. -Imsdos -Imsdos\zortech -mL -DM_I86=1 -DMSDOS -b -mi -p -o -oobjects\stat.obj stat.c
-ztc -c -I. -Imsdos -Imsdos\zortech -mL -DM_I86=1 -DMSDOS -b -mi -p -o -oobjects\expand.obj expand.c
-ztc -c -I. -Imsdos -Imsdos\zortech -mL -DM_I86=1 -DMSDOS -b -mi -p -o -oobjects\dmstring.obj dmstring.c
-ztc -c -I. -Imsdos -Imsdos\zortech -mL -DM_I86=1 -DMSDOS -b -mi -p -o -oobjects\hash.obj hash.c
-ztc -c -I. -Imsdos -Imsdos\zortech -mL -DM_I86=1 -DMSDOS -b -mi -p -o -oobjects\dag.obj dag.c
-ztc -c -I. -Imsdos -Imsdos\zortech -mL -DM_I86=1 -DMSDOS -b -mi -p -o -oobjects\dmake.obj dmake.c
-ztc -c -I. -Imsdos -Imsdos\zortech -mL -DM_I86=1 -DMSDOS -b -mi -p -o -oobjects\path.obj path.c
-ztc -c -I. -Imsdos -Imsdos\zortech -mL -DM_I86=1 -DMSDOS -b -mi -p -o -oobjects\imacs.obj imacs.c
-ztc -c -I. -Imsdos -Imsdos\zortech -mL -DM_I86=1 -DMSDOS -b -mi -p -o -oobjects\sysintf.obj sysintf.c
-ztc -c -I. -Imsdos -Imsdos\zortech -mL -DM_I86=1 -DMSDOS -b -mi -p -o -oobjects\parse.obj parse.c
-ztc -c -I. -Imsdos -Imsdos\zortech -mL -DM_I86=1 -DMSDOS -b -mi -p -o -oobjects\getinp.obj getinp.c
-ztc -c -I. -Imsdos -Imsdos\zortech -mL -DM_I86=1 -DMSDOS -b -mi -p -o -oobjects\quit.obj quit.c
-ztc -c -I. -Imsdos -Imsdos\zortech -mL -DM_I86=1 -DMSDOS -b -mi -p -o -oobjects\state.obj state.c
-ztc -c -I. -Imsdos -Imsdos\zortech -mL -DM_I86=1 -DMSDOS -b -mi -p -o -oobjects\dmdump.obj dmdump.c
-ztc -c -I. -Imsdos -Imsdos\zortech -mL -DM_I86=1 -DMSDOS -b -mi -p -o -oobjects\macparse.obj macparse.c
-ztc -c -I. -Imsdos -Imsdos\zortech -mL -DM_I86=1 -DMSDOS -b -mi -p -o -oobjects\rulparse.obj rulparse.c
-ztc -c -I. -Imsdos -Imsdos\zortech -mL -DM_I86=1 -DMSDOS -b -mi -p -o -oobjects\percent.obj percent.c
-ztc -c -I. -Imsdos -Imsdos\zortech -mL -DM_I86=1 -DMSDOS -b -mi -p -o -oobjects\function.obj function.c
-ztc -c -I. -Imsdos -Imsdos\zortech -mL -DM_I86=1 -DMSDOS -b -mi -p -o -oobjects\ruletab.obj msdos\ruletab.c
-ztc -c -I. -Imsdos -Imsdos\zortech -mL -DM_I86=1 -DMSDOS -b -mi -p -o -oobjects\dirbrk.obj msdos\dirbrk.c
-ztc -c -I. -Imsdos -Imsdos\zortech -mL -DM_I86=1 -DMSDOS -b -mi -p -o -oobjects\runargv.obj msdos\runargv.c
-ztc -c -I. -Imsdos -Imsdos\zortech -mL -DM_I86=1 -DMSDOS -b -mi -p -o -oobjects\arlib.obj msdos\arlib.c
-ztc -c -I. -Imsdos -Imsdos\zortech -mL -DM_I86=1 -DMSDOS -b -mi -p -o -oobjects\dchdir.obj msdos\dchdir.c
-ztc -c -I. -Imsdos -Imsdos\zortech -mL -DM_I86=1 -DMSDOS -b -mi -p -o -oobjects\switchar.obj msdos\switchar.c
-ztc -c -I. -Imsdos -Imsdos\zortech -mL -DM_I86=1 -DMSDOS -b -mi -p -o -oobjects\rmprq.obj msdos\rmprq.c
-ztc -c -I. -Imsdos -Imsdos\zortech -mL -DM_I86=1 -DMSDOS -b -mi -p -o -oobjects\tee.obj msdos\tee.c
-ztc -c -I. -Imsdos -Imsdos\zortech -mL -DM_I86=1 -DMSDOS -b -mi -p -o -oobjects\find.obj msdos\find.c
-ztc -c -I. -Imsdos -Imsdos\zortech -mL -DM_I86=1 -DMSDOS -b -mi -p -o -oobjects\dirlib.obj msdos\dirlib.c
-ztc -c -I. -Imsdos -Imsdos\zortech -mL -DM_I86=1 -DMSDOS -b -mi -p -o -oobjects\dstrlwr.obj msdos\dstrlwr.c
-ztc -c -I. -Imsdos -Imsdos\zortech -mL -DM_I86=1 -DMSDOS -b -mi -p -o -oobjects\dcache.obj unix\dcache.c
-ztc -c -I. -Imsdos -Imsdos\zortech -mL -DM_I86=1 -DMSDOS -b -mi -p -o -oobjects\tempnam.obj msdos\zortech\tempnam.c
-ztc -c -I. -Imsdos -Imsdos\zortech -mL -DM_I86=1 -DMSDOS -b -mi -p -o -oobjects\environ.obj msdos\zortech\environ.c
-blink @msdos\zortech\objswp.rsp,dmake.exe,NUL.MAP;
diff --git a/dmake/msdos/zortech/obj.rsp b/dmake/msdos/zortech/obj.rsp
deleted file mode 100644
index c97a42f9f0aa..000000000000
--- a/dmake/msdos/zortech/obj.rsp
+++ /dev/null
@@ -1,34 +0,0 @@
-objects\infer.obj+
-objects\make.obj+
-objects\stat.obj+
-objects\expand.obj+
-objects\dmstring.obj+
-objects\hash.obj+
-objects\dag.obj+
-objects\dmake.obj+
-objects\path.obj+
-objects\imacs.obj+
-objects\sysintf.obj+
-objects\parse.obj+
-objects\getinp.obj+
-objects\quit.obj+
-objects\state.obj+
-objects\dmdump.obj+
-objects\macparse.obj+
-objects\rulparse.obj+
-objects\percent.obj+
-objects\function.obj+
-objects\ruletab.obj+
-objects\dirbrk.obj+
-objects\runargv.obj+
-objects\arlib.obj+
-objects\dchdir.obj+
-objects\switchar.obj+
-objects\rmprq.obj+
-objects\tee.obj+
-objects\find.obj+
-objects\dirlib.obj+
-objects\dstrlwr.obj+
-objects\dcache.obj+
-objects\tempnam.obj+
-objects\environ.obj
diff --git a/dmake/msdos/zortech/objswp.rsp b/dmake/msdos/zortech/objswp.rsp
deleted file mode 100644
index 60a33c4eb523..000000000000
--- a/dmake/msdos/zortech/objswp.rsp
+++ /dev/null
@@ -1,35 +0,0 @@
-_swapl.obj+
-objects\infer.obj+
-objects\make.obj+
-objects\stat.obj+
-objects\expand.obj+
-objects\dmstring.obj+
-objects\hash.obj+
-objects\dag.obj+
-objects\dmake.obj+
-objects\path.obj+
-objects\imacs.obj+
-objects\sysintf.obj+
-objects\parse.obj+
-objects\getinp.obj+
-objects\quit.obj+
-objects\state.obj+
-objects\dmdump.obj+
-objects\macparse.obj+
-objects\rulparse.obj+
-objects\percent.obj+
-objects\function.obj+
-objects\ruletab.obj+
-objects\dirbrk.obj+
-objects\runargv.obj+
-objects\arlib.obj+
-objects\dchdir.obj+
-objects\switchar.obj+
-objects\rmprq.obj+
-objects\tee.obj+
-objects\find.obj+
-objects\dirlib.obj+
-objects\dstrlwr.obj+
-objects\dcache.obj+
-objects\tempnam.obj+
-objects\environ.obj
diff --git a/dmake/msdos/zortech/public.h b/dmake/msdos/zortech/public.h
deleted file mode 100644
index 6265caa0ce3b..000000000000
--- a/dmake/msdos/zortech/public.h
+++ /dev/null
@@ -1,169 +0,0 @@
-/* RCS $Id: public.h,v 1.9 2007-10-15 15:45:09 ihi Exp $
--- WARNING -- This file is AUTOMATICALLY GENERATED DO NOT EDIT IT
---
---
--- SYNOPSIS
--- Local functions exported to be visible by others.
---
--- DESCRIPTION
--- This file is generated by 'genpub'. Function declarations
--- that appear in this file are extracted by 'genpub' from
--- source files. Any function in the source file whose definition
--- appears like:
---
--- PUBLIC return_type
--- function( arg_list );
--- type_expr1 arg1;
--- ...
---
--- has its definition extracted and a line of the form:
---
--- return_type function ANSI((type_expr1,type_expr2,...));
---
--- entered into the output file.
---
--- AUTHOR
--- Dennis Vadura, dvadura@dmake.wticorp.com
---
--- WWW
--- http://dmake.wticorp.com/
---
--- COPYRIGHT
--- Copyright (c) 1996,1997 by WTI Corp. All rights reserved.
---
--- This program is NOT free software; you can redistribute it and/or
--- modify it under the terms of the Software License Agreement Provided
--- in the file <distribution-root>/readme/license.txt.
---
--- LOG
--- Use cvs log to obtain detailed change logs.
-*/
-
-#ifndef _DMAKE_PUBLIC_h
-#define _DMAKE_PUBLIC_h
-
-#ifdef EXTERN
-#undef EXTERN
-#endif
-#if defined(DEFINE_DMAKE_VARIABLES)
-#define EXTERN
-#else
-#define EXTERN extern
-#endif
-
-/***** genpub: Begin list of generated function headers */
-void Infer_recipe ANSI((CELLPTR, CELLPTR));
-int Make_targets ANSI(());
-int Make ANSI((CELLPTR, CELLPTR));
-int Exec_commands ANSI((CELLPTR));
-void Print_cmnd ANSI((char *, int, int));
-int Push_dir ANSI((char *, char *, int));
-void Pop_dir ANSI((int));
-void Append_line ANSI((char *, int, FILE *, char *, int, int));
-void Stat_target ANSI((CELLPTR, int, int));
-char *Expand ANSI((char *));
-char *Apply_edit ANSI((char *, char *, char *, int, int));
-void Map_esc ANSI((char *));
-char* Apply_modifiers ANSI((int, char *));
-char* Tokenize ANSI((char *, char *, char, int));
-char* ScanToken ANSI((char *, char **, int));
-char *DmStrJoin ANSI((char *, char *, int, int));
-char *DmStrAdd ANSI((char *, char *, int));
-char *DmStrApp ANSI((char *, char *));
-char *DmStrDup ANSI((char *));
-char *DmStrDup2 ANSI((char *));
-char *DmStrPbrk ANSI((char *, char *));
-char *DmStrSpn ANSI((char *, char *));
-char *DmStrStr ANSI((char *, char *));
-char *DmSubStr ANSI((char *, char *));
-uint16 Hash ANSI((char *, uint32 *));
-HASHPTR Get_name ANSI((char *, HASHPTR *, int));
-HASHPTR Search_table ANSI((HASHPTR *, char *, uint16 *, uint32 *));
-HASHPTR Push_macro ANSI((HASHPTR));
-HASHPTR Pop_macro ANSI((HASHPTR));
-HASHPTR Def_macro ANSI((char *, char *, int));
-CELLPTR Def_cell ANSI((char *));
-LINKPTR Add_prerequisite ANSI((CELLPTR, CELLPTR, int, int));
-void Clear_prerequisites ANSI((CELLPTR));
-int Test_circle ANSI((CELLPTR, int));
-STRINGPTR Def_recipe ANSI((char *, STRINGPTR, int, int));
-t_attr Rcp_attribute ANSI((char *));
-int main ANSI((int, char **));
-FILE *Openfile ANSI((char *, int, int));
-FILE *Closefile ANSI(());
-FILE *Search_file ANSI((char *, char **));
-char *Filename ANSI(());
-int Nestlevel ANSI(());
-FILE *TryFiles ANSI((LINKPTR));
-void Fatal ANSI((ARG (char *,fmt),ARG (va_alist_type, va_alist)));
-void Error ANSI((ARG (char *,fmt),ARG (va_alist_type, va_alist)));
-void Warning ANSI((ARG (char *,fmt),ARG (va_alist_type, va_alist)));
-void No_ram ANSI(());
-void Usage ANSI((int));
-void Version ANSI(());
-char *Get_suffix ANSI((char *));
-char *Basename ANSI((char *));
-char *Filedir ANSI((char *));
-char *Build_path ANSI((char *, char *));
-void Make_rules ANSI(());
-void Create_macro_vars ANSI(());
-time_t Do_stat ANSI((char *, char *, char **, int));
-int Do_touch ANSI((char *, char *, char **));
-void Void_lib_cache ANSI((char *, char *));
-time_t Do_time ANSI(());
-void Do_profile_output ANSI((char *, uint16, CELLPTR));
-int Do_cmnd ANSI((char **, int, int, CELLPTR, t_attr, int));
-char ** Pack_argv ANSI((int, int, char **));
-char *Read_env_string ANSI((char *));
-int Write_env_string ANSI((char *, char *));
-void ReadEnvironment ANSI(());
-void Catch_signals ANSI((void (*)(int)));
-void Clear_signals ANSI(());
-void Prolog ANSI((int, char* []));
-void Epilog ANSI((int));
-char *Get_current_dir ANSI(());
-int Set_dir ANSI((char*));
-char Get_switch_char ANSI(());
-FILE* Get_temp ANSI((char **, char *));
-FILE *Start_temp ANSI((char *, CELLPTR, char **));
-void Open_temp_error ANSI((char *, char *));
-void Link_temp ANSI((CELLPTR, FILE *, char *));
-void Close_temp ANSI((CELLPTR, FILE *));
-void Unlink_temp_files ANSI((CELLPTR));
-void Handle_result ANSI((int, int, int, CELLPTR));
-void Update_time_stamp ANSI((CELLPTR));
-int Remove_file ANSI((char *));
-void Parse ANSI((FILE *));
-int Get_line ANSI((char *, FILE *));
-char *Do_comment ANSI((char *, char **, int));
-char *Get_token ANSI((TKSTRPTR, char *, int));
-void Quit ANSI((int));
-void Read_state ANSI(());
-void Write_state ANSI(());
-int Check_state ANSI((CELLPTR, STRINGPTR *, int));
-void Dump ANSI(());
-void Dump_recipe ANSI((STRINGPTR));
-int Parse_macro ANSI((char *, int));
-int Macro_op ANSI((char *));
-int Parse_rule_def ANSI((int *));
-int Rule_op ANSI((char *));
-void Add_recipe_to_list ANSI((char *, int, int));
-void Bind_rules_to_targets ANSI((int));
-int Set_group_attributes ANSI((char *));
-DFALINKPTR Match_dfa ANSI((char *));
-void Check_circle_dfa ANSI(());
-void Add_nfa ANSI((char *));
-char *Exec_function ANSI((char *));
-int If_root_path ANSI((char *));
-int runargv ANSI((CELLPTR, int, int, t_attr, char **));
-void Clean_up_processes ANSI(());
-int Wait_for_child ANSI((int, int));
-time_t seek_arch ANSI((char*, char*));
-int touch_arch ANSI((char*, char*));
-int dchdir ANSI((char *));
-void Remove_prq ANSI((CELLPTR));
-void Hook_std_writes ANSI((char *));
-void dstrlwr ANSI((char *, char *));
-time_t CacheStat ANSI((char *, int));
-
-#endif
diff --git a/dmake/msdos/zortech/startup.mk b/dmake/msdos/zortech/startup.mk
deleted file mode 100644
index 2697f738bb5b..000000000000
--- a/dmake/msdos/zortech/startup.mk
+++ /dev/null
@@ -1,153 +0,0 @@
-# MSDOS DMAKE startup file. Customize to suit your needs.
-# Assumes MKS toolkit for the tool commands, and Zortech C. Change as req'd.
-# See the documentation for a description of internally defined macros.
-#
-# Disable warnings for macros redefined here that were given
-# on the command line.
-__.SILENT !:= $(.SILENT)
-.SILENT !:= yes
-
-# Configuration parameters for DMAKE startup.mk file
-# Set these to NON-NULL if you wish to turn the parameter on.
-_HAVE_RCS := yes # yes => RCS is installed.
-_HAVE_SCCS := # yes => SCCS is installed.
-
-# Applicable suffix definitions
-A := .lib # Libraries
-E := .exe # Executables
-F := .for # Fortran
-O := .obj # Objects
-P := .pas # Pascal
-S := .asm # Assembler sources
-V := # RCS suffix
-
-# See if these are defined
-.IMPORT .IGNORE : TMPDIR SHELL COMSPEC ROOTDIR
-TMPDIR *:= $(ROOTDIR)/tmp
-
-# Recipe execution configurations
-# First set SHELL, If it is not defined, use COMSPEC, otherwise
-# it is assumed to be MKS Korn SHELL.
-.IF $(SHELL) == $(NULL)
-.IF $(COMSPEC) == $(NULL)
- SHELL := $(ROOTDIR)/bin/sh$E
-.ELSE
- SHELL := $(COMSPEC)
-.END
-.END
-GROUPSHELL := $(SHELL)
-
-# Now set remaining arguments depending on which SHELL we
-# are going to use. COMSPEC (assumed to be command.com) or
-# MKS Korn Shell.
-.IF $(SHELL)==$(COMSPEC)
- SHELLFLAGS := $(SWITCHAR)c
- GROUPFLAGS := $(SHELLFLAGS)
- SHELLMETAS := *"?<>
- GROUPSUFFIX := .bat
- DIRSEPSTR := \\\
- DIVFILE = $(TMPFILE:s,/,\,)
-.ELSE
- SHELLFLAGS := -c
- GROUPFLAGS :=
- SHELLMETAS := *"?<>|()&][$$\#`'
- GROUPSUFFIX := .ksh
- .MKSARGS := yes
- DIVFILE = $(TMPFILE:s,/,${DIVSEP_shell_${USESHELL}},)
- DIVSEP_shell_yes := \\\
- DIVSEP_shell_no := \\
-.END
-
-# Standard C-language command names and flags
- CC := ztc # C-compiler and flags
- CFLAGS +=
-
- AS := masm # Assembler and flags
- ASFLAGS +=
-
- LD = blink # Loader and flags
- LDFLAGS +=
- LDLIBS =
-
-# Definition of $(MAKE) macro for recursive makes.
- MAKE = $(MAKECMD) -S $(MFLAGS)
-
-# Language and Parser generation Tools and their flags
- YACC := yacc # standard yacc
- YFLAGS +=
- YTAB := ytab # yacc output files name stem.
-
- LEX := lex # standard lex
- LFLAGS +=
- LEXYY := lex_yy # lex output file
-
-# Other Compilers, Tools and their flags
- PC := any_pc # pascal compiler
- RC := anyf77 # ratfor compiler
- FC := anyf77 # fortran compiler
-
- CO := co # check out for RCS
- COFLAGS += -q
-
- AR := ar # archiver
- ARFLAGS+= ruv
-
- RM := rm # remove a file command
- RMFLAGS +=
-
-# Implicit generation rules for making inferences.
-# We don't provide .yr or .ye rules here. They're obsolete.
-# Rules for making *$O
- %$O : %.c ; $(CC) $(CFLAGS) -c $<
- %$O : %.cpp ; $(CC) $(CFLAGS) -c $<
- %$O : %$P ; $(PC) $(PFLAGS) -c $<
- %$O : %$S ; $(AS) $(ASFLAGS) $(<:s,/,\);
- %$O : %.cl ; class -c $<
- %$O :| %.e %.r %.F %$F ; $(FC) $(RFLAGS) $(EFLAGS) $(FFLAGS) -c $<
-
-# Executables
- %$E : %$O ; $(CC) $(LDFLAGS) -o$@ $< $(LDLIBS)
-
-# lex and yacc rules
- %.c : %.y ; $(YACC) $(YFLAGS) $<; mv $(YTAB).c $@
- %.c : %.l ; $(LEX) $(LFLAGS) $<; mv $(LEXYY).c $@
-
-# RCS support
-.IF $(_HAVE_RCS)
- % : $$(@:d)RCS$$(DIRSEPSTR)$$(@:f)$V;- $(CO) $(COFLAGS) $@
- .NOINFER : $$(@:d)RCS$$(DIRSEPSTR)$$(@:f)$V
-.END
-
-# SCCS support
-.IF $(_HAVE_SCCS)
- % : s.% ; get $<
- .NOINFER : s.%
-.END
-
-# Recipe to make archive files.
-%$A .SWAP .GROUP :
- $(AR) $(ARFLAGS) $@ $?
- $(RM) $(RMFLAGS) $?
-
-# DMAKE uses this recipe to remove intermediate targets
-.REMOVE :; $(RM) -f $<
-
-# AUGMAKE extensions for SYSV compatibility
-"@B" = $(@:b)
-"@D" = $(@:d)
-"@F" = $(@:f)
-"*B" = $(*:b)
-"*D" = $(*:d)
-"*F" = $(*:f)
-"<B" = $(<:b)
-"<D" = $(<:d)
-"<F" = $(<:f)
-"?B" = $(?:b)
-"?F" = $(?:f)
-"?D" = $(?:d)
-
-# Turn warnings back to previous setting.
-.SILENT !:= $(__.SILENT)
-
-# Local init file if any, gets parsed before user makefile
-.INCLUDE .IGNORE: "_startup.mk"
diff --git a/dmake/msdos/zortech/tempnam.c b/dmake/msdos/zortech/tempnam.c
deleted file mode 100644
index 91ce19c490ad..000000000000
--- a/dmake/msdos/zortech/tempnam.c
+++ /dev/null
@@ -1,106 +0,0 @@
-/* RCS $Id: tempnam.c,v 1.1.1.1 2000-09-22 15:33:29 hr Exp $
---
--- SYNOPSIS
--- temname
---
--- DESCRIPTION
--- temp file name generation code.
---
--- AUTHOR
--- Dennis Vadura, dvadura@dmake.wticorp.com
---
--- WWW
--- http://dmake.wticorp.com/
---
--- COPYRIGHT
--- Copyright (c) 1996,1997 by WTI Corp. All rights reserved.
---
--- This program is NOT free software; you can redistribute it and/or
--- modify it under the terms of the Software License Agreement Provided
--- in the file <distribution-root>/readme/license.txt.
---
--- LOG
--- Use cvs log to obtain detailed change logs.
-*/
-/*LINTLIBRARY*/
-#include <stdio.h>
-#include <string.h>
-#include <stdlib.h>
-#include <dos.h>
-
-#if defined(max)
-# undef max
-#endif
-#define max(A,B) (((A)<(B))?(B):(A))
-
-extern char *mktemp();
-extern int access();
-int d_access();
-
-/* Zortech C stdio.h doesn't define P_tmpdir, so let's do it here */
-/* Under DOS leave the default tmpdir pointing here! */
-static char *P_tmpdir = "";
-
-char *
-tempnam(dir, prefix)
-const char *dir; /* use this directory please (if non-NULL) */
-const char *prefix; /* use this (if non-NULL) as filename prefix */
-{
- static int count = 0;
- register char *p, *q, *tmpdir;
- int tl=0, dl=0, pl;
- char buf[30];
-
- pl = strlen(P_tmpdir);
-
- if( (tmpdir = getenv("TMPDIR")) != NULL ) tl = strlen(tmpdir);
- else if( (tmpdir = getenv("TMP")) != NULL ) tl = strlen(tmpdir);
- if( dir != NULL ) dl = strlen(dir);
-
- if( (p = malloc((unsigned)(max(max(dl,tl),pl)+13))) == NULL )
- return(NULL);
-
- *p = '\0';
-
- if( (tl == 0) || (d_access( strcpy(p, tmpdir), 0) != 0) )
- if( (dl == 0) || (d_access( strcpy(p, dir), 0) != 0) )
- if( d_access( strcpy(p, P_tmpdir), 0) != 0 )
- if( !prefix )
- prefix = "tp";
-
- if(prefix)
- {
- *(p+strlen(p)+2) = '\0';
- (void)strncat(p, prefix, 2);
- }
-
- sprintf( buf, "%08x", _psp );
- buf[6]='\0';
- (void)strcat(p, buf );
- sprintf( buf, "%04d", count++ );
- q=p+strlen(p)-6;
- *q++ = buf[0]; *q++ = buf[1];
- *q++ = buf[2]; *q++ = buf[3];
-
- if( (q = strrchr(p,'.')) != NULL ) *q = '\0';
-
- return(p);
-}
-
-
-
-d_access( name, flag )
-char *name;
-int flag;
-{
- extern char *DirSepStr;
- char *p;
- int r;
-
- if( name == NULL || !*name ) return(1); /* NULL dir means current dir */
- r = access( name, flag );
- p = name+strlen(name)-1;
- if(*p != '/' && *p != '\\') strcat( p, DirSepStr );
-
- return( r );
-}