home *** CD-ROM | disk | FTP | other *** search
Text File | 1992-01-29 | 40.0 KB | 1,326 lines |
- Newsgroups: comp.sources.misc
- From: dvadura@plg.waterloo.edu (Dennis Vadura)
- Subject: v27i128: dmake - dmake Version 3.8, Part27/41
- Message-ID: <1992Jan28.214805.20014@sparky.imd.sterling.com>
- X-Md4-Signature: 02fa2f9727a0b7a3e2b6ae8c41b94094
- Date: Tue, 28 Jan 1992 21:48:05 GMT
- Approved: kent@sparky.imd.sterling.com
-
- Submitted-by: dvadura@plg.waterloo.edu (Dennis Vadura)
- Posting-number: Volume 27, Issue 128
- Archive-name: dmake/part27
- Environment: Atari-ST, Coherent, Mac, MSDOS, OS/2, UNIX
- Supersedes: dmake: Volume 19, Issue 22-58
-
- ---- Cut Here and feed the following to sh ----
- # this is dmake.shar.27 (part 27 of a multipart archive)
- # do not concatenate these parts, unpack them in order with /bin/sh
- # file dmake/msdos/ztcdos/public.h continued
- #
- if test ! -r _shar_seq_.tmp; then
- echo 'Please unpack part 1 first!'
- exit 1
- fi
- (read Scheck
- if test "$Scheck" != 27; then
- echo Please unpack part "$Scheck" next!
- exit 1
- else
- exit 0
- fi
- ) < _shar_seq_.tmp || exit 1
- if test -f _shar_wnt_.tmp; then
- sed 's/^X//' << 'SHAR_EOF' >> 'dmake/msdos/ztcdos/public.h' &&
- -- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- -- GNU General Public License for more details.
- --
- -- You should have received a copy of the GNU General Public License
- -- along with this program; if not, write to the Free Software
- -- Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
- --
- -- LOG
- -- $Log$
- */
- X
- #ifndef _DMAKE_PUBLIC_h
- #define _DMAKE_PUBLIC_h
- X
- void Infer_recipe ANSI((CELLPTR, CELLPTR));
- int Make_targets ANSI(());
- int Exec_commands ANSI((CELLPTR));
- void Print_cmnd ANSI((char *, int, int));
- void Pop_dir ANSI((int));
- void Append_line ANSI((char *, int, FILE *, char *, int, int));
- void Stat_target ANSI((CELLPTR, 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 * _strjoin ANSI((char *, char *, int, int));
- char * _stradd ANSI((char *, char *, int));
- char * _strapp ANSI((char *, char *));
- char * _strdup ANSI((char *));
- char * _strdup2 ANSI((char *));
- char * _strpbrk ANSI((char *, char *));
- char * _strspn ANSI((char *, char *));
- char * _strstr ANSI((char *, char *));
- char * _substr ANSI((char *, char *));
- uint16 Hash ANSI((char *, uint32 *));
- HASHPTR Get_name ANSI((char *, HASHPTR *, int));
- HASHPTR Search_table ANSI((HASHPTR *, char *, uint16 *, uint32 *));
- 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(());
- void No_ram ANSI(());
- int Usage ANSI((int));
- int Version ANSI(());
- char * Get_suffix 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 Do_touch ANSI((char *, char *, char **));
- void Void_lib_cache ANSI((char *, char *));
- time_t Do_time ANSI(());
- int Do_cmnd ANSI((char *, int, int, CELLPTR, int, int, 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 (*)()));
- 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 *, int));
- 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(());
- void Read_state ANSI(());
- void Write_state ANSI(());
- int Check_state ANSI((CELLPTR, STRINGPTR *, int));
- char* basename ANSI((char *));
- 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, int, int, 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 _chdir ANSI((char *));
- void Remove_prq ANSI((CELLPTR));
- void Hook_std_writes ANSI((char *));
- X
- #endif
- SHAR_EOF
- chmod 0640 dmake/msdos/ztcdos/public.h ||
- echo 'restore of dmake/msdos/ztcdos/public.h failed'
- Wc_c="`wc -c < 'dmake/msdos/ztcdos/public.h'`"
- test 5547 -eq "$Wc_c" ||
- echo 'dmake/msdos/ztcdos/public.h: original size 5547, current size' "$Wc_c"
- rm -f _shar_wnt_.tmp
- fi
- # ============= dmake/msdos/ztcdos/startup.mk ==============
- if test -f 'dmake/msdos/ztcdos/startup.mk' -a X"$1" != X"-c"; then
- echo 'x - skipping dmake/msdos/ztcdos/startup.mk (File already exists)'
- rm -f _shar_wnt_.tmp
- else
- > _shar_wnt_.tmp
- sed 's/^X//' << 'SHAR_EOF' > 'dmake/msdos/ztcdos/startup.mk' &&
- # 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
- X
- # 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.
- X
- # 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
- X
- # See if these are defined
- TMPDIR := $(ROOTDIR)/tmp
- .IMPORT .IGNORE : TMPDIR SHELL COMSPEC
- X
- # 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)
- X SHELL := $(ROOTDIR)/bin/sh$E
- .ELSE
- X SHELL := $(COMSPEC)
- .END
- .END
- GROUPSHELL := $(SHELL)
- X
- # 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)
- X SHELLFLAGS := $(SWITCHAR)c
- X GROUPFLAGS := $(SHELLFLAGS)
- X SHELLMETAS := *"?<>
- X GROUPSUFFIX := .bat
- X DIRSEPSTR := \\
- X DIVFILE = $(TMPFILE:s,/,\)
- .ELSE
- X SHELLFLAGS := -c
- X GROUPFLAGS :=
- X SHELLMETAS := *"?<>|()&][$$\#`'
- X GROUPSUFFIX := .ksh
- X .MKSARGS := yes
- X DIVFILE = $(TMPFILE:s,/,${DIVSEP_shell_${USESHELL}})
- X DIVSEP_shell_yes := \\\
- X DIVSEP_shell_no := \\
- .END
- X
- # Standard C-language command names and flags
- X CC := ztc # C-compiler and flags
- X CFLAGS +=
- X
- X AS := masm # Assembler and flags
- X ASFLAGS +=
- X
- X LD = blink # Loader and flags
- X LDFLAGS +=
- X LDLIBS =
- X
- # Definition of $(MAKE) macro for recursive makes.
- X MAKE = $(MAKECMD) $(MFLAGS)
- X
- # Language and Parser generation Tools and their flags
- X YACC := yacc # standard yacc
- X YFLAGS +=
- X YTAB := ytab # yacc output files name stem.
- X
- X LEX := lex # standard lex
- X LFLAGS +=
- X LEXYY := lex_yy # lex output file
- X
- # Other Compilers, Tools and their flags
- X PC := any_pc # pascal compiler
- X RC := anyf77 # ratfor compiler
- X FC := anyf77 # fortran compiler
- X
- X CO := co # check out for RCS
- X COFLAGS += -q
- X
- X AR := ar # archiver
- X ARFLAGS+= ruv
- X
- X RM := rm # remove a file command
- X RMFLAGS +=
- X
- # Implicit generation rules for making inferences.
- # We don't provide .yr or .ye rules here. They're obsolete.
- # Rules for making *$O
- X %$O : %.c ; $(CC) $(CFLAGS) -c $<
- X %$O : %.cpp ; $(CC) $(CFLAGS) -c $<
- X %$O : %$P ; $(PC) $(PFLAGS) -c $<
- X %$O : %$S ; $(AS) $(ASFLAGS) $(<:s,/,\);
- X %$O : %.cl ; class -c $<
- X %$O : %.e %.r %.F %$F ; $(FC) $(RFLAGS) $(EFLAGS) $(FFLAGS) -c $<
- X
- # Executables
- X %$E : %$O ; $(CC) $(LDFLAGS) -o$@ $< $(LDLIBS)
- X
- # lex and yacc rules
- X %.c : %.y ; $(YACC) $(YFLAGS) $<; mv $(YTAB).c $@
- X %.c : %.l ; $(LEX) $(LFLAGS) $<; mv $(LEXYY).c $@
- X
- # RCS support
- .IF $(_HAVE_RCS)
- X % : $$(@:d)RCS$$(DIRSEPSTR)$$(@:f)$V;- $(CO) $(COFLAGS) $@
- X .NOINFER : $$(@:d)RCS$$(DIRSEPSTR)$$(@:f)$V
- .END
- X
- # SCCS support
- .IF $(_HAVE_SCCS)
- X % : s.% ; get $<
- X .NOINFER : s.%
- .END
- X
- # Recipe to make archive files.
- %$A :
- [
- X $(AR) $(ARFLAGS) $@ $?
- X $(RM) $(RMFLAGS) $?
- ]
- X
- # DMAKE uses this recipe to remove intermediate targets
- .REMOVE :; $(RM) -f $<
- X
- # 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)
- X
- # Turn warnings back to previous setting.
- .SILENT := $(__.SILENT)
- X
- # Local init file if any, gets parsed before user makefile
- .INCLUDE .IGNORE: "_startup.mk"
- SHAR_EOF
- chmod 0640 dmake/msdos/ztcdos/startup.mk ||
- echo 'restore of dmake/msdos/ztcdos/startup.mk failed'
- Wc_c="`wc -c < 'dmake/msdos/ztcdos/startup.mk'`"
- test 3867 -eq "$Wc_c" ||
- echo 'dmake/msdos/ztcdos/startup.mk: original size 3867, current size' "$Wc_c"
- rm -f _shar_wnt_.tmp
- fi
- # ============= dmake/msdos/ztcdos/tempnam.c ==============
- if test -f 'dmake/msdos/ztcdos/tempnam.c' -a X"$1" != X"-c"; then
- echo 'x - skipping dmake/msdos/ztcdos/tempnam.c (File already exists)'
- rm -f _shar_wnt_.tmp
- else
- > _shar_wnt_.tmp
- sed 's/^X//' << 'SHAR_EOF' > 'dmake/msdos/ztcdos/tempnam.c' &&
- /*LINTLIBRARY*/
- #include <stdio.h>
- #include <string.h>
- #include <stdlib.h>
- #include <dos.h>
- X
- #if defined(max)
- # undef max
- #endif
- #define max(A,B) (((A)<(B))?(B):(A))
- X
- extern char *mktemp();
- extern int access();
- int _access();
- X
- /* 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 = "";
- X
- 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 */
- {
- X static int count = 0;
- X register char *p, *q, *tmpdir;
- X int tl=0, dl=0, pl;
- X char buf[30];
- X
- X pl = strlen(P_tmpdir);
- X
- X if( (tmpdir = getenv("TMPDIR")) != NULL ) tl = strlen(tmpdir);
- X if( dir != NULL ) dl = strlen(dir);
- X
- X if( (p = malloc((unsigned)(max(max(dl,tl),pl)+13))) == NULL )
- X return(NULL);
- X
- X *p = '\0';
- X
- X if( (tl == 0) || (_access( strcpy(p, tmpdir), 0) != 0) )
- X if( (dl == 0) || (_access( strcpy(p, dir), 0) != 0) )
- X if( _access( strcpy(p, P_tmpdir), 0) != 0 )
- X if( !prefix )
- X prefix = "tp";
- X
- X if(prefix)
- X {
- X *(p+strlen(p)+2) = '\0';
- X (void)strncat(p, prefix, 2);
- X }
- X
- X sprintf( buf, "%08x", _psp );
- X buf[6]='\0';
- X (void)strcat(p, buf );
- X sprintf( buf, "%04d", count++ );
- X q=p+strlen(p)-6;
- X *q++ = buf[0]; *q++ = buf[1];
- X *q++ = buf[2]; *q++ = buf[3];
- X
- X if( (q = strrchr(p,'.')) != NULL ) *q = '\0';
- X
- X return(p);
- }
- X
- X
- X
- _access( name, flag )
- char *name;
- int flag;
- {
- X char *p;
- X int r;
- X
- X if( name == NULL || !*name ) return(1); /* NULL dir means current dir */
- X r = access( name, flag );
- X p = name+strlen(name)-1;
- X if(*p != '/' && *p != '\\') strcat( p, "/" );
- X
- X return( r );
- }
- SHAR_EOF
- chmod 0640 dmake/msdos/ztcdos/tempnam.c ||
- echo 'restore of dmake/msdos/ztcdos/tempnam.c failed'
- Wc_c="`wc -c < 'dmake/msdos/ztcdos/tempnam.c'`"
- test 1738 -eq "$Wc_c" ||
- echo 'dmake/msdos/ztcdos/tempnam.c: original size 1738, current size' "$Wc_c"
- rm -f _shar_wnt_.tmp
- fi
- # ============= dmake/namemax.h ==============
- if test -f 'dmake/namemax.h' -a X"$1" != X"-c"; then
- echo 'x - skipping dmake/namemax.h (File already exists)'
- rm -f _shar_wnt_.tmp
- else
- > _shar_wnt_.tmp
- sed 's/^X//' << 'SHAR_EOF' > 'dmake/namemax.h' &&
- #ifndef _POSIX_NAME_MAX
- #define _POSIX_NAME_MAX 14
- #endif
- SHAR_EOF
- chmod 0640 dmake/namemax.h ||
- echo 'restore of dmake/namemax.h failed'
- Wc_c="`wc -c < 'dmake/namemax.h'`"
- test 58 -eq "$Wc_c" ||
- echo 'dmake/namemax.h: original size 58, current size' "$Wc_c"
- rm -f _shar_wnt_.tmp
- fi
- # ============= dmake/os2/_chdir.c ==============
- if test ! -d 'dmake/os2'; then
- mkdir 'dmake/os2'
- fi
- if test -f 'dmake/os2/_chdir.c' -a X"$1" != X"-c"; then
- echo 'x - skipping dmake/os2/_chdir.c (File already exists)'
- rm -f _shar_wnt_.tmp
- else
- > _shar_wnt_.tmp
- sed 's/^X//' << 'SHAR_EOF' > 'dmake/os2/_chdir.c' &&
- /* RCS -- $Header: /u2/dvadura/src/generic/dmake/src/os2/_chdir.c,v 1.1 1992/01/24 03:29:24 dvadura Exp $
- -- SYNOPSIS -- Change directory.
- --
- -- DESCRIPTION
- -- Under DOS change the current drive as well as the current directory.
- --
- -- AUTHOR
- -- Dennis Vadura, dvadura@watdragon.uwaterloo.ca
- -- CS DEPT, University of Waterloo, Waterloo, Ont., Canada
- --
- -- COPYRIGHT
- -- Copyright (c) 1990 by Dennis Vadura. All rights reserved.
- --
- -- This program is free software; you can redistribute it and/or
- -- modify it under the terms of the GNU General Public License
- -- (version 1), as published by the Free Software Foundation, and
- -- found in the file 'LICENSE' included with this distribution.
- --
- -- This program is distributed in the hope that it will be useful,
- -- but WITHOUT ANY WARRANTY; without even the implied warrant of
- -- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- -- GNU General Public License for more details.
- --
- -- You should have received a copy of the GNU General Public License
- -- along with this program; if not, write to the Free Software
- -- Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
- --
- -- LOG
- -- $Log: _chdir.c,v $
- X * Revision 1.1 1992/01/24 03:29:24 dvadura
- X * dmake Version 3.8, Initial revision
- X *
- */
- X
- #include <dos.h>
- #include <os2.h>
- #include "extern.h"
- X
- PUBLIC int
- _chdir(path)
- char *path;
- {
- X int res;
- X
- X res = chdir(path);
- X
- X if (res == 0 && path[1] == ':')
- #ifdef OS2
- X DosSelectDisk((*path & ~0x20) - '@');
- #else
- X unsigned new_drive;
- X unsigned max_drives;
- X
- X new_drive = (*path & ~0x20) - 'A' + 1;
- X _dos_setdrive(new_drive, &max_drives);
- #endif
- X
- X return (res);
- }
- SHAR_EOF
- chmod 0640 dmake/os2/_chdir.c ||
- echo 'restore of dmake/os2/_chdir.c failed'
- Wc_c="`wc -c < 'dmake/os2/_chdir.c'`"
- test 1738 -eq "$Wc_c" ||
- echo 'dmake/os2/_chdir.c: original size 1738, current size' "$Wc_c"
- rm -f _shar_wnt_.tmp
- fi
- # ============= dmake/os2/config.mk ==============
- if test -f 'dmake/os2/config.mk' -a X"$1" != X"-c"; then
- echo 'x - skipping dmake/os2/config.mk (File already exists)'
- rm -f _shar_wnt_.tmp
- else
- > _shar_wnt_.tmp
- sed 's/^X//' << 'SHAR_EOF' > 'dmake/os2/config.mk' &&
- # This is an OS specific configuration file
- # It assumes that OBJDIR, TARGET and DEBUG are previously defined.
- # It defines CFLAGS, LDARGS, CPPFLAGS, STARTUPFILE, LDOBJS
- # It augments SRC, OBJDIR, TARGET, CFLAGS, LDLIBS
- #
- OSRELEASE *= mscdos
- # Memory model to compile for
- # set to s - small, m - medium, c - compact, l - large
- # Use only large model now.
- MODEL = l
- X
- STARTUPFILE = $(OS)/startup.mk
- X
- CPPFLAGS = $(CFLAGS)
- LDOBJS = $(CSTARTUP) $(OBJDIR)/{$(<:f)}
- LDARGS = $(LDHEAD) @$(LDTMPOBJ),$(TARGET),NUL.MAP,,$(LDTAIL)
- LDTAIL = $(_libs)$(LDFLAGS:s/ //)
- _libs = $(!null,$(LDLIBS) ,@$(LDTMPLIB))
- LDTMPOBJ = $(mktmp,,$(DIVFILE) $(LDOBJS:s,/,\\,:t"+\n")\n)
- LDTMPLIB = $(mktmp,,$(DIVFILE) $(LDLIBS)\n)
- X
- # Debug flags
- DB_CFLAGS = -DDBUG
- DB_LDFLAGS =
- DB_LDLIBS =
- X
- # NO Debug flags
- NDB_CFLAGS =
- NDB_LDFLAGS =
- NDB_LDLIBS =
- X
- # Local configuration modifications for CFLAGS.
- CFLAGS += -I$(OS) -DOS2
- X
- # OS2 does not have a swap version. The operating system will
- # handle all swapping.
- # To save copying unchanged files in from elsewhere, I shall use them in situ.
- OS_SRC += ruletab.c runargv.c _chdir.c switchar.c
- DOS_SRC = dirbrk.c arlib.c
- UNIX_SRC = rmprq.c
- X
- SRC += $(OS_SRC) $(DOS_SRC) $(UNIX_SRC)
- .SETDIR=$(OS) : $(ASRC) $(OS_SRC)
- .SETDIR=msdos : $(DOS_SRC)
- .SETDIR=unix : $(UNIX_SRC)
- X
- # Set source dirs so that we can find files named in this
- # config file.
- .SOURCE.h : $(OS)
- X
- # See if we modify anything in the lower levels.
- .IF $(OSRELEASE) != $(NULL)
- X .INCLUDE .IGNORE : $(OS)$(DIRSEPSTR)$(OSRELEASE)$(DIRSEPSTR)config.mk
- .END
- SHAR_EOF
- chmod 0640 dmake/os2/config.mk ||
- echo 'restore of dmake/os2/config.mk failed'
- Wc_c="`wc -c < 'dmake/os2/config.mk'`"
- test 1555 -eq "$Wc_c" ||
- echo 'dmake/os2/config.mk: original size 1555, current size' "$Wc_c"
- rm -f _shar_wnt_.tmp
- fi
- # ============= dmake/os2/dmake.bad ==============
- if test -f 'dmake/os2/dmake.bad' -a X"$1" != X"-c"; then
- echo 'x - skipping dmake/os2/dmake.bad (File already exists)'
- rm -f _shar_wnt_.tmp
- else
- > _shar_wnt_.tmp
- sed 's/^X//' << 'SHAR_EOF' > 'dmake/os2/dmake.bad' &&
- DOSCWAIT
- DOSKILLPROCESS
- SHAR_EOF
- chmod 0640 dmake/os2/dmake.bad ||
- echo 'restore of dmake/os2/dmake.bad failed'
- Wc_c="`wc -c < 'dmake/os2/dmake.bad'`"
- test 24 -eq "$Wc_c" ||
- echo 'dmake/os2/dmake.bad: original size 24, current size' "$Wc_c"
- rm -f _shar_wnt_.tmp
- fi
- # ============= dmake/os2/dmake.cs ==============
- if test -f 'dmake/os2/dmake.cs' -a X"$1" != X"-c"; then
- echo 'x - skipping dmake/os2/dmake.cs (File already exists)'
- rm -f _shar_wnt_.tmp
- else
- > _shar_wnt_.tmp
- sed 's/^X//' << 'SHAR_EOF' > 'dmake/os2/dmake.cs' &&
- (-I. -Icommon -Ios2 -Ios2\mscdos -DHELP -DOS2 -D__STDC__=1 -W1
- infer.c make.c stat.c expand.c string.c hash.c dag.c
- dmake.c path.c imacs.c sysintf.c parse.c getinp.c quit.c
- basename.c dump.c macparse.c rulparse.c percent.c function.c
- os2\ruletab.c os2\_chdir.c os2\switchar.c os2\mscdos\tempnam.c os2\runargv.c
- msdos\dirbrk.c msdos\arlib.c
- unix\rmprq.c unix\explode.c
- )
- X
- dmake.exe
- os2\dmake.def
- os2\dmake.bad
- X
- -AC -LB -S0x2000
- SHAR_EOF
- chmod 0640 dmake/os2/dmake.cs ||
- echo 'restore of dmake/os2/dmake.cs failed'
- Wc_c="`wc -c < 'dmake/os2/dmake.cs'`"
- test 427 -eq "$Wc_c" ||
- echo 'dmake/os2/dmake.cs: original size 427, current size' "$Wc_c"
- rm -f _shar_wnt_.tmp
- fi
- # ============= dmake/os2/dmake.def ==============
- if test -f 'dmake/os2/dmake.def' -a X"$1" != X"-c"; then
- echo 'x - skipping dmake/os2/dmake.def (File already exists)'
- rm -f _shar_wnt_.tmp
- else
- > _shar_wnt_.tmp
- sed 's/^X//' << 'SHAR_EOF' > 'dmake/os2/dmake.def' &&
- NAME DMAKE WINDOWCOMPAT NEWFILES
- DESCRIPTION 'DMAKE Version 3.8 - for MS-DOS and OS/2'
- X
- ; IMPORTS
- ; SESMGR.DOSSMSETTITLE
- SHAR_EOF
- chmod 0640 dmake/os2/dmake.def ||
- echo 'restore of dmake/os2/dmake.def failed'
- Wc_c="`wc -c < 'dmake/os2/dmake.def'`"
- test 121 -eq "$Wc_c" ||
- echo 'dmake/os2/dmake.def: original size 121, current size' "$Wc_c"
- rm -f _shar_wnt_.tmp
- fi
- # ============= dmake/os2/ibm/config.h ==============
- if test ! -d 'dmake/os2/ibm'; then
- mkdir 'dmake/os2/ibm'
- fi
- if test -f 'dmake/os2/ibm/config.h' -a X"$1" != X"-c"; then
- echo 'x - skipping dmake/os2/ibm/config.h (File already exists)'
- rm -f _shar_wnt_.tmp
- else
- > _shar_wnt_.tmp
- sed 's/^X//' << 'SHAR_EOF' > 'dmake/os2/ibm/config.h' &&
- /* RCS -- $Header: /u2/dvadura/src/generic/dmake/src/os2/ibm/config.h,v 1.1 1992/01/24 03:29:29 dvadura 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@watdragon.uwaterloo.ca
- -- CS DEPT, University of Waterloo, Waterloo, Ont., Canada
- --
- -- COPYRIGHT
- -- Copyright (c) 1990 by Dennis Vadura. All rights reserved.
- --
- -- This program is free software; you can redistribute it and/or
- -- modify it under the terms of the GNU General Public License
- -- (version 1), as published by the Free Software Foundation, and
- -- found in the file 'LICENSE' included with this distribution.
- --
- -- This program is distributed in the hope that it will be useful,
- -- but WITHOUT ANY WARRANTY; without even the implied warrant of
- -- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- -- GNU General Public License for more details.
- --
- -- You should have received a copy of the GNU General Public License
- -- along with this program; if not, write to the Free Software
- -- Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
- --
- -- LOG
- -- $Log: config.h,v $
- X * Revision 1.1 1992/01/24 03:29:29 dvadura
- X * dmake Version 3.8, Initial revision
- X *
- */
- X
- #if defined (_MSC_VER)
- # if _MSC_VER < 500
- X Force a compile-time blowup.
- X Do not define define _MSC_VER for MSC compilers ealier than 5.0.
- # endif
- #endif
- X
- /* define this for configurations that don't have the coreleft function
- X * so that the code compiles. To my knowledge coreleft exists only on
- X * Turbo C, but it is needed here since the function is used in many debug
- X * macros. */
- #define coreleft() 0L
- X
- /* MSC Version 4.0 doesn't understand SIGTERM, later versions do. */
- #ifndef SIGTERM
- # define SIGTERM SIGINT
- #endif
- X
- /* This should already be defined under C6.0, also for OS/2 we want buffering
- X * to minimise the mess during parallel makes.
- X */
- #ifndef _IOLBF
- # define _IOLBF _IOFBF
- #endif
- X
- /* in alloc.h: size_t is redefined
- X * defined in stdio.h which is included by alloc.h
- X */
- #if defined(MSDOS) && defined (_MSC_VER)
- # define _TYPES_
- #endif
- X
- /* Don't need this one either */
- #define CONST
- X
- /* in sysintf.c: SIGQUIT is used, this is not defined in MSC */
- #ifndef SIGQUIT
- # define SIGQUIT SIGTERM
- #endif
- X
- /* a small problem with pointer to voids on some unix machines needs this */
- #define PVOID void *
- SHAR_EOF
- chmod 0640 dmake/os2/ibm/config.h ||
- echo 'restore of dmake/os2/ibm/config.h failed'
- Wc_c="`wc -c < 'dmake/os2/ibm/config.h'`"
- test 2567 -eq "$Wc_c" ||
- echo 'dmake/os2/ibm/config.h: original size 2567, current size' "$Wc_c"
- rm -f _shar_wnt_.tmp
- fi
- # ============= dmake/os2/ibm/config.mk ==============
- if test -f 'dmake/os2/ibm/config.mk' -a X"$1" != X"-c"; then
- echo 'x - skipping dmake/os2/ibm/config.mk (File already exists)'
- rm -f _shar_wnt_.tmp
- else
- > _shar_wnt_.tmp
- sed 's/^X//' << 'SHAR_EOF' > 'dmake/os2/ibm/config.mk' &&
- # This is the MSC 4.0 and higher OS/2 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)
- X
- # Definition of macros for library, and C startup code.
- X
- # The following sources are required for MSC
- OSR_SRC = tempnam.c
- .SETDIR=$(osrdir) : $(OSR_SRC)
- X
- SRC += $(OSR_SRC)
- .SOURCE.h : $(osrdir)
- X
- # Local configuration modifications for CFLAGS
- # OS/2 always has at least a 286 so this is enabled by default:
- CFLAGS += -G2
- X
- SET_STACK = /stack:8192
- NDB_LDFLAGS += $(SET_STACK)
- X
- # Microsoft C doesn't need tail but needs head
- LDTAIL = $(OS)$(DIRSEPSTR)$(TARGET:b).def;
- LDHEAD = $(LDFLAGS)
- X
- # Debugging libraries
- DB_LDFLAGS += /co /li /map $(SET_STACK)
- DB_LDLIBS +=
- X
- # NO Debug MSC flags:
- # Set the environment variable MSC_VER to be one of 4.0, 5.0, 5.1, or 6.0
- # to get these by default when you make dmake using 'dmake'.
- #
- # Setting MSC_VER to one of the above sets the variable _MSC_VER appropriately
- # and sets the flags appropriately.
- X
- .IMPORT .IGNORE : MSC_VER
- MSC_VER *= 6.0 # If unset, assume 6.0 by default.
- X
- .IF $(MSC_VER) == 4.0
- X CFLAGS += -I$(osrdir) $(C_$(MODEL):s/A/m/)
- X CFLAGS += -DM_I86=1 # 5.0+ define this automatically
- X CFLAGS += -D__STDC__=1 # 5.0, 5.1, but not 6.0 do this automatically
- X NDB_CFLAGS +=
- X DB_CFLAGS += -Zi
- .ELSE
- X DB_CFLAGS += -Zi
- X CFLAGS += -I$(osrdir) $(C_$(MODEL))
- X .IF $(MSC_VER) != 6.0
- X # For 5.0 and 5.1, we define _MSC_VER=500 or 510
- X CFLAGS += -D_MSC_VER=$(MSC_VER:s,.,,)0
- X NDB_CFLAGS += -Osl -Gs
- X .ELSE
- X # Microsoft C 6.0 auto defines _MSC_VER=600, but not __STDC__
- X CFLAGS += -D__STDC__=1 # incredibly not auto done by 6.0
- X NDB_CFLAGS += -Osecgl -Gs
- X
- X # Redefine rule for making our objects, we don't need mv
- X %$O : %.c ;% $(CC) -c $(CFLAGS) -Fo$@ $<
- X .END
- X NDB_LDFLAGS += /exe /packc /batch
- X NDB_LDLIBS += /NOD:LLIBCE LLIBCEP
- .END
- X
- # See if we modify anything in the lower levels.
- .IF $(OSENVIRONMENT) != $(NULL)
- X .INCLUDE .IGNORE : $(osrdir)$(DIRSEPSTR)$(OSENVIRONMENT)$(DIRSEPSTR)config.mk
- .END
- X
- C_s =
- C_m = -AM
- C_c = -AC
- C_l = -AL
- X
- S_s = -Dmsmall
- S_m = -Dmmedium
- S_c = -Dmcompact
- S_l = -Dmlarge
- SHAR_EOF
- chmod 0640 dmake/os2/ibm/config.mk ||
- echo 'restore of dmake/os2/ibm/config.mk failed'
- Wc_c="`wc -c < 'dmake/os2/ibm/config.mk'`"
- test 2395 -eq "$Wc_c" ||
- echo 'dmake/os2/ibm/config.mk: original size 2395, current size' "$Wc_c"
- rm -f _shar_wnt_.tmp
- fi
- # ============= dmake/os2/ibm/dmake.ini ==============
- if test -f 'dmake/os2/ibm/dmake.ini' -a X"$1" != X"-c"; then
- echo 'x - skipping dmake/os2/ibm/dmake.ini (File already exists)'
- rm -f _shar_wnt_.tmp
- else
- > _shar_wnt_.tmp
- sed 's/^X//' << 'SHAR_EOF' > 'dmake/os2/ibm/dmake.ini' &&
- # MSDOS DMAKE startup file. Customize to suit your needs.
- # Assumes MKS toolkit for the tool commands, and Microsoft 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
- X
- # 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.
- X
- # 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
- X
- # See if these are defined
- TMPDIR := $(ROOTDIR)/tmp
- .IMPORT .IGNORE : TMPDIR SHELL COMSPEC
- X
- # 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)
- X SHELL := $(ROOTDIR)/bin/sh$E
- .ELSE
- X SHELL := $(COMSPEC)
- .END
- .END
- GROUPSHELL := $(SHELL)
- X
- # Now set remaining arguments depending on which SHELL we
- # are going to use. COMSPEC (assumed to be cmd.exe) or
- # MKS Korn Shell.
- .IF $(SHELL)==$(COMSPEC)
- X SHELLFLAGS := $(SWITCHAR)c
- X GROUPFLAGS := $(SHELLFLAGS)
- X SHELLMETAS := *"?<>|&
- X GROUPSUFFIX := .cmd
- X DIRSEPSTR := \\
- X DIVFILE = $(TMPFILE:s,/,\)
- .ELSE
- X SHELLFLAGS := -c
- X GROUPFLAGS :=
- X SHELLMETAS := *"?<>|()&][$$\#`'
- X GROUPSUFFIX := .ksh
- X .MKSARGS := yes
- X DIVFILE = $(TMPFILE:s,/,${DIVSEP_shell_${USESHELL}})
- X DIVSEP_shell_yes := \\\
- X DIVSEP_shell_no := \\
- .END
- X
- # Standard C-language command names and flags
- X CC := cl # C-compiler and flags
- X CFLAGS +=
- X
- X AS := masm # Assembler and flags
- X ASFLAGS +=
- X
- X LD = link # Loader and flags
- X LDFLAGS +=
- X LDLIBS =
- X
- # Definition of $(MAKE) macro for recursive makes.
- X MAKE = $(MAKECMD) $(MFLAGS)
- X
- # Language and Parser generation Tools and their flags
- X YACC := yacc # standard yacc
- X YFLAGS +=
- X YTAB := ytab # yacc output files name stem.
- X
- X LEX := lex # standard lex
- X LFLAGS +=
- X LEXYY := lex_yy # lex output file
- X
- # Other Compilers, Tools and their flags
- X PC := any_pc # pascal compiler
- X RC := anyf77 # ratfor compiler
- X FC := anyf77 # fortran compiler
- X
- X CO := co # check out for RCS
- X COFLAGS += -q
- X
- X AR := ar # archiver
- X ARFLAGS+= ruv
- X
- X RM := rm # remove a file command
- X RMFLAGS +=
- X
- # Implicit generation rules for making inferences.
- # We don't provide .yr or .ye rules here. They're obsolete.
- # Rules for making *$O
- X %$O : %.c ; $(CC) $(CFLAGS) -c $<
- X %$O : %$P ; $(PC) $(PFLAGS) -c $<
- X %$O : %$S ; $(AS) $(ASFLAGS) $(<:s,/,\);
- X %$O : %.cl ; class -c $<
- X %$O : %.e %.r %.F %$F ; $(FC) $(RFLAGS) $(EFLAGS) $(FFLAGS) -c $<
- X
- # Executables
- X %$E : %$O ; $(CC) $(LDFLAGS) -o$@ $< $(LDLIBS)
- X
- # lex and yacc rules
- X %.c : %.y ; $(YACC) $(YFLAGS) $<; mv $(YTAB).c $@
- X %.c : %.l ; $(LEX) $(LFLAGS) $<; mv $(LEXYY).c $@
- X
- # RCS support
- .IF $(_HAVE_RCS)
- X % : $$(@:d)RCS$$(DIRSEPSTR)$$(@:f)$V;- $(CO) $(COFLAGS) $@
- X .NOINFER : $$(@:d)RCS$$(DIRSEPSTR)$$(@:f)$V
- .END
- X
- # SCCS support
- .IF $(_HAVE_SCCS)
- X % : s.% ; get $<
- X .NOINFER : s.%
- .END
- X
- # Recipe to make archive files.
- %$A :
- [
- X $(AR) $(ARFLAGS) $@ $?
- X $(RM) $(RMFLAGS) $?
- ]
- X
- # DMAKE uses this recipe to remove intermediate targets
- .REMOVE :; $(RM) -f $<
- X
- # 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)
- X
- # Turn warnings back to previous setting.
- .SILENT := $(__.SILENT)
- X
- # Local init file if any, gets parsed before user makefile
- .INCLUDE .IGNORE: "_startup.mk"
- SHAR_EOF
- chmod 0640 dmake/os2/ibm/dmake.ini ||
- echo 'restore of dmake/os2/ibm/dmake.ini failed'
- Wc_c="`wc -c < 'dmake/os2/ibm/dmake.ini'`"
- test 3826 -eq "$Wc_c" ||
- echo 'dmake/os2/ibm/dmake.ini: original size 3826, current size' "$Wc_c"
- rm -f _shar_wnt_.tmp
- fi
- # ============= dmake/os2/ibm/lib.rsp ==============
- if test -f 'dmake/os2/ibm/lib.rsp' -a X"$1" != X"-c"; then
- echo 'x - skipping dmake/os2/ibm/lib.rsp (File already exists)'
- rm -f _shar_wnt_.tmp
- else
- > _shar_wnt_.tmp
- sed 's/^X//' << 'SHAR_EOF' > 'dmake/os2/ibm/lib.rsp' &&
- \NOD:LLIBCE+
- LLIBCEP
- SHAR_EOF
- chmod 0640 dmake/os2/ibm/lib.rsp ||
- echo 'restore of dmake/os2/ibm/lib.rsp failed'
- Wc_c="`wc -c < 'dmake/os2/ibm/lib.rsp'`"
- test 21 -eq "$Wc_c" ||
- echo 'dmake/os2/ibm/lib.rsp: original size 21, current size' "$Wc_c"
- rm -f _shar_wnt_.tmp
- fi
- # ============= dmake/os2/ibm/mkc2.cmd ==============
- if test -f 'dmake/os2/ibm/mkc2.cmd' -a X"$1" != X"-c"; then
- echo 'x - skipping dmake/os2/ibm/mkc2.cmd (File already exists)'
- rm -f _shar_wnt_.tmp
- else
- > _shar_wnt_.tmp
- sed 's/^X//' << 'SHAR_EOF' > 'dmake/os2/ibm/mkc2.cmd' &&
- md objects
- cl -c -I. -Ios2 -DOS2 -G2 -Ios2\ibm -AL -D_MSC_VER=510 -Osl -Gs infer.c
- copy infer.obj objects
- del infer.obj
- cl -c -I. -Ios2 -DOS2 -G2 -Ios2\ibm -AL -D_MSC_VER=510 -Osl -Gs make.c
- copy make.obj objects
- del make.obj
- cl -c -I. -Ios2 -DOS2 -G2 -Ios2\ibm -AL -D_MSC_VER=510 -Osl -Gs stat.c
- copy stat.obj objects
- del stat.obj
- cl -c -I. -Ios2 -DOS2 -G2 -Ios2\ibm -AL -D_MSC_VER=510 -Osl -Gs expand.c
- copy expand.obj objects
- del expand.obj
- cl -c -I. -Ios2 -DOS2 -G2 -Ios2\ibm -AL -D_MSC_VER=510 -Osl -Gs dmstring.c
- copy dmstring.obj objects
- del dmstring.obj
- cl -c -I. -Ios2 -DOS2 -G2 -Ios2\ibm -AL -D_MSC_VER=510 -Osl -Gs hash.c
- copy hash.obj objects
- del hash.obj
- cl -c -I. -Ios2 -DOS2 -G2 -Ios2\ibm -AL -D_MSC_VER=510 -Osl -Gs dag.c
- copy dag.obj objects
- del dag.obj
- cl -c -I. -Ios2 -DOS2 -G2 -Ios2\ibm -AL -D_MSC_VER=510 -Osl -Gs dmake.c
- copy dmake.obj objects
- del dmake.obj
- cl -c -I. -Ios2 -DOS2 -G2 -Ios2\ibm -AL -D_MSC_VER=510 -Osl -Gs path.c
- copy path.obj objects
- del path.obj
- cl -c -I. -Ios2 -DOS2 -G2 -Ios2\ibm -AL -D_MSC_VER=510 -Osl -Gs imacs.c
- copy imacs.obj objects
- del imacs.obj
- cl -c -I. -Ios2 -DOS2 -G2 -Ios2\ibm -AL -D_MSC_VER=510 -Osl -Gs sysintf.c
- copy sysintf.obj objects
- del sysintf.obj
- cl -c -I. -Ios2 -DOS2 -G2 -Ios2\ibm -AL -D_MSC_VER=510 -Osl -Gs parse.c
- copy parse.obj objects
- del parse.obj
- cl -c -I. -Ios2 -DOS2 -G2 -Ios2\ibm -AL -D_MSC_VER=510 -Osl -Gs getinp.c
- copy getinp.obj objects
- del getinp.obj
- cl -c -I. -Ios2 -DOS2 -G2 -Ios2\ibm -AL -D_MSC_VER=510 -Osl -Gs quit.c
- copy quit.obj objects
- del quit.obj
- cl -c -I. -Ios2 -DOS2 -G2 -Ios2\ibm -AL -D_MSC_VER=510 -Osl -Gs state.c
- copy state.obj objects
- del state.obj
- cl -c -I. -Ios2 -DOS2 -G2 -Ios2\ibm -AL -D_MSC_VER=510 -Osl -Gs basename.c
- copy basename.obj objects
- del basename.obj
- cl -c -I. -Ios2 -DOS2 -G2 -Ios2\ibm -AL -D_MSC_VER=510 -Osl -Gs dmdump.c
- copy dmdump.obj objects
- del dmdump.obj
- cl -c -I. -Ios2 -DOS2 -G2 -Ios2\ibm -AL -D_MSC_VER=510 -Osl -Gs macparse.c
- copy macparse.obj objects
- del macparse.obj
- cl -c -I. -Ios2 -DOS2 -G2 -Ios2\ibm -AL -D_MSC_VER=510 -Osl -Gs rulparse.c
- copy rulparse.obj objects
- del rulparse.obj
- cl -c -I. -Ios2 -DOS2 -G2 -Ios2\ibm -AL -D_MSC_VER=510 -Osl -Gs percent.c
- copy percent.obj objects
- del percent.obj
- cl -c -I. -Ios2 -DOS2 -G2 -Ios2\ibm -AL -D_MSC_VER=510 -Osl -Gs function.c
- copy function.obj objects
- del function.obj
- cl -c -I. -Ios2 -DOS2 -G2 -Ios2\ibm -AL -D_MSC_VER=510 -Osl -Gs os2\ruletab.c
- copy ruletab.obj objects
- del ruletab.obj
- cl -c -I. -Ios2 -DOS2 -G2 -Ios2\ibm -AL -D_MSC_VER=510 -Osl -Gs os2\runargv.c
- copy runargv.obj objects
- del runargv.obj
- cl -c -I. -Ios2 -DOS2 -G2 -Ios2\ibm -AL -D_MSC_VER=510 -Osl -Gs os2\_chdir.c
- copy _chdir.obj objects
- del _chdir.obj
- cl -c -I. -Ios2 -DOS2 -G2 -Ios2\ibm -AL -D_MSC_VER=510 -Osl -Gs os2\switchar.c
- copy switchar.obj objects
- del switchar.obj
- cl -c -I. -Ios2 -DOS2 -G2 -Ios2\ibm -AL -D_MSC_VER=510 -Osl -Gs msdos\dirbrk.c
- copy dirbrk.obj objects
- del dirbrk.obj
- cl -c -I. -Ios2 -DOS2 -G2 -Ios2\ibm -AL -D_MSC_VER=510 -Osl -Gs msdos\arlib.c
- copy arlib.obj objects
- del arlib.obj
- cl -c -I. -Ios2 -DOS2 -G2 -Ios2\ibm -AL -D_MSC_VER=510 -Osl -Gs unix\rmprq.c
- copy rmprq.obj objects
- del rmprq.obj
- cl -c -I. -Ios2 -DOS2 -G2 -Ios2\ibm -AL -D_MSC_VER=510 -Osl -Gs os2\ibm\tempnam.c
- copy tempnam.obj objects
- del tempnam.obj
- copy os2\ibm\startup.mk startup.mk
- link /stack:8192 /exe /packc /batch @os2\ibm\obj.rsp,dmake.exe,NUL.MAP,,os2\dmake.def;
- SHAR_EOF
- chmod 0640 dmake/os2/ibm/mkc2.cmd ||
- echo 'restore of dmake/os2/ibm/mkc2.cmd failed'
- Wc_c="`wc -c < 'dmake/os2/ibm/mkc2.cmd'`"
- test 3413 -eq "$Wc_c" ||
- echo 'dmake/os2/ibm/mkc2.cmd: original size 3413, current size' "$Wc_c"
- rm -f _shar_wnt_.tmp
- fi
- # ============= dmake/os2/ibm/obj.rsp ==============
- if test -f 'dmake/os2/ibm/obj.rsp' -a X"$1" != X"-c"; then
- echo 'x - skipping dmake/os2/ibm/obj.rsp (File already exists)'
- rm -f _shar_wnt_.tmp
- else
- > _shar_wnt_.tmp
- sed 's/^X//' << 'SHAR_EOF' > 'dmake/os2/ibm/obj.rsp' &&
- 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\basename.obj+
- objects\dmdump.obj+
- objects\macparse.obj+
- objects\rulparse.obj+
- objects\percent.obj+
- objects\function.obj+
- objects\ruletab.obj+
- objects\runargv.obj+
- objects\_chdir.obj+
- objects\switchar.obj+
- objects\dirbrk.obj+
- objects\arlib.obj+
- objects\rmprq.obj+
- objects\tempnam.obj
- SHAR_EOF
- chmod 0640 dmake/os2/ibm/obj.rsp ||
- echo 'restore of dmake/os2/ibm/obj.rsp failed'
- Wc_c="`wc -c < 'dmake/os2/ibm/obj.rsp'`"
- test 576 -eq "$Wc_c" ||
- echo 'dmake/os2/ibm/obj.rsp: original size 576, current size' "$Wc_c"
- rm -f _shar_wnt_.tmp
- fi
- # ============= dmake/os2/ibm/optoff.h ==============
- if test -f 'dmake/os2/ibm/optoff.h' -a X"$1" != X"-c"; then
- echo 'x - skipping dmake/os2/ibm/optoff.h (File already exists)'
- rm -f _shar_wnt_.tmp
- else
- > _shar_wnt_.tmp
- sed 's/^X//' << 'SHAR_EOF' > 'dmake/os2/ibm/optoff.h' &&
- #if _MSC_VER < 600
- # pragma loop_opt(off)
- #endif
- SHAR_EOF
- chmod 0640 dmake/os2/ibm/optoff.h ||
- echo 'restore of dmake/os2/ibm/optoff.h failed'
- Wc_c="`wc -c < 'dmake/os2/ibm/optoff.h'`"
- test 49 -eq "$Wc_c" ||
- echo 'dmake/os2/ibm/optoff.h: original size 49, current size' "$Wc_c"
- rm -f _shar_wnt_.tmp
- fi
- # ============= dmake/os2/ibm/public.h ==============
- if test -f 'dmake/os2/ibm/public.h' -a X"$1" != X"-c"; then
- echo 'x - skipping dmake/os2/ibm/public.h (File already exists)'
- rm -f _shar_wnt_.tmp
- else
- > _shar_wnt_.tmp
- sed 's/^X//' << 'SHAR_EOF' > 'dmake/os2/ibm/public.h' &&
- /* RCS -- $Header$
- -- 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@watdragon.uwaterloo.ca
- -- CS DEPT, University of Waterloo, Waterloo, Ont., Canada
- --
- -- COPYRIGHT
- -- Copyright (c) 1990 by Dennis Vadura. All rights reserved.
- --
- -- This program is free software; you can redistribute it and/or
- -- modify it under the terms of the GNU General Public License
- -- (version 1), as published by the Free Software Foundation, and
- -- found in the file 'LICENSE' included with this distribution.
- --
- -- This program is distributed in the hope that it will be useful,
- -- but WITHOUT ANY WARRANTY; without even the implied warrant of
- -- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- -- GNU General Public License for more details.
- --
- -- You should have received a copy of the GNU General Public License
- -- along with this program; if not, write to the Free Software
- -- Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
- --
- -- LOG
- -- $Log$
- */
- X
- #ifndef _DMAKE_PUBLIC_h
- #define _DMAKE_PUBLIC_h
- X
- void Infer_recipe ANSI((CELLPTR, CELLPTR));
- int Make_targets ANSI(());
- int Exec_commands ANSI((CELLPTR));
- void Print_cmnd ANSI((char *, int, int));
- void Pop_dir ANSI((int));
- void Append_line ANSI((char *, int, FILE *, char *, int, int));
- void Stat_target ANSI((CELLPTR, 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 * _strjoin ANSI((char *, char *, int, int));
- char * _stradd ANSI((char *, char *, int));
- char * _strapp ANSI((char *, char *));
- char * _strdup ANSI((char *));
- char * _strdup2 ANSI((char *));
- char * _strpbrk ANSI((char *, char *));
- char * _strspn ANSI((char *, char *));
- char * _strstr ANSI((char *, char *));
- char * _substr ANSI((char *, char *));
- uint16 Hash ANSI((char *, uint32 *));
- HASHPTR Get_name ANSI((char *, HASHPTR *, int));
- HASHPTR Search_table ANSI((HASHPTR *, char *, uint16 *, uint32 *));
- 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(());
- void No_ram ANSI(());
- int Usage ANSI((int));
- int Version ANSI(());
- char * Get_suffix 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 Do_touch ANSI((char *, char *, char **));
- void Void_lib_cache ANSI((char *, char *));
- time_t Do_time ANSI(());
- int Do_cmnd ANSI((char *, int, int, CELLPTR, int, int, 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 (*)()));
- 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 *, int));
- FILE * Start_temp ANSI((char *, CELLPTR, char **));
- SHAR_EOF
- true || echo 'restore of dmake/os2/ibm/public.h failed'
- fi
- echo 'End of part 27, continue with part 28'
- echo 28 > _shar_seq_.tmp
- exit 0
- exit 0 # Just in case...
-