1
0
mirror of https://github.com/Interlisp/maiko.git synced 2026-03-12 13:15:11 +00:00

Maiko sources matching state as of 020102 prior to initial patching for Mac OSX

This commit is contained in:
Nick Briggs
2015-04-20 18:53:52 -07:00
commit de170a64d9
427 changed files with 129342 additions and 0 deletions

69
bin/ChangeLog Normal file
View File

@@ -0,0 +1,69 @@
1 Jan 02 JDS
FILES CHANGED: src/byteswap.c bin/makefile-tail
Fix MAKE rules for tstsout, setsout so they use the byteswapper if
necessary. Changed byteswap.c to only define byte_swap_code_page
if we're using reswapped code streams (which we aren't, as of
now), so we don't have to drag that all in or move the function to
someplace unrelated.
1 Jan 2002 JDS
FILES CHANGED: bin/config.guess bin/config.sub bin/osversion,
bin/machinetype (new), bin/makeright, bin/README
Update config.guess to GNU latest, and make osversion use it. Add
a new script, machinetype, also based on config.guess to determine
underlying hardware architecture for us. Changed makeright to use
machinetype.
Added a README file, describing where to get new versions of the
config utilities.
22 Nov 01 JDS
FILES CHANGED: bin/makeright, bin/makefile-linux.386-x, osversion,
mach
Revamped Linux make to use "makeright" script, as other systems
do. Need to revamp it all to use autoconf somehow.
13 Dec 01 JDS
FILES CHANGED: llstk.c, xlspwin.c, dspsubrs.c, xcursor.c
The function Set_XCursor is called two ways: From the DSPCURSOR subr,
and within the C code directly. I had to fix the direct C calls
because Set_XCursor sets Current_Hot_X to 15-y (its second arg)--
but the function was being called with Current_Hot_Y as the 2nd
arg. As a result (HARDRESET) followed by ^B would bollix the
cursor position and menu selection would be off.
Fixed files llstk.c, xlspwin.c, dspsubrs.c to make it work.
Added a warning comment to the function itself.
20 Dec 01 JDS
FILES CHANGED: xrdopt.c, main.c, lspwin.c, storage.c
The X-emulator parser for command line options would NOT accept
the -m flag to set max memory size (it required -memory); changed
the -maxpages to -xpages (controlling # of pages written at once
in sysout writing), and changed the default sysout size from 8Mb
to 32Mb.
22 Dec 01 JDS
FILES CHANGED: main.c, mkvdate.c, version.h
Changed Linux to using gettimeofday() from time(), so we get finer
grained timings. Changed mkvdate.c to include sys/time.h unless
USETIMEFN rather than unless SYSVONLY.
Need to think about using autoconf to drive make process and get
away from the script-based maker.

8
bin/README Normal file
View File

@@ -0,0 +1,8 @@
FILES USED IN THIS DIRECTORY
config.guess
config.sub taken from GNU project's "config" directory, on
prep.ai.mit.edu/pub/gnu/config. Update 'em as
needed.

78
bin/checksum Executable file
View File

@@ -0,0 +1,78 @@
#! /bin/sh
# First line invokes Bourne shell
# ============================================================================
# ABSTRACT:
# Bourne script for checking/generating checksums for files contained
# in a specific Medley release directory. Should normally be invoked
# by ldechecksum and expects the calling script to be connected to
# the medley installation directory. Also, expects the directory
# <medleydir>checksumdir to exist. "< W > ..." warning and "< E > ..."
# error messages will be issued.
#
# SYNOPSIS:
# checksum -cg dir
#
# -c generates a FOO.check file and compares it to FOO.sum.
# -g generates a FOO.sum file.
# NOTE: One of -c or -g is required.
# dir the name of the Medley release directory containing files
# for which checksum checking/generating will be performed.
#
# CHANGES:
# 05-05-89 Carl Gadener : added "trap" to delete created file if
# interrupted. Also "FOO.check" files are now
# deleted after being used.
# 12-14-88 Carl Gadener : Had to rewrite it for Bourne shell because
# the "foreach" loop in csh doesn't accept
# enough args.
# ============================================================================
#
if test $# -lt 2
then
echo "Usage: checksum -cg dir"
exit 2
else
case $1 in
-c) suffix="check"
operation="Verifying"
;;
-g) suffix="sum"
operation="Generating checksum for"
;;
*) echo "Usage: checksum -cg dir"
exit 2 ;;
esac
fi
if test -d $2
then
resultdir=`pwd`/checksumdir
resultfile=`echo "$2" | sed s/\\\//-/g`
# If interrupted be sure to delete created file
trap "/bin/rm -f $resultdir/$resultfile.$suffix ; exit" 1 2 3 15
cd $2
echo "$operation: $2"
echo "Checksum for directory: $2" > $resultdir/$resultfile.$suffix
echo "" >> $resultdir/$resultfile.$suffix
for file in `/bin/ls -FL | /bin/grep -v "/" `
do
echo "E > `sum $file` $file" >> $resultdir/$resultfile.$suffix
done
if test "$1" = "-c" # Verifying
then
/bin/diff $resultdir/$resultfile.sum \
$resultdir/$resultfile.check | grep "<"
# Remove check-file after check has been done
/bin/rm -f $resultdir/$resultfile.check
fi
else
echo "< W > `pwd`/$2 : Directory not installed"
fi

88
bin/checksum-readme Executable file
View File

@@ -0,0 +1,88 @@
January 19, 1989
===========================================================================
CHECKSUM CONTROL FOR FILES UNDER MEDLEY
===========================================================================
If you encounter inexplicable problems shortly after you install Medley,
they may be due to files being corrupted. We recommend that you verify the
checksums of your installed files.
===========================================================================
DESCRIPTION
===========================================================================
The script generates checksum files named FOO.check and compares them to
the released FOO.sum residing in the /checksumdir subdirectory. The
checksum script reports inconsistent files, the correct checksum values for
the files, and an error message. The checksum of individual files can be
verified with the UNIX command "sum filename".
===========================================================================
COMMANDS
===========================================================================
ldechecksum [-cg] medleydir [ dir | dirgroup ]
-c Generates checksums for your installed files and compares
them with correct values. This is the default action.
-g Generates checksums for the files specified.
medleydir Name of the Medley installation directory. Usually its
/usr/local/lde.
dir Any specific directory residing under medleydir. Only
relative pathnames with respect to medleydir are accepted.
dirgroup The directory group, either all (the default) or lisp,
which includes the X/install.sunos3, X/install.sunos4,
X/lisplibrary and X/lispsysouts directories.
===========================================================================
OUTPUT
===========================================================================
As it begins checking each directory, the script prints a message
in the form:
Checking directory: /usr/local/lde/subdir
Error and warning messages may be one of two forms:
< E > 32711 49 4045XLPSTREAM.DFASL
indicates that file 4045XLPSTREAM.DFASL is erroneous or does not
reside in the directory. The correct checksum of 32711, together
with the size (49kbytes) of the file, are shown.
< W > /usr/local/lde/fonts/display/chinese : Directory not installed
indicates that Chinese fonts were not installed or were removed
after Medley was installed.
===========================================================================
EXAMPLES:
===========================================================================
prompt% ldechecksum /usr/local/lde
All files in the installed Medley directories in /usr/local/lde are
checked.
prompt% ldechecksum /usr/local/somedir/lde lisp
This example checks all files in:
/usr/local/somedir/lde/install.sunos3
/usr/local/somedir/lde/install.sunos4
/usr/local/somedir/lde/lisplibrary
/usr/local/somedir/lde/lispsysouts
prompt% cd /usr/local/lde
prompt% ldechecksum -c . fonts/display
This example checks only the display font directories. The period
(.) is used because you are positioned under the current Medley
installation directory.

67
bin/checksum-readme-internal Executable file
View File

@@ -0,0 +1,67 @@
January 19, 1989
======================================================================
HOW TO GENERATE CHECKSUMFILES FOR MEDLEY
======================================================================
===========================================================================
COMMANDS
===========================================================================
ldechecksum [-cg] medleydir [ dir | dirgroup ]
-c Generates checksums for your installed files and compares
them with correct values. This is the default action.
-g Generates checksums for the files specified.
medleydir Name of the Medley installation directory. Usually its
/usr/local/lde.
dir Any specific directory residing under medleydir. Only
relative pathnames with respect to medleydir are accepted.
dirgroup The directory group, either all (the default) or lisp,
which includes the X/install.sunos3, X/install.sunos4,
X/lisplibrary and X/lispsysouts directories.
===========================================================================
REQUIREMENTS
===========================================================================
Before generating checksumfiles, make sure that the subdirectory
"checksumdir" resides under the local Medley directory (normally
/usr/local/lde/checksumdir).
Make also sure that a copy of the scripts "ldechecksum" and "checksum"
reside under the subdirectory "checksumdir".
NOTE: Don't forget to give the "-g" parameter to generate the
checksumfiles.
======================================================================
EXAMPLES
======================================================================
prompt% ldechecksum -g /usr/local/lde
All checksumfiles for the Medley directories residing in
/usr/local/lde will be generated
prompt% ldechecksum /usr/local/somedir/lde lisp
This example generates checksumfiles for all files in:
/usr/local/somedir/lde/install.sunos3
/usr/local/somedir/lde/install.sunos4
/usr/local/somedir/lde/lisplibrary
/usr/local/somedir/lde/lispsysouts
prompt% cd /usr/local/lde
prompt% ldechecksum -c . fonts/display
This example only generates checksumfiles for the display font
directories. The period (.) is used because you are positioned
under the current Medley installation directory.

182
bin/compile-flags Executable file
View File

@@ -0,0 +1,182 @@
Medley compile flags & their meanings
Created: 28-Sep-89 JDS
Updated:
** Flags that control compilation for various machine
** architectures, manufacturers, and OS versions
Flag Name Meaning/Usage
_________ ________________________________________________________
BYTESWAP Used when compiling for a hardware architecture that has
byte-swapped words and word-swapped 32-bit cells, e.g. 80386.
SYSVSIGNALS True when compiling on a system that requires the use of
SYSV (rather than BSD) signal-handling code (just MIPS & ISC
for 486, now).
SYSVONLY True when compiling on a system that has little or no
BSD support (the ISC unix for 486, or MIPS). E.g. gettimofday
is missing.
I386 True if compiling for the Sun386i (not just any 80386);
used because the 386i's display controller is odd.
OS4 True if compiling for SunOS 4.x
AIX
NOPIXRECT Used to suppress pixrect/pixwin options when they're not
needed or not available. True if XWINDOW is.
AIX True if compiling for AIX
_I386 True if compiling for PS/2 under AIX (not our flag)
AIXPS2 True if compiling for PS/2 under AIX (our flag)
APOLLO True if compiling for the Apollo
sparc True if we're compiling on a SPARC machine.
mc68020 True if we're compiling on a Motorola 680x0 machine.
sun3 We're compiling for a Sun-3.
HP9000 We're compiling on an HP9000 RISC machine.
HPUX We're compiling for HP-UX
RS6000 We're compiling for the RS/6000 processor.
DEC3100 We're compiling for the DECStation 3100.
RISCOS We're compiling for the MIPS RISCstation under RISCOS.
UNSAFE If true, enables the "fast" version of 68020 opcodes.
NOASM If true, suppress any attempt to include assembler
versions of things in the emulator. In 'lispemul.c',
if this is true, disables:
SUN3_OS3_IL
SUN3_OS4_IL
SUN4_OS4_IL
OPDISP
NATIVETRAN
UNSAFE
PROFILE
and enables NOASMFNCALL
C_ONLY
SUN4_OS4_IL Try assembler peephole optimizations for SPARC & SunOS4.x
SUN3_OS3_IL Try assembler peephole optimizations for 68K & SunOS 3.x
SUN3_OS4_IL Try assembler peephole optimizations for 68K & SunOS 4.x
SUN3_OS3_OR_OS4_IL Try asm optimizations for 68K & either sunOS. This is
turned on whenever either of SUN3_OS3_IL or SUN3_OS4_IL is on.
OPDISP Use "fast-opcode-dispatch" macros
SPARCDISP Use fast-opcode-dispatch macros on SPARC
HPTIMERBUG True if we must compile in the patch around the HPUX
timer-resetting bug for Series 700.
--Debugging/Tracing/Check-enabling flags--
DEBUG Used when debugging, to enclose trace and dump code.
Best usage is with DBPRINT((controlString, args*));, which
calls printf, and compiles only if DEBUG is true. See
dbprint.h for the definition.
TRACE
TRACE2
TRASE
OPTRACE If true, the dispatch loop prints the PC & opcode each time thru
FNTRACE If true, you see the name of each function called.
STACKCHECK If true, you see unusual cases of stack manipulation
traced. E.g., the hard cases of RETURN, like non-contiguous
stack frames, get mentioned.
LISPTRACE True if you want to see LISP calls & returns traced to
stdout; Generally, for traces of lisp-level events.
PROFILE If true, the profiling control code is enabled. You must
also change the optflags to contain -p or -pg, to use prof
or gprof, respectively.
CHECK
FSBCHECK If true, you see a trace of large free stack blocks when
the stack is manipulated; was used for debugging stack code.
FSMESSAGE If true, prints a message telling you about the hard links
it makes (in support of version numbering), as it makes them.
WINDOW
INIT Used when compiling an emulator to build a loadup. Use it
to dike out code that deals with network initialization, e.g.
MYOPTRACE Used to check the stack's validity on each opcode execution.
Requires NOASM, and the absence of SUN..._IL and SPARCDISP &c.
PCTRACE When true, compiles in a 100-long ring buffer that holds the
last 100 PCs, Function-blocks, and Opcodes executed. "pccounter"
is the offset where the next one will go. Also requires NOASM.
The 3 tables are called pc_table, fn_table, and op_table.
--Flags that control new features, features under test, etc.--
DISPLAYBUFFER 10/3/89 JDS -- enables the experimental code for copying
changed portions of the display bank to the frame buffer.
Meant for supporting mono mode on a CG6 with no single-bit
bitplane. 1/22/91 JDS: This is now the standard flag for
compiling for color displays.
FSERROR Enables the emulator's returning Unix error codes for
{DSK} & {UNIX} operations, so Lisp can decode them and
give better indication of problems. FEATURE STANDARD IN 1.1
WINDOW
FLIPCURSOR If true, the "sandbar" line in the cursor will get flipped
by the C stack-frame-moving code, just as it does on a D
machine. Otherwise, you don't see it.
ORG_FILPCORSORBAR If true, you get the pixwin version of cursor changing;
otherwise, it gets done by direct writes into the display
region.
OLD_CURSOR If true, uses the pixwin cursor code (e.g., win_setcursor);
otherwise, uses the direct-write technique.
NATIVETRAN If true, code to support the native-code translator is
included in the emulator. This feature was never released,
and most such code is probably obsolete.
OS4_TYPE4BUG If true, includes the patches around SunOS 4.0.x's failure
to tell you you've got a Type-4 keyboard.
ALLDIRSEARCH CURRENTLY HARD DISABLED IN directory.c; looks like it
controlled recursive directory searches??
KBINT If true (it looks like??), the emulator does most of the KBD
transition processing in C, rather than interrupting LISP for
it, and the transition interrupts happen when the OS signals
a transition, rather than by polling?
RS232INT If true, the RS232 device (NOT USED, a translation of Lisp's
code), uses the interrupt signalling support of timer.c to
know when to read characters. NOT USED, probably obsolete.
TTYINT Analogous to RS232INT, for the translated TTY device.
ETHERINT
COLOR If TRUE, supports 8bits-per-pixel color on CG4 and CG6 frame
buffer of Sun work station. IF COLOR is TRUE, don't use OLD_CURSOR
flag.
CATCH If true, includes some CATCH C code, for finding the blip,
finding variable names and PVAR names in frames. As of 10/2/89
this code is unused, and is called nowhere else in the system.
RECLAIMINC If true, then the RECLAIMCELL opcode calls gcreclaimcell in
C; otherwise it punts. As of 10/3/89, this was never debugged
and is not in any system. Probably fairly easy to debug??
KB_SUN4 The kbd type for the Type-4 keyboard. Defined only because
older OS versions of the compiler don't define it automatically.
FUJI If true, and you don't set the LDEKBDTYPE environment variable,
you'll get a nasty message asking you to set it before
running lisp. Otherwise, you'll default to a type-3 kbd.
FLTINT If true, use the floating-point exception interrupts to detect
errors and overflows on FP operations. The interrupt sets a
global error flag. Otherwise, calls library routines to see
the condition code from each operation. For SPARCs, it's not
clear that the interrupt trick works, because of code re-
arrangement by the C compiler.
BUFFER Used (apparently) only in testdisplay.c to decide if it should
read the sysout directly, or buffer each page.
IFPAGE_DEFINED Used in .h files to prevent redefinition of Interface page.
IOPAGE_DEFINED " for IO page definition.
NOWAY Used to dike out C definitions of RPLACA and RPLACD in the
file car-cdrmacro.h
XWINDOW True if compiling for an X-windows emulator.
BIGATOMS True if this emulator will support 3-byte symbols, instead of
the old, 2-byte atom numbers.
NEWBITBLT True if we want to use assembler BITBLT code, rather than
have code created inline by macro calls.
bitbltsub.c:#ifdef GETBASE
testdisplay.c:#ifdef NOTUSED
uraid.c:#ifdef ETHERINT
bitblt.c:#ifndef COLOR
bitbltsub.c:#ifndef prropstyle
lispmap.h:#ifdef MEDLEY

1313
bin/config.guess vendored Executable file

File diff suppressed because it is too large Load Diff

1434
bin/config.sub vendored Normal file

File diff suppressed because it is too large Load Diff

14
bin/copyright Executable file
View File

@@ -0,0 +1,14 @@
/************************************************************************/
/* */
/* (C) Copyright 1989, 1990, 1990, 1991, 1992, 1993, 1994, 1995 Venue. */
/* All Rights Reserved. */
/* Manufactured in the United States of America. */
/* */
/* The contents of this file are proprietary information */
/* belonging to Venue, and are provided to you under license. */
/* They may not be further distributed or disclosed to third */
/* parties without the specific permission of Venue. */
/* */
/************************************************************************/

62
bin/dbxinit.txt Executable file
View File

@@ -0,0 +1,62 @@
alias a alias
a t trace
a d delete
a r run
a c cont
a q quit
a h help
a p print
a l list
a s step
a go "run /python/local/sysouts/LISP.SYSOUT -NF"
a dbx "stop in OP_dbx"
a gc "set *(LispPTR *)(Valspace + 2*1772) = 0114"
a engc "set *(LispPTR *)(Valspace + 2*1772) = 0"
a st status
a csf "call sf(MachineState.pvar-10)"
a bt "call bt()"
a btvv "call btvv()"
a n next
a tos "call print(MachineState.tosvalue)"
a Ctos "call print(tscache)"
a csp "call print(*((LispPTR *)(MachineState.csp)))"
a Csp "call print(*((LispPTR *)(cspcache)))"
a do "call doko()"
a ppc "print ((int)(MachineState.currentpc) - (int)(MachineState.currentfunc))"
a sf "call sf(fx)"
a fn "stop in OP_fn"
a ret "stop in OP_return"
a err "stop in error"
a warn "stop in warn"
a ifp "print *InterfacePage"
a iop "print *IOPage"
a pro "print *(PROCESS *)(\!:1)"
a oct "call printf(\"%o\n\" , (\!:1)"
a eve "print *(EVENT *)(\!:1)"
a dev "print *(FDEV *)(\!:1)"
a pac "print *(PACKAGE *)(\!:1)"
a str "print *(Stream *)(\!:1)"
a pque "print *(PROCESSQUEUE *)(\!:1)"
a name "call print_atomname((\!:1))"
a stk "call all_stack_dump((\!:1) , (\!:2) ,(\!:3))"
a astk "call all_stack_dump(0 , 0 , 0)"
a sastk "call all_stack_dump(0 , 0 , 1)"
a type "call type_num(\!:1)"
a dtd "call dtd_chain(\!:1)"
a btvv "call btvv()"
a satom "call S_MAKEATOM(\!:1)"
a a68k "call a68k(\!:1)"
a la "call laddr(\!:1)"
a sval "call S_TOPVAL(\!:1)"
a atom "print MAKEATOM(\!:1)"
a val "call GETTOPVAL(\!:1)"
a sff "call sff((\!:1))"
a stopop "stop in \!:1 if ((struct fnhead *)(MachineState.currentfunc))->framename == \!:2"
a stopfunc "stop if ((struct fnhead *)(MachineState.currentfunc))->framename == \!:1"
a stoppc "stop in \!:1 if (((struct fnhead *)(MachineState.currentfunc))->framename == \!:2 && ((int)(MachineState.currentpc) - (int )(MachineState.currentfunc) > \!:3)) "
a sop "stop in \!:1"
a sc "call stack_check(0)"
use . /python0/users/maiko/working/src /python0/users/maiko/working/inc
ignore VTALRM
ignore IO

BIN
bin/dir.o Normal file

Binary file not shown.

631
bin/dosmkfil Executable file
View File

@@ -0,0 +1,631 @@
AFLAGS = /T
ARCHFILES = dosmouse.obj doskbd.obj vesafns.obj vesainit.obj vgainit.obj kbdif.obj
ADMINFILES = makefile mkvdate.c optck.c
LPFILES = lpmain.obj lpread.obj lpsolve.obj lpwrite.obj lpdual.obj lptran.obj
KEY = keytstno.obj
CFLAGS = -DBIGATOMS -DNEW_STORAGE -DDOS -DBYTESWAP -DKBINT -DFSERROR -DNOPIXRECT \
-DNOFORN -DNOETHER -DNOVERSION -DLPSOLVE -g
LDFLAGS = -g graphics.lib binmode.lib mouse.lib
RM = del
SRCFILES = conspage.c gcoflow.c shift.c dbgtool.c gcr.c gcrcell.c llstk.c gcscan.c loopsops.c storage.c allocmds.c dir.c gvar2.c lowlev1.c subr.c arith2.c hacks.c lowlev2.c subr0374.c arith3.c doscomm.c hardrtn.c lsthandl.c sxhash.c arith4.c draw.c main.c testtool.c array.c dsk.c inet.c misc7.c timer.c array2.c dspif.c initdsp.c miscn.c typeof.c array3.c initkbd.c ubf1.c array4.c dspsubrs.c initsout.c mkatom.c ubf2.c array5.c eqf.c intcall.c mkcell.c ubf3.c array6.c ether.c mkvdate.c ufn.c atom.c findkey.c kbdsubrs.c mouseif.c ufs.c bbtsub.c foreign.c keyevent.c unixcomm.c bin.c fp.c keylib.c binds.c asmbbt.c fvar.c mvs.c unwind.c bitblt.c gc.c uraid.c blt.c gc2.c kprint.c keytstno.c keytst.c osmsg.c usrsubr.c byteswap.c gcarray.c perrno.c ldeboot.c ldeether.c uutils.c carcdr.c gccode.c rawcolor.c vars3.c gcfinal.c ldsout.c return.c vmemsave.c chardev.c gchtfind.c lineblt8.c rpc.c xc.c common.c gcmain3.c lisp2c.c rplcons.c z2.c find-dsp.l dsphack.l xmkicon.c xbbt.c xinit.c xscroll.c xcursor.c xlspwin.c xrdopt.c xwinman.c dosmouse.c vesafns.asm vesainit.c vgainit.c kbdif.c dspsparc.il copyright launch.asm lpread.c lpsolve.c lpmain.c lpwrite.c lpdual.c lptran.c
OFILES = conspage.obj gcoflow.obj shift.obj dbgtool.obj gcr.obj gcrcell.obj llstk.obj gcscan.obj loopsops.obj storage.obj allocmds.obj dir.obj gvar2.obj lowlev1.obj subr.obj arith2.obj hacks.obj lowlev2.obj subr0374.obj arith3.obj doscomm.obj hardrtn.obj lsthandl.obj sxhash.obj arith4.obj draw.obj main.obj testtool.obj array.obj dsk.obj inet.obj misc7.obj timer.obj array2.obj dspif.obj initdsp.obj miscn.obj typeof.obj array3.obj initkbd.obj ubf1.obj array4.obj dspsubrs.obj initsout.obj mkatom.obj ubf2.obj array5.obj eqf.obj intcall.obj mkcell.obj ubf3.obj array6.obj ether.obj ufn.obj atom.obj findkey.obj kbdsubrs.obj mouseif.obj ufs.obj bbtsub.obj foreign.obj keyevent.obj unixcomm.obj bin.obj fp.obj keylib.obj binds.obj fvar.obj mvs.obj unwind.obj bitblt.obj gc.obj uraid.obj blt.obj gc2.obj kprint.obj osmsg.obj usrsubr.obj byteswap.obj gcarray.obj perrno.obj uutils.obj carcdr.obj asmbbt.obj gccode.obj vars3.obj gcfinal.obj ldsout.obj return.obj vmemsave.obj chardev.obj gchtfind.obj lineblt8.obj rpc.obj xc.obj common.obj gcmain3.obj lisp2c.obj rplcons.obj z2.obj vdate.obj $(KEY) $(COLORFILES) $(ARCHFILES) $(LPFILES)
HFILES = address.h adr68k.h arith.h cell.h dbprint.h display.h dspif.h ifpage.h iopage.h lispemul.h lispmap.h lsptypes.h miscstat.h lspglob.h array.h bb.h bitblt.h debug.h devconf.h dspdata.h ether.h fast_dsp.h fp.h gc.h hdw_conf.h initatms.h inlinec.h keyboard.h lispver1.h lispver2.h lldsp.h locfile.h mouseif.h my.h opcodes.h osmsg.h pilotbbt.h print.h profile.h return.h stack.h stream.h subrs.h sysatms.h timeout.h tos1defs.h tosfns.h tosret.h vmemsave.h xdefs.h xbitmaps.h xkeymap.h
bigvm:
CFLAGS = $(CFLAGS) -DBIGVM -DNEWCDRCODRING
make -f foot emul.exe
emul.exe : $(OFILES)
@ echo $** > linkopts
@ echo $(CFLAGS) > copts
$(RM) vdate.c
$(CC) @copts @linkopts $(LDFLAGS) /e$@
del linkopts
del copts
@ echo "Executable is now named '$@'"
main.o : lispemul.h address.h lsptypes.h adr68k.h stack.h lspglob.h lispmap.h ifpage.h iopage.h return.h debug.h profile.h
.SUFFIXES .exe .lib .c .obj .c .asm .s .c
medley.exe: launch.obj
TLINK launch,medley
launch.obj: launch.asm
# xc.obj: xc.s
# tasm /ml xc.s
#
#xc.s: xc.c
# rsh sparky (cd /users/nilsson/curr ; gcc-make $* )
vdate.obj : mkvdate.exe
mkvdate > vdate.c
$(CC) vdate.c -c $@
mkvdate.exe : ../src/mkvdate.c
@ echo $(CFLAGS) > copts
$(CC) @copts ../src/mkvdate.c
del copts
xc.obj : ../src/xc.c
@ echo $(CFLAGS) > copts
$(CC) @copts ../src/xc.c -I ../inc -c $@
del copts
lpmain.obj : ../src/lpmain.c
@ echo $(CFLAGS) > copts
$(CC) @copts ../src/lpmain.c -I ../inc -c $@
del copts
lpsolve.obj : ../src/lpsolve.c
@ echo $(CFLAGS) > copts
$(CC) @copts ../src/lpsolve.c -I ../inc -c $@
del copts
lpread.obj : ../src/lpread.c
@ echo $(CFLAGS) > copts
$(CC) @copts ../src/lpread.c -I ../inc -c $@
del copts
lptran.obj : ../src/lptran.c
@ echo $(CFLAGS) > copts
$(CC) @copts ../src/lptran.c -I ../inc -c $@
del copts
lpdual.obj : ../src/lpdual.c
@ echo $(CFLAGS) > copts
$(CC) @copts ../src/lpdual.c -I ../inc -c $@
del copts
lpwrite.obj : ../src/lpwrite.c
@ echo $(CFLAGS) > copts
$(CC) @copts ../src/lpwrite.c -I ../inc -c $@
del copts
conspage.obj : ../src/conspage.c
@ echo $(CFLAGS) > copts
$(CC) @copts ../src/conspage.c -I ../inc -c $@
del copts
keytstno.obj : ../src/keytstno.c
@ echo $(CFLAGS) > copts
$(CC) @copts ../src/keytstno.c -I ../inc -c $@
del copts
dosmouse.obj : ../src/dosmouse.c
@ echo $(CFLAGS) > copts
$(CC) @copts ../src/dosmouse.c -I ../inc -c $@
del copts
doskbd.obj : ../src/doskbd.c
@ echo $(CFLAGS) > copts
$(CC) @copts ../src/doskbd.c -I ../inc -c $@
del copts
vesafns.obj : ../src/vesafns.asm
tasm /ml ..\src\vesafns.asm
vesainit.obj : ../src/vesainit.c
@ echo $(CFLAGS) > copts
$(CC) @copts ../src/vesainit.c -I ../inc -c $@
del copts
vgainit.obj : ../src/vgainit.c
@ echo $(CFLAGS) > copts
$(CC) @copts ../src/vgainit.c -I ../inc -c $@
del copts
kbdif.obj : ../src/kbdif.c
@ echo $(CFLAGS) > copts
$(CC) @copts ../src/kbdif.c -I ../inc -c $@
del copts
gcoflow.obj : ../src/gcoflow.c
@ echo $(CFLAGS) > copts
$(CC) @copts ../src/gcoflow.c -I ../inc -c $@
del copts
shift.obj : ../src/shift.c
@ echo $(CFLAGS) > copts
$(CC) @copts ../src/shift.c -I ../inc -c $@
del copts
dbgtool.obj : ../src/dbgtool.c
@ echo $(CFLAGS) > copts
$(CC) @copts ../src/dbgtool.c -I ../inc -c $@
del copts
gcr.obj : ../src/gcr.c
@ echo $(CFLAGS) > copts
$(CC) @copts ../src/gcr.c -I ../inc -c $@
del copts
gcrcell.obj : ../src/gcrcell.c
@ echo $(CFLAGS) > copts
$(CC) @copts ../src/gcrcell.c -I ../inc -c $@
del copts
llstk.obj : ../src/llstk.c
@ echo $(CFLAGS) > copts
$(CC) @copts ../src/llstk.c -I ../inc -c $@
del copts
gcscan.obj : ../src/gcscan.c
@ echo $(CFLAGS) > copts
$(CC) @copts ../src/gcscan.c -I ../inc -c $@
del copts
loopsops.obj : ../src/loopsops.c
@ echo $(CFLAGS) > copts
$(CC) @copts ../src/loopsops.c -I ../inc -c $@
del copts
storage.obj : ../src/storage.c
@ echo $(CFLAGS) > copts
$(CC) @copts ../src/storage.c -I ../inc -c $@
del copts
allocmds.obj : ../src/allocmds.c
@ echo $(CFLAGS) > copts
$(CC) @copts ../src/allocmds.c -I ../inc -c $@
del copts
dir.obj : ../src/dir.c
@ echo $(CFLAGS) > copts
$(CC) @copts ../src/dir.c -I ../inc -c $@
del copts
gvar2.obj : ../src/gvar2.c
@ echo $(CFLAGS) > copts
$(CC) @copts ../src/gvar2.c -I ../inc -c $@
del copts
lowlev1.obj : ../src/lowlev1.c
@ echo $(CFLAGS) > copts
$(CC) @copts ../src/lowlev1.c -I ../inc -c $@
del copts
subr.obj : ../src/subr.c
@ echo $(CFLAGS) > copts
$(CC) @copts ../src/subr.c -I ../inc -c $@
del copts
arith2.obj : ../src/arith2.c
@ echo $(CFLAGS) > copts
$(CC) @copts ../src/arith2.c -I ../inc -c $@
del copts
hacks.obj : ../src/hacks.c
@ echo $(CFLAGS) > copts
$(CC) @copts ../src/hacks.c -I ../inc -c $@
del copts
lowlev2.obj : ../src/lowlev2.c
@ echo $(CFLAGS) > copts
$(CC) @copts ../src/lowlev2.c -I ../inc -c $@
del copts
subr0374.obj : ../src/subr0374.c
@ echo $(CFLAGS) > copts
$(CC) @copts ../src/subr0374.c -I ../inc -c $@
del copts
arith3.obj : ../src/arith3.c
@ echo $(CFLAGS) > copts
$(CC) @copts ../src/arith3.c -I ../inc -c $@
del copts
doscomm.obj : ../src/doscomm.c
@ echo $(CFLAGS) > copts
$(CC) @copts ../src/doscomm.c -I ../inc -c $@
del copts
hardrtn.obj : ../src/hardrtn.c
@ echo $(CFLAGS) > copts
$(CC) @copts ../src/hardrtn.c -I ../inc -c $@
del copts
lsthandl.obj : ../src/lsthandl.c
@ echo $(CFLAGS) > copts
$(CC) @copts ../src/lsthandl.c -I ../inc -c $@ -Le
del copts
sxhash.obj : ../src/sxhash.c
@ echo $(CFLAGS) > copts
$(CC) @copts ../src/sxhash.c -I ../inc -c $@
del copts
arith4.obj : ../src/arith4.c
@ echo $(CFLAGS) > copts
$(CC) @copts ../src/arith4.c -I ../inc -c $@
del copts
draw.obj : ../src/draw.c
@ echo $(CFLAGS) > copts
$(CC) @copts ../src/draw.c -I ../inc -c $@
del copts
main.obj : ../src/main.c
@ echo $(CFLAGS) > copts
$(CC) @copts ../src/main.c -I ../inc -c $@
del copts
testtool.obj : ../src/testtool.c
@ echo $(CFLAGS) > copts
$(CC) @copts ../src/testtool.c -I ../inc -c $@
del copts
array.obj : ../src/array.c
@ echo $(CFLAGS) > copts
$(CC) @copts ../src/array.c -I ../inc -c $@
del copts
dsk.obj : ../src/dsk.c
@ echo $(CFLAGS) > copts
$(CC) @copts ../src/dsk.c -I ../inc -c $@
del copts
inet.obj : ../src/inet.c
@ echo $(CFLAGS) > copts
$(CC) @copts ../src/inet.c -I ../inc -c $@
del copts
misc7.obj : ../src/misc7.c
@ echo $(CFLAGS) > copts
$(CC) @copts ../src/misc7.c -I ../inc -c $@
del copts
timer.obj : ../src/timer.c
@ echo $(CFLAGS) > copts
$(CC) @copts ../src/timer.c -I ../inc -c $@
del copts
array2.obj : ../src/array2.c
@ echo $(CFLAGS) > copts
$(CC) @copts ../src/array2.c -I ../inc -c $@
del copts
dspif.obj : ../src/dspif.c
@ echo $(CFLAGS) > copts
$(CC) @copts ../src/dspif.c -I ../inc -c $@
del copts
initdsp.obj : ../src/initdsp.c
@ echo $(CFLAGS) > copts
$(CC) @copts ../src/initdsp.c -I ../inc -c $@
del copts
miscn.obj : ../src/miscn.c
@ echo $(CFLAGS) > copts
$(CC) @copts ../src/miscn.c -I ../inc -c $@
del copts
typeof.obj : ../src/typeof.c
@ echo $(CFLAGS) > copts
$(CC) @copts ../src/typeof.c -I ../inc -c $@
del copts
array3.obj : ../src/array3.c
@ echo $(CFLAGS) > copts
$(CC) @copts ../src/array3.c -I ../inc -c $@
del copts
initkbd.obj : ../src/initkbd.c
@ echo $(CFLAGS) > copts
$(CC) @copts ../src/initkbd.c -I ../inc -c $@
del copts
ubf1.obj : ../src/ubf1.c
@ echo $(CFLAGS) > copts
$(CC) @copts ../src/ubf1.c -I ../inc -c $@
del copts
array4.obj : ../src/array4.c
@ echo $(CFLAGS) > copts
$(CC) @copts ../src/array4.c -I ../inc -c $@
del copts
dspsubrs.obj : ../src/dspsubrs.c
@ echo $(CFLAGS) > copts
$(CC) @copts ../src/dspsubrs.c -I ../inc -c $@
del copts
initsout.obj : ../src/initsout.c
@ echo $(CFLAGS) > copts
$(CC) @copts ../src/initsout.c -I ../inc -c $@
del copts
mkatom.obj : ../src/mkatom.c
@ echo $(CFLAGS) > copts
$(CC) @copts ../src/mkatom.c -I ../inc -c $@
del copts
ubf2.obj : ../src/ubf2.c
@ echo $(CFLAGS) > copts
$(CC) @copts ../src/ubf2.c -I ../inc -c $@
del copts
array5.obj : ../src/array5.c
@ echo $(CFLAGS) > copts
$(CC) @copts ../src/array5.c -I ../inc -c $@
del copts
eqf.obj : ../src/eqf.c
@ echo $(CFLAGS) > copts
$(CC) @copts ../src/eqf.c -I ../inc -c $@
del copts
intcall.obj : ../src/intcall.c
@ echo $(CFLAGS) > copts
$(CC) @copts ../src/intcall.c -I ../inc -c $@
del copts
mkcell.obj : ../src/mkcell.c
@ echo $(CFLAGS) > copts
$(CC) @copts ../src/mkcell.c -I ../inc -c $@
del copts
ubf3.obj : ../src/ubf3.c
@ echo $(CFLAGS) > copts
$(CC) @copts ../src/ubf3.c -I ../inc -c $@
del copts
array6.obj : ../src/array6.c
@ echo $(CFLAGS) > copts
$(CC) @copts ../src/array6.c -I ../inc -c $@
del copts
ether.obj : ../src/ether.c
@ echo $(CFLAGS) > copts
$(CC) @copts ../src/ether.c -I ../inc -c $@
del copts
ufn.obj : ../src/ufn.c
@ echo $(CFLAGS) > copts
$(CC) @copts ../src/ufn.c -I ../inc -c $@
del copts
atom.obj : ../src/atom.c
@ echo $(CFLAGS) > copts
$(CC) @copts ../src/atom.c -I ../inc -c $@
del copts
findkey.obj : ../src/findkey.c
@ echo $(CFLAGS) > copts
$(CC) @copts ../src/findkey.c -I ../inc -c $@
del copts
kbdsubrs.obj : ../src/kbdsubrs.c
@ echo $(CFLAGS) > copts
$(CC) @copts ../src/kbdsubrs.c -I ../inc -c $@
del copts
mouseif.obj : ../src/mouseif.c
@ echo $(CFLAGS) > copts
$(CC) @copts ../src/mouseif.c -I ../inc -c $@
del copts
ufs.obj : ../src/ufs.c
@ echo $(CFLAGS) > copts
$(CC) @copts ../src/ufs.c -I ../inc -c $@
del copts
bbtsub.obj : ../src/bbtsub.c
@ echo $(CFLAGS) > copts
$(CC) @copts ../src/bbtsub.c -I ../inc -c $@
del copts
foreign.obj : ../src/foreign.c
@ echo $(CFLAGS) > copts
$(CC) @copts ../src/foreign.c -I ../inc -c $@
del copts
keyevent.obj : ../src/keyevent.c
@ echo $(CFLAGS) > copts
$(CC) @copts ../src/keyevent.c -I ../inc -c $@
del copts
unixcomm.obj : ../src/unixcomm.c
@ echo $(CFLAGS) > copts
$(CC) @copts ../src/unixcomm.c -I ../inc -c $@
del copts
bin.obj : ../src/bin.c
@ echo $(CFLAGS) > copts
$(CC) @copts ../src/bin.c -I ../inc -c $@
del copts
fp.obj : ../src/fp.c
@ echo $(CFLAGS) > copts
$(CC) @copts ../src/fp.c -I ../inc -c $@
del copts
keylib.obj : ../src/keylib.c
@ echo $(CFLAGS) > copts
$(CC) @copts ../src/keylib.c -I ../inc -c $@
del copts
binds.obj : ../src/binds.c
@ echo $(CFLAGS) > copts
$(CC) @copts ../src/binds.c -I ../inc -c $@
del copts
fvar.obj : ../src/fvar.c
@ echo $(CFLAGS) > copts
$(CC) @copts ../src/fvar.c -I ../inc -c $@
del copts
mvs.obj : ../src/mvs.c
@ echo $(CFLAGS) > copts
$(CC) @copts ../src/mvs.c -I ../inc -c $@
del copts
unwind.obj : ../src/unwind.c
@ echo $(CFLAGS) > copts
$(CC) @copts ../src/unwind.c -I ../inc -c $@
del copts
bitblt.obj : ../src/bitblt.c
@ echo $(CFLAGS) > copts
$(CC) @copts ../src/bitblt.c -I ../inc -c $@
del copts
gc.obj : ../src/gc.c
@ echo $(CFLAGS) > copts
$(CC) @copts ../src/gc.c -I ../inc -c $@
del copts
uraid.obj : ../src/uraid.c
@ echo $(CFLAGS) > copts
$(CC) @copts ../src/uraid.c -I ../inc -c $@
del copts
blt.obj : ../src/blt.c
@ echo $(CFLAGS) > copts
$(CC) @copts ../src/blt.c -I ../inc -c $@
del copts
gc2.obj : ../src/gc2.c
@ echo $(CFLAGS) > copts
$(CC) @copts ../src/gc2.c -I ../inc -c $@
del copts
kprint.obj : ../src/kprint.c
@ echo $(CFLAGS) > copts
$(CC) @copts ../src/kprint.c -I ../inc -c $@
del copts
osmsg.obj : ../src/osmsg.c
@ echo $(CFLAGS) > copts
$(CC) @copts ../src/osmsg.c -I ../inc -c $@
del copts
usrsubr.obj : ../src/usrsubr.c
@ echo $(CFLAGS) > copts
$(CC) @copts ../src/usrsubr.c -I ../inc -c $@
del copts
byteswap.obj : ../src/byteswap.c
@ echo $(CFLAGS) > copts
$(CC) @copts ../src/byteswap.c -I ../inc -c $@
del copts
gcarray.obj : ../src/gcarray.c
@ echo $(CFLAGS) > copts
$(CC) @copts ../src/gcarray.c -I ../inc -c $@
del copts
perrno.obj : ../src/perrno.c
@ echo $(CFLAGS) > copts
$(CC) @copts ../src/perrno.c -I ../inc -c $@
del copts
uutils.obj : ../src/uutils.c
@ echo $(CFLAGS) > copts
$(CC) @copts ../src/uutils.c -I ../inc -c $@
del copts
carcdr.obj : ../src/carcdr.c
@ echo $(CFLAGS) > copts
$(CC) @copts ../src/carcdr.c -I ../inc -c $@
del copts
asmbbt.obj : ../src/asmbbt.c
@ echo $(CFLAGS) > copts
$(CC) @copts ../src/asmbbt.c -I ../inc -c $@
del copts
gccode.obj : ../src/gccode.c
@ echo $(CFLAGS) > copts
$(CC) @copts ../src/gccode.c -I ../inc -c $@
del copts
vars3.obj : ../src/vars3.c
@ echo $(CFLAGS) > copts
$(CC) @copts ../src/vars3.c -I ../inc -c $@
del copts
gcfinal.obj : ../src/gcfinal.c
@ echo $(CFLAGS) > copts
$(CC) @copts ../src/gcfinal.c -I ../inc -c $@
del copts
ldsout.obj : ../src/ldsout.c
@ echo $(CFLAGS) > copts
$(CC) @copts ../src/ldsout.c -I ../inc -c $@
del copts
return.obj : ../src/return.c
@ echo $(CFLAGS) > copts
$(CC) @copts ../src/return.c -I ../inc -c $@
del copts
vmemsave.obj : ../src/vmemsave.c
@ echo $(CFLAGS) > copts
$(CC) @copts ../src/vmemsave.c -I ../inc -c $@
del copts
chardev.obj : ../src/chardev.c
@ echo $(CFLAGS) > copts
$(CC) @copts ../src/chardev.c -I ../inc -c $@
del copts
gchtfind.obj : ../src/gchtfind.c
@ echo $(CFLAGS) > copts
$(CC) @copts ../src/gchtfind.c -I ../inc -c $@
del copts
lineblt8.obj : ../src/lineblt8.c
@ echo $(CFLAGS) > copts
$(CC) @copts ../src/lineblt8.c -I ../inc -c $@
del copts
rpc.obj : ../src/rpc.c
@ echo $(CFLAGS) > copts
$(CC) @copts ../src/rpc.c -I ../inc -c $@
del copts
common.obj : ../src/common.c
@ echo $(CFLAGS) > copts
$(CC) @copts ../src/common.c -I ../inc -c $@
del copts
gcmain3.obj : ../src/gcmain3.c
@ echo $(CFLAGS) > copts
$(CC) @copts ../src/gcmain3.c -I ../inc -c $@
del copts
lisp2c.obj : ../src/lisp2c.c
@ echo $(CFLAGS) > copts
$(CC) @copts ../src/lisp2c.c -I ../inc -c $@
del copts
rplcons.obj : ../src/rplcons.c
@ echo $(CFLAGS) > copts
$(CC) @copts ../src/rplcons.c -I ../inc -c $@
del copts
z2.obj : ../src/z2.c
@ echo $(CFLAGS) > copts
$(CC) @copts ../src/z2.c -I ../inc -c $@
del copts

BIN
bin/endiffix Executable file

Binary file not shown.

4
bin/endiffix.lex Executable file
View File

@@ -0,0 +1,4 @@
%%
^[#][Ee][Nn][Dd][Ii][Ff][ \t]+[0-9,a-z,A-Z \t|_&]+$ {printf("#endif /* %s */\n", &yytext[7]);};
^[#][Ee][Ll][Ss][Ee][ \t]+[0-9,a-z,A-Z \t|_&]+$ {printf("#else /* %s */\n", &yytext[6]);};
%%

14
bin/environment-variables Executable file
View File

@@ -0,0 +1,14 @@
FILE: environment-variables
LDESRCESYSOUT
LDESOURCESYSOUT SYSOUT full-file name you want to run
LDEDESTSYSOUT SYSOUT name for destination of SAVEVM/LOGOUT
LDEKBDTYPE
type2
type3
type4
jle
as3000j
LDEFILETIMEOUT

4
bin/find-writes Executable file
View File

@@ -0,0 +1,4 @@
#! /bin/csh
foreach f (*)
if ( -w $f) echo $f
end

68
bin/fixid Executable file
View File

@@ -0,0 +1,68 @@
#!/usr/local/bin/perl
# $Id: fixid,v 1.1 1999/01/03 04:00:20 sybalsky Exp $ #
#************************************************************************/
#* */
#* (C) Copyright 1999 Venue. All Rights Reserved. */
#* Manufactured in the United States of America. */
#* */
#* The contents of this file are proprietary information */
#* belonging to Venue, and are provided to you under license. */
#* They may not be further distributed or disclosed to third */
#* parties without the specific permission of Venue. */
#* */
#************************************************************************/
######################################################################
# #
# FIXID -- fix up the ID comment and static in source files #
# #
######################################################################
$file = shift;
chomp $file;
printf "File is %s.\n", $file;
open IN, "<" . $file;
open OUT, ">".$file.".new";
## Copy the first two lines of the file (ID comment & static)
$line = <IN>;
printf OUT "%s", $line;
$line = <IN>;
printf OUT "%s", $line;
## Now copy the rest of the file, omitting any line with a (#)
## in it (the likeliest ID Comment/static contents for SCCS.
$line = <IN>;
while ( $line )
{
if ( $line =~ /\(#\)/ )
{
printf "Omitting line: %s", $line;
}
else
{
printf OUT "%s", $line;
}
$line = <IN>;
}
close IN;
close OUT;
## Save the original file, and put the "fixed" on in its place.
`mv $file $file.orig`;
`mv $file.new $file`;

38
bin/fixid~ Executable file
View File

@@ -0,0 +1,38 @@
#!/usr/local/bin/perl
$file = shift;
chomp $file;
printf "File is %s.\n", $file;
open IN, "<" . $file;
open OUT, ">".$file.".new";
$line = <IN>;
printf OUT "%s", $line;
$line = <IN>;
printf OUT "%s", $line;
$line = <IN>;
while ( $line )
{
if ( $line =~ /\(#\)/ )
{
printf "Omitting line: %s", $line;
}
else
{
printf OUT "%s", $line;
}
$line = <IN>;
}
close IN;
close OUT;
`mv $file $file.orig`;
`mv $file.new $file`;

758
bin/install-medley Executable file
View File

@@ -0,0 +1,758 @@
#! /bin/sh
# ============================================================================
# Changes:
# ============================================================================
# SYNOPSYS:
# install-medley
#
# Utility used for installation and upgrading of the medley system.
# The utility will infer as much as possible about the host and network,
# but will prompt for answers when needed.
#
# ============================================================================
# What is the application to be installed
APPLICATION="Medley 2.0"
SHAREDIR=/usr/share/lde
LOCALDIR=/usr/local/lde
INSTALLDIR=$LOCALDIR
TAPEDEV=/dev/rst0
#************************************************************
#********* Changes below this point should normally *********
#********* not be required *********
#************************************************************
# What we normally recommend to install (marked with 'x')
# COLORP and X11P versions are deduced if possible
SYSOUTP=x
MONOP=x
DISPLAYFONTP=x
LIBRARYP=x
# All sizes in MB
SYSOUTSIZE=5.1
MONOSIZE=0.5
COLORSIZE=0.5
X11SIZE=0.6
XNSSIZE=0.1
LIBRARYSIZE=3
DISPLAYFONTSIZE=5.5
INTERPRESSFONTSIZE=1.5
CHECKSUMSIZE=0.1
OBJECTSIZE=0.6
# All the files for each group
SYSOUTFILES="./lispsysouts"
CHECKSUMFILES="./checksumdir"
LIBRARYFILES="./lisplibrary ./clos"
DISPLAYFONTFILES="./fonts/display"
INTERPRESSFONTFILES="./fonts/interpress ./fonts/press"
LOCALHOST=`/bin/hostname`
scriptName=`/bin/basename $0`
# Send out a message when interrupted
trap 'echo "
Aborted..."; exit' 2
#-----------------------------------------------------------
#----------------------- PROCEDURES ------------------------
exitScript () {
echo "$scriptName: $1"
exit
} # exitScript
ask(){
# Ask a question=$1 and use default=$2 if no answer is given. If arg $3
# is specified, it will be considered the opposite of $2. Return 0 if
# default is used, 1 otherwise. 'answer' can be used as a global variable
echo -n "$1 ${2:+[$2]}: "
answer=`/bin/line`
if [ $# -gt 2 ]
then until [ "$answer" = "" -o "$answer" = "$2" -o "$answer" = "$3" ];
do echo "Please type '$2' or '$3'."
echo -n "$1 $2: "
answer=`/bin/line`
done
fi
# Note the "-" in the argument below. test will not behave well with some
# of the shell escape characters otherwise.
[ "-${answer:=$2}" = "-$2" ]
} # ask
menuInstructions () {
echo "<--------------------> Menu Instructions <-------------------->
- Only options marked with an 'x' will be installed. They are
initally based on inferred information, recommendations and answers
to questions.
- To select additional options, at the prompt enter at least as
many characters as needed to make the selection unique, e.g.,
'XN' for XNS. To select all options, enter 'All'.
- To deselect an option already marked with an 'x', at the prompt
enter at least as many characters as needed to make the
selection unique. To deselect all options, enter 'None'.
"
ask "Continue?" "y"
} # menuInstructions
welcome() {
/usr/ucb/clear
echo "
<----------> Welcome to the $APPLICATION Installation Utility <---------->
Utility is used to install or upgrade a $APPLICATION system. It will try to infer
as much information as possible about your system, but you will be prompted
for specific information when it is not able to infer it automatically.
Recommended options are initially filled in, but you can change them at
any time using the Installation Options Menu.
"
menuInstructions
} # welcome
scriptMessage () {
MESSAGE="************************** $1 ***************************
$2
************************************************************"
} # scriptMessage
setOSType () {
# Pass it OS versions and it will set the OSVERSION variable
while [ $# != 0 ]
do case "$1" in
3|3.[245]) OS3P=x ;;
4|4.0|4.0.*) OS4P=x ;;
4.1|4.1.*) OS41P=x ;;
*) echo " Should not happen: OStype $1 invalid" ;;
esac
shift
done
OSVERSION="${OS3P:+3} ${OS4P:+4} ${OS41P:+4.1}"
} # setOSType
askOSVersion(){
# Prompt user for the correct OS-version
MESSAGE="$1"
unset menuloop1
while [ ${menuloop1:-notdone} = notdone ]
do /usr/ucb/clear
echo "
<---------------> OS Options Menu <--------------->
${OS3P:--} 3.X - SunOS 3.2 3.4 3.5
${OS4P:--} 4.0 - SunOS 4.0 4.0.X
${OS41P:--} 4.1 - SunOS 4.1 4.1.X
All - Mark all options
None - Unmark all options
Continue installation
${MESSAGE:+
$MESSAGE}"
unset MESSAGE
ask "Select" "Continue"
case "$answer" in
3|3.[X245])
if [ "$OS3P" != "x" ]
then OS3P=x
else unset OS3P
fi ;;
4.0|4.0.*)
if [ "$OS4P" != "x" ]
then OS4P=x
else unset OS4P
fi ;;
4.1|4.1.*)
if [ "$OS41P" != "x" ]
then OS41P=x
else unset OS41P
fi ;;
[aA]*) OS3P=x ; OS4P=x ; OS41P=x ;;
[nN]*) unset OS3P OS4P OS41P ;;
[cC]*|"") menuloop1=done ;;
*) MESSAGE="Invalid reply: $answer" ;;
esac
done
OSVERSION="${OS3P:+3} ${OS4P:+4} ${OS41P:+4.1}"
} # askOSVersion
checkInstallPoint () {
# Uses INSTALLDIR to determine if it is possible to make an
# installation. INSTDIRERRP is just used to return result of operation and
# to signal an error message. EXISTSP is used to avoid repetitive messages.
unset INSTDIRERRP
if [ -f "$INSTALLDIR" ]
then scriptMessage "ERROR" "A file with the same name already exists: $INSTALLDIR
Select the 'Directory' command and make a change."
INSTDIRERRP=x
elif [ -d "$INSTALLDIR" -a ! -w "$INSTALLDIR" ]
then scriptMessage "ERROR" "Write permission denied for directory: $INSTALLDIR
Select the 'Directory' command and make a change."
INSTDIRERRP=x
elif [ ! -d "$INSTALLDIR" ]
then /bin/mkdir -p $INSTALLDIR 1>/dev/null 2>/dev/null
if [ $? = 0 ]
then EXISTSP=x
else scriptMessage "ERROR" "Could not create: $INSTALLDIR - Permission denied
Select the 'Directory' command and make a change."
INSTDIRERRP=x
fi
elif [ -d "$INSTALLDIR" -a ${EXISTSP:--} = - ]
then scriptMessage "WARNING" "Directory already exists: $INSTALLDIR
If this is the location of a previous $APPLICATION installation,
\"$scriptName\" may overwrite some of the old files."
EXISTSP=x
fi
[ ${INSTDIRERRP:--} = - ]
} # checkInstallPoint
mountTape () {
unset TAPEMOUNTEDP
while [ ${TAPEMOUNTEDP:--} = - ]
do if [ "$1" = "$LOCALHOST" ]
then mt -f $TAPEDEV status 2>&1 | /bin/egrep -s "no sense"
else /usr/ucb/rsh "$1" mt -f $TAPEDEV status 2>&1 | /bin/egrep -s "no sense"
fi
if [ $? != 0 ]
then echo "ERROR. Tape not mounted or mounted improperly."
ask "Please insert installation tape in the tape drive. Done?" "y"
else TAPEMOUNTEDP=x
fi
done
} # mountTape
checkTape () {
if [ "$1" = "$LOCALHOST" ]
then echo -n "Looking for a local tape drive on $1 ..."
mt -f $TAPEDEV status 2>&1 | /bin/egrep -s "no sense|not ready|no tape loaded"
if [ $? = 0 ]
then echo " Found"
TAPEHOST="$LOCALHOST"
else echo " Not found"
echo "'$LOCALHOST' does not seem to have a tape drive."
fi
else /usr/etc/ping "$1" 10 1>/dev/null 2>/dev/null
if [ $? = 0 ]
then echo -n "Looking for a remote tape drive on $1 ..."
/usr/ucb/rsh "$1" mt -f $TAPEDEV status 2>&1 | /bin/egrep -s "no sense|not ready|no tape loaded"
if [ $? = 0 ]
then echo " Found"
TAPEHOST="$1"
else echo " Not Found"
echo "'$1' does not seem to have a tape drive."
fi
else echo "Could not connect to '$1' or host unknown."
fi
fi
} # checkTape
inferConfiguration () {
# Infers as much as possible the type of configuration on the host
# or network. Will ask when not able to determine something.
# Try to infer Os type
if [ -f /etc/motd ]
then OSVERSION=`sed -e '1s/.*Release \(...\).*/\1/' -e '1q' < /etc/motd`
setOSType $OSVERSION
else askOSVersion "Please specify the SunOS version you are running."
fi
# Is it necessary to install 'ldemulti'
/bin/egrep -s "cgthree0|cgsix0" /var/adm/messages
if [ $? = 0 ]
then COLORP=x
fi
# Is X-windows installed on this host
if [ -d /usr/bin/X11 -o -d /usr/local/X11 ]
then X11P=x
fi
checkTape $LOCALHOST
while [ ${TAPEHOSTP:--} = - ]
do
if [ ${TAPEHOST:--} = - ]
then
# Host is networked
ask "Name of a host with a tape drive"
checkTape "$answer"
fi
if [ "${TAPEHOST:+-}" = - ]
then if ask "Insert installation tape in tape drive of $TAPEHOST. Ready?" "y"
then TAPEHOSTP=x
mountTape "$TAPEHOST"
else unset TAPEHOST
fi
fi
done
} # inferConfiguration
emulatorSpace () {
# Figure out according to selections what the real space requirements
# are for the emulator. Sets the variables RMONOSIZE, RCOLORSIZE, RX11SIZE
# for later usage
RMONOSIZE=0
RCOLORSIZE=0
RX11SIZE=0
if [ ${MONOP:--} != - ]
then for x in $OSVERSION
do RMONOSIZE=`echo $MONOSIZE ${OBJECTP:+"+ $OBJECTSIZE"} + $RMONOSIZE | /bin/bc`
done
fi
if [ ${COLORP:--} != - ]
then for x in $OSVERSION
do RCOLORSIZE=`echo $COLORSIZE ${OBJECTP:+"+ $OBJECTSIZE"} + $RCOLORSIZE | /bin/bc`
done
fi
if [ ${X11P:--} != - ]
then for x in $OSVERSION
do RX11SIZE=`echo $X11SIZE ${OBJECTP:+"+ $OBJECTSIZE"} + $RX11SIZE | /bin/bc`
done
fi
} # emulatorSpace
showInstallMenu () {
# Will do different calculations depending on $1. If no argument is
# given, it will only redisplay the Installation Options Menu.
if [ $# -ge 1 ]
then if [ "$1" = available -o $# -gt 1 ]
then if checkInstallPoint
then calculateSpace available
fi
fi
if [ "$1" = required -o $# -gt 1 ]
then calculateSpace required
fi
if [ "${EXISTSP:+-}" = - ]
then sufficientSpaceP
fi
fi
/usr/ucb/clear
echo "
<---------------> Installation Options Menu <-------------->
------------------------ Emulators -------------------------
For one or several OS versions (At least one of monochrome,
color, or X11-version is required for new installations).
${MONOP:--} Monochrome ${MONOP:+- $RMONOSIZE MByte}
${COLORP:--} Color ${COLORP:+- $RCOLORSIZE MByte}
${X11P:--} X11-version ${X11P:+- $RX11SIZE MByte}
${XNSP:--} XNS ${XNSP:+- $XNSSIZE MByte }- allows handling of the XNS protocol.
${OBJECTP:--} Object files - allows linking of Medley to other software.
OS version - Change versions. Selected: $OSVERSION
-------------------------- Fonts ---------------------------
${DISPLAYFONTP:--} Display ${DISPLAYFONTP:+- $DISPLAYFONTSIZE MByte }(recommended)
${INTERPRESSFONTP:--} Interpress ${INTERPRESSFONTP:+- $INTERPRESSFONTSIZE MByte}
------------ Sysout, Library & Checksum files -------------
${SYSOUTP:--} Sysout ${SYSOUTP:+- $SYSOUTSIZE MByte} (required for new installations).
${LIBRARYP:--} Library modules ${LIBRARYP:+- $LIBRARYSIZE MByte }(recommended)
${CHECKSUMP:--} Checksum files ${CHECKSUMP:+- $CHECKSUMSIZE MByte}
------------------------- Commands -------------------------
Directory - Change the installation directory.
-- Current: $INSTALLDIR
-- Disk-space(KByte) Available:${AVAILABLESPACE:----} Needed:$DISKSPACE
!<Unix command> - Execute a Unix command.
? or Help - Show menu instructions.
Redraw - Redisplay this menu.
All - Mark all options.
None - Unmark all options.
Continue installation.
Quit installation.
${MESSAGE}"
} # showInstallMenu
getInstallOptions() {
# General menu for selecting what to install
showInstallMenu required available
menuloop3=notdone
while [ "$menuloop3" = notdone ]
do if [ "${INSTDIRERRP:+-}" = - ]
then ask "Select" "Directory"
unset INSTDIRERRP
else ask "Select" "Continue"
fi
unset MESSAGE
case "$answer" in
[sS]*) if [ "$SYSOUTP" != "x" ]
then SYSOUTP=x
else unset SYSOUTP
fi
showInstallMenu required ;;
[mM]*) if [ "$MONOP" != "x" ]
then MONOP=x
else unset MONOP
fi
showInstallMenu required ;;
[cC][oO][lL]*)
if [ "$COLORP" != "x" ]
then COLORP=x
else unset COLORP
fi
showInstallMenu required ;;
[xX][1]*)
if [ "$X11P" != "x" ]
then X11P=x
else unset X11P
fi
showInstallMenu required ;;
[xX][nN]*)
if [ "$XNSP" != "x" ]
then XNSP=x
else unset XNSP
fi
showInstallMenu required ;;
[oO][bB]*)
if [ "$OBJECTP" != "x" ]
then OBJECTP=x
else unset OBJECTP
fi
showInstallMenu required ;;
[oO][sS]*)
askOSVersion "Please specify changes you wish to make."
showInstallMenu required ;;
[dD][iI][sS]*)
if [ "$DISPLAYFONTP" != "x" ]
then DISPLAYFONTP=x
else unset DISPLAYFONTP
fi
showInstallMenu required ;;
[iI]*) if [ "$INTERPRESSFONTP" != "x" ]
then INTERPRESSFONTP=x
else unset INTERPRESSFONTP
fi
showInstallMenu required ;;
[lL]*) if [ "$LIBRARYP" != "x" ]
then LIBRARYP=x
else unset LIBRARYP
fi
showInstallMenu required ;;
[cC][hH]*)
if [ "$CHECKSUMP" != "x" ]
then CHECKSUMP=x
else unset CHECKSUMP
fi
showInstallMenu required ;;
[dD][iI][rR]*)
ask "Where do you want to install $APPLICATION?" "$INSTALLDIR"
INSTALLDIR="$answer"
unset EXISTSP
showInstallMenu available ;;
!?*) eval `echo "$answer" | /bin/sed -e s/\\!//` ;;
\?|[hH]*) menuInstructions ; showInstallMenu ;;
[rR]*) showInstallMenu ;;
[aa]*) SYSOUTP=x ; MONOP=x ; COLORP=x ; X11P=x ; XNSP=x
OBJECTP=x ; DISPLAYFONTP=x ; INTERPRESSFONTP=x
LIBRARYP=x ; CHECKSUMP=x ; showInstallMenu required ;;
[nN]*) unset SYSOUTP MONOP COLORP X11P XNSP OBJECTP DISPLAYFONTP INTERPRESSFONTP LIBRARYP CHECKSUMP
showInstallMenu required ;;
[cC][oO][nN]*|"")
if [ ${SYSOUTP:--} = - -a ${MONOP:--} = - -a \
${COLORP:--} = - -a ${X11P:--} = - -a \
${DISPLAYFONTP:--} = - -a ${INTERPRESSFONTP:--} -a \
${LIBRARYP:--} = - -a ${CHECKSUMP:--} = - -a \
${OBJECTP:--} = - -a ${XNSP:--} = - ]
then scriptMessage "ERROR" "It doesn't make sense not installing anything.
Please select an option to install"
elif [ \( ${MONOP:--} != - -o ${COLORP:--} != - -o \
${X11P:--} != - \) -a ${OS3P:--} = - -a \
${OS4P:--} = - -a ${OS41P:--} = - ]
then scriptMessage "ERROR" "You have to select a SunOS version in order to install an emulator."
elif checkInstallPoint
then if sufficientSpaceP
then menuloop3=done
fi
fi
echo "$MESSAGE" ;;
[qQ]*) exitScript "Aborted ..." ;;
*) echo "Invalid reply: $answer" ;;
esac
done
} # getInstallOptions
calculateSpace(){
# Calculate either available space for chosen installation point or required
# space for selected options. $1 is used to determine what to calculate.
if [ "$1" = required ]
then emulatorSpace
REQUIREDSPACE=`echo ${SYSOUTP:+"$SYSOUTSIZE +"} \
${LIBRARYP:+"$LIBRARYSIZE +"} \
${DISPLAYFONTP:+"$DISPLAYFONTSIZE +"} \
${INTERPRESSFONTP:+"$INTERPRESSFONTSIZE +"} \
${CHECKSUMP:+"$CHECKSUMSIZE +"} \
${XNSP:+"$XNSSIZE +"} \
"$RMONOSIZE + $RCOLORSIZE + $RX11SIZE" | /bin/bc`
DISKSPACE=`echo $REQUIREDSPACE "*" 1024 | /bin/bc`
else DF=`/bin/df $INSTALLDIR 2>/dev/null| egrep -v Filesystem`
if [ "$DF" != "" ]
then FILESYSTEM=`echo $DF | /bin/awk '{print $6}'`
AVAILABLESPACE=`echo $DF | /bin/awk '{print $4}'`
else unset AVAILABLESPACE
fi
fi
}
sufficientSpaceP () {
# Check if there is enough space in FILESYSTEM to make install
unset MISSINGSPACE
if [ "$DISKSPACE" -ge "$AVAILABLESPACE" ]
then MISSINGSPACE=`echo $DISKSPACE - $AVAILABLESPACE | /bin/bc`
scriptMessage "ERROR" "There is not enough disk-space in file system: $FILESYSTEM
Additional space needed: ($MISSINGSPACE Kbytes)
To complete installation, select the 'Directory' command and
make a change, or deselect some of the selected options."
INSTDIRERRP=x
fi
[ "$DISKSPACE" -lt "$AVAILABLESPACE" ]
}
tapeCommand() {
# Tape commands are $1 = 'rewind' and 'fsf 1' and
# $2 is the message to print out if given.
if [ $# -gt 1 ]
then echo -n "$2"
fi
if [ "$TAPEHOST" = `/bin/hostname` ]
then /bin/mt -f /dev/nrst0 $1 # local tape drive
else /usr/ucb/rsh -n "$TAPEHOST" /bin/mt -f /dev/nrst0 $1 # remote host
fi
if [ $? = 0 -a $# -gt 1 ]
then echo " Done"
fi
}
collectEmulatorFiles () {
EMULATORFILES="$EMULATORFILES $*"
}
extract() {
# Extract from tape
# Print message
echo -n "Extracting: $1 ..."
shift
if [ "$TAPEHOST" = `/bin/hostname` ]
then /bin/dd if=/dev/nrst0 bs=256b 2>/dev/null | /bin/tar xBipfb - 256 $*
else /usr/ucb/rsh -n "$TAPEHOST" /bin/dd if=/dev/nrst0 bs=256b 2>/dev/null | /bin/tar xBipfb - 256 $*
fi
if [ $? != 0 ]
then echo " Not extracted !"
else echo " Done"
fi
}
extractFilesP () {
# Returns true if either of the file arguments passed are to be
# extracted. It is used to avoid unnecessary skips and searches on the tape.
unset EXTRACTP
while [ ${EXTRACTP:--} = - -a $# != 0 ]
do case "$1" in
File3) EXTRACTP=${MONOP:-${COLORP:-${X11P:-${XNSP:-${OBJECTP:--}}}}} ;;
File4) EXTRACTP=${LIBRARYP:--} ;;
File5) EXTRACTP=${SYSOUTP:-${CHECKSUMP:--}} ;;
File6) EXTRACTP=${DISPLAYFONTP:-${INTERPRESSFONTP:--}} ;;
*)
exitScript "Help! Should not happen: extractFilesP $1 " ;;
esac
shift
done
[ ${EXTRACTP:--} != - ]
}
performInstall () {
# The actual tar of the tape. There are 5 files on the tape.
# File 1 Contains this script 'install-medley' (Skip past it)
# File 2 Contains the 'medley' script (always extracted)
# File 3 Contains the emulator files for the supported OS-versions
# (executables, objectfiles and makefile)
# File 4 Contains Lisp Library files
# File 5 Contains Lisp Sysouts and checksumfiles
# File 6 Contains Font files (Display and Interpress)
cd $INSTALLDIR
tapeCommand rewind "Positioning media ..."
tapeCommand 'fsf 1'
extract "medley startup script" ./medley
if extractFilesP File3
then EMULATORFILES=""
for OS in $OSVERSION
do collectEmulatorFiles ${MONOP:+"./install.sunos$OS/ldesingle ${OBJECTP:+./install.sunos$OS/ldesingle.o}"} ${COLORP:+"./install.sunos$OS/ldemulti ${OBJECTP:+./install.sunos$OS/ldemulti.o}"} ${X11P:+"./install.sunos$OS/ldex ${OBJECTP:+./install.sunos$OS/ldex.o}"} ${XNSP:+"./install.sunos$OS/ldeether ${OBJECTP:+./install.sunos$OS/ldeether.c}"} ${OBJECTP:+"./install.sunos$OS/makefile ./install.sunos$OS/usersubrs.c"}
if [ "${MONOP:+-}" = - -o "${COLORP:+-}" = - -o "${MULTI:+-}" = - ]
then EMULATORFILES="./install.sunos$OS/lde $EMULATORFILES"
fi
done
extract "emulator files for OS versions: $OSVERSION" $EMULATORFILES
elif extractFilesP File4 File5 File6
then tapeCommand 'fsf 1' "Skipping: emulator files ..."
fi
if extractFilesP File4
then extract "library files" ${LIBRARYP:+$LIBRARYFILES}
elif extractFilesP File5 File6
then tapeCommand 'fsf 1' "Skipping: library files ..."
fi
if extractFilesP File5
then extract "${SYSOUTP:+sysout }${CHECKSUMP:+checksum }files" ${SYSOUTP:+$SYSOUTFILES} ${CHECKSUMP:+$CHECKSUMFILES}
elif extractFilesP File6
then tapeCommand 'fsf 1' "Skipping: ${SYSOUTP:+sysout }${CHECKSUMP:+checksum }files ..."
fi
if extractFilesP File6
then extract "${DISPLAYFONTP:+display }${INTERPRESSFONTP:+interpress }font-files" ${DISPLAYFONTP:+$DISPLAYFONTFILES} ${INTERPRESSFONTP:+$INTERPRESSFONTFILES}
fi
tapeCommand rewind "Done extracting files. Rewinding media ..."
}
updateFile() {
# Will create a copy of file $1 into $1.orig
# Will then replace $* with $2 from file $1.orig into file $1
FILE=$1
CHANGES="$*"
TO=$2
if [ ! -f "$FILEDIR/$FILE.orig" ]
then /bin/cp $FILE $FILE.orig
fi
echo -n "Updating: $FILE ... "
for CHANGE in CHANGES
do
/bin/sed -e 1,'$'s/$CHANGE/$TO/ <$FILE.orig >$FILE
done
if [ $? = 0 ]
then echo -n "Done - "
else echo "An error occured while trying to update: $FILE"
fi
echo "Original in: $FILE.orig ..."
}
updateFiles(){
# Will update 'site-init' and 'medley' by replacing all ocassions of
# $SHAREDIR or $LOCALDIR to $INSTALLDIR
if ask "Do you wish to update the files 'site-init' and 'medley'
with respect to the installation directory: $INSTALLDIR" "y" "n"
then CHANGEDIR1=`echo $SHAREDIR | /bin/sed -e 's/\//\\\\\//g'`
CHANGEDIR2=`echo $LOCALDIR | /bin/sed -e 's/\//\\\\\//g'`
NEWDIR=`echo $INSTALLDIR | /bin/sed -e 's/\//\\\\\//g'`
FILEDIR="$INSTALLDIR/`/bin/basename $LIBRARYFILES`"
if [ ${LIBRARYP:--} != - -a -d "$FILEDIR" ]
then cd "$FILEDIR"
if [ -f "$FILEDIR/site-init" ]
then
updateFile site-init "$NEWDIR" "$CHANGEDIR1" "$CHANGEDIR2"
elif [ -f "$FILEDIR/site-init.lisp" ]
then
cp site-init.lisp site-init
updateFile site-init "$NEWDIR" "$CHANGEDIR1" "$CHANGEDIR2"
else echo "Could not find: $FILEDIR/site-init"
fi
else echo "$FILEDIR/site-init not installed."
fi
if [ -f "$INSTALLDIR/medley" ]
then cd "$INSTALLDIR"
updateFile medley "$NEWDIR" "$CHANGEDIR1" "$CHANGEDIR2"
else echo "Could not find: $INSTALLDIR/medley"
fi
fi
}
#------------------------------------------------------------
# ********** Main procedure starts here. **********
#------------------------------------------------------------
welcome
inferConfiguration
unset answer
while [ ${answer:--} != y ]
do getInstallOptions
ask "Ready to make installation in: $INSTALLDIR" "y" "n"
done
performInstall
updateFiles
exitScript "Installation of $APPLICATION completed."

362
bin/launch.asm Executable file
View File

@@ -0,0 +1,362 @@
;************************************************************************
;* *
;* l a u n c h . a s m *
;* *
;* This is the launcher for Medley on DOS. It: *
;* *
;* * Looks for and validates any -m memsize argument on the *
;* command line. Only values in the range 8 - 32 are allowed. *
;* *
;* * Loads the real Medley emulator, emul.exe, from the same *
;* directory that the launcher came from. *
;* *
;* * Sets the Intel DOS Extender's profile to the requested *
;* memory size + 3Mb (to allow for the emulator, internal *
;* data areas, etc.) *
;* *
;* * Set the termination address in the child process's PSP, *
;* so control returns to the launcher when Medley terminates. *
;* *
;* * Jumps to the emulator's start address. *
;* *
;* * Upon return, just terminates cleanly. *
;* *
;* [We could perhaps do some diagnosis here of error returns?] *
;* *
;* *
;* *
;************************************************************************
;************************************************************************/
;* */
;* (C) Copyright 1993, 1994 Venue. All Rights Reserved. */
;* Manufactured in the United States of America. */
;* */
;* The contents of this file are proprietary information */
;* belonging to Venue, and are provided to you under license. */
;* They may not be further distributed or disclosed to third */
;* parties without the specific permission of Venue. */
;* */
;************************************************************************/
.model small
.386p
.stack 100h
.data
align 8
;********************************************************
;* Parameter block for INT 214B, that loads medley.exe *
;********************************************************
envseg DW 0 ; environment (0 = copy mine)
cmdip DW ? ; command-line-tail pointer
cmdcs DW ?
fcb1 DD ? ; dummy first FCB to fill in
fcb2 DD ? ; " 2nd FCB, not here in DOS 4.01???
stk DD ? ; SS:SP for emul.exe, filled in by loader
csip DD ? ; start addr for emul.exe, filled in by loader
retad DD FAR PTR myret ; cs:ip return address, to put in
; child PSP, so we get control back.
;* Error messages, misc strings, and work areas*
align 8
memval dd 0
errstg DB 'ERROR: Couldn''t free excess storage.',13,10,'$'
noload db 'ERROR: Loading emulator failed: $'
loaded db 'LOAD SUCCESSFUL.',13,10,'$'
nominfo db 'ERROR: -m must be followed by a number 8 - 64.',13,10,'$'
badexe db 'ERROR: emul.exe is corrupted.',13,10,'$'
emulpath DB 'emul.exe',0 ; name of the real emulator.
mflag db '-m' ; to search for -m/-M in cmd line
mmflag db '-M'
profile db 'PRO' ; to find the DOS extender profile
cmdline db 128 dup (?) ; hold the cmd line tail for real emulator
;* Error-message table for failures loading emul.exe
align 2
errtbl dw OFFSET ng0msg ; 0 = unknown failure
dw OFFSET ng1msg ; 1 = "invalid function"
dw OFFSET ng2msg ; 2 = file not found
dw OFFSET ng3msg ; 3 = path not found
dw OFFSET ng4msg ; 4 = too many open files
dw OFFSET ng5msg ; 5 = access denied
dw OFFSET ng0msg ; 6 = not possible error
dw OFFSET ng0msg ; 7 = not possible error
dw OFFSET ng8msg ; 8 = insufficient storage
dw OFFSET ng0msg ; 9 = not possible
dw OFFSET ngamsg ; A = bad environment
dw OFFSET ngbmsg ; B = bad format (corrupt .exe?)a
ng0msg db 'Unknown problem',13,10,'$'
ng1msg db 'Invalid Function',13,10
db 'Make sure you are running DOS 4.0 or later.',13,10,'$'
ng2msg db 'File not found.',13,10
db 'CD to proper directory, or set PATH.',13,10,'$'
ng3msg db 'Path not found.',13,10
db 'CD to proper directory, or set PATH.',13,10,'$'
ng4msg db 'Too many files open.',13,10
db 'Shut down some TSRs that have file open?',13,10,'$'
ng5msg db 'Access denied.',13,10
db 'Make sure of your access rights to emul.exe?',13,10,'$'
ng8msg db 'Not enough memory.',13,10
db 'Shut down some TSR applications?',13,10,'$'
ngamsg db 'Environment corrupt.',13,10
db 'Check using SET; You may need to re-boot.',13,10,'$'
ngbmsg db 'EXE file corrupted.',13,10,'$'
db 'You may need to restore from backup or re-install.',13,10,'$'
.code
;************************************************************************
;* *
;* M A C R O S *
;* *
;* prints Given a string ptr in DX, print it to the display. *
;* *
;* kill Exit cleanly, using INT 21/4C *
;* *
;************************************************************************
prints macro text
mov dx, OFFSET text
mov ah,9
int 21h
endm
kill macro
mov ah,4ch
int 21h
endm
;************************************************************************
;* *
;* M A I N E N T R Y *
;* *
;* *
;* *
;* *
;* *
;************************************************************************
PUBLIC main
main PROC NEAR
mov ax,ds ; Save memory-block start for freeing
mov es,ax ; excess memory in a bit.
mov ax,@data ; DS points to start of data segment
mov ds,ax
mov cmdcs, ax ; Copy the command line for the emulator
mov cmdip, OFFSET cmdline
mov di, OFFSET cmdline
mov cx,128
mov bx,es
mov dx,ds
mov es,dx
mov ds,bx
mov si,80h
rep
movsb
mov es,bx ; Free the excess memory that DOS gives
mov ds,dx ; us (we need it for the emulator)
mov ax,4a00h
mov bx,090h ; We only need 900h bytes for this program
int 21h
jnc freeok
prints errstg ; Couldn't free spare space; punt.
kill
;************************************************
;* Search the command line for -m or -M *
;************************************************
freeok:
mov di,81h ; start of command line tail
mov si, OFFSET mflag
mov cx, 2
mov bx,81h
add bl,es:[80h]
m1lp: call strcmp
je fndm
add di, 1
cmp di, bx
jl m1lp
mov di,81h ; start of command line tail
mov si, OFFSET mmflag
m2lp: call strcmp
je fndm
add di, 1
cmp di, bx
jl m2lp
mov memval,02400000h ; memory value not set--use 35MB total.
jmp doload
fndm: add di,2 ; Found "-m". Now look for a number
cmp di,bx ; (Make sure it's not end of line)
jnl nogoodm
ok1:
mov edx, 0 ; Holds the memory-requirement value
mov ax,0 ; holds characters as we read
;************************************************
;* Skip over spaces/tabs before any number *
;************************************************
skiplp:
mov al, es:[di]
inc di
cmp al, 20h ; spaces
je skiplp
cmp al, 09h ; tabs
je skiplp
cmp di,bx ; make sure we're still in the string
jle cnvst ; Yup, we've got the first char, so enter
; the conversion loop part-way down.
nogoodm:
prints nominfo ; no arg to -m, or it's bad; Punt.
kill
;********************************************************
; Convert the numeric argument to -m; result in edx. *
;********************************************************
cnvlp: mov al,es:[di]
add di, 1
cnvst: cmp al, 30h
jl endcnv
cmp al, 39h
jg endcnv
sub al, 30h
imul dx, 10
add dx, ax
jmp cnvlp
endcnv:
cmp edx,0 ; if still 0, no valid chars!
je nogoodm
cmp edx, 8 ; must be in the range [8, 32]
jl nogoodm
cmp edx,64
jg nogoodm
add edx, 3 ; add 3mb for data areas, etc, and
sal edx, 20 ; convert to megabytes
mov memval, edx ; save memory requested
;************************************************
;* Load the real emulator .EXE file, emul.exe *
;************************************************
doload: mov dx, OFFSET emulpath
mov ax, seg envseg
mov es, ax
mov bx, OFFSET envseg
mov ax,4b01h ; load-don't-start
int 21h
jnc loadok
add ax,ax
mov si,ax
prints noload
mov bx,OFFSET errtbl
mov dx,ds:[bx+si]
mov ah,9
int 21h
kill
loadok: ; Load succeeded.
mov ah,51h ; get PSP address for child
int 21h
mov es, bx ; get segment for DI addressing
; mov cx,128 ; copy the command line tail
; mov di,80h ; (which appears to be flaky in DOS 4)
; mov si, offset cmdline
; rep
; movsb
mov eax,retad
mov dword ptr es:[+0ah], eax ; set up return address.
cmp memval, 0 ; If no -m value given, just
je dorun ; go start the emulator.
mov di,0 ; Search for the Intel Extender's PROFILE
mov si, OFFSET profile ; (see extender.h)
mov cx, 3 ; (length is 3 bytes)
srchlp: call strcmp
je gotprof ; found the profile; fix it.
add di, 1
cmp di, 2048
jle srchlp
prints badexe ; No extender profile, so the emulator
kill ; EXE must be corrupt. Punt.
gotprof:
mov eax,memval ; Fill in the memory requirement.
mov es:[di+1bch], eax
;********************************************************
;* *
;* Set up the stack seg/pointer & start medley. *
;* *
;********************************************************
dorun: lss sp,stk ; load stack SS & SP regs
mov ax, es ; copy PSP ptr to ax & ds, since some
mov bx, ds ; code expects it in both places.
mov fs,bx ; Also, copy DS to FS, so we still have
mov ds,ax ; a base for the indirect jump . . .
jmp fs:[csip] ; to start-of-medley.
myret: kill ; we get back here, so quit gracefully.
main endp
;************************************************************************/
;* */
;* s t r c m p */
;* */
;* Compare [ds]di and es:[si] for (CX) characters. If the */
;* strings are equal, the Zero flag is set when this returns. */
;* */
;* All registers are preserved. */
;* */
;************************************************************************/
strcmp proc near
cld
push di
push si
push cx
repe
cmpsb
pop cx
pop si
pop di
ret
strcmp endp
END

170
bin/ldechecksum Executable file
View File

@@ -0,0 +1,170 @@
#! /bin/sh
# First line invokes Bourne shell
# ============================================================================
# ABSTRACT:
# Bourne script for checking/generating checksums files for the
# Medley release. The script will generate a checksum-file for each
# release directory, containing the corresponding checksums for all
# files residing in the directory. The files having incorrect
# checksums will be reported with a message. The checksum-files will
# be put under:
# <medleydir>/checksumdir (Normally /usr/local/lde/checksumdir).
#
#
# SYNOPSIS:
# ldechecksum [-cg] medleydir [ dir | dirgroup ]
#
# -c compare checksumfiles "FOO.check" with "FOO.sum" (default).
# -g generate checksumfiles "FOO.sum".
# medleydir is the name of the Medley installation directory (normally
# is "/usr/local/lde").
# dir can be any specific directory residing under medleydir. Only
# relative pathnames with respect to medleydir are accepted.
# dirgroup can be either "all" (default), "fonts" or "lisp" which
# means the "install.sunosX", "lisplibrary" and "lispsysouts"
# directories.
#
# CHANGES:
# 08-23-90 Carl Gadener : Added install.sunos4.1
# 05-05-89 Carl Gadener : Added lispusers as an option
# 03-30-89 Carl Gadener : Added fonts and fonts/press
# 01-19-89 Carl Gadener : Parameter "medleydir" is now mandatory. Also
# check that "checksum" files were installed.
# 12-22-88 Carl Gadener : Compressed the big "case $dirspec" statement
# 12-15-88 Carl Gadener : Rewrote it for Bourne shell due to limitation
# factors in CSH
# 12-12-88 Carl Gadener & Larry Harada : Creation of script
# ============================================================================
#
# First case statement checks arguments to ldechecksum
case $# in
0) echo "Usage: ldechecksum [ -cg ] medleydir [ dir | dirgroup ] "
exit 1 ;;
1) case $1 in
-*) echo "Usage: ldechecksum [ -cg ] medleydir [ dir | dirgroup ] "
exit 1 ;;
*) arg="-c"
medleydir=$1
dirspec=all
break ;;
esac ;;
[23])
case $1 in
-[cg]) arg=$1
medleydir=$2
if test $# = 3
then
dirspec=$3
else
dirspec=all
fi
break ;;
-*) echo "Usage: ldechecksum [ -cg ] medleydir [ dir | dirgroup ] "
exit 1 ;;
*) arg="-c"
medleydir=$1
if test $# = 2
then
dirspec=$2
else
echo "Unexpected arg: $3"
exit 1
fi
break ;;
esac ;;
*) echo "Usage: ldechecksum [ -cg ] medleydir [ dir | dirgroup ] "
exit 1 ;;
esac
# Checking if the Medley directory exists
if test -d $medleydir
then
cd $medleydir
# Checking that script is correctly installed
if test -d checksumdir \
-a -f checksumdir/ldechecksum \
-a -f checksumdir/checksum
then
lispdirs="install.sunos3 install.sunos4 install.sunos4.1 lisplibrary lispsysouts"
fonts="JIS1 JIS2 chinese miscellaneous presentation printwheel \
publishing"
if test $arg = "-g"
then
operation="Generating"
else #$arg = "-c"
operation="Verifying"
fi
case $dirspec in
all)
checksumdir/ldechecksum $arg `pwd` lisp
checksumdir/ldechecksum $arg `pwd` fonts/display
checksumdir/ldechecksum $arg `pwd` fonts/interpress
checksumdir/ldechecksum $arg `pwd` fonts/press
;;
lisp)
echo "----------------------------------------------------"
echo "$operation checksums for Lisp directories"
echo "----------------------------------------------------"
for file in $lispdirs
do
checksumdir/checksum $arg $file
done
;;
fonts)
checksumdir/ldechecksum $arg `pwd` fonts/display
checksumdir/ldechecksum $arg `pwd` fonts/interpress
checksumdir/ldechecksum $arg `pwd` fonts/press
;;
fonts/display | \
fonts/interpress)
fonttype=`basename $dirspec`
echo "----------------------------------------------------"
echo "$operation checksums for $fonttype font directories"
echo "----------------------------------------------------"
for file in $fonts
do
checksumdir/checksum $arg $dirspec/$file
done
;;
# All Medley directories at the "lowest" level
install.sunos3 | \
install.sunos4 | \
install.sunos4.1 | \
lisplibrary | \
lispsysouts | \
lispusers | \
fonts/display/JIS1 | \
fonts/display/JIS2 | \
fonts/display/chinese | \
fonts/display/miscellaneous | \
fonts/display/presentation | \
fonts/display/printwheel | \
fonts/display/publishing | \
fonts/interpress/JIS1 | \
fonts/interpress/JIS2 | \
fonts/interpress/chinese | \
fonts/interpress/miscellaneous | \
fonts/interpress/presentation | \
fonts/interpress/printwheel | \
fonts/interpress/publishing | \
fonts/press)
checksumdir/checksum $arg $dirspec
;;
*) echo "$dirspec : No such directory/grouping under `pwd`"
exit 1 ;;
esac
else
echo "`pwd`/checksumdir : No such directory or script incorrectly installed"
exit 1
fi
else
echo "$medleydir : No such directory"
exit 1
fi

24
bin/machinetype Executable file
View File

@@ -0,0 +1,24 @@
#!/bin/sh
#########################################################################
# #
# M A C H I N E T Y P E #
# #
# Compute the hardware architecture we're running on. #
# #
# (C) Copyright 2001 Venue. All Rights Reserved #
# #
#########################################################################
os=`./config.guess`
# o/s switch block
case "$os" in
sparc-*) echo sparc ;;
alpha-*) echo alpha ;;
i*86-*-*) echo 386 ;;
powerpc-*) echo ppc ;;
esac
### Don't leave the variables set.
unset os

19
bin/machinetype~ Normal file
View File

@@ -0,0 +1,19 @@
#!/bin/sh
os=`./config.guess`
# o/s switch block
case "$os" in
sparc-sun-sunos*) echo sunos4 ;;
sparc-sun-solaris1*) echo sunos4 ;;
sparc-sun-solaris2*) echo sunos5 ;;
alpha-dec-osf1) echo osf1 ;;
i386-*-solaris*) echo sunos5 ;;
*-*-linux*) echo linux ;;
*-*-openbsd*) echo openbsd ;;
esac
### Don't leave the variables set.
unset os

120
bin/makedecright Executable file
View File

@@ -0,0 +1,120 @@
# makeright
# @(#) makeright Version 1.12 (7/18/90).
##***********************************************************************/
## */
## Copyright 1989, 1990 Venue, Fuji Xerox Co., Ltd, Xerox Corp. */
## */
## This file is work-product resulting from the Xerox/Venue */
## Agreement dated 18-August-1989 for support of Medley. */
## */
##***********************************************************************/
#
# Feb. 6 1990 osamu: Add display option
# release option does not support yet.
# Apr.23 1990 osamu: add release option.
#
# Jul 18 1990 JDS: Add 'init' option for making init-loading emulators
#
# usage: makeright [display-option] [other-option]
#
# example: makeright single ; make lde for mmaped displayFB
# makeright multi ; make lde for cg3,cg6
# makeright x ; make lde for X-windows
# makeright color ; make lde with color support in it.
# makeright multi release ; make release version of lde for cg3,cg6
# makeright init ; make lde for loading INIT.DLINIT b/w only
#
# makeright multi requires directory "maiko/${osversion}.${architecture}-multi"
# (ex. maiko/sunos4.sparc-multi)
# object files are stored there.
#
# makeright init requires directory "maiko/init.${architecture}
#
# Note: X11R4 environment link shared libraries.
# lde need X library. If lde links shared libraries,
# X shared libraries are needed at run time.
#
# Hide X shared libraries from link libraries search path.
setenv LD_LIBRARY_PATH /usr/local/lib
set RELDIR = ../RELEASE/
if($1 == "") then
set display=single
else
if($1 == "release") then
switch($2)
case single:
set display = single
breaksw
case multi:
set display = multi
breaksw
case x:
set display = x
breaksw
default:
makeright single release
makeright multi release
makeright x release
exit
breaksw
endsw
else
set display=$1
endif
endif
if( $#argv > 0 ) then
shift
endif
set architecture = dec3100
set osversion = ultrix
switch($display)
case init:
set display = single
set releasename = init.${architecture}
set ldename = ldeinit
breaksw
case single:
set releasename = ${osversion}.${architecture}
set ldename = ldesingle
breaksw
case multi:
set releasename = ${osversion}.${architecture}-${display}
set ldename = ldemulti
breaksw
case x:
set releasename = ${osversion}.${architecture}-${display}
set ldename = ldex
breaksw
default:
echo "display-option: $display is not supported."
exit
breaksw
endsw
set releaseflg = 0
if( "$1" == "release" ) then
set releaseflg = 1
if($display != single) then
if( !(-e usermakefile-${releasename})) then
ln usermakefile-${osversion}.${architecture} usermakefile-${releasename}
endif
endif
else
set releaseflg = 0
endif
set installdir = ${RELDIR}install.${osversion}.${architecture}/
#if($display == single ) then
# set releasename = ${osversion}.${architecture}
#else
# set releasename = ${osversion}.${architecture}-${display}
#endif
echo start making lde for ${releasename}.
# then finally do the make, including the right stuff
# With makefile-tail merged, this should only take ONE make command....
make RELEASENAME=${releasename} INSDIR=${installdir} LDENAME=${ldename} \
OSARCHNAME=${osversion}.${architecture} \
-f makefile-header -f makefile-${releasename} \
-f makefile-tail $*

64
bin/makefile-ISC.i386-x Executable file
View File

@@ -0,0 +1,64 @@
# Options for SunOS4, SPARC and X-Window
XFILES = $(OBJECTDIR)XClose.o \
$(OBJECTDIR)Cursor.o \
$(OBJECTDIR)XWindow.o \
$(OBJECTDIR)DoRing.o \
$(OBJECTDIR)DoScroll.o \
$(OBJECTDIR)XEvent.o \
$(OBJECTDIR)XGravity.o \
$(OBJECTDIR)XInit.o \
$(OBJECTDIR)InitXevent.o \
$(OBJECTDIR)XKbdMouse.o \
$(OBJECTDIR)LispWindow.o \
$(OBJECTDIR)LispXbitblt.o \
$(OBJECTDIR)XKeyboard.o \
$(OBJECTDIR)MakeXicon.o \
$(OBJECTDIR)OpenDisplay.o \
$(OBJECTDIR)ReadXoption.o \
$(OBJECTDIR)XReconfig.o \
$(OBJECTDIR)XScroll.o \
$(OBJECTDIR)Scrollbar.o \
$(OBJECTDIR)XCursor.o \
$(OBJECTDIR)XMouse.o \
$(OBJECTDIR)Subwindows.o \
$(OBJECTDIR)VideoColor.o \
$(OBJECTDIR)XWindowMgr.o
XVERSION = XV11R4
XFLAGS = -DXWINDOW -D$(XVERSION)
FPFLAGS =
DFLAGS = -DFSERROR -DAIX -DSYSVONLY -DSYSVSIGNALS -DNOASM -DLOGINT -DNOPIXRECT $(XFLAGS) -DBYTESWAP -DAIXPS2 -DFLTINT -D_I386 -DNOETHER -DFORKCOMM
LDFLAGS = -lX11 -lc -lm -lbsd
INLINE =
BITBLTFILE =
# for the files that need to be included in byte-swapped implementations:
BYTESWAPFILES = $(OBJECTDIR)byteswapfns$(OEXT)
# This is to make the %$#@! Apollo cc happy
OEXT = .o
OPTFLAGS = -O -fstrength-reduce -fcombine-regs
DISPOPTFLAGS = -O -fstrength-reduce -fcombine-regs -finline-functions
CC = /gcc/gcc
OBJECTDIR = ../$(RELEASENAME)/
default : ../$(OSARCHNAME)/lde ../$(OSARCHNAME)/ldeether
$(OBJECTDIR)xc.o : $(SRCDIR)xc.c $(INCDIR)lispemul.h $(INCDIR)emulglobal.h \
$(INCDIR)address.h \
$(INCDIR)address68k.h $(INCDIR)stack.h $(INCDIR)lispglobal.h \
$(INCDIR)lisptypes.h $(INCDIR)lispmap.h $(INCDIR)cell.h \
$(INCDIR)initatoms.h $(INCDIR)gc.h \
$(INCDIR)arith.h $(INCDIR)stream.h $(INCDIR)dbprint.h\
$(INCDIR)tos1defs.h $(INCDIR)tosretmacro.h \
$(INCDIR)tosfuncall.h $(INCDIR)inlineC.h \
$(INCDIR)profile.h
$(CC) $(DISPRFLAGS) $(SRCDIR)xc.c $(INLINE) -o $(OBJECTDIR)xc.o

64
bin/makefile-aix.ps2-x Executable file
View File

@@ -0,0 +1,64 @@
# Options for SunOS4, SPARC and X-Window
XFILES = $(OBJECTDIR)XClose.o \
$(OBJECTDIR)Cursor.o \
$(OBJECTDIR)XWindow.o \
$(OBJECTDIR)DoRing.o \
$(OBJECTDIR)DoScroll.o \
$(OBJECTDIR)XEvent.o \
$(OBJECTDIR)XGravity.o \
$(OBJECTDIR)XInit.o \
$(OBJECTDIR)InitXevent.o \
$(OBJECTDIR)XKbdMouse.o \
$(OBJECTDIR)LispWindow.o \
$(OBJECTDIR)LispXbitblt.o \
$(OBJECTDIR)XKeyboard.o \
$(OBJECTDIR)MakeXicon.o \
$(OBJECTDIR)OpenDisplay.o \
$(OBJECTDIR)ReadXoption.o \
$(OBJECTDIR)XReconfig.o \
$(OBJECTDIR)XScroll.o \
$(OBJECTDIR)Scrollbar.o \
$(OBJECTDIR)XCursor.o \
$(OBJECTDIR)XMouse.o \
$(OBJECTDIR)Subwindows.o \
$(OBJECTDIR)VideoColor.o \
$(OBJECTDIR)XWindowMgr.o
XVERSION = XV11R4
XFLAGS = -DXWINDOW -D$(XVERSION)
FPFLAGS =
DFLAGS = -DFSERROR -DAIX -D_BSD -DNOASM -DLOGINT -DNOPIXRECT $(XFLAGS) -DBYTESWAP -DAIXPS2 -DFLTINT -D_I386 -DNOETHER -DFORKCOMM
LDFLAGS = -lX11 -lc -lm -lbsd
INLINE =
BITBLTFILE =
# for the files that need to be included in byte-swapped implementations:
BYTESWAPFILES = $(OBJECTDIR)byteswapfns$(OEXT)
# This is to make the %$#@! Apollo cc happy
OEXT = .o
OPTFLAGS = -O -fstrength-reduce -fcombine-regs
DISPOPTFLAGS = -O -fstrength-reduce -fcombine-regs -finline-functions
CC = gcc
OBJECTDIR = ../$(RELEASENAME)/
default : ../$(OSARCHNAME)/lde ../$(OSARCHNAME)/ldeether
$(OBJECTDIR)xc.o : $(SRCDIR)xc.c $(INCDIR)lispemul.h $(INCDIR)emulglobal.h \
$(INCDIR)address.h \
$(INCDIR)address68k.h $(INCDIR)stack.h $(INCDIR)lispglobal.h \
$(INCDIR)lisptypes.h $(INCDIR)lispmap.h $(INCDIR)cell.h \
$(INCDIR)initatoms.h $(INCDIR)gc.h \
$(INCDIR)arith.h $(INCDIR)stream.h $(INCDIR)dbprint.h\
$(INCDIR)tos1defs.h $(INCDIR)tosretmacro.h \
$(INCDIR)tosfuncall.h $(INCDIR)inlineC.h \
$(INCDIR)profile.h
$(CC) $(DISPRFLAGS) $(SRCDIR)xc.c $(INLINE) -o $(OBJECTDIR)xc.o

66
bin/makefile-aix.rs6000-x Executable file
View File

@@ -0,0 +1,66 @@
# Options for AIX 3.1, IBM RISC System/6000, and X-Windows
DEMO =
EURO =
XFILES = $(OBJECTDIR)XClose.o \
$(OBJECTDIR)Cursor.o \
$(OBJECTDIR)XWindow.o \
$(OBJECTDIR)DoRing.o \
$(OBJECTDIR)DoScroll.o \
$(OBJECTDIR)XEvent.o \
$(OBJECTDIR)XGravity.o \
$(OBJECTDIR)XInit.o \
$(OBJECTDIR)Xevinit.o \
$(OBJECTDIR)Xkbdmus.o \
$(OBJECTDIR)Xlspwin.o \
$(OBJECTDIR)Xbbt.o \
$(OBJECTDIR)Xkbd.o \
$(OBJECTDIR)Xmkicon.o \
$(OBJECTDIR)Xopendsp.o \
$(OBJECTDIR)Xrdopt.o \
$(OBJECTDIR)Xreconf.o \
$(OBJECTDIR)XScroll.o \
$(OBJECTDIR)Xscrolb.o \
$(OBJECTDIR)XCursor.o \
$(OBJECTDIR)XMouse.o \
$(OBJECTDIR)Xsubwin.o \
$(OBJECTDIR)Xcolor.o \
$(OBJECTDIR)Xwinman.o
XVERSION = XV11R4
XFLAGS = -DXWINDOW -D$(XVERSION)
# This is to make the %$#@! Apollo cc happy
OEXT = .o
# OPTFLAGS is normally -O.
#OPTFLAGS = -g
OPTFLAGS = -O
DISPOPTFLAGS = -O
FPFLAGS =
DFLAGS = -DFSERROR -DNEW_STORAGE -DAIX -D_BSD -DNOASM -DNOPIXRECT -DNOETHER \
-DRS6000 -DFORKCOMM -DLOGINT -DBIGATOMS -DNOFORN $(DEMO) $(EURO) $(XFLAGS)
LDFLAGS = -lX11 -lc -lm -lbsd
LDELDFLAGS = -lX11 -lc -lm -lbsd
INLINE =
BITBLTFILE =
BYTESWAPFILES = $(OBJECTDIR)byteswap$(OEXT)
OBJECTDIR = ../$(RELEASENAME)/
# don't need ldeether on this machine, so omit it from here:
default : ../$(OSARCHNAME)/lde
# Special rules to create xc.o on IBM RISC-system/6000's:
$(OBJECTDIR)xc.o: $(SRCDIR)xc.c $(INCDIR)lispemul.h $(INCDIR)emlglob.h $(INCDIR)address.h \
$(INCDIR)adr68k.h $(INCDIR)stack.h $(INCDIR)lspglob.h \
$(INCDIR)lsptypes.h $(INCDIR)lispmap.h $(INCDIR)cell.h \
$(INCDIR)initatms.h $(INCDIR)gc.h \
$(INCDIR)arith.h $(INCDIR)stream.h \
$(INCDIR)tos1defs.h $(INCDIR)tosret.h \
$(INCDIR)tosfns.h $(INCDIR)inlineC.h
cc $(DISPRFLAGS) $(SRCDIR)xc.c -I$(INCDIR) $(SRCDIR)xc.c -o $(OBJECTDIR)xc.o

74
bin/makefile-domain.mc68020-x Executable file
View File

@@ -0,0 +1,74 @@
# Options for Domain/OS, APOLLO Workstation 680x0, and X-Window
CLXFLAGS = -DCLX -DTCP_NODELAY
CLXFILES = $(OBJECTDIR)socket.o \
$(OBJECTDIR)socdvr.o
XFILES = $(OBJECTDIR)XClose.o \
$(OBJECTDIR)Cursor.o \
$(OBJECTDIR)XWindow.o \
$(OBJECTDIR)DoRing.o \
$(OBJECTDIR)DoScroll.o \
$(OBJECTDIR)XEvent.o \
$(OBJECTDIR)XGravity.o \
$(OBJECTDIR)XInit.o \
$(OBJECTDIR)Xinit.o \
$(OBJECTDIR)Xkbdmus.o \
$(OBJECTDIR)Xlspwin.o \
$(OBJECTDIR)Xbbt.o \
$(OBJECTDIR)Xkbd.o \
$(OBJECTDIR)Xmkicon.o \
$(OBJECTDIR)Xopendsp.o \
$(OBJECTDIR)Xrdopt.o \
$(OBJECTDIR)Xreconf.o \
$(OBJECTDIR)XScroll.o \
$(OBJECTDIR)Xscrolb.o \
$(OBJECTDIR)XCursor.o \
$(OBJECTDIR)XMouse.o \
$(OBJECTDIR)Xsubwin.o \
$(OBJECTDIR)Xcolor.o \
$(OBJECTDIR)Xwinman.o \
$(CLXFILES)
XVERSION = XV11R4
XFLAGS = -DXWINDOW -DNOPIXRECT -D$(XVERSION) $(CLXFLAGS)
# This is to make the %$#@! Apollo cc happy
OEXT = .o
# OPTFLAGS is normally -O2.
OPTFLAGS = -g -O -W0,-natural
DISPOPTFLAGS = -g -O -W0,-natural
FPFLAGS =
DFLAGS = -DAPOLLO -DFSERROR -DNEW_STORAGE -DNOFORN \
-DFORKCOMM -DLOGINT -DBIGATOMS $(XFLAGS) \
-DNOETHER -DNOASM -DNOEUROKBD
LDFLAGS = -lX11 -lc -lm
LDELDFLAGS = -lX11 -lc -lm
MAIN = main
INLINE = # $(SRCDIR)dsp68K.il
BITBLTFILE = # $(OBJECTDIR)bbt68k.o
BYTESWAPFILES = $(OBJECTDIR)byteswap.o
OBJECTDIR = ../$(RELEASENAME)/
default : ../$(OSARCHNAME)/lde # ../$(OSARCHNAME)/ldeether
# Special rules to create xc.c on Apollo
#run cpp to expand macros
$(OBJECTDIR)xc.o: $(SRCDIR)xc.c $(INCDIR)lispemul.h $(INCDIR)emlglob.h $(INCDIR)address.h \
$(INCDIR)adr68k.h $(INCDIR)stack.h $(INCDIR)lspglob.h \
$(INCDIR)lsptypes.h $(INCDIR)lispmap.h $(INCDIR)cell.h \
$(INCDIR)initatms.h $(INCDIR)gc.h \
$(INCDIR)arith.h $(INCDIR)stream.h \
$(INCDIR)tos1defs.h $(INCDIR)tosret.h \
$(INCDIR)tosfns.h $(INCDIR)inlineC.h
$(CC) -c $(DISPOPTFLAGS) $(DFLAGS) -I$(INCDIR) $(SRCDIR)xc.c -o $(OBJECTDIR)xc.o
#$(OBJECTDIR)xc.o: $(OBJECTDIR)xc.i $(INCDIR)lispemul.h
# $(CC) -c $(DISPOPTFLAGS) $(DFLAGS) -I$(INCDIR) $(SRCDIR)xc.c -o $(OBJECTDIR)xc.o

631
bin/makefile-dos Executable file
View File

@@ -0,0 +1,631 @@
AFLAGS = /T
ARCHFILES = dosmouse.obj doskbd.obj vesafns.obj vesainit.obj vgainit.obj kbdif.obj
ADMINFILES = makefile mkvdate.c optck.c
LPFILES = lpmain.obj lpread.obj lpsolve.obj lpwrite.obj lpdual.obj lptran.obj
KEY = keytstno.obj
CFLAGS = -DBIGATOMS -DNEW_STORAGE -DDOS -DBYTESWAP -DKBINT -DFSERROR -DNOPIXRECT \
-DNOFORN -DNOETHER -DNOVERSION -DLPSOLVE -g
LDFLAGS = -g graphics.lib binmode.lib mouse.lib
RM = del
SRCFILES = conspage.c gcoflow.c shift.c dbgtool.c gcr.c gcrcell.c llstk.c gcscan.c loopsops.c storage.c allocmds.c dir.c gvar2.c lowlev1.c subr.c arith2.c hacks.c lowlev2.c subr0374.c arith3.c doscomm.c hardrtn.c lsthandl.c sxhash.c arith4.c draw.c main.c testtool.c array.c dsk.c inet.c misc7.c timer.c array2.c dspif.c initdsp.c miscn.c typeof.c array3.c initkbd.c ubf1.c array4.c dspsubrs.c initsout.c mkatom.c ubf2.c array5.c eqf.c intcall.c mkcell.c ubf3.c array6.c ether.c mkvdate.c ufn.c atom.c findkey.c kbdsubrs.c mouseif.c ufs.c bbtsub.c foreign.c keyevent.c unixcomm.c bin.c fp.c keylib.c binds.c asmbbt.c fvar.c mvs.c unwind.c bitblt.c gc.c uraid.c blt.c gc2.c kprint.c keytstno.c keytst.c osmsg.c usrsubr.c byteswap.c gcarray.c perrno.c ldeboot.c ldeether.c uutils.c carcdr.c gccode.c rawcolor.c vars3.c gcfinal.c ldsout.c return.c vmemsave.c chardev.c gchtfind.c lineblt8.c rpc.c xc.c common.c gcmain3.c lisp2c.c rplcons.c z2.c find-dsp.l dsphack.l xmkicon.c xbbt.c xinit.c xscroll.c xcursor.c xlspwin.c xrdopt.c xwinman.c dosmouse.c vesafns.asm vesainit.c vgainit.c kbdif.c dspsparc.il copyright launch.asm lpread.c lpsolve.c lpmain.c lpwrite.c lpdual.c lptran.c
OFILES = conspage.obj gcoflow.obj shift.obj dbgtool.obj gcr.obj gcrcell.obj llstk.obj gcscan.obj loopsops.obj storage.obj allocmds.obj dir.obj gvar2.obj lowlev1.obj subr.obj arith2.obj hacks.obj lowlev2.obj subr0374.obj arith3.obj doscomm.obj hardrtn.obj lsthandl.obj sxhash.obj arith4.obj draw.obj main.obj testtool.obj array.obj dsk.obj inet.obj misc7.obj timer.obj array2.obj dspif.obj initdsp.obj miscn.obj typeof.obj array3.obj initkbd.obj ubf1.obj array4.obj dspsubrs.obj initsout.obj mkatom.obj ubf2.obj array5.obj eqf.obj intcall.obj mkcell.obj ubf3.obj array6.obj ether.obj ufn.obj atom.obj findkey.obj kbdsubrs.obj mouseif.obj ufs.obj bbtsub.obj foreign.obj keyevent.obj unixcomm.obj bin.obj fp.obj keylib.obj binds.obj fvar.obj mvs.obj unwind.obj bitblt.obj gc.obj uraid.obj blt.obj gc2.obj kprint.obj osmsg.obj usrsubr.obj byteswap.obj gcarray.obj perrno.obj uutils.obj carcdr.obj asmbbt.obj gccode.obj vars3.obj gcfinal.obj ldsout.obj return.obj vmemsave.obj chardev.obj gchtfind.obj lineblt8.obj rpc.obj xc.obj common.obj gcmain3.obj lisp2c.obj rplcons.obj z2.obj vdate.obj $(KEY) $(COLORFILES) $(ARCHFILES) $(LPFILES)
HFILES = address.h adr68k.h arith.h cell.h dbprint.h display.h dspif.h ifpage.h iopage.h lispemul.h lispmap.h lsptypes.h miscstat.h lspglob.h array.h bb.h bitblt.h debug.h devconf.h dspdata.h ether.h fast_dsp.h fp.h gc.h hdw_conf.h initatms.h inlinec.h keyboard.h lispver1.h lispver2.h lldsp.h locfile.h mouseif.h my.h opcodes.h osmsg.h pilotbbt.h print.h profile.h return.h stack.h stream.h subrs.h sysatms.h timeout.h tos1defs.h tosfns.h tosret.h vmemsave.h xdefs.h xbitmaps.h xkeymap.h
bigvm:
CFLAGS = $(CFLAGS) -DBIGVM -DNEWCDRCODRING
make -f foot emul.exe
emul.exe : $(OFILES)
@ echo $** > linkopts
@ echo $(CFLAGS) > copts
$(RM) vdate.c
$(CC) @copts @linkopts $(LDFLAGS) /e$@
del linkopts
del copts
@ echo "Executable is now named '$@'"
main.o : lispemul.h address.h lsptypes.h adr68k.h stack.h lspglob.h lispmap.h ifpage.h iopage.h return.h debug.h profile.h
.SUFFIXES .exe .lib .c .obj .c .asm .s .c
medley.exe: launch.obj
TLINK launch,medley
launch.obj: launch.asm
# xc.obj: xc.s
# tasm /ml xc.s
#
#xc.s: xc.c
# rsh sparky (cd /users/nilsson/curr ; gcc-make $* )
vdate.obj : mkvdate.exe
mkvdate > vdate.c
$(CC) vdate.c -c $@
mkvdate.exe : ../src/mkvdate.c
@ echo $(CFLAGS) > copts
$(CC) @copts ../src/mkvdate.c
del copts
xc.obj : ../src/xc.c
@ echo $(CFLAGS) > copts
$(CC) @copts ../src/xc.c -I ../inc -c $@
del copts
lpmain.obj : ../src/lpmain.c
@ echo $(CFLAGS) > copts
$(CC) @copts ../src/lpmain.c -I ../inc -c $@
del copts
lpsolve.obj : ../src/lpsolve.c
@ echo $(CFLAGS) > copts
$(CC) @copts ../src/lpsolve.c -I ../inc -c $@
del copts
lpread.obj : ../src/lpread.c
@ echo $(CFLAGS) > copts
$(CC) @copts ../src/lpread.c -I ../inc -c $@
del copts
lptran.obj : ../src/lptran.c
@ echo $(CFLAGS) > copts
$(CC) @copts ../src/lptran.c -I ../inc -c $@
del copts
lpdual.obj : ../src/lpdual.c
@ echo $(CFLAGS) > copts
$(CC) @copts ../src/lpdual.c -I ../inc -c $@
del copts
lpwrite.obj : ../src/lpwrite.c
@ echo $(CFLAGS) > copts
$(CC) @copts ../src/lpwrite.c -I ../inc -c $@
del copts
conspage.obj : ../src/conspage.c
@ echo $(CFLAGS) > copts
$(CC) @copts ../src/conspage.c -I ../inc -c $@
del copts
keytstno.obj : ../src/keytstno.c
@ echo $(CFLAGS) > copts
$(CC) @copts ../src/keytstno.c -I ../inc -c $@
del copts
dosmouse.obj : ../src/dosmouse.c
@ echo $(CFLAGS) > copts
$(CC) @copts ../src/dosmouse.c -I ../inc -c $@
del copts
doskbd.obj : ../src/doskbd.c
@ echo $(CFLAGS) > copts
$(CC) @copts ../src/doskbd.c -I ../inc -c $@
del copts
vesafns.obj : ../src/vesafns.asm
tasm /ml ..\src\vesafns.asm
vesainit.obj : ../src/vesainit.c
@ echo $(CFLAGS) > copts
$(CC) @copts ../src/vesainit.c -I ../inc -c $@
del copts
vgainit.obj : ../src/vgainit.c
@ echo $(CFLAGS) > copts
$(CC) @copts ../src/vgainit.c -I ../inc -c $@
del copts
kbdif.obj : ../src/kbdif.c
@ echo $(CFLAGS) > copts
$(CC) @copts ../src/kbdif.c -I ../inc -c $@
del copts
gcoflow.obj : ../src/gcoflow.c
@ echo $(CFLAGS) > copts
$(CC) @copts ../src/gcoflow.c -I ../inc -c $@
del copts
shift.obj : ../src/shift.c
@ echo $(CFLAGS) > copts
$(CC) @copts ../src/shift.c -I ../inc -c $@
del copts
dbgtool.obj : ../src/dbgtool.c
@ echo $(CFLAGS) > copts
$(CC) @copts ../src/dbgtool.c -I ../inc -c $@
del copts
gcr.obj : ../src/gcr.c
@ echo $(CFLAGS) > copts
$(CC) @copts ../src/gcr.c -I ../inc -c $@
del copts
gcrcell.obj : ../src/gcrcell.c
@ echo $(CFLAGS) > copts
$(CC) @copts ../src/gcrcell.c -I ../inc -c $@
del copts
llstk.obj : ../src/llstk.c
@ echo $(CFLAGS) > copts
$(CC) @copts ../src/llstk.c -I ../inc -c $@
del copts
gcscan.obj : ../src/gcscan.c
@ echo $(CFLAGS) > copts
$(CC) @copts ../src/gcscan.c -I ../inc -c $@
del copts
loopsops.obj : ../src/loopsops.c
@ echo $(CFLAGS) > copts
$(CC) @copts ../src/loopsops.c -I ../inc -c $@
del copts
storage.obj : ../src/storage.c
@ echo $(CFLAGS) > copts
$(CC) @copts ../src/storage.c -I ../inc -c $@
del copts
allocmds.obj : ../src/allocmds.c
@ echo $(CFLAGS) > copts
$(CC) @copts ../src/allocmds.c -I ../inc -c $@
del copts
dir.obj : ../src/dir.c
@ echo $(CFLAGS) > copts
$(CC) @copts ../src/dir.c -I ../inc -c $@
del copts
gvar2.obj : ../src/gvar2.c
@ echo $(CFLAGS) > copts
$(CC) @copts ../src/gvar2.c -I ../inc -c $@
del copts
lowlev1.obj : ../src/lowlev1.c
@ echo $(CFLAGS) > copts
$(CC) @copts ../src/lowlev1.c -I ../inc -c $@
del copts
subr.obj : ../src/subr.c
@ echo $(CFLAGS) > copts
$(CC) @copts ../src/subr.c -I ../inc -c $@
del copts
arith2.obj : ../src/arith2.c
@ echo $(CFLAGS) > copts
$(CC) @copts ../src/arith2.c -I ../inc -c $@
del copts
hacks.obj : ../src/hacks.c
@ echo $(CFLAGS) > copts
$(CC) @copts ../src/hacks.c -I ../inc -c $@
del copts
lowlev2.obj : ../src/lowlev2.c
@ echo $(CFLAGS) > copts
$(CC) @copts ../src/lowlev2.c -I ../inc -c $@
del copts
subr0374.obj : ../src/subr0374.c
@ echo $(CFLAGS) > copts
$(CC) @copts ../src/subr0374.c -I ../inc -c $@
del copts
arith3.obj : ../src/arith3.c
@ echo $(CFLAGS) > copts
$(CC) @copts ../src/arith3.c -I ../inc -c $@
del copts
doscomm.obj : ../src/doscomm.c
@ echo $(CFLAGS) > copts
$(CC) @copts ../src/doscomm.c -I ../inc -c $@
del copts
hardrtn.obj : ../src/hardrtn.c
@ echo $(CFLAGS) > copts
$(CC) @copts ../src/hardrtn.c -I ../inc -c $@
del copts
lsthandl.obj : ../src/lsthandl.c
@ echo $(CFLAGS) > copts
$(CC) @copts ../src/lsthandl.c -I ../inc -c $@ -Le
del copts
sxhash.obj : ../src/sxhash.c
@ echo $(CFLAGS) > copts
$(CC) @copts ../src/sxhash.c -I ../inc -c $@
del copts
arith4.obj : ../src/arith4.c
@ echo $(CFLAGS) > copts
$(CC) @copts ../src/arith4.c -I ../inc -c $@
del copts
draw.obj : ../src/draw.c
@ echo $(CFLAGS) > copts
$(CC) @copts ../src/draw.c -I ../inc -c $@
del copts
main.obj : ../src/main.c
@ echo $(CFLAGS) > copts
$(CC) @copts ../src/main.c -I ../inc -c $@
del copts
testtool.obj : ../src/testtool.c
@ echo $(CFLAGS) > copts
$(CC) @copts ../src/testtool.c -I ../inc -c $@
del copts
array.obj : ../src/array.c
@ echo $(CFLAGS) > copts
$(CC) @copts ../src/array.c -I ../inc -c $@
del copts
dsk.obj : ../src/dsk.c
@ echo $(CFLAGS) > copts
$(CC) @copts ../src/dsk.c -I ../inc -c $@
del copts
inet.obj : ../src/inet.c
@ echo $(CFLAGS) > copts
$(CC) @copts ../src/inet.c -I ../inc -c $@
del copts
misc7.obj : ../src/misc7.c
@ echo $(CFLAGS) > copts
$(CC) @copts ../src/misc7.c -I ../inc -c $@
del copts
timer.obj : ../src/timer.c
@ echo $(CFLAGS) > copts
$(CC) @copts ../src/timer.c -I ../inc -c $@
del copts
array2.obj : ../src/array2.c
@ echo $(CFLAGS) > copts
$(CC) @copts ../src/array2.c -I ../inc -c $@
del copts
dspif.obj : ../src/dspif.c
@ echo $(CFLAGS) > copts
$(CC) @copts ../src/dspif.c -I ../inc -c $@
del copts
initdsp.obj : ../src/initdsp.c
@ echo $(CFLAGS) > copts
$(CC) @copts ../src/initdsp.c -I ../inc -c $@
del copts
miscn.obj : ../src/miscn.c
@ echo $(CFLAGS) > copts
$(CC) @copts ../src/miscn.c -I ../inc -c $@
del copts
typeof.obj : ../src/typeof.c
@ echo $(CFLAGS) > copts
$(CC) @copts ../src/typeof.c -I ../inc -c $@
del copts
array3.obj : ../src/array3.c
@ echo $(CFLAGS) > copts
$(CC) @copts ../src/array3.c -I ../inc -c $@
del copts
initkbd.obj : ../src/initkbd.c
@ echo $(CFLAGS) > copts
$(CC) @copts ../src/initkbd.c -I ../inc -c $@
del copts
ubf1.obj : ../src/ubf1.c
@ echo $(CFLAGS) > copts
$(CC) @copts ../src/ubf1.c -I ../inc -c $@
del copts
array4.obj : ../src/array4.c
@ echo $(CFLAGS) > copts
$(CC) @copts ../src/array4.c -I ../inc -c $@
del copts
dspsubrs.obj : ../src/dspsubrs.c
@ echo $(CFLAGS) > copts
$(CC) @copts ../src/dspsubrs.c -I ../inc -c $@
del copts
initsout.obj : ../src/initsout.c
@ echo $(CFLAGS) > copts
$(CC) @copts ../src/initsout.c -I ../inc -c $@
del copts
mkatom.obj : ../src/mkatom.c
@ echo $(CFLAGS) > copts
$(CC) @copts ../src/mkatom.c -I ../inc -c $@
del copts
ubf2.obj : ../src/ubf2.c
@ echo $(CFLAGS) > copts
$(CC) @copts ../src/ubf2.c -I ../inc -c $@
del copts
array5.obj : ../src/array5.c
@ echo $(CFLAGS) > copts
$(CC) @copts ../src/array5.c -I ../inc -c $@
del copts
eqf.obj : ../src/eqf.c
@ echo $(CFLAGS) > copts
$(CC) @copts ../src/eqf.c -I ../inc -c $@
del copts
intcall.obj : ../src/intcall.c
@ echo $(CFLAGS) > copts
$(CC) @copts ../src/intcall.c -I ../inc -c $@
del copts
mkcell.obj : ../src/mkcell.c
@ echo $(CFLAGS) > copts
$(CC) @copts ../src/mkcell.c -I ../inc -c $@
del copts
ubf3.obj : ../src/ubf3.c
@ echo $(CFLAGS) > copts
$(CC) @copts ../src/ubf3.c -I ../inc -c $@
del copts
array6.obj : ../src/array6.c
@ echo $(CFLAGS) > copts
$(CC) @copts ../src/array6.c -I ../inc -c $@
del copts
ether.obj : ../src/ether.c
@ echo $(CFLAGS) > copts
$(CC) @copts ../src/ether.c -I ../inc -c $@
del copts
ufn.obj : ../src/ufn.c
@ echo $(CFLAGS) > copts
$(CC) @copts ../src/ufn.c -I ../inc -c $@
del copts
atom.obj : ../src/atom.c
@ echo $(CFLAGS) > copts
$(CC) @copts ../src/atom.c -I ../inc -c $@
del copts
findkey.obj : ../src/findkey.c
@ echo $(CFLAGS) > copts
$(CC) @copts ../src/findkey.c -I ../inc -c $@
del copts
kbdsubrs.obj : ../src/kbdsubrs.c
@ echo $(CFLAGS) > copts
$(CC) @copts ../src/kbdsubrs.c -I ../inc -c $@
del copts
mouseif.obj : ../src/mouseif.c
@ echo $(CFLAGS) > copts
$(CC) @copts ../src/mouseif.c -I ../inc -c $@
del copts
ufs.obj : ../src/ufs.c
@ echo $(CFLAGS) > copts
$(CC) @copts ../src/ufs.c -I ../inc -c $@
del copts
bbtsub.obj : ../src/bbtsub.c
@ echo $(CFLAGS) > copts
$(CC) @copts ../src/bbtsub.c -I ../inc -c $@
del copts
foreign.obj : ../src/foreign.c
@ echo $(CFLAGS) > copts
$(CC) @copts ../src/foreign.c -I ../inc -c $@
del copts
keyevent.obj : ../src/keyevent.c
@ echo $(CFLAGS) > copts
$(CC) @copts ../src/keyevent.c -I ../inc -c $@
del copts
unixcomm.obj : ../src/unixcomm.c
@ echo $(CFLAGS) > copts
$(CC) @copts ../src/unixcomm.c -I ../inc -c $@
del copts
bin.obj : ../src/bin.c
@ echo $(CFLAGS) > copts
$(CC) @copts ../src/bin.c -I ../inc -c $@
del copts
fp.obj : ../src/fp.c
@ echo $(CFLAGS) > copts
$(CC) @copts ../src/fp.c -I ../inc -c $@
del copts
keylib.obj : ../src/keylib.c
@ echo $(CFLAGS) > copts
$(CC) @copts ../src/keylib.c -I ../inc -c $@
del copts
binds.obj : ../src/binds.c
@ echo $(CFLAGS) > copts
$(CC) @copts ../src/binds.c -I ../inc -c $@
del copts
fvar.obj : ../src/fvar.c
@ echo $(CFLAGS) > copts
$(CC) @copts ../src/fvar.c -I ../inc -c $@
del copts
mvs.obj : ../src/mvs.c
@ echo $(CFLAGS) > copts
$(CC) @copts ../src/mvs.c -I ../inc -c $@
del copts
unwind.obj : ../src/unwind.c
@ echo $(CFLAGS) > copts
$(CC) @copts ../src/unwind.c -I ../inc -c $@
del copts
bitblt.obj : ../src/bitblt.c
@ echo $(CFLAGS) > copts
$(CC) @copts ../src/bitblt.c -I ../inc -c $@
del copts
gc.obj : ../src/gc.c
@ echo $(CFLAGS) > copts
$(CC) @copts ../src/gc.c -I ../inc -c $@
del copts
uraid.obj : ../src/uraid.c
@ echo $(CFLAGS) > copts
$(CC) @copts ../src/uraid.c -I ../inc -c $@
del copts
blt.obj : ../src/blt.c
@ echo $(CFLAGS) > copts
$(CC) @copts ../src/blt.c -I ../inc -c $@
del copts
gc2.obj : ../src/gc2.c
@ echo $(CFLAGS) > copts
$(CC) @copts ../src/gc2.c -I ../inc -c $@
del copts
kprint.obj : ../src/kprint.c
@ echo $(CFLAGS) > copts
$(CC) @copts ../src/kprint.c -I ../inc -c $@
del copts
osmsg.obj : ../src/osmsg.c
@ echo $(CFLAGS) > copts
$(CC) @copts ../src/osmsg.c -I ../inc -c $@
del copts
usrsubr.obj : ../src/usrsubr.c
@ echo $(CFLAGS) > copts
$(CC) @copts ../src/usrsubr.c -I ../inc -c $@
del copts
byteswap.obj : ../src/byteswap.c
@ echo $(CFLAGS) > copts
$(CC) @copts ../src/byteswap.c -I ../inc -c $@
del copts
gcarray.obj : ../src/gcarray.c
@ echo $(CFLAGS) > copts
$(CC) @copts ../src/gcarray.c -I ../inc -c $@
del copts
perrno.obj : ../src/perrno.c
@ echo $(CFLAGS) > copts
$(CC) @copts ../src/perrno.c -I ../inc -c $@
del copts
uutils.obj : ../src/uutils.c
@ echo $(CFLAGS) > copts
$(CC) @copts ../src/uutils.c -I ../inc -c $@
del copts
carcdr.obj : ../src/carcdr.c
@ echo $(CFLAGS) > copts
$(CC) @copts ../src/carcdr.c -I ../inc -c $@
del copts
asmbbt.obj : ../src/asmbbt.c
@ echo $(CFLAGS) > copts
$(CC) @copts ../src/asmbbt.c -I ../inc -c $@
del copts
gccode.obj : ../src/gccode.c
@ echo $(CFLAGS) > copts
$(CC) @copts ../src/gccode.c -I ../inc -c $@
del copts
vars3.obj : ../src/vars3.c
@ echo $(CFLAGS) > copts
$(CC) @copts ../src/vars3.c -I ../inc -c $@
del copts
gcfinal.obj : ../src/gcfinal.c
@ echo $(CFLAGS) > copts
$(CC) @copts ../src/gcfinal.c -I ../inc -c $@
del copts
ldsout.obj : ../src/ldsout.c
@ echo $(CFLAGS) > copts
$(CC) @copts ../src/ldsout.c -I ../inc -c $@
del copts
return.obj : ../src/return.c
@ echo $(CFLAGS) > copts
$(CC) @copts ../src/return.c -I ../inc -c $@
del copts
vmemsave.obj : ../src/vmemsave.c
@ echo $(CFLAGS) > copts
$(CC) @copts ../src/vmemsave.c -I ../inc -c $@
del copts
chardev.obj : ../src/chardev.c
@ echo $(CFLAGS) > copts
$(CC) @copts ../src/chardev.c -I ../inc -c $@
del copts
gchtfind.obj : ../src/gchtfind.c
@ echo $(CFLAGS) > copts
$(CC) @copts ../src/gchtfind.c -I ../inc -c $@
del copts
lineblt8.obj : ../src/lineblt8.c
@ echo $(CFLAGS) > copts
$(CC) @copts ../src/lineblt8.c -I ../inc -c $@
del copts
rpc.obj : ../src/rpc.c
@ echo $(CFLAGS) > copts
$(CC) @copts ../src/rpc.c -I ../inc -c $@
del copts
common.obj : ../src/common.c
@ echo $(CFLAGS) > copts
$(CC) @copts ../src/common.c -I ../inc -c $@
del copts
gcmain3.obj : ../src/gcmain3.c
@ echo $(CFLAGS) > copts
$(CC) @copts ../src/gcmain3.c -I ../inc -c $@
del copts
lisp2c.obj : ../src/lisp2c.c
@ echo $(CFLAGS) > copts
$(CC) @copts ../src/lisp2c.c -I ../inc -c $@
del copts
rplcons.obj : ../src/rplcons.c
@ echo $(CFLAGS) > copts
$(CC) @copts ../src/rplcons.c -I ../inc -c $@
del copts
z2.obj : ../src/z2.c
@ echo $(CFLAGS) > copts
$(CC) @copts ../src/z2.c -I ../inc -c $@
del copts

35
bin/makefile-header Executable file
View File

@@ -0,0 +1,35 @@
# Default values for Maiko makefile variables
# These get overridden by OS and hardware-specific stuff
# in sub-makefiles
SRCDIR = ../src/
INCDIR = ../inc/
INCLUDEDIR = ../include/
LIBDIR = ../lib
BINDIR = ./
RELDIR = ../RELEASE/
MAIN = _main
RANLIB = ranlib
AR = ar rcv
ANSICC = $(CC)
# for the files that need to be included in byte-swapped implementations:
BYTESWAPFILES =
SXHASHFILE =
BITBLTFILE =
DLPIFILES =
# for files needed by X windows version
XFILES =
# for files needed by color (actually files NOT needed by X)
COLORFILES =
# Flags to include inthe linking of various S/W
# LDFLAGS - in emulator itself (e.g., ldesingle)
# LDELDFLAGS - in "lde" unix-comm forker.
# LDEETHERLDFLAGS - in "ldeether" ethernet kick-start
LDFLAGS =
LDELDFLAGS =
LDEETHERLDFLAGS =

93
bin/makefile-hpux.hp9000-x Executable file
View File

@@ -0,0 +1,93 @@
#************************************************************************/
#* */
#* (C) Copyright 1991 Venue. All Rights Reserved. */
#* Manufactured in the United States of America. */
#* */
#* The contents of this file are proprietary information */
#* belonging to Venue, and are provided to you under license. */
#* They may not be further distributed or disclosed to third */
#* parties without the specific permission of Venue. */
#* */
#************************************************************************/
# Options for HP Series 700 and 800, under HPUX and X-windows
CC = gcc
#XFILES = $(OBJECTDIR)XClose.o \
# $(OBJECTDIR)Cursor.o \
# $(OBJECTDIR)XWindow.o \
# $(OBJECTDIR)DoRing.o \
# $(OBJECTDIR)DoScroll.o \
# $(OBJECTDIR)XEvent.o \
# $(OBJECTDIR)XGravity.o \
# $(OBJECTDIR)XInit.o \
# $(OBJECTDIR)Xevinit.o \
# $(OBJECTDIR)Xkbdmus.o \
# $(OBJECTDIR)Xlspwin.o \
# $(OBJECTDIR)Xbbt.o \
# $(OBJECTDIR)Xkbd.o \
# $(OBJECTDIR)Xmkicon.o \
# $(OBJECTDIR)Xopendsp.o \
# $(OBJECTDIR)Xrdopt.o \
# $(OBJECTDIR)Xreconf.o \
# $(OBJECTDIR)XScroll.o \
# $(OBJECTDIR)Xscrolb.o \
# $(OBJECTDIR)XCursor.o \
# $(OBJECTDIR)XMouse.o \
# $(OBJECTDIR)Xsubwin.o \
# $(OBJECTDIR)Xcolor.o \
# $(OBJECTDIR)Xwinman.o
XFILES = $(OBJECTDIR)xmkicon.o \
$(OBJECTDIR)xbbt.o \
$(OBJECTDIR)dspif.o \
$(OBJECTDIR)xinit.o \
$(OBJECTDIR)xscroll.o \
$(OBJECTDIR)xcursor.o \
$(OBJECTDIR)xlspwin.o \
$(OBJECTDIR)xrdopt.o \
$(OBJECTDIR)xwinman.o
XVERSION = XV11R4
XFLAGS = -DXWINDOW -D$(XVERSION)
# This is to make the %$#@! Apollo cc happy
OEXT = .o
# OPTFLAGS is normally -O +Obb990 -- latter enables large-file (xc) opt.
OPTFLAGS = -O # +Onolimit
DISPOPTFLAGS = -O # +Onolimit
FPFLAGS =
DFLAGS = -DFSERROR -DNEW_STORAGE -DAIX -DFORKCOMM -DLOGINT $(XFLAGS) \
-DHPUX -DNOETHER -DNOPIXRECT -DHP9000 -DHPTIMERBUG \
-DSYSVONLY \
-DNOFORN \
-DRELEASE=201
LDFLAGS = -L/usr/lib/X11R4 -lX11 -lm -lBSD
LDELDFLAGS = $(LDFLAGS)
MAIN = main
# -Dsparc?
INLINE =
BITBLTFILE =
BYTESWAPFILES = $(OBJECTDIR)byteswap.o
OBJECTDIR = ../$(RELEASENAME)/
default : ../$(OSARCHNAME)/lde ../$(OSARCHNAME)/ldeether
# Special rules to create xc.c on HP/Apollo Series 700 or 800
#run cpp to expand macros
$(OBJECTDIR)xc.o: $(SRCDIR)xc.c $(INCDIR)lispemul.h $(INCDIR)emlglob.h $(INCDIR)address.h \
$(INCDIR)adr68k.h $(INCDIR)stack.h $(INCDIR)lspglob.h \
$(INCDIR)lsptypes.h $(INCDIR)lispmap.h $(INCDIR)cell.h \
$(INCDIR)initatms.h $(INCDIR)gc.h \
$(INCDIR)arith.h $(INCDIR)stream.h \
$(INCDIR)tos1defs.h $(INCDIR)tosret.h \
$(INCDIR)tosfns.h $(INCDIR)inlineC.h \
$(INCDIR)inln68k.h
cc -c $(OPTFLAGS) $(DFLAGS) -I$(INCDIR) $(SRCDIR)xc.c -o $(OBJECTDIR)xc.o

100
bin/makefile-init.sgi Executable file
View File

@@ -0,0 +1,100 @@
#
#
#************************************************************************/
#* */
#* (C) Copyright 1991 Venue. All Rights Reserved. */
#* Manufactured in the United States of America. */
#* */
#* The contents of this file are proprietary information */
#* belonging to Venue, and are provided to you under license. */
#* They may not be further distributed or disclosed to third */
#* parties without the specific permission of Venue. */
#* */
#************************************************************************/
# Options for SGI Indigo under IRIX operating system, X windows.
XFILES = $(OBJECTDIR)xlspwin.o \
$(OBJECTDIR)xbbt.o \
$(OBJECTDIR)xmkicon.o \
$(OBJECTDIR)xrdopt.o \
$(OBJECTDIR)xscroll.o \
$(OBJECTDIR)xcursor.o \
$(OBJECTDIR)xwinman.o \
$(OBJECTDIR)dspif.o \
$(OBJECTDIR)kbdif.o \
$(OBJECTDIR)xinit.o
### XFILES used to include:
#XFILES = $(OBJECTDIR)XClose.o \
$(OBJECTDIR)Cursor.o \
$(OBJECTDIR)XWindow.o \
$(OBJECTDIR)Xkbd.o \
$(OBJECTDIR)Xreconf.o \
$(OBJECTDIR)Xscrolb.o \
$(OBJECTDIR)DoRing.o \
$(OBJECTDIR)DoScroll.o \
$(OBJECTDIR)XEvent.o \
$(OBJECTDIR)Xsubwin.o \
$(OBJECTDIR)XGravity.o \
$(OBJECTDIR)XInit.o \
$(OBJECTDIR)Xevinit.o \
$(OBJECTDIR)Xkbdmus.o \
$(OBJECTDIR)Xopendsp.o \
$(OBJECTDIR)XMouse.o \
$(OBJECTDIR)Xcolor.o \
XVERSION = XV11R4
XFLAGS = -DXWINDOW -D$(XVERSION)
# This is to make the %$#@! Apollo cc happy
OEXT = .o
# OPTFLAGS is normally -O
OPTFLAGS = -g
DISPOPTFLAGS = -g
FPFLAGS =
DFLAGS = -DFSERROR -DNEW_STORAGE -DAIX -DFORKCOMM -DLOGINT $(XFLAGS) \
-D_IEEE -DINDIGO -DSYSVONLY -DNOETHER -DNOPIXRECT -DSYSVSIGNALS -DNOFORN \
-DNOASM -DBIGATOMS -DINIT -DNOVERSION -DBIGVM -DNEWCDRCODING
LDFLAGS = -L/usr/lib/X11R4 -L/d/scsistr2/guest/gcc2 -lsun -lX11 -lm
LDELDFLAGS = $(LDFLAGS)
# -Dsparc?
CC = cc
RANLIB = touch
MAIN = main
INLINE =
BITBLTFILE =
BYTESWAPFILES = $(OBJECTDIR)byteswap.o
OBJECTDIR = ../$(RELEASENAME)/
default : ../$(OSARCHNAME)/lde ../$(OSARCHNAME)/ldeether
# Special rules to create xc.c on HP/Apollo Series 700 or 800
#run cpp to expand macros
$(OBJECTDIR)xc.o: $(SRCDIR)xc.c $(INCDIR)lispemul.h $(INCDIR)emlglob.h $(INCDIR)address.h \
$(INCDIR)adr68k.h $(INCDIR)stack.h $(INCDIR)lspglob.h \
$(INCDIR)lsptypes.h $(INCDIR)lispmap.h $(INCDIR)cell.h \
$(INCDIR)initatms.h $(INCDIR)gc.h \
$(INCDIR)arith.h $(INCDIR)stream.h \
$(INCDIR)tos1defs.h $(INCDIR)tosret.h \
$(INCDIR)tosfns.h $(INCDIR)inlineC.h \
$(INCDIR)inln68k.h
$(CC) -c $(DISPOPTFLAGS) $(DFLAGS) -I$(INCDIR) $(SRCDIR)xc.c -o $(OBJECTDIR)xc.o
#$(OBJECTDIR)xc.o: $(SRCDIR)xc.i $(INCDIR)lispemul.h $(INCDIR)emlglob.h $(INCDIR)address.h \
# $(INCDIR)adr68k.h $(INCDIR)stack.h $(INCDIR)lspglob.h \
# $(INCDIR)lsptypes.h $(INCDIR)lispmap.h $(INCDIR)cell.h \
# $(INCDIR)initatms.h $(INCDIR)gc.h \
# $(INCDIR)arith.h $(INCDIR)stream.h \
# $(INCDIR)tos1defs.h $(INCDIR)tosret.h \
# $(INCDIR)tosfns.h $(INCDIR)inlineC.h \
# $(INCDIR)inln68k.h
# $(CC) -c $(DISPOPTFLAGS) $(SRCDIR)xc.i -o $(OBJECTDIR)xc.o

120
bin/makefile-init.sparc Executable file
View File

@@ -0,0 +1,120 @@
#************************************************************************/
#* */
#* Makefile for MAKEINIT processing. */
#* */
#* $Id: makefile-init.sparc,v 1.4 2001/12/26 22:17:08 sybalsky Exp $ */
#* */
#************************************************************************/
#************************************************************************/
#* */
#* (C) Copyright 1991,8 Venue. All Rights Reserved. */
#* Manufactured in the United States of America. */
#* */
#* The contents of this file are proprietary information */
#* belonging to Venue, and are provided to you under license. */
#* They may not be further distributed or disclosed to third */
#* parties without the specific permission of Venue. */
#* */
#************************************************************************/
# Options for SPARC under Solaris-2 operating system, X windows.
CC = gcc
XFILES = $(OBJECTDIR)xlspwin.o \
$(OBJECTDIR)xbbt.o \
$(OBJECTDIR)xmkicon.o \
$(OBJECTDIR)xrdopt.o \
$(OBJECTDIR)xscroll.o \
$(OBJECTDIR)xcursor.o \
$(OBJECTDIR)xwinman.o \
$(OBJECTDIR)dspif.o \
$(OBJECTDIR)kbdif.o \
$(OBJECTDIR)xinit.o
XVERSION = XV11R4
XFLAGS = -DXWINDOW -DXV11R4 -I/usr/openwin/include
# This is to make the %$#@! Apollo cc happy
OEXT = .o
# OPTFLAGS is normally -g for MAKEINIT, as it needs debugging often.
OPTFLAGS = -g3 -O
DISPOPTFLAGS = -g3 -O
MAIN = main
# Set any debugging options in DEBUGFLAGS. E.g., to enable stack
# checking, use -DSTACKCHECK; to enable the fn-call-time stack
# check, use -DFNSTKCHECK.
DEBUGFLAGS = # -DSTACKCHECK -DFNSTKCHECK
MACHINEFLAGS = -DOS5 -DAIX -DUSE_DLPI -DNOPIXRECT \
-I$(OPENWINHOME)/include -DSYSVSIGNALS -DSYSVONLY \
-DOLD_CURSOR -DLOGINT -DFORKCOMM -DLOCK_X_UPDATES
INLINEFLAGS =
FPFLAGS =
# The LDEINIT wants to have NOVERSION set, so we don't hang up on
# any change-over in versions.
DFLAGS = -DINIT \
$(XFLAGS) \
$(DEBUGFLAGS) \
$(MACHINEFLAGS) \
$(INLINEFLAGS) \
-DNOVERSION -DRELEASE=351
LDFLAGS = -R$(OPENWINHOME)/lib -L$(OPENWINHOME)/lib -lX11 -lc -lm -lsocket -lnsl
LDELDFLAGS = -R$(OPENWINHOME)/lib -L$(OPENWINHOME)/lib -lX11 -lc -lm -lsocket -lnsl
LDEETHERLDFLAGS = -lc -lm -lsocket -lnsl
# SPARC Assemble optimize check
# DFLAGS:sh += optck.sh ; true
#-Dsparc?
INLINE =
DLPIFILES = $(OBJECTDIR)dlpi.o
OBJECTDIR = ../$(RELEASENAME)/
BYTESWAPFILES = $(OBJECTDIR)byteswap.o
#RANLIB = touch
default : ../$(OSARCHNAME)/lde ../$(OSARCHNAME)/ldeether
# Special rules to create xc.c with GCC
#run cpp to expand macros
$(OBJECTDIR)xc.o: $(SRCDIR)xc.c $(INCDIR)lispemul.h $(INCDIR)emlglob.h $(INCDIR)address.h \
$(INCDIR)adr68k.h $(INCDIR)stack.h $(INCDIR)lspglob.h \
$(INCDIR)lsptypes.h $(INCDIR)lispmap.h $(INCDIR)cell.h \
$(INCDIR)initatms.h $(INCDIR)gc.h \
$(INCDIR)arith.h $(INCDIR)stream.h \
$(INCDIR)tos1defs.h $(INCDIR)tosret.h \
$(INCDIR)tosfns.h $(INCDIR)inlineC.h \
$(INCDIR)inln68k.h
$(CC) -c $(DISPOPTFLAGS) $(DFLAGS) -I$(INCDIR) $(SRCDIR)xc.c -o $(OBJECTDIR)xc.o
#$(OBJECTDIR)xc.o: $(SRCDIR)xc.i $(INCDIR)lispemul.h $(INCDIR)emlglob.h $(INCDIR)address.h \
# $(INCDIR)adr68k.h $(INCDIR)stack.h $(INCDIR)lspglob.h \
# $(INCDIR)lsptypes.h $(INCDIR)lispmap.h $(INCDIR)cell.h \
# $(INCDIR)initatms.h $(INCDIR)gc.h \
# $(INCDIR)arith.h $(INCDIR)stream.h \
# $(INCDIR)tos1defs.h $(INCDIR)tosret.h \
# $(INCDIR)tosfns.h $(INCDIR)inlineC.h \
# $(INCDIR)inln68k.h
# $(CC) -c $(DISPOPTFLAGS) $(SRCDIR)xc.i -o $(OBJECTDIR)xc.o

104
bin/makefile-init.sparc-multi Executable file
View File

@@ -0,0 +1,104 @@
# Options for SunOS4 and SPARC
# @(#) makefile-init.sparc Version 1.0 (7/18/90).
#
# MAKE AN INIT-LOADING emulator for sparc.
#
#************************************************************************/
#* */
#* (C) Copyright 1989-92 Venue. All Rights Reserved. */
#* Manufactured in the United States of America. */
#* */
#* The contents of this file are proprietary information */
#* belonging to Venue, and are provided to you under license. */
#* They may not be further distributed or disclosed to third */
#* parties without the specific permission of Venue. */
#* */
#************************************************************************/
# This is to make the %$#@! Apollo cc happy
OEXT = .o
# OPTFLAGS is normally -g for init building.
OPTFLAGS = -g
DISPOPTFLAGS = -g
FPFLAGS =
# Now share the same ldesingle with COLOR(CG4)/MONO Suns
# If you load MAIKOCOLOR.LCOM etc., you can use color functions
# for bigatom work, removed -DSPARCDISP -DSUN4_OS4_IL
DFLAGS = -DINIT -DKBINT -DFSERROR -DOS4 -DOS4_TYPE4BUG -DCOLOR \
-DNEWBITBLT -DLOGINT -DSUNDISPLAY -DDISPLAYBUFFER -DFORKCOMM \
-DBIGATOMS -DNOASM -DNOFORN -DRELEASE=210 # -DNOVERSION -DRELEASE=201
LDFLAGS = -lsuntool -lsunwindow -lpixrect -lc -lm
#-Dsparc?
INLINE = # $(SRCDIR)dspSPARC.il
BITBLTFILE = $(OBJECTDIR)bbtSPARC.o
BYTESWAPFILES= $(OBJECTDIR)/byteswap.o
OBJECTDIR = ../$(RELEASENAME)/
COLORFILES = $(OBJECTDIR)rawcolor.o
default: ../$(OSARCHNAME)/$(LDENAME)
# Special rules to create xc.c on Sun4
#run cpp to expand macros
$(OBJECTDIR)xc.i: $(SRCDIR)xc.c $(INCDIR)lispemul.h $(INCDIR)emlglob.h $(INCDIR)address.h \
$(INCDIR)address68k.h $(INCDIR)stack.h $(INCDIR)lspglob.h \
$(INCDIR)lsptypes.h $(INCDIR)lispmap.h $(INCDIR)cell.h \
$(INCDIR)initatms.h $(INCDIR)gc.h \
$(INCDIR)arith.h $(INCDIR)stream.h \
$(INCDIR)tos1defs.h $(INCDIR)tosret.h \
$(INCDIR)tosfns.h $(INCDIR)inlineC.h \
$(INCDIR)inln68k.h
cc -P $(DFLAGS) -I$(INCDIR) $(SRCDIR)xc.c -o $(OBJECTDIR)xc.i
#run c compiler to produce first pass assembly
$(OBJECTDIR)xc.s1: $(OBJECTDIR)xc.i
rm -f $(OBJECTDIR)xc.s1
/lib/ccom - $(FPFLAGS) <$(OBJECTDIR)xc.i >$(OBJECTDIR)xc.s1
#generate C program to remove dispatch loop, optimize
$(OBJECTDIR)dsphack.c: $(SRCDIR)dsphack.lex
rm -f $(OBJECTDIR)dsphack.c
lex -t $(SRCDIR)dsphack.lex > $(OBJECTDIR)dsphack.c
#uses this program to find dispatch
$(OBJECTDIR)find-dsp.c: $(SRCDIR)find-dsp.lex
rm -f $(OBJECTDIR)find-dsp.c
lex -t $(SRCDIR)find-dsp.lex > $(OBJECTDIR)find-dsp.c
$(OBJECTDIR)find-dsp: $(OBJECTDIR)find-dsp.c
cc -o $(OBJECTDIR)find-dsp $(OBJECTDIR)find-dsp.c -ll
$(OBJECTDIR)dspatch-label.c: $(OBJECTDIR)find-dsp $(OBJECTDIR)xc.s1
rm -f $(OBJECTDIR)dspatch-label.c
$(OBJECTDIR)find-dsp < $(OBJECTDIR)xc.s1 >$(OBJECTDIR)dspatch-label.c
$(OBJECTDIR)dsphack: $(OBJECTDIR)dsphack.c $(OBJECTDIR)dspatch-label.c
cc -o $(OBJECTDIR)dsphack $(OBJECTDIR)dspatch-label.c $(OBJECTDIR)dsphack.c -ll
rm -f $(OBJECTDIR)dspatch-label.o $(OBJECTDIR)dsphack.o
$(OBJECTDIR)xc.s2: $(OBJECTDIR)xc.s1 $(OBJECTDIR)dsphack
rm -f $(OBJECTDIR)xc.s2
$(OBJECTDIR)dsphack < $(OBJECTDIR)xc.s1 >$(OBJECTDIR)xc.s2
$(OBJECTDIR)xc.s3: $(OBJECTDIR)xc.s2 $(INLINE)
rm -f $(OBJECTDIR)xc.s3
/usr/lib/inline -i $(INLINE) < $(OBJECTDIR)xc.s2 > $(OBJECTDIR)xc.s3
#$(OBJECTDIR)xc.o: $(OBJECTDIR)xc.s3
# /bin/as -o $(OBJECTDIR)xc.o -O1 $(OBJECTDIR)xc.s3
############
#
# SPECIAL xc.o for debugging
#
############
$(OBJECTDIR)xc.o: $(SRCDIR)xc.c $(INCDIR)lispemul.h $(INCDIR)emlglob.h $(INCDIR)address.h \
$(INCDIR)adr68k.h $(INCDIR)stack.h $(INCDIR)lspglob.h \
$(INCDIR)lsptypes.h $(INCDIR)lispmap.h $(INCDIR)cell.h \
$(INCDIR)initatms.h $(INCDIR)gc.h \
$(INCDIR)arith.h $(INCDIR)stream.h \
$(INCDIR)tos1defs.h $(INCDIR)tosret.h \
$(INCDIR)tosfns.h $(INCDIR)inlineC.h
cc $(DISPRFLAGS) $(SRCDIR)xc.c -I$(INCDIR) -o $(OBJECTDIR)xc.o

90
bin/makefile-init.sparc~ Executable file
View File

@@ -0,0 +1,90 @@
#
#
#************************************************************************/
#* */
#* (C) Copyright 1991,8 Venue. All Rights Reserved. */
#* Manufactured in the United States of America. */
#* */
#* The contents of this file are proprietary information */
#* belonging to Venue, and are provided to you under license. */
#* They may not be further distributed or disclosed to third */
#* parties without the specific permission of Venue. */
#* */
#************************************************************************/
# Options for SPARC under Solaris-2 operating system, X windows.
XFILES = $(OBJECTDIR)xlspwin.o \
$(OBJECTDIR)xbbt.o \
$(OBJECTDIR)xmkicon.o \
$(OBJECTDIR)xrdopt.o \
$(OBJECTDIR)xscroll.o \
$(OBJECTDIR)xcursor.o \
$(OBJECTDIR)xwinman.o \
$(OBJECTDIR)dspif.o \
$(OBJECTDIR)kbdif.o \
$(OBJECTDIR)xinit.o
XVERSION = XV11R4
XFLAGS = -DXWINDOW -DXV11R4 -I/usr/openwin/include
# This is to make the %$#@! Apollo cc happy
OEXT = .o
# OPTFLAGS is normally -O2.
OPTFLAGS = -g
DISPOPTFLAGS = -g
MAIN = main
FPFLAGS =
DFLAGS = -DINIT -DFSERROR -DNEW_STORAGE -DOS5 -DAIX -DUSE_DLPI \
-DOLD_CURSOR -DLOGINT $(XFLAGS) \
-DNOPIXRECT -DFORKCOMM -DLOCK_X_UPDATES \
-I$(OPENWINHOME)/include -DSYSVSIGNALS -DSYSVONLY \
-DNOVERSION -DRELEASE=350
LDFLAGS = -R$(OPENWINHOME)/lib -L$(OPENWINHOME)/lib -lX11 -lc -lm -lsocket -lnsl
LDELDFLAGS = -R$(OPENWINHOME)/lib -L$(OPENWINHOME)/lib -lX11 -lc -lm -lsocket -lnsl
LDEETHERLDFLAGS = -lc -lm -lsocket -lnsl
# SPARC Assemble optimize check
# DFLAGS:sh += optck.sh ; true
#-Dsparc?
INLINE =
DLPIFILES = $(OBJECTDIR)dlpi.o
OBJECTDIR = ../$(RELEASENAME)/
BYTESWAPFILES = $(OBJECTDIR)byteswap.o
CC = gcc
#RANLIB = touch
default : ../$(OSARCHNAME)/lde ../$(OSARCHNAME)/ldeether
# Special rules to create xc.c with GCC
#run cpp to expand macros
$(OBJECTDIR)xc.o: $(SRCDIR)xc.c $(INCDIR)lispemul.h $(INCDIR)emlglob.h $(INCDIR)address.h \
$(INCDIR)adr68k.h $(INCDIR)stack.h $(INCDIR)lspglob.h \
$(INCDIR)lsptypes.h $(INCDIR)lispmap.h $(INCDIR)cell.h \
$(INCDIR)initatms.h $(INCDIR)gc.h \
$(INCDIR)arith.h $(INCDIR)stream.h \
$(INCDIR)tos1defs.h $(INCDIR)tosret.h \
$(INCDIR)tosfns.h $(INCDIR)inlineC.h \
$(INCDIR)inln68k.h
$(CC) -c $(DISPOPTFLAGS) $(DFLAGS) -I$(INCDIR) $(SRCDIR)xc.c -o $(OBJECTDIR)xc.o
#$(OBJECTDIR)xc.o: $(SRCDIR)xc.i $(INCDIR)lispemul.h $(INCDIR)emlglob.h $(INCDIR)address.h \
# $(INCDIR)adr68k.h $(INCDIR)stack.h $(INCDIR)lspglob.h \
# $(INCDIR)lsptypes.h $(INCDIR)lispmap.h $(INCDIR)cell.h \
# $(INCDIR)initatms.h $(INCDIR)gc.h \
# $(INCDIR)arith.h $(INCDIR)stream.h \
# $(INCDIR)tos1defs.h $(INCDIR)tosret.h \
# $(INCDIR)tosfns.h $(INCDIR)inlineC.h \
# $(INCDIR)inln68k.h
# $(CC) -c $(DISPOPTFLAGS) $(SRCDIR)xc.i -o $(OBJECTDIR)xc.o

112
bin/makefile-irix.sgi-x Executable file
View File

@@ -0,0 +1,112 @@
#
#************************************************************************/
#* */
#* (C) Copyright 1991 Venue. All Rights Reserved. */
#* Manufactured in the United States of America. */
#* */
#* The contents of this file are proprietary information */
#* belonging to Venue, and are provided to you under license. */
#* They may not be further distributed or disclosed to third */
#* parties without the specific permission of Venue. */
#* */
#************************************************************************/
# Options for SGI Indigo under IRIX operating system, X windows.
ANSICC = gcc
XFILES = $(OBJECTDIR)xmkicon.o \
$(OBJECTDIR)xbbt.o \
$(OBJECTDIR)dspif.o \
$(OBJECTDIR)xinit.o \
$(OBJECTDIR)xscroll.o \
$(OBJECTDIR)xcursor.o \
$(OBJECTDIR)xlspwin.o \
$(OBJECTDIR)xrdopt.o \
$(OBJECTDIR)xwinman.o
OLDXFILES = $(OBJECTDIR)XClose.o \
$(OBJECTDIR)Cursor.o \
$(OBJECTDIR)XWindow.o \
$(OBJECTDIR)DoRing.o \
$(OBJECTDIR)DoScroll.o \
$(OBJECTDIR)XEvent.o \
$(OBJECTDIR)XGravity.o \
$(OBJECTDIR)XInit.o \
$(OBJECTDIR)Xevinit.o \
$(OBJECTDIR)Xkbdmus.o \
$(OBJECTDIR)Xlspwin.o \
$(OBJECTDIR)Xbbt.o \
$(OBJECTDIR)Xkbd.o \
$(OBJECTDIR)Xmkicon.o \
$(OBJECTDIR)Xopendsp.o \
$(OBJECTDIR)Xrdopt.o \
$(OBJECTDIR)Xreconf.o \
$(OBJECTDIR)XScroll.o \
$(OBJECTDIR)Xscrolb.o \
$(OBJECTDIR)XCursor.o \
$(OBJECTDIR)XMouse.o \
$(OBJECTDIR)Xsubwin.o \
$(OBJECTDIR)Xcolor.o \
$(OBJECTDIR)Xwinman.o
LPFILES = $(OBJECTDIR)lpmain.o \
$(OBJECTDIR)lpread.o \
$(OBJECTDIR)lpsolve.o \
$(OBJECTDIR)lpkit.o
# $(OBJECTDIR)lptran.o \
# $(OBJECTDIR)lpdual.o \
# $(OBJECTDIR)lpwrite.o
XVERSION = XV11R4
XFLAGS = -DXWINDOW -D$(XVERSION)
# This is to make the %$#@! Apollo cc happy
OEXT = .o
# OPTFLAGS is normally -O2 -Olimit 1600
OPTFLAGS = -O2 -Olimit 1600
ANSIOPTFLAGS = -O4
DISPOPTFLAGS = -O2 -Olimit 1600
FPFLAGS =
DFLAGS = -DFSERROR -DNEW_STORAGE -DAIX -DFORKCOMM -DLOGINT $(XFLAGS)\
-D_IEEE -DINDIGO -DSYSVONLY -DNOETHER -DNOPIXRECT -DSYSVSIGNALS -DNOFORN \
-DNOASM -DBIGATOMS -DLPSOLVE -DNOVERSION -DBIGVM -DNEWCDRCODING
LDFLAGS = -L/usr/lib/X11R4 -L/d/scsistr2/guest/gcc2 -lX11 -ll -lm -ly -lsun
LDELDFLAGS = $(LDFLAGS)
# -Dsparc?
CC = cc
RANLIB = touch
MAIN = main
INLINE =
BITBLTFILE =
BYTESWAPFILES = $(OBJECTDIR)byteswap.o
OBJECTDIR = ../$(RELEASENAME)/
default : ../$(OSARCHNAME)/lde ../$(OSARCHNAME)/ldeether
# Special rules to create xc.c on HP/Apollo Series 700 or 800
#run cpp to expand macros
$(OBJECTDIR)xc.o: $(SRCDIR)xc.c $(INCDIR)lispemul.h $(INCDIR)emlglob.h $(INCDIR)address.h \
$(INCDIR)adr68k.h $(INCDIR)stack.h $(INCDIR)lspglob.h \
$(INCDIR)lsptypes.h $(INCDIR)lispmap.h $(INCDIR)cell.h \
$(INCDIR)initatms.h $(INCDIR)gc.h \
$(INCDIR)arith.h $(INCDIR)stream.h \
$(INCDIR)tos1defs.h $(INCDIR)tosret.h \
$(INCDIR)tosfns.h $(INCDIR)inlineC.h \
$(INCDIR)inln68k.h
$(CC) -c $(DISPOPTFLAGS) $(DFLAGS) -I$(INCDIR) $(SRCDIR)xc.c -o $(OBJECTDIR)xc.o
#$(OBJECTDIR)xc.o: $(SRCDIR)xc.i $(INCDIR)lispemul.h $(INCDIR)emlglob.h $(INCDIR)address.h \
# $(INCDIR)adr68k.h $(INCDIR)stack.h $(INCDIR)lspglob.h \
# $(INCDIR)lsptypes.h $(INCDIR)lispmap.h $(INCDIR)cell.h \
# $(INCDIR)initatms.h $(INCDIR)gc.h \
# $(INCDIR)arith.h $(INCDIR)stream.h \
# $(INCDIR)tos1defs.h $(INCDIR)tosret.h \
# $(INCDIR)tosfns.h $(INCDIR)inlineC.h \
# $(INCDIR)inln68k.h
# $(CC) -c $(DISPOPTFLAGS) $(SRCDIR)xc.i -o $(OBJECTDIR)xc.o

103
bin/makefile-linux.386-x Executable file
View File

@@ -0,0 +1,103 @@
# Options for Linux, Intel 386/486 and X-Window
CC = gcc
XFILES = $(OBJECTDIR)xmkicon.o \
$(OBJECTDIR)xbbt.o \
$(OBJECTDIR)dspif.o \
$(OBJECTDIR)xinit.o \
$(OBJECTDIR)xscroll.o \
$(OBJECTDIR)xcursor.o \
$(OBJECTDIR)xlspwin.o \
$(OBJECTDIR)xrdopt.o \
$(OBJECTDIR)xwinman.o
XVERSION = XV11R4
XFLAGS = -DXWINDOW -DNOPIXRECT -D$(XVERSION) # $(CLXFLAGS)
# This is to make the %$#@! Apollo cc happy
OEXT = .o
# OPTFLAGS is normally -O2.
OPTFLAGS = -O2 -g3
DISPOPTFLAGS = -O2 -g3
FPFLAGS =
DFLAGS = -DFSERROR -DNEW_STORAGE -DLINUX -DAIX -DOLD_CURSOR -DUSETERMIOS \
-DBYTESWAP -DFORKCOMM -DNOFORN -DLOGINT $(XFLAGS) \
-DRELEASE=351 -D__USE_BSD
LDFLAGS = -L/usr/X11/lib -lX11 -lc -lm -lcrypt
LDELDFLAGS = -L/usr/X11/lib -lX11 -lc -lm -lcrypt
INLINE = # $(SRCDIR)dspSPARC.il
BITBLTFILE = # $(OBJECTDIR)bbtSPARC.o
BYTESWAPFILES = $(OBJECTDIR)byteswap.o
OBJECTDIR = ../$(RELEASENAME)/
default : ../$(OSARCHNAME)/lde
# Special rules to create xc.c on Sun4
#run cpp to expand macros
#$(OBJECTDIR)xc.i: $(SRCDIR)xc.c $(INCDIR)lispemul.h $(INCDIR)emlglob.h $(INCDIR)address.h \
# $(INCDIR)adr68k.h $(INCDIR)stack.h $(INCDIR)lspglob.h \
# $(INCDIR)lsptypes.h $(INCDIR)lispmap.h $(INCDIR)cell.h \
# $(INCDIR)initatms.h $(INCDIR)gc.h \
# $(INCDIR)arith.h $(INCDIR)stream.h \
# $(INCDIR)tos1defs.h $(INCDIR)tosret.h \
# $(INCDIR)tosfns.h $(INCDIR)inlineC.h \
# $(INCDIR)inln68k.h
# cc -Qproduce .i $(DFLAGS) -I$(INCDIR) $(SRCDIR)xc.c -o $(OBJECTDIR)xc.i
#run c compiler to produce first pass assembly
$(OBJECTDIR)xc.s1: $(OBJECTDIR)xc.i
rm -f $(OBJECTDIR)xc.s1
/lib/ccom - $(FPFLAGS) <$(OBJECTDIR)xc.i >$(OBJECTDIR)xc.s1
#generate C program to remove dispatch loop, optimize
$(OBJECTDIR)dsphack.c: $(SRCDIR)dsphack.lex
rm -f $(OBJECTDIR)dsphack.c
lex -t $(SRCDIR)dsphack.lex > $(OBJECTDIR)dsphack.c
#uses this program to find dispatch
$(OBJECTDIR)find-dsp.c: $(SRCDIR)find-dsp.lex
rm -f $(OBJECTDIR)find-dsp.c
lex -t $(SRCDIR)find-dsp.lex > $(OBJECTDIR)find-dsp.c
$(OBJECTDIR)find-dsp: $(OBJECTDIR)find-dsp.c
cc -o $(OBJECTDIR)find-dsp $(OBJECTDIR)find-dsp.c -ll
$(OBJECTDIR)dispatch-label.c: $(OBJECTDIR)find-dsp $(OBJECTDIR)xc.s1
rm -f $(OBJECTDIR)dispatch-label.c
$(OBJECTDIR)find-dsp < $(OBJECTDIR)xc.s1 >$(OBJECTDIR)dispatch-label.c
$(OBJECTDIR)dsphack: $(OBJECTDIR)dsphack.c $(OBJECTDIR)dispatch-label.c
cc -o $(OBJECTDIR)dsphack $(OBJECTDIR)dispatch-label.c $(OBJECTDIR)dsphack.c -ll
rm -f $(OBJECTDIR)dispatch-label.o $(OBJECTDIR)dsphack.o
$(OBJECTDIR)xc.s2: $(OBJECTDIR)xc.s1 $(OBJECTDIR)dsphack
rm -f $(OBJECTDIR)xc.s2
$(OBJECTDIR)dsphack < $(OBJECTDIR)xc.s1 >$(OBJECTDIR)xc.s2
$(OBJECTDIR)xc.s3: $(OBJECTDIR)xc.s2 $(INLINE)
rm -f $(OBJECTDIR)xc.s3
/usr/lib/inline -i $(INLINE) < $(OBJECTDIR)xc.s2 > $(OBJECTDIR)xc.s3
#$(OBJECTDIR)xc.o: $(OBJECTDIR)xc.s3
# /bin/as -o $(OBJECTDIR)xc.o -O1 $(OBJECTDIR)xc.s3
############
#
# SPECIAL xc.o for debugging
#
############
$(OBJECTDIR)xc.o: $(SRCDIR)xc.c $(INCDIR)lispemul.h $(INCDIR)emlglob.h \
$(INCDIR)address.h \
$(INCDIR)adr68k.h $(INCDIR)stack.h $(INCDIR)lspglob.h \
$(INCDIR)lsptypes.h $(INCDIR)lispmap.h $(INCDIR)cell.h \
$(INCDIR)initatms.h $(INCDIR)gc.h \
$(INCDIR)arith.h $(INCDIR)stream.h \
$(INCDIR)tos1defs.h $(INCDIR)tosret.h \
$(INCDIR)tosfns.h $(INCDIR)inlineC.h
$(CC) $(DISPRFLAGS) -UOPDISP $(SRCDIR)xc.c -I$(INCDIR) -o $(OBJECTDIR)xc.o

69
bin/makefile-osf1.dec-x Executable file
View File

@@ -0,0 +1,69 @@
# Options for Ultrix, DECStation 3100, and X-Window
CC = cc
XFILES = $(OBJECTDIR)XClose.o \
$(OBJECTDIR)Cursor.o \
$(OBJECTDIR)XWindow.o \
$(OBJECTDIR)DoRing.o \
$(OBJECTDIR)DoScroll.o \
$(OBJECTDIR)XEvent.o \
$(OBJECTDIR)XGravity.o \
$(OBJECTDIR)XInit.o \
$(OBJECTDIR)Xevinit.o \
$(OBJECTDIR)Xkbdmus.o \
$(OBJECTDIR)Xlspwin.o \
$(OBJECTDIR)Xbbt.o \
$(OBJECTDIR)Xkbd.o \
$(OBJECTDIR)Xmkicon.o \
$(OBJECTDIR)Xopendsp.o \
$(OBJECTDIR)Xrdopt.o \
$(OBJECTDIR)Xreconf.o \
$(OBJECTDIR)XScroll.o \
$(OBJECTDIR)Xscrolb.o \
$(OBJECTDIR)XCursor.o \
$(OBJECTDIR)XMouse.o \
$(OBJECTDIR)Xsubwin.o \
$(OBJECTDIR)Xcolor.o \
$(OBJECTDIR)Xwinman.o
BYTESWAPFILES = $(OBJECTDIR)byteswap.o
XVERSION = XV11R4
XFLAGS = -DXWINDOW -D$(XVERSION)
# This is to make the %$#@! Apollo cc happy
OEXT = .o
# OPTFLAGS is normally -O2.
OPTFLAGS = -O2 -Olimit 999
DISPOPTFLAGS = -O2 -Olimit 999
FPFLAGS =
DFLAGS = -DFSERROR -DNEW_STORAGE -DAIX -DOLD_CURSOR -DNOPIXRECT -DBYTESWAP \
-DFORKCOMM -DLOGINT -DSYS5 -DDEC3100 -DNOFORN -DNOETHER -DBIGATOMS \
-DDECSTN -D_BSD -DOSF1 $(XFLAGS)
LDFLAGS = -lX11 -lc -lm
LDELDFLAGS = -lX11 -lc -lm
# -Dsparc?
INLINE =
OBJECTDIR = ../$(RELEASENAME)/
default : ../$(OSARCHNAME)/lde ../$(OSARCHNAME)/ldeether
# Special rules to create xc.c on Sun4
#run cpp to expand macros
$(OBJECTDIR)xc.o: $(SRCDIR)xc.c $(INCDIR)lispemul.h $(INCDIR)emlglob.h $(INCDIR)address.h \
$(INCDIR)adr68k.h $(INCDIR)stack.h $(INCDIR)lspglob.h \
$(INCDIR)lsptypes.h $(INCDIR)lispmap.h $(INCDIR)cell.h \
$(INCDIR)initatms.h $(INCDIR)gc.h \
$(INCDIR)arith.h $(INCDIR)stream.h \
$(INCDIR)tos1defs.h $(INCDIR)tosret.h \
$(INCDIR)tosfns.h $(INCDIR)inlineC.h \
$(INCDIR)inln68k.h
$(CC) -c $(DFLAGS) -I$(INCDIR) $(SRCDIR)xc.c -o $(OBJECTDIR)xc.o

81
bin/makefile-riscos.mips-x Executable file
View File

@@ -0,0 +1,81 @@
# Options for Ultrix, RISCStation, and X-Window
# CC = gcc
# CLXFLAGS = -DCLX -DTCP_NODELAY
# CLXFILES = $(OBJECTDIR)socket.o \
# $(OBJECTDIR)socketdvr.o
XFILES = $(OBJECTDIR)XClose.o \
$(OBJECTDIR)Cursor.o \
$(OBJECTDIR)XWindow.o \
$(OBJECTDIR)DoRing.o \
$(OBJECTDIR)DoScroll.o \
$(OBJECTDIR)XEvent.o \
$(OBJECTDIR)XGravity.o \
$(OBJECTDIR)XInit.o \
$(OBJECTDIR)Xinit.o \
$(OBJECTDIR)Xkbdmus.o \
$(OBJECTDIR)Xlspwin.o \
$(OBJECTDIR)Xbbt.o \
$(OBJECTDIR)Xkbd.o \
$(OBJECTDIR)Xmkicon.o \
$(OBJECTDIR)Xopendsp.o \
$(OBJECTDIR)Xrdopt.o \
$(OBJECTDIR)Xreconf.o \
$(OBJECTDIR)XScroll.o \
$(OBJECTDIR)Xscrolb.o \
$(OBJECTDIR)XCursor.o \
$(OBJECTDIR)XMouse.o \
$(OBJECTDIR)Xsubwin.o \
$(OBJECTDIR)Xcolor.o \
$(OBJECTDIR)Xwinman.o \
$(CLXFILES)
BYTESWAPFILES = $(OBJECTDIR)byteswap.o
XVERSION = XV11R4
XFLAGS = -DXWINDOW -D$(XVERSION) $(CLXFLAGS)
# This is to make the %$#@! Apollo cc happy
OEXT = .o
# OPTFLAGS is normally -O; the Olimit lets us optimize the BIG files
# (i.e., bitblt* and xc).
OPTFLAGS = -O -Olimit 1000
DISPOPTFLAGS = -O -Olimit 1000
FPFLAGS =
DFLAGS = -DFSERROR \
-DNEW_STORAGE -DAIX -DOLD_CURSOR -DNOPIXRECT -DRISCOS \
-DSYSVSIGNALS -DSYSVONLY \
-DBIGATOMS -DFORKCOMM -DLOGINT -DSYS5 -DNOETHER -DNOFORN \
$(XFLAGS) -I/usr/include -I/usr/include/bsd
LDFLAGS = -lX11 -lc -lm -lbsd
LDELDFLAGS = $(LDFLAGS)
MAIN = main
# -Dsparc?
INLINE =
OBJECTDIR = ../$(RELEASENAME)/
default : ../$(OSARCHNAME)/lde ../$(OSARCHNAME)/ldeether
# Special rules to create xc.c on MIPS RISCstation.
#run cpp to expand macros
$(OBJECTDIR)xc.o: $(SRCDIR)xc.c $(INCDIR)lispemul.h $(INCDIR)emulglobal.h $(INCDIR)address.h \
$(INCDIR)address68k.h $(INCDIR)stack.h $(INCDIR)lispglobal.h \
$(INCDIR)lisptypes.h $(INCDIR)lispmap.h $(INCDIR)cell.h \
$(INCDIR)initatoms.h $(INCDIR)gc.h \
$(INCDIR)arith.h $(INCDIR)stream.h \
$(INCDIR)tos1defs.h $(INCDIR)tosretmacro.h \
$(INCDIR)tosfuncall.h $(INCDIR)inlineC.h \
$(INCDIR)inline68K.h
$(CC) -c $(DISPOPTFLAGS) $(DFLAGS) -I$(INCDIR) $(SRCDIR)xc.c -o $(OBJECTDIR)xc.o

30
bin/makefile-sunos3.mc68020 Executable file
View File

@@ -0,0 +1,30 @@
# Options for sun3 and mc68020
# This is to make the %$#@! Apollo cc happy
OEXT = .o
OPTFLAGS = -O2
DISPOPTFLAGS = -O
FPFLAGS = -f68881
DFLAGS = -DKBINT -DNEW_STORAGE -DFSERROR -DOPDISP -DUNSAFE -DSUN3_OS3_IL -DNEWBITBLT -DLOGINT -DSUNDISPLAY -DFORKCOMM -DBIGATOMS
LDFLAGS = -lsuntool -lsunwindow -lpixrect -lc -lm
INLINE = $(SRCDIR)disp68K.il
BITBLTFILE = $(OBJECTDIR)bitblt68K.o
COLORFILES = $(OBJECTDIR)colorbltfns.o
OBJECTDIR = ../sunos3.mc68020/
default : $(OBJECTDIR)lde $(OBJECTDIR)ldeether
$(OBJECTDIR)xc.o : $(SRCDIR)xc.c $(INCDIR)lispemul.h $(INCDIR)emulglobal.h \
$(INCDIR)address.h \
$(INCDIR)address68k.h $(INCDIR)stack.h $(INCDIR)lispglobal.h \
$(INCDIR)lisptypes.h $(INCDIR)lispmap.h $(INCDIR)cell.h \
$(INCDIR)initatoms.h $(INCDIR)gc.h \
$(INCDIR)arith.h $(INCDIR)stream.h \
$(INCDIR)tos1defs.h $(INCDIR)tosretmacro.h \
$(INCDIR)tosfuncall.h $(INCDIR)inlineC.h \
$(INCDIR)inline68K.h \
$(INCDIR)inlineSPARC.h $(INCDIR)fast_disp.h \
$(INCDIR)fastinline68K.h $(INCDIR)profile.h
cc $(DISPRFLAGS) $(SRCDIR)xc.c $(INLINE) -o $(OBJECTDIR)xc.o

View File

@@ -0,0 +1,38 @@
# makefile-sunos4.mc68020-multi
# Options for SunOS4 and mc68020 for CG3 or CG6
# Add -DDISPLAYBUFFER in DFLAGS
# ${RELEASENAME} is "sunos3.mc68020-multi"
# This is to make the %$#@! Apollo cc happy
OEXT = .o
OPTFLAGS = -g
DISPOPTFLAGS = -O
FPFLAGS = -f68881
# DISPLAYBUFFER for Color Sparcstation code testing
# NEWBITBLT for assembler version of bitblt.
DFLAGS = -DKBINT -DFSERROR -DOPDISP -DUNSAFE -DSUN3_OS3_IL -DDISPLAYBUFFER -DNEWBITBLT -DLOGINT -DSUNDISPLAY -DFORKCOMM -DBIGATOMS
LDFLAGS = -lsuntool -lsunwindow -lpixrect -lc -lm
INLINE = $(SRCDIR)disp68K.il
BITBLTFILE = $(OBJECTDIR)bitblt68K.o
COLORFILES = $(OBJECTDIR)colorbltfns.o
OBJECTDIR = ../$(RELEASENAME)/
default : $(OBJECTDIR)lde $(OBJECTDIR)ldeether
$(OBJECTDIR)xc.o : $(SRCDIR)xc.c $(INCDIR)lispemul.h $(INCDIR)emulglobal.h \
$(INCDIR)address.h \
$(INCDIR)address68k.h $(INCDIR)stack.h $(INCDIR)lispglobal.h \
$(INCDIR)lisptypes.h $(INCDIR)lispmap.h $(INCDIR)cell.h \
$(INCDIR)initatoms.h $(INCDIR)gc.h \
$(INCDIR)arith.h $(INCDIR)stream.h \
$(INCDIR)tos1defs.h $(INCDIR)tosretmacro.h \
$(INCDIR)tosfuncallmacro.h $(INCDIR)inlinedefsC.h \
$(INCDIR)inlinedefs68K.h \
$(INCDIR)inlinedefsSPARC.h $(INCDIR)fastdispatch.h \
$(INCDIR)fastinlinedefs68K.h $(INCDIR)profile.h
cc $(DISPRFLAGS) $(SRCDIR)xc.c $(INLINE) -o $(OBJECTDIR)xc.o

58
bin/makefile-sunos3.mc68020-x Executable file
View File

@@ -0,0 +1,58 @@
# Options for sun3, mc68020 and X-Window
XFILES = $(OBJECTDIR)XClose.o \
$(OBJECTDIR)Cursor.o \
$(OBJECTDIR)XWindow.o \
$(OBJECTDIR)DoRing.o \
$(OBJECTDIR)DoScroll.o \
$(OBJECTDIR)XEvent.o \
$(OBJECTDIR)XGravity.o \
$(OBJECTDIR)XInit.o \
$(OBJECTDIR)InitXevent.o \
$(OBJECTDIR)XKbdMouse.o \
$(OBJECTDIR)LispWindow.o \
$(OBJECTDIR)LispXbitblt.o \
$(OBJECTDIR)XKeyboard.o \
$(OBJECTDIR)MakeXicon.o \
$(OBJECTDIR)OpenDisplay.o \
$(OBJECTDIR)ReadXoption.o \
$(OBJECTDIR)XReconfig.o \
$(OBJECTDIR)XScroll.o \
$(OBJECTDIR)Scrollbar.o \
$(OBJECTDIR)XCursor.o \
$(OBJECTDIR)XMouse.o \
$(OBJECTDIR)Subwindows.o \
$(OBJECTDIR)VideoColor.o \
$(OBJECTDIR)XWindowMgr.o
XVERSION = XV11R4
XFLAGS = -DXWINDOW -D$(XVERSION)
# This is to make the %$#@! Apollo cc happy
OEXT = .o
OPTFLAGS = -O2
DISPOPTFLAGS = -O
FPFLAGS = -f68881
DFLAGS = -DFSERROR -DNEW_STORAGE -DOPDISP -DUNSAFE -DSUN3_OS3_IL -DNEWBITBLT -DLOGINT $(XFLAGS) -DFORKCOMM -DBIGATOMS
LDFLAGS = -lX11 -lpixrect -lc -lm
INLINE = $(SRCDIR)disp68K.il
BITBLTFILE = $(OBJECTDIR)bitblt68K.o
OBJECTDIR = ../sunos3.mc68020-x/
BYTESWAPFILES = $(OBJECTDIR)byteswapfns.o
default : $(OBJECTDIR)lde $(OBJECTDIR)ldeether
$(OBJECTDIR)xc.o : $(SRCDIR)xc.c $(INCDIR)lispemul.h $(INCDIR)emulglobal.h \
$(INCDIR)address.h \
$(INCDIR)address68k.h $(INCDIR)stack.h $(INCDIR)lispglobal.h \
$(INCDIR)lisptypes.h $(INCDIR)lispmap.h $(INCDIR)cell.h \
$(INCDIR)initatoms.h $(INCDIR)gc.h \
$(INCDIR)arith.h $(INCDIR)stream.h \
$(INCDIR)tos1defs.h $(INCDIR)tosretmacro.h \
$(INCDIR)tosfuncall.h $(INCDIR)inlineC.h \
$(INCDIR)inline68K.h \
$(INCDIR)inlineSPARC.h $(INCDIR)fast_disp.h \
$(INCDIR)fastinline68K.h $(INCDIR)profile.h
cc $(DISPRFLAGS) $(SRCDIR)xc.c $(INLINE) -o $(OBJECTDIR)xc.o

67
bin/makefile-sunos3.sparc Executable file
View File

@@ -0,0 +1,67 @@
# Options for SunOS3 and SPARC
# This is to make the %$#@! Apollo cc happy
OEXT = .o
OPTFLAGS = -O2
FPFLAGS =
# JRB - I'm not 100% sure about these flags; someone should check...
DFLAGS = -DKBINT -DFSERROR -DNEW_STORAGE -DFLTINT -DSPARCDISP -DOS4_TYPE4BUG -DOLD_CURSOR -DSUNDISPLAY -DFORKCOMM -DBIGATOMS
LDFLAGS = -lsuntool -lsunwindow -lpixrect -lc -lm
#-Dsparc?
INLINE = $(SRCDIR)dispSPARC.il
OBJECTDIR = ../$(RELEASENAME)/
COLORFILES = $(OBJECTDIR)colorbltfns.o
default : $(OBJECTDIR)lde $(OBJECTDIR)ldeether
# Special rules to create xc.c on Sun4
#run cpp to expand macros
$(OBJECTDIR)xc.i: $(SRCDIR)xc.c $(INCDIR)lispemul.h $(INCDIR)emulglobal.h $(INCDIR)address.h \
$(INCDIR)address68k.h $(INCDIR)stack.h $(INCDIR)lispglobal.h \
$(INCDIR)lisptypes.h $(INCDIR)lispmap.h $(INCDIR)cell.h \
$(INCDIR)initatoms.h $(INCDIR)gc.h \
$(INCDIR)arith.h $(INCDIR)stream.h \
$(INCDIR)tos1defs.h $(INCDIR)tosretmacro.h \
$(INCDIR)tosfuncall.h $(INCDIR)inlineC.h \
$(INCDIR)inline68K.h
cc -Qproduce .i $(DFLAGS) -I$(INCDIR) $(SRCDIR)xc.c -o $(OBJECTDIR)xc.i
#run c compiler to produce first pass assembly
$(OBJECTDIR)xc.s1: $(OBJECTDIR)xc.i
rm -f $(OBJECTDIR)xc.s1
/lib/ccom - $(FPFLAGS) <$(OBJECTDIR)xc.i >$(OBJECTDIR)xc.s1
#generate C program to remove dispatch loop, optimize
$(OBJECTDIR)disphack.c: $(SRCDIR)disphack.lex
rm -f $(OBJECTDIR)disphack.c
lex -t $(SRCDIR)disphack.lex > $(OBJECTDIR)disphack.c
#uses this program to find dispatch
$(OBJECTDIR)find-disp.c: $(SRCDIR)find-disp.lex
rm -f $(OBJECTDIR)find-disp.c
lex -t $(SRCDIR)find-disp.lex > $(OBJECTDIR)find-disp.c
$(OBJECTDIR)find-disp: $(OBJECTDIR)find-disp.c
cc -o $(OBJECTDIR)find-disp $(OBJECTDIR)find-disp.c -ll
$(OBJECTDIR)dispatch-label.c: $(OBJECTDIR)find-disp $(OBJECTDIR)xc.s1
rm -f $(OBJECTDIR)dispatch-label.c
$(OBJECTDIR)find-disp < $(OBJECTDIR)xc.s1 >$(OBJECTDIR)dispatch-label.c
$(OBJECTDIR)disphack: $(OBJECTDIR)disphack.c $(OBJECTDIR)dispatch-label.c
cc -o $(OBJECTDIR)disphack $(OBJECTDIR)dispatch-label.c $(OBJECTDIR)disphack.c -ll
rm -f $(OBJECTDIR)dispatch-label.o $(OBJECTDIR)disphack.o
$(OBJECTDIR)xc.s2: $(OBJECTDIR)xc.s1 $(OBJECTDIR)disphack
rm -f $(OBJECTDIR)xc.s2
$(OBJECTDIR)disphack < $(OBJECTDIR)xc.s1 >$(OBJECTDIR)xc.s2
$(OBJECTDIR)xc.s3: $(OBJECTDIR)xc.s2 $(INLINE)
rm -f $(OBJECTDIR)xc.s3
/usr/lib/inline -i $(INLINE) < $(OBJECTDIR)xc.s2 > $(OBJECTDIR)xc.s3
$(OBJECTDIR)xc.o: $(OBJECTDIR)xc.s3
/bin/as -o $(OBJECTDIR)xc.o -O1 $(OBJECTDIR)xc.s3

44
bin/makefile-sunos4.1.i386 Executable file
View File

@@ -0,0 +1,44 @@
# Options for i386SUN
# This is to make the %$#@! Apollo cc happy
OEXT = .o
#For debugging
OPTFLAGS = -g
FPFLAGS =
DFLAGS = -DKBINT -DFSERROR -DNEW_STORAGE -DFLTINT -DNOASM -DOS4 -DI386 -DBYTESWAP -DCHECK -DLOGINT -DSUNDISPLAY -DFORKCOMM
LDFLAGS = -lsuntool -lsunwindow -lpixrect -lc -lm
INLINE = $(SRCDIR)disp386i.il
OBJECTDIR = ../sunos4.i386/
BYTESWAPFILES = $(OBJECTDIR)byteswapfns.o
COLORFILES = $(OBJECTDIR)colorbltfns.o
default : $(OBJECTDIR)lde $(OBJECTDIR)ldeether
# Special rules to create xc.c on 386i
#run cpp to expand macros
$(OBJECTDIR)xc.i: $(SRCDIR)xc.c $(INCDIR)lispemul.h $(INCDIR)emulglobal.h $(INCDIR)address.h \
$(INCDIR)address68k.h $(INCDIR)stack.h $(INCDIR)lispglobal.h \
$(INCDIR)lisptypes.h $(INCDIR)lispmap.h $(INCDIR)cell.h \
$(INCDIR)initatoms.h $(INCDIR)gc.h \
$(INCDIR)arith.h $(INCDIR)stream.h $(INCDIR)dbprint.h\
$(INCDIR)tos1defs.h $(INCDIR)tosretmacro.h \
$(INCDIR)tosfuncallmacro.h $(INCDIR)inlineC.h \
$(INCDIR)n_op_inlineC.h $(SRCDIR)disp386i.il \
$(INCDIR)dummy_entries.h \
$(INCDIR)inline386i.h $(INCDIR)fast_disp.h \
$(INCDIR)fastinline68K.h $(INCDIR)profile.h
cc -c -O -Qproduce .s $(DFLAGS) -I$(INCDIR) $(SRCDIR)xc.c -o $(OBJECTDIR)xc.s
#run c compiler to produce first pass assembly
#$(OBJECTDIR)xc.s1: $(OBJECTDIR)xc.i
# rm -f $(OBJECTDIR)xc.s1
# /lib/ccom - $(FPFLAGS) <$(OBJECTDIR)xc.i >$(OBJECTDIR)xc.s1
$(OBJECTDIR)xc.s2: $(OBJECTDIR)xc.s $(INLINE)
rm -f $(OBJECTDIR)xc.s2
/usr/lib/inline -i $(INLINE) < $(OBJECTDIR)xc.s > $(OBJECTDIR)xc.s2
$(OBJECTDIR)xc.o: $(OBJECTDIR)xc.s2
/bin/as -o $(OBJECTDIR)xc.o -O1 $(OBJECTDIR)xc.s2

View File

@@ -0,0 +1,46 @@
# Options for sun4 and mc68020
# This is to make the %$#@! Apollo cc happy
OEXT = .o
OPTFLAGS = -O
DISPOPTFLAGS = -O
FPFLAGS =
DFLAGS = -DKBINT -DFSERROR -DNEW_STORAGE -DOS4 -DI386 -DBYTESWAP -DCHECK -DLOGINT -DDISPLAYBUFFER -DSUNDISPLAY -DNEWBITBLT -DOPDISP -DFORKCOMM -DBIGATOMS
LDFLAGS = -lsuntool -lsunwindow -lpixrect -lc -lm
INLINE = $(SRCDIR)disp386i.il
BITBLTFILE=$(OBJECTDIR)bitblt386i.o
OBJECTDIR = ../sunos4.i386-multi/
BYTESWAPFILES = $(OBJECTDIR)byteswapfns.o
COLORFILES = $(OBJECTDIR)colorbltfns.o
default : $(OBJECTDIR)lde $(OBJECTDIR)ldeether
# Special rules to create xc.c on 386i
#run cpp to expand macros
$(OBJECTDIR)xc.s: $(SRCDIR)xc.c $(INCDIR)lispemul.h $(INCDIR)emulglobal.h $(INCDIR)address.h \
$(INCDIR)address68k.h $(INCDIR)stack.h $(INCDIR)lispglobal.h \
$(INCDIR)lisptypes.h $(INCDIR)lispmap.h $(INCDIR)cell.h \
$(INCDIR)initatoms.h $(INCDIR)gc.h \
$(INCDIR)arith.h $(INCDIR)stream.h $(INCDIR)dbprint.h\
$(INCDIR)tos1defs.h $(INCDIR)tosretmacro.h \
$(INCDIR)tosfuncall.h $(INCDIR)inlineC.h \
$(SRCDIR)disp386i.il \
$(INCDIR)inline386i.h $(INCDIR)fast_disp.h \
$(INCDIR)fastinline68K.h $(INCDIR)profile.h
cc -c -O -Qproduce .s $(DFLAGS) -I$(INCDIR) $(SRCDIR)xc.c -o $(OBJECTDIR)xc.s
#run c compiler to produce first pass assembly
#$(OBJECTDIR)xc.s1: $(OBJECTDIR)xc.i
# rm -f $(OBJECTDIR)xc.s1
# /lib/ccom - $(FPFLAGS) <$(OBJECTDIR)xc.i >$(OBJECTDIR)xc.s1
$(OBJECTDIR)xc.s2: $(OBJECTDIR)xc.s $(INLINE)
rm -f $(OBJECTDIR)xc.s2
/usr/lib/inline -i $(INLINE) < $(OBJECTDIR)xc.s > $(OBJECTDIR)xc.s2
$(OBJECTDIR)xc.o: $(OBJECTDIR)xc.s2
/bin/as -o $(OBJECTDIR)xc.o -O1 $(OBJECTDIR)xc.s2

36
bin/makefile-sunos4.1.mc68020 Executable file
View File

@@ -0,0 +1,36 @@
# Options for sun4 and mc68020
# This is to make the %$#@! Apollo cc happy
OEXT = .o
OPTFLAGS = -O2
DISPOPTFLAGS = -O
FPFLAGS = -f68881
# DISPLAYBUFFER for Color Sparcstation code testing
# [I remove DISPLAYBUFFER option .
# You may run 'makeright multi'. -osamu '90/02/07]
# NEWBITBLT for assembler version of bitblt.
DFLAGS = -DKBINT -DFSERROR -DNEW_STORAGE -DOPDISP -DUNSAFE -DOS4 -DSUN3_OS4_IL -DOS4_TYPE4BUG -DNEWBITBLT -DLOGINT -DSUNDISPLAY -DFORKCOMM -DBIGATOMS
LDFLAGS = -lsuntool -lsunwindow -lpixrect -lc -lm
INLINE = $(SRCDIR)disp68K.il
BITBLTFILE = $(OBJECTDIR)bitblt68K.o
COLORFILES = $(OBJECTDIR)colorbltfns.o
OBJECTDIR = ../sunos4.mc68020/
default : $(OBJECTDIR)lde $(OBJECTDIR)ldeether
$(OBJECTDIR)xc.o : $(SRCDIR)xc.c $(INCDIR)lispemul.h $(INCDIR)emulglobal.h \
$(INCDIR)address.h \
$(INCDIR)address68k.h $(INCDIR)stack.h $(INCDIR)lispglobal.h \
$(INCDIR)lisptypes.h $(INCDIR)lispmap.h $(INCDIR)cell.h \
$(INCDIR)initatoms.h $(INCDIR)gc.h \
$(INCDIR)arith.h $(INCDIR)stream.h \
$(INCDIR)tos1defs.h $(INCDIR)tosretmacro.h \
$(INCDIR)tosfuncall.h $(INCDIR)inlineC.h \
$(INCDIR)inline68K.h \
$(INCDIR)inlineSPARC.h $(INCDIR)fast_disp.h \
$(INCDIR)fastinline68K.h $(INCDIR)profile.h
cc $(DISPRFLAGS) $(SRCDIR)xc.c $(INLINE) -o $(OBJECTDIR)xc.o

View File

@@ -0,0 +1,38 @@
# makefile-sunos4.mc68020-multi
# Options for SunOS4 and mc68020 for CG3 or CG6
# Add -DDISPLAYBUFFER in DFLAGS
# ${RELEASENAME} is "sunos4.mc68020-multi"
# This is to make the %$#@! Apollo cc happy
OEXT = .o
OPTFLAGS = -O2
DISPOPTFLAGS = -O
FPFLAGS = -f68881
# DISPLAYBUFFER for Color Sparcstation code testing
# NEWBITBLT for assembler version of bitblt.
DFLAGS = -DKBINT -DFSERROR -DNEW_STORAGE -DOPDISP -DUNSAFE -DOS4 -DSUN3_OS4_IL -DOS4_TYPE4BUG -DDISPLAYBUFFER -DNEWBITBLT -DLOGINT -DSUNDISPLAY -DDISPLAYBUFFER -DFORKCOMM -DBIGATOMS
LDFLAGS = -lsuntool -lsunwindow -lpixrect -lc -lm
INLINE = $(SRCDIR)disp68K.il
BITBLTFILE = $(OBJECTDIR)bitblt68K.o
COLORFILES = $(OBJECTDIR)colorbltfns.o
OBJECTDIR = ../$(RELEASENAME)/
default : $(OBJECTDIR)lde $(OBJECTDIR)ldeether
$(OBJECTDIR)xc.o : $(SRCDIR)xc.c $(INCDIR)lispemul.h $(INCDIR)emulglobal.h \
$(INCDIR)address.h \
$(INCDIR)address68k.h $(INCDIR)stack.h $(INCDIR)lispglobal.h \
$(INCDIR)lisptypes.h $(INCDIR)lispmap.h $(INCDIR)cell.h \
$(INCDIR)initatoms.h $(INCDIR)gc.h \
$(INCDIR)arith.h $(INCDIR)stream.h \
$(INCDIR)tos1defs.h $(INCDIR)tosretmacro.h \
$(INCDIR)tosfuncall.h $(INCDIR)inlineC.h \
$(INCDIR)inline68K.h \
$(INCDIR)inlineSPARC.h $(INCDIR)fast_disp.h \
$(INCDIR)fastinline68K.h $(INCDIR)profile.h
cc $(DISPRFLAGS) $(SRCDIR)xc.c $(INLINE) -o $(OBJECTDIR)xc.o

64
bin/makefile-sunos4.1.mc68020-x Executable file
View File

@@ -0,0 +1,64 @@
# Options for sun4, mc68020 and X-Window
XFILES = $(OBJECTDIR)XClose.o \
$(OBJECTDIR)Cursor.o \
$(OBJECTDIR)XWindow.o \
$(OBJECTDIR)DoRing.o \
$(OBJECTDIR)DoScroll.o \
$(OBJECTDIR)XEvent.o \
$(OBJECTDIR)XGravity.o \
$(OBJECTDIR)XInit.o \
$(OBJECTDIR)InitXevent.o \
$(OBJECTDIR)XKbdMouse.o \
$(OBJECTDIR)LispWindow.o \
$(OBJECTDIR)LispXbitblt.o \
$(OBJECTDIR)XKeyboard.o \
$(OBJECTDIR)MakeXicon.o \
$(OBJECTDIR)OpenDisplay.o \
$(OBJECTDIR)ReadXoption.o \
$(OBJECTDIR)XReconfig.o \
$(OBJECTDIR)XScroll.o \
$(OBJECTDIR)Scrollbar.o \
$(OBJECTDIR)XCursor.o \
$(OBJECTDIR)XMouse.o \
$(OBJECTDIR)Subwindows.o \
$(OBJECTDIR)VideoColor.o \
$(OBJECTDIR)XWindowMgr.o
XVERSION = XV11R4
XFLAGS = -DXWINDOW -D$(XVERSION)
# This is to make the %$#@! Apollo cc happy
OEXT = .o
OPTFLAGS = -O2
DISPOPTFLAGS = -O
FPFLAGS = -f68881
# DISPLAYBUFFER for Color Sparcstation code testing
# [I remove DISPLAYBUFFER option .
# You may run 'makeright x'. -osamu '90/02/27]
# NEWBITBLT for assembler version of bitblt.
DFLAGS = -DFSERROR -DNEW_STORAGE -DOPDISP -DUNSAFE -DOS4 -DSUN3_OS4_IL -DOS4_TYPE4BUG -DNEWBITBLT -DLOGINT $(XFLAGS) -DFORKCOMM -DBIGATOMS
LDFLAGS = -lX11 -lpixrect -lc -lm
INLINE = $(SRCDIR)disp68K.il
BITBLTFILE = $(OBJECTDIR)bitblt68K.o
OBJECTDIR = ../sunos4.mc68020-x/
BYTESWAPFILES = $(OBJECTDIR)byteswapfns.o
default : $(OBJECTDIR)lde $(OBJECTDIR)ldeether
$(OBJECTDIR)xc.o : $(SRCDIR)xc.c $(INCDIR)lispemul.h $(INCDIR)emulglobal.h \
$(INCDIR)address.h \
$(INCDIR)address68k.h $(INCDIR)stack.h $(INCDIR)lispglobal.h \
$(INCDIR)lisptypes.h $(INCDIR)lispmap.h $(INCDIR)cell.h \
$(INCDIR)initatoms.h $(INCDIR)gc.h \
$(INCDIR)arith.h $(INCDIR)stream.h \
$(INCDIR)tos1defs.h $(INCDIR)tosretmacro.h \
$(INCDIR)tosfuncall.h $(INCDIR)inlineC.h \
$(INCDIR)inline68K.h \
$(INCDIR)inlineSPARC.h $(INCDIR)fast_disp.h \
$(INCDIR)fastinline68K.h $(INCDIR)profile.h
cc $(DISPRFLAGS) $(SRCDIR)xc.c $(INLINE) -o $(OBJECTDIR)xc.o

73
bin/makefile-sunos4.1.sparc Executable file
View File

@@ -0,0 +1,73 @@
# Options for SunOS4 and SPARC
# @(#) makefile-sunos4.sparc Version 1.19 (5/9/90).
#
# This is to make the %$#@! Apollo cc happy
OEXT = .o
# OPTFLAGS is normally -O2.
OPTFLAGS = -g -O2
DISPOPTFLAGS = -g
FPFLAGS =
# Now share the same ldesingle with COLOR(CG4)/MONO Suns
# If you load MAIKOCOLOR.LCOM etc., you can use color functions
DFLAGS = -DKBINT -DFSERROR -DNEW_STORAGE -DOS4 -DSPARCDISP -DSUN4_OS4_IL -DOS4_TYPE4BUG -DCOLOR -DNEWBITBLT -DLOGINT -DSUNDISPLAY -DFORKCOMM -DBIGATOMS -DNOEUROKBD
LDFLAGS = -lsuntool -lsunwindow -lpixrect -ldld -lc -lm
# SPARC Assemble optimize check
DFLAGS:sh += optck.sh ; true
#-Dsparc?
INLINE = $(SRCDIR)dspSPARC.il
BITBLTFILE = $(OBJECTDIR)bbtSPARC.o
OBJECTDIR = ../$(RELEASENAME)/
COLORFILES = $(OBJECTDIR)rawcolor.o
default : ../$(OSARCHNAME)/lde ../$(OSARCHNAME)/ldeether
# Special rules to create xc.c on Sun4
#run cpp to expand macros
$(OBJECTDIR)xc.i: $(SRCDIR)xc.c $(INCDIR)lispemul.h $(INCDIR)emlglob.h $(INCDIR)address.h \
$(INCDIR)adr68k.h $(INCDIR)stack.h $(INCDIR)lspglob.h \
$(INCDIR)lsptypes.h $(INCDIR)lispmap.h $(INCDIR)cell.h \
$(INCDIR)initatms.h $(INCDIR)gc.h \
$(INCDIR)arith.h $(INCDIR)stream.h \
$(INCDIR)tos1defs.h $(INCDIR)tosret.h \
$(INCDIR)tosfns.h $(INCDIR)inlineC.h \
$(INCDIR)inln68k.h
cc -Qproduce .i $(DFLAGS) -I$(INCDIR) $(SRCDIR)xc.c -o $(OBJECTDIR)xc.i
#run c compiler to produce first pass assembly
$(OBJECTDIR)xc.s1: $(OBJECTDIR)xc.i
rm -f $(OBJECTDIR)xc.s1
/lib/ccom - $(FPFLAGS) <$(OBJECTDIR)xc.i >$(OBJECTDIR)xc.s1
#generate C program to remove dispatch loop, optimize
$(OBJECTDIR)dsphack.c: $(SRCDIR)dsphack.lex
rm -f $(OBJECTDIR)dsphack.c
lex -t $(SRCDIR)dsphack.lex > $(OBJECTDIR)dsphack.c
#uses this program to find dispatch
$(OBJECTDIR)find-dsp.c: $(SRCDIR)find-dsp.lex
rm -f $(OBJECTDIR)find-dsp.c
lex -t $(SRCDIR)find-dsp.lex > $(OBJECTDIR)find-dsp.c
$(OBJECTDIR)find-dsp: $(OBJECTDIR)find-dsp.c
cc -o $(OBJECTDIR)find-dsp $(OBJECTDIR)find-dsp.c -ll
$(OBJECTDIR)dispatch-label.c: $(OBJECTDIR)find-dsp $(OBJECTDIR)xc.s1
rm -f $(OBJECTDIR)dispatch-label.c
$(OBJECTDIR)find-dsp < $(OBJECTDIR)xc.s1 >$(OBJECTDIR)dispatch-label.c
$(OBJECTDIR)dsphack: $(OBJECTDIR)dsphack.c $(OBJECTDIR)dispatch-label.c
cc -o $(OBJECTDIR)dsphack $(OBJECTDIR)dispatch-label.c $(OBJECTDIR)dsphack.c -ll
rm -f $(OBJECTDIR)dispatch-label.o $(OBJECTDIR)dsphack.o
$(OBJECTDIR)xc.s2: $(OBJECTDIR)xc.s1 $(OBJECTDIR)dsphack
rm -f $(OBJECTDIR)xc.s2
$(OBJECTDIR)dsphack < $(OBJECTDIR)xc.s1 >$(OBJECTDIR)xc.s2
$(OBJECTDIR)xc.s3: $(OBJECTDIR)xc.s2 $(INLINE)
rm -f $(OBJECTDIR)xc.s3
/usr/lib/inline -i $(INLINE) < $(OBJECTDIR)xc.s2 > $(OBJECTDIR)xc.s3
$(OBJECTDIR)xc.o: $(OBJECTDIR)xc.s3
/bin/as -o $(OBJECTDIR)xc.o -O1 $(OBJECTDIR)xc.s3

View File

@@ -0,0 +1,71 @@
# Options for SunOS4 and SPARC
# This is to make the %$#@! Apollo cc happy
OEXT = .o
# OPTFLAGS is normally -O2.
OPTFLAGS = -g
FPFLAGS =
# For COLOR, Add COLOR, remove OLD_CURSOR
DFLAGS = -DKBINT -DFSERROR -DNEW_STORAGE -DOS4 -DSPARCDISP -DSUN4_OS4_IL -DOS4_TYPE4BUG -DFLTINT -DCOLOR -DNEWBITBLT -DSUNDISPLAY -DLOGINT -DFORKCOMM
LDFLAGS = -lsuntool -lsunwindow -lpixrect -lc -lm
# SPARC Assemble optimize check
DFLAGS:sh += optck.sh ; true
#-Dsparc?
INLINE = $(SRCDIR)dispSPARC.il
BITBLTFILE = $(OBJECTDIR)bitbltSPARC.o
OBJECTDIR = ../$(RELEASENAME)/
COLORFILES = $(OBJECTDIR)colorbltfns.o
default : $(OBJECTDIR)lde $(OBJECTDIR)Cldeether
# Special rules to create xc.c on Sun4
#run cpp to expand macros
$(OBJECTDIR)xc.i: $(SRCDIR)xc.c $(INCDIR)lispemul.h $(INCDIR)emulglobal.h $(INCDIR)address.h \
$(INCDIR)address68k.h $(INCDIR)stack.h $(INCDIR)lispglobal.h \
$(INCDIR)lisptypes.h $(INCDIR)lispmap.h $(INCDIR)cell.h \
$(INCDIR)initatoms.h $(INCDIR)gc.h \
$(INCDIR)arith.h $(INCDIR)stream.h \
$(INCDIR)tos1defs.h $(INCDIR)tosretmacro.h \
$(INCDIR)tosfuncall.h $(INCDIR)inlineC.h \
$(INCDIR)inline68K.h
cc -Qproduce .i $(DFLAGS) -I$(INCDIR) $(SRCDIR)xc.c -o $(OBJECTDIR)xc.i
#run c compiler to produce first pass assembly
$(OBJECTDIR)xc.s1: $(OBJECTDIR)xc.i
rm -f $(OBJECTDIR)xc.s1
/lib/ccom - $(FPFLAGS) <$(OBJECTDIR)xc.i >$(OBJECTDIR)xc.s1
#generate C program to remove dispatch loop, optimize
$(OBJECTDIR)disphack.c: $(SRCDIR)disphack.lex
rm -f $(OBJECTDIR)disphack.c
lex -t $(SRCDIR)disphack.lex > $(OBJECTDIR)disphack.c
#uses this program to find dispatch
$(OBJECTDIR)find-disp.c: $(SRCDIR)find-disp.lex
rm -f $(OBJECTDIR)find-disp.c
lex -t $(SRCDIR)find-disp.lex > $(OBJECTDIR)find-disp.c
$(OBJECTDIR)find-disp: $(OBJECTDIR)find-disp.c
cc -o $(OBJECTDIR)find-disp $(OBJECTDIR)find-disp.c -ll
$(OBJECTDIR)dispatch-label.c: $(OBJECTDIR)find-disp $(OBJECTDIR)xc.s1
rm -f $(OBJECTDIR)dispatch-label.c
$(OBJECTDIR)find-disp < $(OBJECTDIR)xc.s1 >$(OBJECTDIR)dispatch-label.c
$(OBJECTDIR)disphack: $(OBJECTDIR)disphack.c $(OBJECTDIR)dispatch-label.c
cc -o $(OBJECTDIR)disphack $(OBJECTDIR)dispatch-label.c $(OBJECTDIR)disphack.c -ll
rm -f $(OBJECTDIR)dispatch-label.o $(OBJECTDIR)disphack.o
$(OBJECTDIR)xc.s2: $(OBJECTDIR)xc.s1 $(OBJECTDIR)disphack
rm -f $(OBJECTDIR)xc.s2
$(OBJECTDIR)disphack < $(OBJECTDIR)xc.s1 >$(OBJECTDIR)xc.s2
$(OBJECTDIR)xc.s3: $(OBJECTDIR)xc.s2 $(INLINE)
rm -f $(OBJECTDIR)xc.s3
/usr/lib/inline -i $(INLINE) < $(OBJECTDIR)xc.s2 > $(OBJECTDIR)xc.s3
$(OBJECTDIR)xc.o: $(OBJECTDIR)xc.s3
/bin/as -o $(OBJECTDIR)xc.o -O1 $(OBJECTDIR)xc.s3

View File

@@ -0,0 +1,79 @@
# makefile-sunos4.sparc-multi
# @(#) makefile-sunos4.sparc-multi Version 1.6 (5/9/90).
#
# Options for SunOS4 and SPARC for CG3 or CG6
# Add -DDISPLAYBUFFER in DFLAGS
# ${RELEASENAME} is "sunos4.sparc-multi"
# This is to make the %$#@! Apollo cc happy
OEXT = .o
# OPTFLAGS is normally -O2.
OPTFLAGS = -g -O2
DISPOPTFLAGS = -g -O2
FPFLAGS =
# Now share the same ldemulti for Mono-Medley & Color-Medley
# If you load MAIKOCOLOR.LCOM etc., you can use color functions
DFLAGS = -DKBINT -DFSERROR -DNEW_STORAGE -DOS4 -DSPARCDISP -DSUN4_OS4_IL -DOS4_TYPE4BUG -DCOLOR -DDISPLAYBUFFER -DNEWBITBLT -DLOGINT -DSUNDISPLAY -DDISPLAYBUFFER -DFORKCOMM -DBIGATOMS -DNOEUROKBD
LDFLAGS = -lsuntool -lsunwindow -lpixrect -ldld -lc -lm
# SPARC Assemble optimize check
DFLAGS:sh += optck.sh ; true
#-Dsparc?
INLINE = $(SRCDIR)dspSPARC.il
BITBLTFILE = $(OBJECTDIR)bbtSPARC.o
OBJECTDIR = ../$(RELEASENAME)/
COLORFILES = $(OBJECTDIR)rawcolor.o
default : ../$(OSARCHNAME)/lde ../$(OSARCHNAME)/ldeether
# Special rules to create xc.c on Sun4
#run cpp to expand macros
$(OBJECTDIR)xc.i: $(SRCDIR)xc.c $(INCDIR)lispemul.h $(INCDIR)emlglob.h $(INCDIR)address.h \
$(INCDIR)adr68k.h $(INCDIR)stack.h $(INCDIR)lspglob.h \
$(INCDIR)lsptypes.h $(INCDIR)lispmap.h $(INCDIR)cell.h \
$(INCDIR)initatms.h $(INCDIR)gc.h \
$(INCDIR)arith.h $(INCDIR)stream.h \
$(INCDIR)tos1defs.h $(INCDIR)tosret.h \
$(INCDIR)tosfns.h $(INCDIR)inlineC.h \
$(INCDIR)inln68k.h
cc -Qproduce .i $(DFLAGS) -I$(INCDIR) $(SRCDIR)xc.c -o $(OBJECTDIR)xc.i
#run c compiler to produce first pass assembly
$(OBJECTDIR)xc.s1: $(OBJECTDIR)xc.i
rm -f $(OBJECTDIR)xc.s1
/lib/ccom - $(FPFLAGS) <$(OBJECTDIR)xc.i >$(OBJECTDIR)xc.s1
#generate C program to remove dispatch loop, optimize
$(OBJECTDIR)dsphack.c: $(SRCDIR)dsphack.lex
rm -f $(OBJECTDIR)dsphack.c
lex -t $(SRCDIR)dsphack.lex > $(OBJECTDIR)dsphack.c
#uses this program to find dispatch
$(OBJECTDIR)find-dsp.c: $(SRCDIR)find-dsp.lex
rm -f $(OBJECTDIR)find-dsp.c
lex -t $(SRCDIR)find-dsp.lex > $(OBJECTDIR)find-dsp.c
$(OBJECTDIR)find-dsp: $(OBJECTDIR)find-dsp.c
cc -o $(OBJECTDIR)find-dsp $(OBJECTDIR)find-dsp.c -ll
$(OBJECTDIR)dispatch-label.c: $(OBJECTDIR)find-dsp $(OBJECTDIR)xc.s1
rm -f $(OBJECTDIR)dispatch-label.c
$(OBJECTDIR)find-dsp < $(OBJECTDIR)xc.s1 >$(OBJECTDIR)dispatch-label.c
$(OBJECTDIR)dsphack: $(OBJECTDIR)dsphack.c $(OBJECTDIR)dispatch-label.c
cc -o $(OBJECTDIR)dsphack $(OBJECTDIR)dispatch-label.c $(OBJECTDIR)dsphack.c -ll
rm -f $(OBJECTDIR)dispatch-label.o $(OBJECTDIR)dsphack.o
$(OBJECTDIR)xc.s2: $(OBJECTDIR)xc.s1 $(OBJECTDIR)dsphack
rm -f $(OBJECTDIR)xc.s2
$(OBJECTDIR)dsphack < $(OBJECTDIR)xc.s1 >$(OBJECTDIR)xc.s2
$(OBJECTDIR)xc.s3: $(OBJECTDIR)xc.s2 $(INLINE)
rm -f $(OBJECTDIR)xc.s3
/usr/lib/inline -i $(INLINE) < $(OBJECTDIR)xc.s2 > $(OBJECTDIR)xc.s3
$(OBJECTDIR)xc.o: $(OBJECTDIR)xc.s3
/bin/as -o $(OBJECTDIR)xc.o -O1 $(OBJECTDIR)xc.s3

121
bin/makefile-sunos4.1.sparc-x Executable file
View File

@@ -0,0 +1,121 @@
# Options for SunOS4, SPARC and X-Window
CLXFLAGS = -DCLX -DTCP_NODELAY
CLXFILES = $(OBJECTDIR)socket.o \
$(OBJECTDIR)socdvr.o
XFILES = $(OBJECTDIR)XClose.o \
$(OBJECTDIR)Cursor.o \
$(OBJECTDIR)XWindow.o \
$(OBJECTDIR)DoRing.o \
$(OBJECTDIR)DoScroll.o \
$(OBJECTDIR)XEvent.o \
$(OBJECTDIR)XGravity.o \
$(OBJECTDIR)XInit.o \
$(OBJECTDIR)Xevinit.o \
$(OBJECTDIR)Xkbdmus.o \
$(OBJECTDIR)Xlspwin.o \
$(OBJECTDIR)Xbbt.o \
$(OBJECTDIR)Xkbd.o \
$(OBJECTDIR)Xmkicon.o \
$(OBJECTDIR)Xopendsp.o \
$(OBJECTDIR)Xrdopt.o \
$(OBJECTDIR)Xreconf.o \
$(OBJECTDIR)XScroll.o \
$(OBJECTDIR)Xscrolb.o \
$(OBJECTDIR)XCursor.o \
$(OBJECTDIR)XMouse.o \
$(OBJECTDIR)Xsubwin.o \
$(OBJECTDIR)Xcolor.o \
$(OBJECTDIR)Xwinman.o \
$(CLXFILES)
XVERSION = XV11R4
XFLAGS = -DXWINDOW -D$(XVERSION) $(CLXFLAGS)
# This is to make the %$#@! Apollo cc happy
OEXT = .o
# OPTFLAGS is normally -O2.
OPTFLAGS = -g
DISPOPTFLAGS = -g
FPFLAGS =
DFLAGS = -DFSERROR -DNEW_STORAGE -DOS4 -DSPARCDISP -DSUN4_OS4_IL -DOS4_TYPE4BUG -DOLD_CURSOR -DNEWBITBLT -DLOGINT $(XFLAGS) -DFORKCOMM -DBIGATOMS -DNOEUROKBD
LDFLAGS = -lX11 -lpixrect -lc -lm -ldld
LDELDFLAGS = -Bstatic -lX11 -lpixrect -Bdynamic -lc -lm
# SPARC Assemble optimize check
DFLAGS:sh += optck.sh ; true
#-Dsparc?
INLINE = $(SRCDIR)dspSPARC.il
BITBLTFILE = $(OBJECTDIR)bbtSPARC.o
OBJECTDIR = ../$(RELEASENAME)/
BYTESWAPFILES = $(OBJECTDIR)byteswap.o
default: ../$(OSARCHNAME)/lde ../$(OSARCHNAME)/ldeether
# Special rules to create xc.c on Sun4
#run cpp to expand macros
$(OBJECTDIR)xc.i: $(SRCDIR)xc.c $(INCDIR)lispemul.h $(INCDIR)emlglob.h $(INCDIR)address.h \
$(INCDIR)adr68k.h $(INCDIR)stack.h $(INCDIR)lspglob.h \
$(INCDIR)lsptypes.h $(INCDIR)lispmap.h $(INCDIR)cell.h \
$(INCDIR)initatms.h $(INCDIR)gc.h \
$(INCDIR)arith.h $(INCDIR)stream.h \
$(INCDIR)tos1defs.h $(INCDIR)tosret.h \
$(INCDIR)tosfns.h $(INCDIR)inlineC.h \
$(INCDIR)inln68k.h
cc -Qproduce .i $(DFLAGS) -I$(INCDIR) $(SRCDIR)xc.c -o $(OBJECTDIR)xc.i
#run c compiler to produce first pass assembly
$(OBJECTDIR)xc.s1: $(OBJECTDIR)xc.i
rm -f $(OBJECTDIR)xc.s1
/lib/ccom - $(FPFLAGS) <$(OBJECTDIR)xc.i >$(OBJECTDIR)xc.s1
#generate C program to remove dispatch loop, optimize
$(OBJECTDIR)dsphack.c: $(SRCDIR)dsphack.lex
rm -f $(OBJECTDIR)dsphack.c
lex -t $(SRCDIR)dsphack.lex > $(OBJECTDIR)dsphack.c
#uses this program to find dispatch
$(OBJECTDIR)find-dsp.c: $(SRCDIR)find-dsp.lex
rm -f $(OBJECTDIR)find-dsp.c
lex -t $(SRCDIR)find-dsp.lex > $(OBJECTDIR)find-dsp.c
$(OBJECTDIR)find-dsp: $(OBJECTDIR)find-dsp.c
cc -o $(OBJECTDIR)find-dsp $(OBJECTDIR)find-dsp.c -ll
$(OBJECTDIR)dispatch-label.c: $(OBJECTDIR)find-dsp $(OBJECTDIR)xc.s1
rm -f $(OBJECTDIR)dispatch-label.c
$(OBJECTDIR)find-dsp < $(OBJECTDIR)xc.s1 >$(OBJECTDIR)dispatch-label.c
$(OBJECTDIR)dsphack: $(OBJECTDIR)dsphack.c $(OBJECTDIR)dispatch-label.c
cc -o $(OBJECTDIR)dsphack $(OBJECTDIR)dispatch-label.c $(OBJECTDIR)dsphack.c -ll
rm -f $(OBJECTDIR)dispatch-label.o $(OBJECTDIR)dsphack.o
$(OBJECTDIR)xc.s2: $(OBJECTDIR)xc.s1 $(OBJECTDIR)dsphack
rm -f $(OBJECTDIR)xc.s2
$(OBJECTDIR)dsphack < $(OBJECTDIR)xc.s1 >$(OBJECTDIR)xc.s2
$(OBJECTDIR)xc.s3: $(OBJECTDIR)xc.s2 $(INLINE)
rm -f $(OBJECTDIR)xc.s3
/usr/lib/inline -i $(INLINE) < $(OBJECTDIR)xc.s2 > $(OBJECTDIR)xc.s3
$(OBJECTDIR)xc.o: $(OBJECTDIR)xc.s3
/bin/as -o $(OBJECTDIR)xc.o -O1 $(OBJECTDIR)xc.s3
########### debugging version of xc maker
#$(OBJECTDIR)xc.o: $(SRCDIR)xc.c $(INCDIR)lispemul.h $(INCDIR)emlglob.h #$(INCDIR)address.h \
# $(INCDIR)adr68k.h $(INCDIR)stack.h $(INCDIR)lspglob.h \
# $(INCDIR)lsptypes.h $(INCDIR)lispmap.h $(INCDIR)cell.h \
# $(INCDIR)initatms.h $(INCDIR)gc.h \
# $(INCDIR)arith.h $(INCDIR)stream.h \
# $(INCDIR)tos1defs.h $(INCDIR)tosret.h \
# $(INCDIR)tosfns.h $(INCDIR)inlineC.h
# cc $(DISPRFLAGS) -USPARCDISP -UOPDISP -DNOASM $(INLINE) -I$(INCDIR) $(SRCDIR)xc.c -o $(OBJECTDIR)xc.o

44
bin/makefile-sunos4.i386 Executable file
View File

@@ -0,0 +1,44 @@
# Options for i386SUN
# This is to make the %$#@! Apollo cc happy
OEXT = .o
#For debugging
OPTFLAGS = -g
FPFLAGS =
DFLAGS = -DKBINT -DFSERROR -DNEW_STORAGE -DFLTINT -DNOASM -DOS4 -DI386 -DBYTESWAP -DCHECK -DLOGINT -DSUNDISPLAY -DFORKCOMM
LDFLAGS = -lsuntool -lsunwindow -lpixrect -lc -lm
INLINE = $(SRCDIR)disp386i.il
OBJECTDIR = ../sunos4.i386/
BYTESWAPFILES = $(OBJECTDIR)byteswapfns.o
COLORFILES = $(OBJECTDIR)colorbltfns.o
default : $(OBJECTDIR)lde $(OBJECTDIR)ldeether
# Special rules to create xc.c on 386i
#run cpp to expand macros
$(OBJECTDIR)xc.i: $(SRCDIR)xc.c $(INCDIR)lispemul.h $(INCDIR)emulglobal.h $(INCDIR)address.h \
$(INCDIR)address68k.h $(INCDIR)stack.h $(INCDIR)lispglobal.h \
$(INCDIR)lisptypes.h $(INCDIR)lispmap.h $(INCDIR)cell.h \
$(INCDIR)initatoms.h $(INCDIR)gc.h \
$(INCDIR)arith.h $(INCDIR)stream.h $(INCDIR)dbprint.h\
$(INCDIR)tos1defs.h $(INCDIR)tosretmacro.h \
$(INCDIR)tosfuncallmacro.h $(INCDIR)inlineC.h \
$(INCDIR)n_op_inlineC.h $(SRCDIR)disp386i.il \
$(INCDIR)dummy_entries.h \
$(INCDIR)inline386i.h $(INCDIR)fast_disp.h \
$(INCDIR)fastinline68K.h $(INCDIR)profile.h
cc -c -O -Qproduce .s $(DFLAGS) -I$(INCDIR) $(SRCDIR)xc.c -o $(OBJECTDIR)xc.s
#run c compiler to produce first pass assembly
#$(OBJECTDIR)xc.s1: $(OBJECTDIR)xc.i
# rm -f $(OBJECTDIR)xc.s1
# /lib/ccom - $(FPFLAGS) <$(OBJECTDIR)xc.i >$(OBJECTDIR)xc.s1
$(OBJECTDIR)xc.s2: $(OBJECTDIR)xc.s $(INLINE)
rm -f $(OBJECTDIR)xc.s2
/usr/lib/inline -i $(INLINE) < $(OBJECTDIR)xc.s > $(OBJECTDIR)xc.s2
$(OBJECTDIR)xc.o: $(OBJECTDIR)xc.s2
/bin/as -o $(OBJECTDIR)xc.o -O1 $(OBJECTDIR)xc.s2

48
bin/makefile-sunos4.i386-multi Executable file
View File

@@ -0,0 +1,48 @@
# Options for sun4 and mc68020
# This is to make the %$#@! Apollo cc happy
OEXT = .o
OPTFLAGS = -O -traditional
DISPOPTFLAGS = -O -traditional
FPFLAGS =
DFLAGS = -DKBINT -DFSERROR -DNEW_STORAGE -DOS4 -DI386 -DBYTESWAP -DCHECK -DLOGINT -DDISPLAYBUFFER -DSUNDISPLAY -DNEWBITBLT -DOPDISP -DFORKCOMM -DBIGATOMS
LDFLAGS = -lsuntool -lsunwindow -lpixrect -lc -lm
INLINE = $(SRCDIR)disp386i.il
BITBLTFILE=$(OBJECTDIR)bitblt386i.o
CC=gcc
AS=/users/sybalsky/gcc/gas/gas-1.35/a386
OBJECTDIR = ../sunos4.i386-multi/
BYTESWAPFILES = $(OBJECTDIR)byteswapfns.o
COLORFILES = $(OBJECTDIR)colorbltfns.o
default : $(OBJECTDIR)lde $(OBJECTDIR)ldeether
# Special rules to create xc.c on 386i
#run cpp to expand macros
$(OBJECTDIR)xc.s: $(SRCDIR)xc.c $(INCDIR)lispemul.h $(INCDIR)emulglobal.h $(INCDIR)address.h \
$(INCDIR)address68k.h $(INCDIR)stack.h $(INCDIR)lispglobal.h \
$(INCDIR)lisptypes.h $(INCDIR)lispmap.h $(INCDIR)cell.h \
$(INCDIR)initatoms.h $(INCDIR)gc.h \
$(INCDIR)arith.h $(INCDIR)stream.h $(INCDIR)dbprint.h\
$(INCDIR)tos1defs.h $(INCDIR)tosretmacro.h \
$(INCDIR)tosfuncall.h $(INCDIR)inlineC.h \
$(SRCDIR)disp386i.il \
$(INCDIR)inline386i.h $(INCDIR)fast_disp.h \
$(INCDIR)fastinline68K.h $(INCDIR)profile.h
cc -c -O -Qproduce .s $(DFLAGS) -I$(INCDIR) $(SRCDIR)xc.c -o $(OBJECTDIR)xc.s
#run c compiler to produce first pass assembly
#$(OBJECTDIR)xc.s1: $(OBJECTDIR)xc.i
# rm -f $(OBJECTDIR)xc.s1
# /lib/ccom - $(FPFLAGS) <$(OBJECTDIR)xc.i >$(OBJECTDIR)xc.s1
$(OBJECTDIR)xc.s2: $(OBJECTDIR)xc.s $(INLINE)
rm -f $(OBJECTDIR)xc.s2
/usr/lib/inline -i $(INLINE) < $(OBJECTDIR)xc.s > $(OBJECTDIR)xc.s2
$(OBJECTDIR)xc.o: $(OBJECTDIR)xc.s2
$(AS) -o $(OBJECTDIR)xc.o -O1 $(OBJECTDIR)xc.s2

36
bin/makefile-sunos4.mc68020 Executable file
View File

@@ -0,0 +1,36 @@
# Options for sun4 and mc68020
# This is to make the %$#@! Apollo cc happy
OEXT = .o
OPTFLAGS = -O2
DISPOPTFLAGS = -O
FPFLAGS = -f68881
# DISPLAYBUFFER for Color Sparcstation code testing
# [I remove DISPLAYBUFFER option .
# You may run 'makeright multi'. -osamu '90/02/07]
# NEWBITBLT for assembler version of bitblt.
DFLAGS = -DKBINT -DFSERROR -DNEW_STORAGE -DOPDISP -DUNSAFE -DOS4 -DSUN3_OS4_IL -DOS4_TYPE4BUG -DNEWBITBLT -DLOGINT -DSUNDISPLAY -DFORKCOMM -DBIGATOMS
LDFLAGS = -lsuntool -lsunwindow -lpixrect -lc -lm
INLINE = $(SRCDIR)disp68K.il
BITBLTFILE = $(OBJECTDIR)bitblt68K.o
COLORFILES = $(OBJECTDIR)colorbltfns.o
OBJECTDIR = ../sunos4.mc68020/
default : $(OBJECTDIR)lde $(OBJECTDIR)ldeether
$(OBJECTDIR)xc.o : $(SRCDIR)xc.c $(INCDIR)lispemul.h $(INCDIR)emulglobal.h \
$(INCDIR)address.h \
$(INCDIR)address68k.h $(INCDIR)stack.h $(INCDIR)lispglobal.h \
$(INCDIR)lisptypes.h $(INCDIR)lispmap.h $(INCDIR)cell.h \
$(INCDIR)initatoms.h $(INCDIR)gc.h \
$(INCDIR)arith.h $(INCDIR)stream.h \
$(INCDIR)tos1defs.h $(INCDIR)tosretmacro.h \
$(INCDIR)tosfuncall.h $(INCDIR)inlineC.h \
$(INCDIR)inline68K.h \
$(INCDIR)inlineSPARC.h $(INCDIR)fast_disp.h \
$(INCDIR)fastinline68K.h $(INCDIR)profile.h
cc $(DISPRFLAGS) $(SRCDIR)xc.c $(INLINE) -o $(OBJECTDIR)xc.o

View File

@@ -0,0 +1,38 @@
# makefile-sunos4.mc68020-multi
# Options for SunOS4 and mc68020 for CG3 or CG6
# Add -DDISPLAYBUFFER in DFLAGS
# ${RELEASENAME} is "sunos4.mc68020-multi"
# This is to make the %$#@! Apollo cc happy
OEXT = .o
OPTFLAGS = -O2
DISPOPTFLAGS = -O
FPFLAGS = -f68881
# DISPLAYBUFFER for Color Sparcstation code testing
# NEWBITBLT for assembler version of bitblt.
DFLAGS = -DKBINT -DFSERROR -DNEW_STORAGE -DOPDISP -DUNSAFE -DOS4 -DSUN3_OS4_IL -DOS4_TYPE4BUG -DDISPLAYBUFFER -DNEWBITBLT -DLOGINT -DSUNDISPLAY -DDISPLAYBUFFER -DFORKCOMM -DBIGATOMS
LDFLAGS = -lsuntool -lsunwindow -lpixrect -lc -lm
INLINE = $(SRCDIR)disp68K.il
BITBLTFILE = $(OBJECTDIR)bitblt68K.o
COLORFILES = $(OBJECTDIR)colorbltfns.o
OBJECTDIR = ../$(RELEASENAME)/
default : $(OBJECTDIR)lde $(OBJECTDIR)ldeether
$(OBJECTDIR)xc.o : $(SRCDIR)xc.c $(INCDIR)lispemul.h $(INCDIR)emulglobal.h \
$(INCDIR)address.h \
$(INCDIR)address68k.h $(INCDIR)stack.h $(INCDIR)lispglobal.h \
$(INCDIR)lisptypes.h $(INCDIR)lispmap.h $(INCDIR)cell.h \
$(INCDIR)initatoms.h $(INCDIR)gc.h \
$(INCDIR)arith.h $(INCDIR)stream.h \
$(INCDIR)tos1defs.h $(INCDIR)tosretmacro.h \
$(INCDIR)tosfuncall.h $(INCDIR)inlineC.h \
$(INCDIR)inline68K.h \
$(INCDIR)inlineSPARC.h $(INCDIR)fast_disp.h \
$(INCDIR)fastinline68K.h $(INCDIR)profile.h
cc $(DISPRFLAGS) $(SRCDIR)xc.c $(INLINE) -o $(OBJECTDIR)xc.o

65
bin/makefile-sunos4.mc68020-x Executable file
View File

@@ -0,0 +1,65 @@
# Options for sun4, mc68020 and X-Window
XFILES = $(OBJECTDIR)XClose.o \
$(OBJECTDIR)Cursor.o \
$(OBJECTDIR)XWindow.o \
$(OBJECTDIR)DoRing.o \
$(OBJECTDIR)DoScroll.o \
$(OBJECTDIR)XEvent.o \
$(OBJECTDIR)XGravity.o \
$(OBJECTDIR)XInit.o \
$(OBJECTDIR)InitXevent.o \
$(OBJECTDIR)XKbdMouse.o \
$(OBJECTDIR)LispWindow.o \
$(OBJECTDIR)LispXbitblt.o \
$(OBJECTDIR)XKeyboard.o \
$(OBJECTDIR)MakeXicon.o \
$(OBJECTDIR)OpenDisplay.o \
$(OBJECTDIR)ReadXoption.o \
$(OBJECTDIR)XReconfig.o \
$(OBJECTDIR)XScroll.o \
$(OBJECTDIR)Scrollbar.o \
$(OBJECTDIR)XCursor.o \
$(OBJECTDIR)XMouse.o \
$(OBJECTDIR)Subwindows.o \
$(OBJECTDIR)VideoColor.o \
$(OBJECTDIR)XWindowMgr.o
XVERSION = XV11R4
XFLAGS = -DXWINDOW -D$(XVERSION)
# This is to make the %$#@! Apollo cc happy
OEXT = .o
OPTFLAGS = -O2
DISPOPTFLAGS = -O
FPFLAGS = -f68881
# DISPLAYBUFFER for Color Sparcstation code testing
# [I remove DISPLAYBUFFER option .
# You may run 'makeright x'. -osamu '90/02/27]
# NEWBITBLT for assembler version of bitblt.
DFLAGS = -DFSERROR -DNEW_STORAGE -DOPDISP -DUNSAFE -DOS4 -DSUN3_OS4_IL -DOS4_TYPE4BUG -DNEWBITBLT -DLOGINT $(XFLAGS) -DFORKCOMM -DBIGATOMS
LDFLAGS = -lX11 -lpixrect -lc -lm
LDELDFLAGS = -Bstatic -lX11 -lpixrect -Bdynamic -lc -lm
INLINE = $(SRCDIR)disp68K.il
BITBLTFILE = $(OBJECTDIR)bitblt68K.o
OBJECTDIR = ../sunos4.mc68020-x/
BYTESWAPFILES = $(OBJECTDIR)byteswapfns.o
default : $(OBJECTDIR)lde $(OBJECTDIR)ldeether
$(OBJECTDIR)xc.o : $(SRCDIR)xc.c $(INCDIR)lispemul.h $(INCDIR)emulglobal.h \
$(INCDIR)address.h \
$(INCDIR)address68k.h $(INCDIR)stack.h $(INCDIR)lispglobal.h \
$(INCDIR)lisptypes.h $(INCDIR)lispmap.h $(INCDIR)cell.h \
$(INCDIR)initatoms.h $(INCDIR)gc.h \
$(INCDIR)arith.h $(INCDIR)stream.h \
$(INCDIR)tos1defs.h $(INCDIR)tosretmacro.h \
$(INCDIR)tosfuncall.h $(INCDIR)inlineC.h \
$(INCDIR)inline68K.h \
$(INCDIR)inlineSPARC.h $(INCDIR)fast_disp.h \
$(INCDIR)fastinline68K.h $(INCDIR)profile.h
cc $(DISPRFLAGS) $(SRCDIR)xc.c $(INLINE) -o $(OBJECTDIR)xc.o

129
bin/makefile-sunos4.sparc Executable file
View File

@@ -0,0 +1,129 @@
# Options for SunOS4 and SPARC
# @(#) makefile-sunos4.sparc Version 1.19 (5/9/90).
#************************************************************************/
#* */
#* (C) Copyright 1989-95 Venue. All Rights Reserved. */
#* Manufactured in the United States of America. */
#* */
#* The contents of this file are proprietary information */
#* belonging to Venue, and are provided to you under license. */
#* They may not be further distributed or disclosed to third */
#* parties without the specific permission of Venue. */
#* */
#************************************************************************/
#
CC = gcc
ANSICC = gcc
#LPFILES = $(OBJECTDIR)lpmain.o \
# $(OBJECTDIR)lpread.o \
# $(OBJECTDIR)lpsolve.o \
# $(OBJECTDIR)lpkit.o
# $(OBJECTDIR)lptran.o \
# $(OBJECTDIR)lpdual.o \
# $(OBJECTDIR)lpwrite.o
# This is to make the %$#@! Apollo cc happy
OEXT = .o
# OPTFLAGS is normally -O2.
OPTFLAGS = -O2
DISPOPTFLAGS = -O2
FPFLAGS =
# Now share the same ldesingle with COLOR(CG4)/MONO Suns
# If you load MAIKOCOLOR.LCOM etc., you can use color functions
#
# Removed for debug: -DSPARCDISP -DSUN4_OS4_IL
# Added for debug: -DFNSTKCHECK -DMYOPTRACE -DOPTRACE -DNOASM
#
DEBUGFLAGS = # -DNOASM -DSTACKCHECK -DFNSTKCHECK
MACHINEFLAGS = -DOS4 -DOS4_TYPE4BUG -DCOLOR -DSUNDISPLAY \
-DNEWBITBLT -DLOGINT -DFORKCOMM
FEATUREFLAGS = # -DLPSOLVE -DXMAS
INLINEFLAGS = # -DSPARCDISP -DSUN4_OS4_IL
DFLAGS = $(DEBUGFLAGS) \
$(MACHINEFLAGS) \
$(INLINEFLAGS) \
-DKBINT -DFSERROR -DNEW_STORAGE \
-DRELEASE=350
LDFLAGS = -L$(LIBDIR) -lsuntool -lsunwindow -lpixrect -ldld -lc -lm
#-Dsparc?
INLINE = # $(SRCDIR)dspSPARC.il
BITBLTFILE = $(OBJECTDIR)bbtSPARC.o
BYTESWAPFILES = $(OBJECTDIR)byteswap.o
OBJECTDIR = ../$(RELEASENAME)/
COLORFILES = $(OBJECTDIR)rawcolor.o
default : $(OBJECTDIR)lde $(OBJECTDIR)ldeether
# Special rules to create xc.c on Sun4
#run cpp to expand macros
$(OBJECTDIR)xc.i: $(SRCDIR)xc.c $(INCDIR)lispemul.h $(INCDIR)emlglob.h $(INCDIR)address.h \
$(INCDIR)adr68k.h $(INCDIR)stack.h $(INCDIR)lspglob.h \
$(INCDIR)lsptypes.h $(INCDIR)lispmap.h $(INCDIR)cell.h \
$(INCDIR)initatms.h $(INCDIR)gc.h \
$(INCDIR)arith.h $(INCDIR)stream.h \
$(INCDIR)tos1defs.h $(INCDIR)tosret.h \
$(INCDIR)tosfns.h $(INCDIR)inlineC.h \
$(INCDIR)inln68k.h
cc -Qproduce .i $(DFLAGS) -I$(INCDIR) $(SRCDIR)xc.c -o $(OBJECTDIR)xc.i
#run c compiler to produce first pass assembly
$(OBJECTDIR)xc.s1: $(OBJECTDIR)xc.i
rm -f $(OBJECTDIR)xc.s1
/lib/ccom - $(FPFLAGS) <$(OBJECTDIR)xc.i >$(OBJECTDIR)xc.s1
#generate C program to remove dispatch loop, optimize
$(OBJECTDIR)dsphack.c: $(SRCDIR)dsphack.lex
rm -f $(OBJECTDIR)dsphack.c
lex -t $(SRCDIR)dsphack.lex > $(OBJECTDIR)dsphack.c
#uses this program to find dispatch
$(OBJECTDIR)find-dsp.c: $(SRCDIR)find-dsp.lex
rm -f $(OBJECTDIR)find-dsp.c
lex -t $(SRCDIR)find-dsp.lex > $(OBJECTDIR)find-dsp.c
$(OBJECTDIR)find-dsp: $(OBJECTDIR)find-dsp.c
cc -o $(OBJECTDIR)find-dsp $(OBJECTDIR)find-dsp.c -ll
$(OBJECTDIR)dispatch-label.c: $(OBJECTDIR)find-dsp $(OBJECTDIR)xc.s1
rm -f $(OBJECTDIR)dispatch-label.c
$(OBJECTDIR)find-dsp < $(OBJECTDIR)xc.s1 >$(OBJECTDIR)dispatch-label.c
$(OBJECTDIR)dsphack: $(OBJECTDIR)dsphack.c $(OBJECTDIR)dispatch-label.c
cc -o $(OBJECTDIR)dsphack $(OBJECTDIR)dispatch-label.c $(OBJECTDIR)dsphack.c -ll
rm -f $(OBJECTDIR)dispatch-label.o $(OBJECTDIR)dsphack.o
$(OBJECTDIR)xc.s2: $(OBJECTDIR)xc.s1 $(OBJECTDIR)dsphack
rm -f $(OBJECTDIR)xc.s2
$(OBJECTDIR)dsphack < $(OBJECTDIR)xc.s1 >$(OBJECTDIR)xc.s2
$(OBJECTDIR)xc.s3: $(OBJECTDIR)xc.s2 $(INLINE)
rm -f $(OBJECTDIR)xc.s3
/usr/lib/inline -i $(INLINE) < $(OBJECTDIR)xc.s2 > $(OBJECTDIR)xc.s3
#$(OBJECTDIR)xc.o: $(OBJECTDIR)xc.s3
# /bin/as -o $(OBJECTDIR)xc.o -O1 $(OBJECTDIR)xc.s3
############
#
# SPECIAL xc.o for debugging
#
############
$(OBJECTDIR)xc.o: $(SRCDIR)xc.c $(INCDIR)lispemul.h $(INCDIR)emlglob.h \
$(INCDIR)address.h \
$(INCDIR)adr68k.h $(INCDIR)stack.h $(INCDIR)lspglob.h \
$(INCDIR)lsptypes.h $(INCDIR)lispmap.h $(INCDIR)cell.h \
$(INCDIR)initatms.h $(INCDIR)gc.h \
$(INCDIR)arith.h $(INCDIR)stream.h \
$(INCDIR)tos1defs.h $(INCDIR)tosret.h \
$(INCDIR)tosfns.h $(INCDIR)inlineC.h
$(CC) $(DISPRFLAGS) -UOPDISP -USPARCDISP $(SRCDIR)xc.c -I$(INCDIR) -o $(OBJECTDIR)xc.o

100
bin/makefile-sunos4.sparc% Executable file
View File

@@ -0,0 +1,100 @@
# Options for SunOS4 and SPARC
# @(#) makefile-sunos4.sparc Version 1.19 (5/9/90).
#************************************************************************/
#* */
#* (C) Copyright 1989-92 Venue. All Rights Reserved. */
#* Manufactured in the United States of America. */
#* */
#* The contents of this file are proprietary information */
#* belonging to Venue, and are provided to you under license. */
#* They may not be further distributed or disclosed to third */
#* parties without the specific permission of Venue. */
#* */
#************************************************************************/
#
# This is to make the %$#@! Apollo cc happy
OEXT = .o
# OPTFLAGS is normally -O2.
OPTFLAGS = -O2
FPFLAGS =
# Now share the same ldesingle with COLOR(CG4)/MONO Suns
# If you load MAIKOCOLOR.LCOM etc., you can use color functions
DFLAGS = -DKBINT -DFSERROR -DNEW_STORAGE -DOS4 -DSPARCDISP -DSUN4_OS4_IL \
-DOS4_TYPE4BUG -DCOLOR -DNEWBITBLT -DLOGINT -DSUNDISPLAY \
-DFORKCOMM -DBIGATOMS
LDFLAGS = -lsuntool -lsunwindow -lpixrect -ldld -lc -lm
#-Dsparc?
INLINE = $(SRCDIR)dspSPARC.il
BITBLTFILE = $(OBJECTDIR)bbtSPARC.o
OBJECTDIR = ../$(RELEASENAME)/
COLORFILES = $(OBJECTDIR)rawcolor.o
default : $(OBJECTDIR)lde $(OBJECTDIR)ldeether
# Special rules to create xc.c on Sun4
#run cpp to expand macros
$(OBJECTDIR)xc.i: $(SRCDIR)xc.c $(INCDIR)lispemul.h $(INCDIR)emlglob.h $(INCDIR)address.h \
$(INCDIR)adr68k.h $(INCDIR)stack.h $(INCDIR)lspglob.h \
$(INCDIR)lsptypes.h $(INCDIR)lispmap.h $(INCDIR)cell.h \
$(INCDIR)initatms.h $(INCDIR)gc.h \
$(INCDIR)arith.h $(INCDIR)stream.h \
$(INCDIR)tos1defs.h $(INCDIR)tosret.h \
$(INCDIR)tosfns.h $(INCDIR)inlineC.h \
$(INCDIR)inln68k.h
cc -Qproduce .i $(DFLAGS) -I$(INCDIR) $(SRCDIR)xc.c -o $(OBJECTDIR)xc.i
#run c compiler to produce first pass assembly
$(OBJECTDIR)xc.s1: $(OBJECTDIR)xc.i
rm -f $(OBJECTDIR)xc.s1
/lib/ccom - $(FPFLAGS) <$(OBJECTDIR)xc.i >$(OBJECTDIR)xc.s1
#generate C program to remove dispatch loop, optimize
$(OBJECTDIR)dsphack.c: $(SRCDIR)dsphack.lex
rm -f $(OBJECTDIR)dsphack.c
lex -t $(SRCDIR)dsphack.lex > $(OBJECTDIR)dsphack.c
#uses this program to find dispatch
$(OBJECTDIR)find-dsp.c: $(SRCDIR)find-dsp.lex
rm -f $(OBJECTDIR)find-dsp.c
lex -t $(SRCDIR)find-dsp.lex > $(OBJECTDIR)find-dsp.c
$(OBJECTDIR)find-dsp: $(OBJECTDIR)find-dsp.c
cc -o $(OBJECTDIR)find-dsp $(OBJECTDIR)find-dsp.c -ll
$(OBJECTDIR)dispatch-label.c: $(OBJECTDIR)find-dsp $(OBJECTDIR)xc.s1
rm -f $(OBJECTDIR)dispatch-label.c
$(OBJECTDIR)find-dsp < $(OBJECTDIR)xc.s1 >$(OBJECTDIR)dispatch-label.c
$(OBJECTDIR)dsphack: $(OBJECTDIR)dsphack.c $(OBJECTDIR)dispatch-label.c
cc -o $(OBJECTDIR)dsphack $(OBJECTDIR)dispatch-label.c $(OBJECTDIR)dsphack.c -ll
rm -f $(OBJECTDIR)dispatch-label.o $(OBJECTDIR)dsphack.o
$(OBJECTDIR)xc.s2: $(OBJECTDIR)xc.s1 $(OBJECTDIR)dsphack
rm -f $(OBJECTDIR)xc.s2
$(OBJECTDIR)dsphack < $(OBJECTDIR)xc.s1 >$(OBJECTDIR)xc.s2
$(OBJECTDIR)xc.s3: $(OBJECTDIR)xc.s2 $(INLINE)
rm -f $(OBJECTDIR)xc.s3
/usr/lib/inline -i $(INLINE) < $(OBJECTDIR)xc.s2 > $(OBJECTDIR)xc.s3
$(OBJECTDIR)xc.o: $(OBJECTDIR)xc.s3
/bin/as -o $(OBJECTDIR)xc.o -O1 $(OBJECTDIR)xc.s3
############
#
# SPECIAL xc.o for debugging
#
############
#$(OBJECTDIR)xc.o: $(SRCDIR)xc.c $(INCDIR)lispemul.h $(INCDIR)emlglob.h \
$(INCDIR)address.h \
$(INCDIR)adr68k.h $(INCDIR)stack.h $(INCDIR)lspglob.h \
$(INCDIR)lsptypes.h $(INCDIR)lispmap.h $(INCDIR)cell.h \
$(INCDIR)initatms.h $(INCDIR)gc.h \
$(INCDIR)arith.h $(INCDIR)stream.h \
$(INCDIR)tos1defs.h $(INCDIR)tosret.h \
$(INCDIR)tosfns.h $(INCDIR)inlineC.h
# cc $(DISPRFLAGS) -UOPDISP -USPARCDISP $(SRCDIR)xc.c -I$(INCDIR) -o $(OBJECTDIR)xc.o

79
bin/makefile-sunos4.sparc-3 Executable file
View File

@@ -0,0 +1,79 @@
# Options for SunOS4 and SPARC
# @(#) makefile-sunos4.sparc Version 1.19 (5/9/90).
#
##***********************************************************************/
## */
## Copyright 1989, 1990 Venue, Fuji Xerox Co., Ltd, Xerox Corp. */
## */
## This file is work-product resulting from the Xerox/Venue */
## Agreement dated 18-August-1989 for support of Medley. */
## */
##***********************************************************************/
#
# This is to make the %$#@! Apollo cc happy
OEXT = .o
# OPTFLAGS is normally -O2.
OPTFLAGS = -O2
FPFLAGS =
# Now share the same ldesingle with COLOR(CG4)/MONO Suns
# If you load MAIKOCOLOR.LCOM etc., you can use color functions
DFLAGS = -DKBINT -DFSERROR -DNEW_STORAGE -DOS4 -DSPARCDISP -DSUN4_OS4_IL -DOS4_TYPE4BUG -DCOLOR -DNEWBITBLT -DLOGINT -DSUNDISPLAY -DFORKCOMM -DBIGATOMS
LDFLAGS = -lsuntool -lsunwindow -lpixrect -lc -lm
#-Dsparc?
INLINE = $(SRCDIR)dispSPARC.il
BITBLTFILE = $(OBJECTDIR)bitbltSPARC.o
OBJECTDIR = ../$(RELEASENAME)/
COLORFILES = $(OBJECTDIR)colorbltfns.o
default : ../$(OSARCHNAME)/lde ../$(OSARCHNAME)/ldeether
# Special rules to create xc.c on Sun4
#run cpp to expand macros
$(OBJECTDIR)xc.i: $(SRCDIR)xc.c $(INCDIR)lispemul.h $(INCDIR)emulglobal.h $(INCDIR)address.h \
$(INCDIR)address68k.h $(INCDIR)stack.h $(INCDIR)lispglobal.h \
$(INCDIR)lisptypes.h $(INCDIR)lispmap.h $(INCDIR)cell.h \
$(INCDIR)initatoms.h $(INCDIR)gc.h \
$(INCDIR)arith.h $(INCDIR)stream.h \
$(INCDIR)tos1defs.h $(INCDIR)tosretmacro.h \
$(INCDIR)tosfuncall.h $(INCDIR)inlineC.h \
$(INCDIR)inline68K.h
cc -Qproduce .i $(DFLAGS) -I$(INCDIR) $(SRCDIR)xc.c -o $(OBJECTDIR)xc.i
#run c compiler to produce first pass assembly
$(OBJECTDIR)xc.s1: $(OBJECTDIR)xc.i
rm -f $(OBJECTDIR)xc.s1
/lib/ccom - $(FPFLAGS) <$(OBJECTDIR)xc.i >$(OBJECTDIR)xc.s1
#generate C program to remove dispatch loop, optimize
$(OBJECTDIR)disphack.c: $(SRCDIR)disphack.lex
rm -f $(OBJECTDIR)disphack.c
lex -t $(SRCDIR)disphack.lex > $(OBJECTDIR)disphack.c
#uses this program to find dispatch
$(OBJECTDIR)find-disp.c: $(SRCDIR)find-disp.lex
rm -f $(OBJECTDIR)find-disp.c
lex -t $(SRCDIR)find-disp.lex > $(OBJECTDIR)find-disp.c
$(OBJECTDIR)find-disp: $(OBJECTDIR)find-disp.c
cc -o $(OBJECTDIR)find-disp $(OBJECTDIR)find-disp.c -ll
$(OBJECTDIR)dispatch-label.c: $(OBJECTDIR)find-disp $(OBJECTDIR)xc.s1
rm -f $(OBJECTDIR)dispatch-label.c
$(OBJECTDIR)find-disp < $(OBJECTDIR)xc.s1 >$(OBJECTDIR)dispatch-label.c
$(OBJECTDIR)disphack: $(OBJECTDIR)disphack.c $(OBJECTDIR)dispatch-label.c
cc -o $(OBJECTDIR)disphack $(OBJECTDIR)dispatch-label.c $(OBJECTDIR)disphack.c -ll
rm -f $(OBJECTDIR)dispatch-label.o $(OBJECTDIR)disphack.o
$(OBJECTDIR)xc.s2: $(OBJECTDIR)xc.s1 $(OBJECTDIR)disphack
rm -f $(OBJECTDIR)xc.s2
$(OBJECTDIR)disphack < $(OBJECTDIR)xc.s1 >$(OBJECTDIR)xc.s2
$(OBJECTDIR)xc.s3: $(OBJECTDIR)xc.s2 $(INLINE)
rm -f $(OBJECTDIR)xc.s3
/usr/lib/inline -i $(INLINE) < $(OBJECTDIR)xc.s2 > $(OBJECTDIR)xc.s3
$(OBJECTDIR)xc.o: $(OBJECTDIR)xc.s3
/bin/as -o $(OBJECTDIR)xc.o -O1 $(OBJECTDIR)xc.s3

69
bin/makefile-sunos4.sparc-color Executable file
View File

@@ -0,0 +1,69 @@
# Options for SunOS4 and SPARC
# This is to make the %$#@! Apollo cc happy
OEXT = .o
# OPTFLAGS is normally -O2.
OPTFLAGS = -g
FPFLAGS =
# For COLOR, Add COLOR, remove OLD_CURSOR
DFLAGS = -DKBINT -DFSERROR -DNEW_STORAGE -DOS4 -DSPARCDISP -DSUN4_OS4_IL -DOS4_TYPE4BUG -DFLTINT -DCOLOR -DNEWBITBLT -DSUNDISPLAY -DLOGINT -DFORKCOMM
LDFLAGS = -lsuntool -lsunwindow -lpixrect -lc -lm
#-Dsparc?
INLINE = $(SRCDIR)dispSPARC.il
BITBLTFILE = $(OBJECTDIR)bitbltSPARC.o
OBJECTDIR = ../$(RELEASENAME)/
COLORFILES = $(OBJECTDIR)colorbltfns.o
default : $(OBJECTDIR)lde $(OBJECTDIR)Cldeether
# Special rules to create xc.c on Sun4
#run cpp to expand macros
$(OBJECTDIR)xc.i: $(SRCDIR)xc.c $(INCDIR)lispemul.h $(INCDIR)emulglobal.h $(INCDIR)address.h \
$(INCDIR)address68k.h $(INCDIR)stack.h $(INCDIR)lispglobal.h \
$(INCDIR)lisptypes.h $(INCDIR)lispmap.h $(INCDIR)cell.h \
$(INCDIR)initatoms.h $(INCDIR)gc.h \
$(INCDIR)arith.h $(INCDIR)stream.h \
$(INCDIR)tos1defs.h $(INCDIR)tosretmacro.h \
$(INCDIR)tosfuncall.h $(INCDIR)inlineC.h \
$(INCDIR)inline68K.h
cc -Qproduce .i $(DFLAGS) -I$(INCDIR) $(SRCDIR)xc.c -o $(OBJECTDIR)xc.i
#run c compiler to produce first pass assembly
$(OBJECTDIR)xc.s1: $(OBJECTDIR)xc.i
rm -f $(OBJECTDIR)xc.s1
/lib/ccom - $(FPFLAGS) <$(OBJECTDIR)xc.i >$(OBJECTDIR)xc.s1
#generate C program to remove dispatch loop, optimize
$(OBJECTDIR)disphack.c: $(SRCDIR)disphack.lex
rm -f $(OBJECTDIR)disphack.c
lex -t $(SRCDIR)disphack.lex > $(OBJECTDIR)disphack.c
#uses this program to find dispatch
$(OBJECTDIR)find-disp.c: $(SRCDIR)find-disp.lex
rm -f $(OBJECTDIR)find-disp.c
lex -t $(SRCDIR)find-disp.lex > $(OBJECTDIR)find-disp.c
$(OBJECTDIR)find-disp: $(OBJECTDIR)find-disp.c
cc -o $(OBJECTDIR)find-disp $(OBJECTDIR)find-disp.c -ll
$(OBJECTDIR)dispatch-label.c: $(OBJECTDIR)find-disp $(OBJECTDIR)xc.s1
rm -f $(OBJECTDIR)dispatch-label.c
$(OBJECTDIR)find-disp < $(OBJECTDIR)xc.s1 >$(OBJECTDIR)dispatch-label.c
$(OBJECTDIR)disphack: $(OBJECTDIR)disphack.c $(OBJECTDIR)dispatch-label.c
cc -o $(OBJECTDIR)disphack $(OBJECTDIR)dispatch-label.c $(OBJECTDIR)disphack.c -ll
rm -f $(OBJECTDIR)dispatch-label.o $(OBJECTDIR)disphack.o
$(OBJECTDIR)xc.s2: $(OBJECTDIR)xc.s1 $(OBJECTDIR)disphack
rm -f $(OBJECTDIR)xc.s2
$(OBJECTDIR)disphack < $(OBJECTDIR)xc.s1 >$(OBJECTDIR)xc.s2
$(OBJECTDIR)xc.s3: $(OBJECTDIR)xc.s2 $(INLINE)
rm -f $(OBJECTDIR)xc.s3
/usr/lib/inline -i $(INLINE) < $(OBJECTDIR)xc.s2 > $(OBJECTDIR)xc.s3
$(OBJECTDIR)xc.o: $(OBJECTDIR)xc.s3
/bin/as -o $(OBJECTDIR)xc.o -O1 $(OBJECTDIR)xc.s3

134
bin/makefile-sunos4.sparc-multi Executable file
View File

@@ -0,0 +1,134 @@
# makefile-sunos4.sparc-multi
# @(#) makefile-sunos4.sparc-multi Version 1.6 (5/9/90).
#
#************************************************************************/
#* */
#* (C) Copyright 1989-98 Venue. All Rights Reserved. */
#* Manufactured in the United States of America. */
#* */
#* The contents of this file are proprietary information */
#* belonging to Venue, and are provided to you under license. */
#* They may not be further distributed or disclosed to third */
#* parties without the specific permission of Venue. */
#* */
#************************************************************************/
CC = gcc
ANSICC = gcc
#LPFILES = $(OBJECTDIR)lpmain.o \
# $(OBJECTDIR)lpdual.o \
# $(OBJECTDIR)lpread.o \
# $(OBJECTDIR)lpsolve.o \
## $(OBJECTDIR)lptran.o \
# $(OBJECTDIR)lpwrite.o \
# $(OBJECTDIR)lpy.tab.o
LPFILES =
# Options for SunOS4 and SPARC for CG3 or CG6
# Add -DDISPLAYBUFFER in DFLAGS
# ${RELEASENAME} is "sunos4.sparc-multi"
# This is to make the %$#@! Apollo cc happy
OEXT = .o
# OPTFLAGS is normally -O2.
OPTFLAGS = -g # -O2
DISPOPTFLAGS = -g # -O2
FPFLAGS =
# Now share the same ldemulti for Mono-Medley & Color-Medley
# If you load MAIKOCOLOR.LCOM etc., you can use color functions
#
# Removed for debug: -DSPARCDISP -DSUN4_OS4_IL
# Added for debug: -DFNSTKCHECK -DMYOPTRACE -DOPTRACE -DNOASM
#
#DEBUGFLAGS = -DNOASM -DSTACKCHECK -DFNSTKCHECK
MACHINEFLAGS = -DOS4 -DOS4_TYPE4BUG -DCOLOR -DDISPLAYBUFFER -DSUNDISPLAY \
-DNEWBITBLT -DLOGINT -DFORKCOMM
INLINEFLAGS = # -DSPARCDISP -DSUN4_OS4_IL
DFLAGS = $(DEBUGFLAGS) \
$(MACHINEFLAGS) \
$(INLINEFLAGS) \
-DKBINT -DFSERROR -DNEW_STORAGE \
-DNOVERSION -DRELEASE=350
LDFLAGS = -L$(LIBDIR) -lsuntool -lsunwindow -lpixrect -ldld -lc -lm
#-Dsparc?
INLINE = # $(SRCDIR)dspSPARC.il
BITBLTFILE = $(OBJECTDIR)bbtSPARC.o
OBJECTDIR = ../$(RELEASENAME)/
COLORFILES = $(OBJECTDIR)rawcolor.o
BYTESWAPFILES = $(OBJECTDIR)byteswap.o
default : ../$(OSARCHNAME)/lde ../$(OSARCHNAME)/ldeether
# Special rules to create xc.c on Sun4
#run cpp to expand macros
$(OBJECTDIR)xc.i: $(SRCDIR)xc.c $(INCDIR)lispemul.h $(INCDIR)emlglob.h $(INCDIR)address.h \
$(INCDIR)adr68k.h $(INCDIR)stack.h $(INCDIR)lspglob.h \
$(INCDIR)lsptypes.h $(INCDIR)lispmap.h $(INCDIR)cell.h \
$(INCDIR)initatms.h $(INCDIR)gc.h \
$(INCDIR)arith.h $(INCDIR)stream.h \
$(INCDIR)tos1defs.h $(INCDIR)tosret.h \
$(INCDIR)tosfns.h $(INCDIR)inlineC.h \
$(INCDIR)inln68k.h
cc -Qproduce .i $(DFLAGS) -I$(INCDIR) $(SRCDIR)xc.c -o $(OBJECTDIR)xc.i
#run c compiler to produce first pass assembly
$(OBJECTDIR)xc.s1: $(OBJECTDIR)xc.i
rm -f $(OBJECTDIR)xc.s1
/lib/ccom - $(FPFLAGS) <$(OBJECTDIR)xc.i >$(OBJECTDIR)xc.s1
#generate C program to remove dispatch loop, optimize
$(OBJECTDIR)dsphack.c: $(SRCDIR)dsphack.lex
rm -f $(OBJECTDIR)dsphack.c
lex -t $(SRCDIR)dsphack.lex > $(OBJECTDIR)dsphack.c
#uses this program to find dispatch
$(OBJECTDIR)find-dsp.c: $(SRCDIR)find-dsp.lex
rm -f $(OBJECTDIR)find-dsp.c
lex -t $(SRCDIR)find-dsp.lex > $(OBJECTDIR)find-dsp.c
$(OBJECTDIR)find-dsp: $(OBJECTDIR)find-dsp.c
cc -o $(OBJECTDIR)find-dsp $(OBJECTDIR)find-dsp.c -ll
$(OBJECTDIR)dispatch-label.c: $(OBJECTDIR)find-dsp $(OBJECTDIR)xc.s1
rm -f $(OBJECTDIR)dispatch-label.c
$(OBJECTDIR)find-dsp < $(OBJECTDIR)xc.s1 >$(OBJECTDIR)dispatch-label.c
$(OBJECTDIR)dsphack: $(OBJECTDIR)dsphack.c $(OBJECTDIR)dispatch-label.c
cc -o $(OBJECTDIR)dsphack $(OBJECTDIR)dispatch-label.c $(OBJECTDIR)dsphack.c -ll
rm -f $(OBJECTDIR)dispatch-label.o $(OBJECTDIR)dsphack.o
$(OBJECTDIR)xc.s2: $(OBJECTDIR)xc.s1 $(OBJECTDIR)dsphack
rm -f $(OBJECTDIR)xc.s2
$(OBJECTDIR)dsphack < $(OBJECTDIR)xc.s1 >$(OBJECTDIR)xc.s2
$(OBJECTDIR)xc.s3: $(OBJECTDIR)xc.s2 $(INLINE)
rm -f $(OBJECTDIR)xc.s3
/usr/lib/inline -i $(INLINE) < $(OBJECTDIR)xc.s2 > $(OBJECTDIR)xc.s3
#$(OBJECTDIR)xc.o: $(OBJECTDIR)xc.s3
# /bin/as -o $(OBJECTDIR)xc.o -O1 $(OBJECTDIR)xc.s3
############
#
# SPECIAL xc.o for debugging
#
############
$(OBJECTDIR)xc.o: $(SRCDIR)xc.c $(INCDIR)lispemul.h $(INCDIR)emlglob.h \
$(INCDIR)address.h \
$(INCDIR)adr68k.h $(INCDIR)stack.h $(INCDIR)lspglob.h \
$(INCDIR)lsptypes.h $(INCDIR)lispmap.h $(INCDIR)cell.h \
$(INCDIR)initatms.h $(INCDIR)gc.h \
$(INCDIR)arith.h $(INCDIR)stream.h \
$(INCDIR)tos1defs.h $(INCDIR)tosret.h \
$(INCDIR)tosfns.h $(INCDIR)inlineC.h
$(CC) $(DISPRFLAGS) -UOPDISP -USPARCDISP $(SRCDIR)xc.c -I$(INCDIR) -o $(OBJECTDIR)xc.o

View File

@@ -0,0 +1,98 @@
# makefile-sunos4.sparc-multi
# @(#) makefile-sunos4.sparc-multi Version 1.6 (5/9/90).
#
# Options for SunOS4 and SPARC for CG3 or CG6
# Add -DDISPLAYBUFFER in DFLAGS
# ${RELEASENAME} is "sunos4.sparc-multi"
# This is to make the %$#@! Apollo cc happy
OEXT = .o
# OPTFLAGS is normally -O2.
OPTFLAGS = -g
DISPOPTFLAGS = -g
FPFLAGS =
# Now share the same ldemulti for Mono-Medley & Color-Medley
# If you load MAIKOCOLOR.LCOM etc., you can use color functions
#
# Removed for debug: -DSPARCDISP -DSUN4_OS4_IL
# Added for debug: -DFNSTKCHECK -DMYOPTRACE -DOPTRACE -DNOASM
#
DFLAGS = -DKBINT -DFSERROR -DNEW_STORAGE -DOS4 -DOS4_TYPE4BUG -DCOLOR \
-DDISPLAYBUFFER -DNEWBITBLT -DLOGINT -DSUNDISPLAY -DSPARCDISP \
-DSUN4_OS4_IL -DBIGATOMS -DFORKCOMM -DBIGVM -DNEWCDRCODING
LDFLAGS = -lsuntool -lsunwindow -lpixrect -ldld -lc -lm
#-Dsparc?
INLINE = $(SRCDIR)dspSPARC.il
BITBLTFILE = $(OBJECTDIR)bbtSPARC.o
OBJECTDIR = ../$(RELEASENAME)/
COLORFILES = $(OBJECTDIR)rawcolor.o
default : ../$(OSARCHNAME)/lde ../$(OSARCHNAME)/ldeether
# Special rules to create xc.c on Sun4
#run cpp to expand macros
$(OBJECTDIR)xc.i: $(SRCDIR)xc.c $(INCDIR)lispemul.h $(INCDIR)emlglob.h $(INCDIR)address.h \
$(INCDIR)adr68k.h $(INCDIR)stack.h $(INCDIR)lspglob.h \
$(INCDIR)lsptypes.h $(INCDIR)lispmap.h $(INCDIR)cell.h \
$(INCDIR)initatms.h $(INCDIR)gc.h \
$(INCDIR)arith.h $(INCDIR)stream.h \
$(INCDIR)tos1defs.h $(INCDIR)tosret.h \
$(INCDIR)tosfns.h $(INCDIR)inlineC.h \
$(INCDIR)inln68k.h
cc -Qproduce .i $(DFLAGS) -I$(INCDIR) $(SRCDIR)xc.c -o $(OBJECTDIR)xc.i
#run c compiler to produce first pass assembly
$(OBJECTDIR)xc.s1: $(OBJECTDIR)xc.i
rm -f $(OBJECTDIR)xc.s1
/lib/ccom - $(FPFLAGS) <$(OBJECTDIR)xc.i >$(OBJECTDIR)xc.s1
#generate C program to remove dispatch loop, optimize
$(OBJECTDIR)dsphack.c: $(SRCDIR)dsphack.lex
rm -f $(OBJECTDIR)dsphack.c
lex -t $(SRCDIR)dsphack.lex > $(OBJECTDIR)dsphack.c
#uses this program to find dispatch
$(OBJECTDIR)find-dsp.c: $(SRCDIR)find-dsp.lex
rm -f $(OBJECTDIR)find-dsp.c
lex -t $(SRCDIR)find-dsp.lex > $(OBJECTDIR)find-dsp.c
$(OBJECTDIR)find-dsp: $(OBJECTDIR)find-dsp.c
cc -o $(OBJECTDIR)find-dsp $(OBJECTDIR)find-dsp.c -ll
$(OBJECTDIR)dispatch-label.c: $(OBJECTDIR)find-dsp $(OBJECTDIR)xc.s1
rm -f $(OBJECTDIR)dispatch-label.c
$(OBJECTDIR)find-dsp < $(OBJECTDIR)xc.s1 >$(OBJECTDIR)dispatch-label.c
$(OBJECTDIR)dsphack: $(OBJECTDIR)dsphack.c $(OBJECTDIR)dispatch-label.c
cc -o $(OBJECTDIR)dsphack $(OBJECTDIR)dispatch-label.c $(OBJECTDIR)dsphack.c -ll
rm -f $(OBJECTDIR)dispatch-label.o $(OBJECTDIR)dsphack.o
$(OBJECTDIR)xc.s2: $(OBJECTDIR)xc.s1 $(OBJECTDIR)dsphack
rm -f $(OBJECTDIR)xc.s2
$(OBJECTDIR)dsphack < $(OBJECTDIR)xc.s1 >$(OBJECTDIR)xc.s2
$(OBJECTDIR)xc.s3: $(OBJECTDIR)xc.s2 $(INLINE)
rm -f $(OBJECTDIR)xc.s3
/usr/lib/inline -i $(INLINE) < $(OBJECTDIR)xc.s2 > $(OBJECTDIR)xc.s3
#$(OBJECTDIR)xc.o: $(OBJECTDIR)xc.s3
# /bin/as -o $(OBJECTDIR)xc.o -O1 $(OBJECTDIR)xc.s3
############
#
# SPECIAL xc.o for debugging
#
############
$(OBJECTDIR)xc.o: $(SRCDIR)xc.c $(INCDIR)lispemul.h $(INCDIR)emlglob.h \
$(INCDIR)address.h \
$(INCDIR)adr68k.h $(INCDIR)stack.h $(INCDIR)lspglob.h \
$(INCDIR)lsptypes.h $(INCDIR)lispmap.h $(INCDIR)cell.h \
$(INCDIR)initatms.h $(INCDIR)gc.h \
$(INCDIR)arith.h $(INCDIR)stream.h \
$(INCDIR)tos1defs.h $(INCDIR)tosret.h \
$(INCDIR)tosfns.h $(INCDIR)inlineC.h
cc $(DISPRFLAGS) -UOPDISP -USPARCDISP $(SRCDIR)xc.c -I$(INCDIR) -o $(OBJECTDIR)xc.o

View File

@@ -0,0 +1,94 @@
# makefile-sunos4.sparc-multi
# @(#) makefile-sunos4.sparc-multi Version 1.6 (5/9/90).
#
# Options for SunOS4 and SPARC for CG3 or CG6
# Add -DDISPLAYBUFFER in DFLAGS
# ${RELEASENAME} is "sunos4.sparc-multi"
# This is to make the %$#@! Apollo cc happy
OEXT = .o
# OPTFLAGS is normally -O2.
OPTFLAGS = -g
DISPOPTFLAGS = -g
FPFLAGS =
# Now share the same ldemulti for Mono-Medley & Color-Medley
# If you load MAIKOCOLOR.LCOM etc., you can use color functions
#
# Removed for debug: -DSPARCDISP -DSUN4_OS4_IL
# Added for debug: -DFNSTKCHECK -DMYOPTRACE -DOPTRACE -DNOASM
#
DFLAGS = -DKBINT -DFSERROR -DNEW_STORAGE -DOS4 -DOS4_TYPE4BUG -DCOLOR -DDISPLAYBUFFER -DNEWBITBLT -DLOGINT -DSUNDISPLAY -DSPARCDISP -DSUN4_OS4_IL -DBIGATOMS -DFORKCOMM
LDFLAGS = -lsuntool -lsunwindow -lpixrect -lc -lm
#-Dsparc?
INLINE = $(SRCDIR)dispSPARC.il
BITBLTFILE = $(OBJECTDIR)bitbltSPARC.o
OBJECTDIR = ../$(RELEASENAME)/
COLORFILES = $(OBJECTDIR)colorbltfns.o
default : ../$(OSARCHNAME)/lde ../$(OSARCHNAME)/ldeether
# Special rules to create xc.c on Sun4
#run cpp to expand macros
$(OBJECTDIR)xc.i: $(SRCDIR)xc.c $(INCDIR)lispemul.h $(INCDIR)emulglobal.h $(INCDIR)address.h \
$(INCDIR)address68k.h $(INCDIR)stack.h $(INCDIR)lispglobal.h \
$(INCDIR)lisptypes.h $(INCDIR)lispmap.h $(INCDIR)cell.h \
$(INCDIR)initatoms.h $(INCDIR)gc.h \
$(INCDIR)arith.h $(INCDIR)stream.h \
$(INCDIR)tos1defs.h $(INCDIR)tosretmacro.h \
$(INCDIR)tosfuncall.h $(INCDIR)inlineC.h \
$(INCDIR)inline68K.h
cc -Qproduce .i $(DFLAGS) -I$(INCDIR) $(SRCDIR)xc.c -o $(OBJECTDIR)xc.i
#run c compiler to produce first pass assembly
$(OBJECTDIR)xc.s1: $(OBJECTDIR)xc.i
rm -f $(OBJECTDIR)xc.s1
/lib/ccom - $(FPFLAGS) <$(OBJECTDIR)xc.i >$(OBJECTDIR)xc.s1
#generate C program to remove dispatch loop, optimize
$(OBJECTDIR)disphack.c: $(SRCDIR)disphack.lex
rm -f $(OBJECTDIR)disphack.c
lex -t $(SRCDIR)disphack.lex > $(OBJECTDIR)disphack.c
#uses this program to find dispatch
$(OBJECTDIR)find-disp.c: $(SRCDIR)find-disp.lex
rm -f $(OBJECTDIR)find-disp.c
lex -t $(SRCDIR)find-disp.lex > $(OBJECTDIR)find-disp.c
$(OBJECTDIR)find-disp: $(OBJECTDIR)find-disp.c
cc -o $(OBJECTDIR)find-disp $(OBJECTDIR)find-disp.c -ll
$(OBJECTDIR)dispatch-label.c: $(OBJECTDIR)find-disp $(OBJECTDIR)xc.s1
rm -f $(OBJECTDIR)dispatch-label.c
$(OBJECTDIR)find-disp < $(OBJECTDIR)xc.s1 >$(OBJECTDIR)dispatch-label.c
$(OBJECTDIR)disphack: $(OBJECTDIR)disphack.c $(OBJECTDIR)dispatch-label.c
cc -o $(OBJECTDIR)disphack $(OBJECTDIR)dispatch-label.c $(OBJECTDIR)disphack.c -ll
rm -f $(OBJECTDIR)dispatch-label.o $(OBJECTDIR)disphack.o
$(OBJECTDIR)xc.s2: $(OBJECTDIR)xc.s1 $(OBJECTDIR)disphack
rm -f $(OBJECTDIR)xc.s2
$(OBJECTDIR)disphack < $(OBJECTDIR)xc.s1 >$(OBJECTDIR)xc.s2
$(OBJECTDIR)xc.s3: $(OBJECTDIR)xc.s2 $(INLINE)
rm -f $(OBJECTDIR)xc.s3
/usr/lib/inline -i $(INLINE) < $(OBJECTDIR)xc.s2 > $(OBJECTDIR)xc.s3
$(OBJECTDIR)xc.o: $(OBJECTDIR)xc.s3
/bin/as -o $(OBJECTDIR)xc.o -O1 $(OBJECTDIR)xc.s3
############
#
# SPECIAL xc.o for debugging
#
############
#$(OBJECTDIR)xc.o: $(SRCDIR)xc.c $(INCDIR)lispemul.h $(INCDIR)emulglobal.h# $(INCDIR)address.h \
# $(INCDIR)address68k.h $(INCDIR)stack.h $(INCDIR)lispglobal.h \
# $(INCDIR)lisptypes.h $(INCDIR)lispmap.h $(INCDIR)cell.h \
# $(INCDIR)initatoms.h $(INCDIR)gc.h \
# $(INCDIR)arith.h $(INCDIR)stream.h \
# $(INCDIR)tos1defs.h $(INCDIR)tosretmacro.h \
# $(INCDIR)tosfuncall.h $(INCDIR)inlineC.h
# cc $(DISPRFLAGS) $(SRCDIR)xc.c -I$(INCDIR) -o $(OBJECTDIR)xc.o

127
bin/makefile-sunos4.sparc-x Executable file
View File

@@ -0,0 +1,127 @@
# Options for SunOS4, SPARC and X-Window
# CLXFLAGS = -DTCP_NODELAY
#CLXFILES = $(OBJECTDIR)socket.o \
# $(OBJECTDIR)socdvr.o
XFILES = $(OBJECTDIR)xmkicon.o \
$(OBJECTDIR)xbbt.o \
$(OBJECTDIR)dspif.o \
$(OBJECTDIR)xinit.o \
$(OBJECTDIR)xscroll.o \
$(OBJECTDIR)xcursor.o \
$(OBJECTDIR)xlspwin.o \
$(OBJECTDIR)xrdopt.o \
$(OBJECTDIR)xwinman.o
CC = gcc
XVERSION = XV11R4
XFLAGS = -DXWINDOW -DNOPIXRECT -D$(XVERSION) # $(CLXFLAGS)
# This is to make the %$#@! Apollo cc happy
OEXT = .o
# OPTFLAGS is normally -O2.
OPTFLAGS = -g -O2
DISPOPTFLAGS = -g -O2
FPFLAGS =
# Now share the same ldemulti for Mono-Medley & Color-Medley
# If you load MAIKOCOLOR.LCOM etc., you can use color functions
#
# Removed for debug: -DSPARCDISP -DSUN4_OS4_IL
# Added for debug: -DFNSTKCHECK -DMYOPTRACE -DOPTRACE -DNOASM
#
#DEBUGFLAGS = -DNOASM -DSTACKCHECK -DFNSTKCHECK
MACHINEFLAGS = -DOS4 -DOS4_TYPE4BUG -DOLD_CURSOR -DNOPIXRECT \
-I$(OPENWINHOME)/include \
-DNEWBITBLT -DLOGINT -DFORKCOMM -DLOCK_X_UPDATES
INLINEFLAGS = # -DSPARCDISP -DSUN4_OS4_IL
DFLAGS = $(DEBUGFLAGS) \
$(MACHINEFLAGS) \
$(INLINEFLAGS) \
$(XFLAGS) \
-DKBINT -DFSERROR -DNEW_STORAGE \
-DNOVERSION -DRELEASE=200
LDFLAGS = -L$(LIBDIR) -L$(OPENWINHOME)/lib -lX11 -lpixrect -ldld -lc -lm
LDELDFLAGS = -L$(LIBDIR) -L$(OPENWINHOME)/lib -Bstatic -lX11 -lpixrect -Bdynamic -lc -lm
INLINE = # $(SRCDIR)dspSPARC.il
BITBLTFILE = $(OBJECTDIR)bbtSPARC.o
BYTESWAPFILES = $(OBJECTDIR)byteswap.o
OBJECTDIR = ../$(RELEASENAME)/
default : ../$(OSARCHNAME)/lde ../$(OSARCHNAME)/ldeether
# Special rules to create xc.c on Sun4
#run cpp to expand macros
$(OBJECTDIR)xc.i: $(SRCDIR)xc.c $(INCDIR)lispemul.h $(INCDIR)emlglob.h $(INCDIR)address.h \
$(INCDIR)adr68k.h $(INCDIR)stack.h $(INCDIR)lspglob.h \
$(INCDIR)lsptypes.h $(INCDIR)lispmap.h $(INCDIR)cell.h \
$(INCDIR)initatms.h $(INCDIR)gc.h \
$(INCDIR)arith.h $(INCDIR)stream.h \
$(INCDIR)tos1defs.h $(INCDIR)tosret.h \
$(INCDIR)tosfns.h $(INCDIR)inlineC.h \
$(INCDIR)inln68k.h
cc -Qproduce .i $(DFLAGS) -I$(INCDIR) $(SRCDIR)xc.c -o $(OBJECTDIR)xc.i
#run c compiler to produce first pass assembly
$(OBJECTDIR)xc.s1: $(OBJECTDIR)xc.i
rm -f $(OBJECTDIR)xc.s1
/lib/ccom - $(FPFLAGS) <$(OBJECTDIR)xc.i >$(OBJECTDIR)xc.s1
#generate C program to remove dispatch loop, optimize
$(OBJECTDIR)dsphack.c: $(SRCDIR)dsphack.lex
rm -f $(OBJECTDIR)dsphack.c
lex -t $(SRCDIR)dsphack.lex > $(OBJECTDIR)dsphack.c
#uses this program to find dispatch
$(OBJECTDIR)find-dsp.c: $(SRCDIR)find-dsp.lex
rm -f $(OBJECTDIR)find-dsp.c
lex -t $(SRCDIR)find-dsp.lex > $(OBJECTDIR)find-dsp.c
$(OBJECTDIR)find-dsp: $(OBJECTDIR)find-dsp.c
cc -o $(OBJECTDIR)find-dsp $(OBJECTDIR)find-dsp.c -ll
$(OBJECTDIR)dispatch-label.c: $(OBJECTDIR)find-dsp $(OBJECTDIR)xc.s1
rm -f $(OBJECTDIR)dispatch-label.c
$(OBJECTDIR)find-dsp < $(OBJECTDIR)xc.s1 >$(OBJECTDIR)dispatch-label.c
$(OBJECTDIR)dsphack: $(OBJECTDIR)dsphack.c $(OBJECTDIR)dispatch-label.c
cc -o $(OBJECTDIR)dsphack $(OBJECTDIR)dispatch-label.c $(OBJECTDIR)dsphack.c -ll
rm -f $(OBJECTDIR)dispatch-label.o $(OBJECTDIR)dsphack.o
$(OBJECTDIR)xc.s2: $(OBJECTDIR)xc.s1 $(OBJECTDIR)dsphack
rm -f $(OBJECTDIR)xc.s2
$(OBJECTDIR)dsphack < $(OBJECTDIR)xc.s1 >$(OBJECTDIR)xc.s2
$(OBJECTDIR)xc.s3: $(OBJECTDIR)xc.s2 $(INLINE)
rm -f $(OBJECTDIR)xc.s3
/usr/lib/inline -i $(INLINE) < $(OBJECTDIR)xc.s2 > $(OBJECTDIR)xc.s3
#$(OBJECTDIR)xc.o: $(OBJECTDIR)xc.s3
# /bin/as -o $(OBJECTDIR)xc.o -O1 $(OBJECTDIR)xc.s3
############
#
# SPECIAL xc.o for debugging
#
############
$(OBJECTDIR)xc.o: $(SRCDIR)xc.c $(INCDIR)lispemul.h $(INCDIR)emlglob.h \
$(INCDIR)address.h \
$(INCDIR)adr68k.h $(INCDIR)stack.h $(INCDIR)lspglob.h \
$(INCDIR)lsptypes.h $(INCDIR)lispmap.h $(INCDIR)cell.h \
$(INCDIR)initatms.h $(INCDIR)gc.h \
$(INCDIR)arith.h $(INCDIR)stream.h \
$(INCDIR)tos1defs.h $(INCDIR)tosret.h \
$(INCDIR)tosfns.h $(INCDIR)inlineC.h
$(CC) -g $(DISPRFLAGS) -UOPDISP -USPARCDISP $(SRCDIR)xc.c -I$(INCDIR) -o $(OBJECTDIR)xc.o

104
bin/makefile-sunos4.sparc-x% Executable file
View File

@@ -0,0 +1,104 @@
# Options for SunOS4, SPARC and X-Window
CLXFLAGS = -DCLX -DTCP_NODELAY
CLXFILES = $(OBJECTDIR)socket.o \
$(OBJECTDIR)socdvr.o
XFILES = $(OBJECTDIR)XClose.o \
$(OBJECTDIR)Cursor.o \
$(OBJECTDIR)XWindow.o \
$(OBJECTDIR)DoRing.o \
$(OBJECTDIR)DoScroll.o \
$(OBJECTDIR)XEvent.o \
$(OBJECTDIR)XGravity.o \
$(OBJECTDIR)XInit.o \
$(OBJECTDIR)Xevinit.o \
$(OBJECTDIR)Xkbdmus.o \
$(OBJECTDIR)Xlspwin.o \
$(OBJECTDIR)Xbbt.o \
$(OBJECTDIR)Xkbd.o \
$(OBJECTDIR)Xmkicon.o \
$(OBJECTDIR)Xopendsp.o \
$(OBJECTDIR)Xrdopt.o \
$(OBJECTDIR)Xreconf.o \
$(OBJECTDIR)XScroll.o \
$(OBJECTDIR)Xscrolb.o \
$(OBJECTDIR)XCursor.o \
$(OBJECTDIR)XMouse.o \
$(OBJECTDIR)Xsubwin.o \
$(OBJECTDIR)Xcolor.o \
$(OBJECTDIR)Xwinman.o \
$(CLXFILES)
XVERSION = XV11R4
XFLAGS = -DXWINDOW -DNOPIXRECT -D$(XVERSION) $(CLXFLAGS)
# This is to make the %$#@! Apollo cc happy
OEXT = .o
# OPTFLAGS is normally -O2.
OPTFLAGS = -O2
FPFLAGS =
DFLAGS = -DFSERROR -DNEW_STORAGE -DOS4 -DSPARCDISP -DSUN4_OS4_IL -DOS4_TYPE4BUG -DOLD_CURSOR \
-DFORKCOMM -DNEWBITBLT -DLOGINT -DBIGATOMS $(XFLAGS) -DBIGVM -DNEWCDRCODING
LDFLAGS = -lX11 -lpixrect -ldld -lc -lm
LDELDFLAGS = -Bstatic -lX11 -lpixrect -Bdynamic -lc -lm
INLINE = $(SRCDIR)dspSPARC.il
BITBLTFILE = $(OBJECTDIR)bbtSPARC.o
BYTESWAPFILES = $(OBJECTDIR)byteswap.o
OBJECTDIR = ../$(RELEASENAME)/
default : ../$(OSARCHNAME)/lde ../$(OSARCHNAME)/ldeether
# Special rules to create xc.c on Sun4
#run cpp to expand macros
$(OBJECTDIR)xc.i: $(SRCDIR)xc.c $(INCDIR)lispemul.h $(INCDIR)emlglob.h $(INCDIR)address.h \
$(INCDIR)adr68k.h $(INCDIR)stack.h $(INCDIR)lspglob.h \
$(INCDIR)lsptypes.h $(INCDIR)lispmap.h $(INCDIR)cell.h \
$(INCDIR)initatms.h $(INCDIR)gc.h \
$(INCDIR)arith.h $(INCDIR)stream.h \
$(INCDIR)tos1defs.h $(INCDIR)tosret.h \
$(INCDIR)tosfns.h $(INCDIR)inlineC.h \
$(INCDIR)inln68k.h
cc -Qproduce .i $(DFLAGS) -I$(INCDIR) $(SRCDIR)xc.c -o $(OBJECTDIR)xc.i
#run c compiler to produce first pass assembly
$(OBJECTDIR)xc.s1: $(OBJECTDIR)xc.i
rm -f $(OBJECTDIR)xc.s1
/lib/ccom - $(FPFLAGS) <$(OBJECTDIR)xc.i >$(OBJECTDIR)xc.s1
#generate C program to remove dispatch loop, optimize
$(OBJECTDIR)dsphack.c: $(SRCDIR)dsphack.lex
rm -f $(OBJECTDIR)dsphack.c
lex -t $(SRCDIR)dsphack.lex > $(OBJECTDIR)dsphack.c
#uses this program to find dispatch
$(OBJECTDIR)find-dsp.c: $(SRCDIR)find-dsp.lex
rm -f $(OBJECTDIR)find-dsp.c
lex -t $(SRCDIR)find-dsp.lex > $(OBJECTDIR)find-dsp.c
$(OBJECTDIR)find-dsp: $(OBJECTDIR)find-dsp.c
cc -o $(OBJECTDIR)find-dsp $(OBJECTDIR)find-dsp.c -ll
$(OBJECTDIR)dispatch-label.c: $(OBJECTDIR)find-dsp $(OBJECTDIR)xc.s1
rm -f $(OBJECTDIR)dispatch-label.c
$(OBJECTDIR)find-dsp < $(OBJECTDIR)xc.s1 >$(OBJECTDIR)dispatch-label.c
$(OBJECTDIR)dsphack: $(OBJECTDIR)dsphack.c $(OBJECTDIR)dispatch-label.c
cc -o $(OBJECTDIR)dsphack $(OBJECTDIR)dispatch-label.c $(OBJECTDIR)dsphack.c -ll
rm -f $(OBJECTDIR)dispatch-label.o $(OBJECTDIR)dsphack.o
$(OBJECTDIR)xc.s2: $(OBJECTDIR)xc.s1 $(OBJECTDIR)dsphack
rm -f $(OBJECTDIR)xc.s2
$(OBJECTDIR)dsphack < $(OBJECTDIR)xc.s1 >$(OBJECTDIR)xc.s2
$(OBJECTDIR)xc.s3: $(OBJECTDIR)xc.s2 $(INLINE)
rm -f $(OBJECTDIR)xc.s3
/usr/lib/inline -i $(INLINE) < $(OBJECTDIR)xc.s2 > $(OBJECTDIR)xc.s3
$(OBJECTDIR)xc.o: $(OBJECTDIR)xc.s3
/bin/as -o $(OBJECTDIR)xc.o -O1 $(OBJECTDIR)xc.s3

96
bin/makefile-sunos4.sparc-x-3 Executable file
View File

@@ -0,0 +1,96 @@
# Options for SunOS4, SPARC and X-Window
XFILES = $(OBJECTDIR)XClose.o \
$(OBJECTDIR)Cursor.o \
$(OBJECTDIR)XWindow.o \
$(OBJECTDIR)DoRing.o \
$(OBJECTDIR)DoScroll.o \
$(OBJECTDIR)XEvent.o \
$(OBJECTDIR)XGravity.o \
$(OBJECTDIR)XInit.o \
$(OBJECTDIR)InitXevent.o \
$(OBJECTDIR)XKbdMouse.o \
$(OBJECTDIR)LispWindow.o \
$(OBJECTDIR)LispXbitblt.o \
$(OBJECTDIR)XKeyboard.o \
$(OBJECTDIR)MakeXicon.o \
$(OBJECTDIR)OpenDisplay.o \
$(OBJECTDIR)ReadXoption.o \
$(OBJECTDIR)XReconfig.o \
$(OBJECTDIR)XScroll.o \
$(OBJECTDIR)Scrollbar.o \
$(OBJECTDIR)XCursor.o \
$(OBJECTDIR)XMouse.o \
$(OBJECTDIR)Subwindows.o \
$(OBJECTDIR)VideoColor.o \
$(OBJECTDIR)XWindowMgr.o
XVERSION = XV11R4
XFLAGS = -DXWINDOW -D$(XVERSION)
# This is to make the %$#@! Apollo cc happy
OEXT = .o
# OPTFLAGS is normally -O2.
OPTFLAGS = -O2
FPFLAGS =
DFLAGS = -DFSERROR -DNEW_STORAGE -DOS4 -DSPARCDISP -DSUN4_OS4_IL -DOS4_TYPE4BUG -DOLD_CURSOR \
-DFORKCOMM -DNEWBITBLT -DLOGINT -DBIGATOMS $(XFLAGS)
LDFLAGS = -lX11 -lpixrect -lc -lm
# -Dsparc?
INLINE = $(SRCDIR)dispSPARC.il
BITBLTFILE = $(OBJECTDIR)bitbltSPARC.o
BYTESWAPFILES = $(OBJECTDIR)byteswapfns.o
OBJECTDIR = ../$(RELEASENAME)/
default : ../$(OSARCHNAME)/lde ../$(OSARCHNAME)/ldeether
# Special rules to create xc.c on Sun4
#run cpp to expand macros
$(OBJECTDIR)xc.i: $(SRCDIR)xc.c $(INCDIR)lispemul.h $(INCDIR)emulglobal.h $(INCDIR)address.h \
$(INCDIR)address68k.h $(INCDIR)stack.h $(INCDIR)lispglobal.h \
$(INCDIR)lisptypes.h $(INCDIR)lispmap.h $(INCDIR)cell.h \
$(INCDIR)initatoms.h $(INCDIR)gc.h \
$(INCDIR)arith.h $(INCDIR)stream.h \
$(INCDIR)tos1defs.h $(INCDIR)tosretmacro.h \
$(INCDIR)tosfuncall.h $(INCDIR)inlineC.h \
$(INCDIR)inline68K.h
cc -Qproduce .i $(DFLAGS) -I$(INCDIR) $(SRCDIR)xc.c -o $(OBJECTDIR)xc.i
#run c compiler to produce first pass assembly
$(OBJECTDIR)xc.s1: $(OBJECTDIR)xc.i
rm -f $(OBJECTDIR)xc.s1
/lib/ccom - $(FPFLAGS) <$(OBJECTDIR)xc.i >$(OBJECTDIR)xc.s1
#generate C program to remove dispatch loop, optimize
$(OBJECTDIR)disphack.c: $(SRCDIR)disphack.lex
rm -f $(OBJECTDIR)disphack.c
lex -t $(SRCDIR)disphack.lex > $(OBJECTDIR)disphack.c
#uses this program to find dispatch
$(OBJECTDIR)find-disp.c: $(SRCDIR)find-disp.lex
rm -f $(OBJECTDIR)find-disp.c
lex -t $(SRCDIR)find-disp.lex > $(OBJECTDIR)find-disp.c
$(OBJECTDIR)find-disp: $(OBJECTDIR)find-disp.c
cc -o $(OBJECTDIR)find-disp $(OBJECTDIR)find-disp.c -ll
$(OBJECTDIR)dispatch-label.c: $(OBJECTDIR)find-disp $(OBJECTDIR)xc.s1
rm -f $(OBJECTDIR)dispatch-label.c
$(OBJECTDIR)find-disp < $(OBJECTDIR)xc.s1 >$(OBJECTDIR)dispatch-label.c
$(OBJECTDIR)disphack: $(OBJECTDIR)disphack.c $(OBJECTDIR)dispatch-label.c
cc -o $(OBJECTDIR)disphack $(OBJECTDIR)dispatch-label.c $(OBJECTDIR)disphack.c -ll
rm -f $(OBJECTDIR)dispatch-label.o $(OBJECTDIR)disphack.o
$(OBJECTDIR)xc.s2: $(OBJECTDIR)xc.s1 $(OBJECTDIR)disphack
rm -f $(OBJECTDIR)xc.s2
$(OBJECTDIR)disphack < $(OBJECTDIR)xc.s1 >$(OBJECTDIR)xc.s2
$(OBJECTDIR)xc.s3: $(OBJECTDIR)xc.s2 $(INLINE)
rm -f $(OBJECTDIR)xc.s3
/usr/lib/inline -i $(INLINE) < $(OBJECTDIR)xc.s2 > $(OBJECTDIR)xc.s3
$(OBJECTDIR)xc.o: $(OBJECTDIR)xc.s3
/bin/as -o $(OBJECTDIR)xc.o -O1 $(OBJECTDIR)xc.s3

139
bin/makefile-sunos5.i386-x Executable file
View File

@@ -0,0 +1,139 @@
# Options for SOlaris 2.x, INTEL x86 and X-Window
#************************************************************************/
#* */
#* (C) Copyright 1989, 1990, 1990, 1991, 1992, 1993, 1994, 1996 Venue. */
#* All Rights Reserved. */
#* Manufactured in the United States of America. */
#* */
#* The contents of this file are proprietary information */
#* belonging to Venue, and are provided to you under license. */
#* They may not be further distributed or disclosed to third */
#* parties without the specific permission of Venue. */
#* */
#************************************************************************/
CC = gcc
XFILES = $(OBJECTDIR)xmkicon.o \
$(OBJECTDIR)xbbt.o \
$(OBJECTDIR)dspif.o \
$(OBJECTDIR)xinit.o \
$(OBJECTDIR)xscroll.o \
$(OBJECTDIR)xcursor.o \
$(OBJECTDIR)xlspwin.o \
$(OBJECTDIR)xrdopt.o \
$(OBJECTDIR)xwinman.o
XVERSION = XV11R4
XFLAGS = -DXWINDOW -D$(XVERSION) $(CLXFLAGS)
# This is to make the %$#@! Apollo cc happy
OEXT = .o
# OPTFLAGS is normally -O2.
OPTFLAGS = -O2 -g3
DISPOPTFLAGS = -O2 -g3
MAIN = main
# Set any debugging options in DEBUGFLAGS. E.g., to enable stack
# checking, use -DSTACKCHECK; to enable the fn-call-time stack
# check, use -DFNSTKCHECK.
DEBUGFLAGS = # -DSTACKCHECK -DFNSTKCHECK
FPFLAGS =
DFLAGS = $(XFLAGS) \
$(DEBUGFLAGS) \
-DFSERROR -DNEW_STORAGE -DOS5 -DAIX -DUSE_DLPI \
-DBYTESWAP \
-DOLD_CURSOR -DLOGINT \
-DNOPIXRECT -DFORKCOMM -DLOCK_X_UPDATES \
-I$(OPENWINHOME)/include -DSYSVSIGNALS -DSYSVONLY \
-DRELEASE=210
LDFLAGS = -R$(OPENWINHOME)/lib -L$(OPENWINHOME)/lib -lX11 -lc -lm -lsocket -lnsl
LDELDFLAGS = -R$(OPENWINHOME)/lib -L$(OPENWINHOME)/lib -lX11 -lc -lm -lsocket -lnsl
LDEETHERLDFLAGS = -lc -lm -lsocket -lnsl
# SPARC Assemble optimize check
# DFLAGS:sh += optck.sh ; true
#-Dsparc?
INLINE =
BITBLTFILE = # $(OBJECTDIR)bbtSPARC.o
DLPIFILES = $(OBJECTDIR)dlpi.o
OBJECTDIR = ../$(RELEASENAME)/
BYTESWAPFILES = $(OBJECTDIR)byteswap.o
default: ../$(OSARCHNAME)/lde ../$(OSARCHNAME)/ldeether
# Special rules to create xc.c on Sun4
#run cpp to expand macros
$(OBJECTDIR)xc.i: $(SRCDIR)xc.c $(INCDIR)lispemul.h $(INCDIR)emlglob.h $(INCDIR)address.h \
$(INCDIR)adr68k.h $(INCDIR)stack.h $(INCDIR)lspglob.h \
$(INCDIR)lsptypes.h $(INCDIR)lispmap.h $(INCDIR)cell.h \
$(INCDIR)initatms.h $(INCDIR)gc.h \
$(INCDIR)arith.h $(INCDIR)stream.h \
$(INCDIR)tos1defs.h $(INCDIR)tosret.h \
$(INCDIR)tosfns.h $(INCDIR)inlineC.h \
$(INCDIR)inln68k.h
$(CC) -Qproduce .i $(DFLAGS) -I$(INCDIR) $(SRCDIR)xc.c -o $(OBJECTDIR)xc.i
#run c compiler to produce first pass assembly
$(OBJECTDIR)xc.s1: $(OBJECTDIR)xc.i
rm -f $(OBJECTDIR)xc.s1
/lib/ccom - $(FPFLAGS) <$(OBJECTDIR)xc.i >$(OBJECTDIR)xc.s1
#generate C program to remove dispatch loop, optimize
$(OBJECTDIR)dsphack.c: $(SRCDIR)dsphack.lex
rm -f $(OBJECTDIR)dsphack.c
lex -t $(SRCDIR)dsphack.lex > $(OBJECTDIR)dsphack.c
#uses this program to find dispatch
$(OBJECTDIR)find-dsp.c: $(SRCDIR)find-dsp.lex
rm -f $(OBJECTDIR)find-dsp.c
lex -t $(SRCDIR)find-dsp.lex > $(OBJECTDIR)find-dsp.c
$(OBJECTDIR)find-dsp: $(OBJECTDIR)find-dsp.c
$(CC) -o $(OBJECTDIR)find-dsp $(OBJECTDIR)find-dsp.c -ll
$(OBJECTDIR)dispatch-label.c: $(OBJECTDIR)find-dsp $(OBJECTDIR)xc.s1
rm -f $(OBJECTDIR)dispatch-label.c
$(OBJECTDIR)find-dsp < $(OBJECTDIR)xc.s1 >$(OBJECTDIR)dispatch-label.c
$(OBJECTDIR)dsphack: $(OBJECTDIR)dsphack.c $(OBJECTDIR)dispatch-label.c
$(CC) -o $(OBJECTDIR)dsphack $(OBJECTDIR)dispatch-label.c $(OBJECTDIR)dsphack.c -ll
rm -f $(OBJECTDIR)dispatch-label.o $(OBJECTDIR)dsphack.o
$(OBJECTDIR)xc.s2: $(OBJECTDIR)xc.s1 $(OBJECTDIR)dsphack
rm -f $(OBJECTDIR)xc.s2
$(OBJECTDIR)dsphack < $(OBJECTDIR)xc.s1 >$(OBJECTDIR)xc.s2
$(OBJECTDIR)xc.s3: $(OBJECTDIR)xc.s2 $(INLINE)
rm -f $(OBJECTDIR)xc.s3
/usr/lib/inline -i $(INLINE) < $(OBJECTDIR)xc.s2 > $(OBJECTDIR)xc.s3
#$(OBJECTDIR)xc.o: $(OBJECTDIR)xc.s3
# /bin/as -o $(OBJECTDIR)xc.o -O1 $(OBJECTDIR)xc.s3
########### debugging version of xc maker
$(OBJECTDIR)xc.o: $(SRCDIR)xc.c $(INCDIR)lispemul.h $(INCDIR)emlglob.h $(INCDIR)address.h \
$(INCDIR)adr68k.h $(INCDIR)stack.h $(INCDIR)lspglob.h \
$(INCDIR)lsptypes.h $(INCDIR)lispmap.h $(INCDIR)cell.h \
$(INCDIR)initatms.h $(INCDIR)gc.h \
$(INCDIR)arith.h $(INCDIR)stream.h \
$(INCDIR)tos1defs.h $(INCDIR)tosret.h \
$(INCDIR)tosfns.h $(INCDIR)inlineC.h
$(CC) $(DISPRFLAGS) -USPARCDISP -UOPDISP -DNOASM $(INLINE) -I$(INCDIR) $(SRCDIR)xc.c -o $(OBJECTDIR)xc.o

143
bin/makefile-sunos5.sparc-x Executable file
View File

@@ -0,0 +1,143 @@
# Options for SOlaris 2.x, SPARC and X-Window
# $Id: makefile-sunos5.sparc-x,v 1.7 2001/12/26 22:17:10 sybalsky Exp $ #
#************************************************************************/
#* */
#* (C) Copyright 1989, 1990, 1990, 1991, */
#* 1992, 1993, 1994, 1996, */
#* 1999 */
#* Venue. All Rights Reserved. */
#* Manufactured in the United States of America. */
#* */
#* The contents of this file are proprietary information */
#* belonging to Venue, and are provided to you under license. */
#* They may not be further distributed or disclosed to third */
#* parties without the specific permission of Venue. */
#* */
#************************************************************************/
CC = gcc
XFILES = $(OBJECTDIR)xmkicon.o \
$(OBJECTDIR)xbbt.o \
$(OBJECTDIR)dspif.o \
$(OBJECTDIR)xinit.o \
$(OBJECTDIR)xscroll.o \
$(OBJECTDIR)xcursor.o \
$(OBJECTDIR)xlspwin.o \
$(OBJECTDIR)xrdopt.o \
$(OBJECTDIR)xwinman.o
XVERSION = XV11R4
XFLAGS = -DXWINDOW -D$(XVERSION) $(CLXFLAGS)
# This is to make the %$#@! Apollo cc happy
OEXT = .o
# OPTFLAGS is normally -O2.
OPTFLAGS = -O2 -g3
DISPOPTFLAGS = -O2 -g3
MAIN = main
# Set any debugging options in DEBUGFLAGS. E.g., to enable stack
# checking, use -DSTACKCHECK; to enable the fn-call-time stack
# check, use -DFNSTKCHECK.
DEBUGFLAGS = # -DSTACKCHECK -DFNSTKCHECK
MACHINEFLAGS = -DOS5 -DAIX -DUSE_DLPI -DNOPIXRECT \
-I$(OPENWINHOME)/include -DSYSVSIGNALS -DSYSVONLY \
-DOLD_CURSOR -DLOGINT -DFORKCOMM -DLOCK_X_UPDATES
INLINEFLAGS =
FPFLAGS =
DFLAGS = $(XFLAGS) \
$(DEBUGFLAGS) \
$(MACHINEFLAGS) \
$(INLINEFLAGS) \
-DRELEASE=351
LDFLAGS = -R$(OPENWINHOME)/lib -L$(OPENWINHOME)/lib -lX11 -lc -lm -lsocket -lnsl
LDELDFLAGS = -R$(OPENWINHOME)/lib -L$(OPENWINHOME)/lib -lX11 -lc -lm -lsocket -lnsl
LDEETHERLDFLAGS = -lc -lm -lsocket -lnsl
# SPARC Assemble optimize check
# DFLAGS:sh += optck.sh ; true
#-Dsparc?
INLINE =
BITBLTFILE = $(OBJECTDIR)bbtSPARC.o
DLPIFILES = $(OBJECTDIR)dlpi.o
OBJECTDIR = ../$(RELEASENAME)/
BYTESWAPFILES = $(OBJECTDIR)byteswap.o
default: ../$(OSARCHNAME)/lde ../$(OSARCHNAME)/ldeether
# Special rules to create xc.c on Sun4
#run cpp to expand macros
$(OBJECTDIR)xc.i: $(SRCDIR)xc.c $(INCDIR)lispemul.h $(INCDIR)emlglob.h $(INCDIR)address.h \
$(INCDIR)adr68k.h $(INCDIR)stack.h $(INCDIR)lspglob.h \
$(INCDIR)lsptypes.h $(INCDIR)lispmap.h $(INCDIR)cell.h \
$(INCDIR)initatms.h $(INCDIR)gc.h \
$(INCDIR)arith.h $(INCDIR)stream.h \
$(INCDIR)tos1defs.h $(INCDIR)tosret.h \
$(INCDIR)tosfns.h $(INCDIR)inlineC.h \
$(INCDIR)inln68k.h
$(CC) -Qproduce .i $(DFLAGS) -I$(INCDIR) $(SRCDIR)xc.c -o $(OBJECTDIR)xc.i
#run c compiler to produce first pass assembly
$(OBJECTDIR)xc.s1: $(OBJECTDIR)xc.i
rm -f $(OBJECTDIR)xc.s1
/lib/ccom - $(FPFLAGS) <$(OBJECTDIR)xc.i >$(OBJECTDIR)xc.s1
#generate C program to remove dispatch loop, optimize
$(OBJECTDIR)dsphack.c: $(SRCDIR)dsphack.lex
rm -f $(OBJECTDIR)dsphack.c
lex -t $(SRCDIR)dsphack.lex > $(OBJECTDIR)dsphack.c
#uses this program to find dispatch
$(OBJECTDIR)find-dsp.c: $(SRCDIR)find-dsp.lex
rm -f $(OBJECTDIR)find-dsp.c
lex -t $(SRCDIR)find-dsp.lex > $(OBJECTDIR)find-dsp.c
$(OBJECTDIR)find-dsp: $(OBJECTDIR)find-dsp.c
$(CC) -o $(OBJECTDIR)find-dsp $(OBJECTDIR)find-dsp.c -ll
$(OBJECTDIR)dispatch-label.c: $(OBJECTDIR)find-dsp $(OBJECTDIR)xc.s1
rm -f $(OBJECTDIR)dispatch-label.c
$(OBJECTDIR)find-dsp < $(OBJECTDIR)xc.s1 >$(OBJECTDIR)dispatch-label.c
$(OBJECTDIR)dsphack: $(OBJECTDIR)dsphack.c $(OBJECTDIR)dispatch-label.c
$(CC) -o $(OBJECTDIR)dsphack $(OBJECTDIR)dispatch-label.c $(OBJECTDIR)dsphack.c -ll
rm -f $(OBJECTDIR)dispatch-label.o $(OBJECTDIR)dsphack.o
$(OBJECTDIR)xc.s2: $(OBJECTDIR)xc.s1 $(OBJECTDIR)dsphack
rm -f $(OBJECTDIR)xc.s2
$(OBJECTDIR)dsphack < $(OBJECTDIR)xc.s1 >$(OBJECTDIR)xc.s2
$(OBJECTDIR)xc.s3: $(OBJECTDIR)xc.s2 $(INLINE)
rm -f $(OBJECTDIR)xc.s3
/usr/lib/inline -i $(INLINE) < $(OBJECTDIR)xc.s2 > $(OBJECTDIR)xc.s3
#$(OBJECTDIR)xc.o: $(OBJECTDIR)xc.s3
# /bin/as -o $(OBJECTDIR)xc.o -O1 $(OBJECTDIR)xc.s3
########### debugging version of xc maker
$(OBJECTDIR)xc.o: $(SRCDIR)xc.c $(INCDIR)lispemul.h $(INCDIR)emlglob.h $(INCDIR)address.h \
$(INCDIR)adr68k.h $(INCDIR)stack.h $(INCDIR)lspglob.h \
$(INCDIR)lsptypes.h $(INCDIR)lispmap.h $(INCDIR)cell.h \
$(INCDIR)initatms.h $(INCDIR)gc.h \
$(INCDIR)arith.h $(INCDIR)stream.h \
$(INCDIR)tos1defs.h $(INCDIR)tosret.h \
$(INCDIR)tosfns.h $(INCDIR)inlineC.h
$(CC) $(DISPRFLAGS) -USPARCDISP -UOPDISP -DNOASM $(INLINE) -I$(INCDIR) $(SRCDIR)xc.c -o $(OBJECTDIR)xc.o

1134
bin/makefile-tail Executable file

File diff suppressed because it is too large Load Diff

67
bin/makefile-ultrix.dec3100-x Executable file
View File

@@ -0,0 +1,67 @@
# Options for Ultrix, DECStation 3100, and X-Window
CC = cc
XFILES = $(OBJECTDIR)XClose.o \
$(OBJECTDIR)Cursor.o \
$(OBJECTDIR)XWindow.o \
$(OBJECTDIR)DoRing.o \
$(OBJECTDIR)DoScroll.o \
$(OBJECTDIR)XEvent.o \
$(OBJECTDIR)XGravity.o \
$(OBJECTDIR)XInit.o \
$(OBJECTDIR)Xevinit.o \
$(OBJECTDIR)Xkbdmus.o \
$(OBJECTDIR)Xlspwin.o \
$(OBJECTDIR)Xbbt.o \
$(OBJECTDIR)Xkbd.o \
$(OBJECTDIR)Xmkicon.o \
$(OBJECTDIR)Xopendsp.o \
$(OBJECTDIR)Xrdopt.o \
$(OBJECTDIR)Xreconf.o \
$(OBJECTDIR)XScroll.o \
$(OBJECTDIR)Xscrolb.o \
$(OBJECTDIR)XCursor.o \
$(OBJECTDIR)XMouse.o \
$(OBJECTDIR)Xsubwin.o \
$(OBJECTDIR)Xcolor.o \
$(OBJECTDIR)Xwinman.o
BYTESWAPFILES = $(OBJECTDIR)byteswap.o
XVERSION = XV11R4
XFLAGS = -DXWINDOW -D$(XVERSION)
# This is to make the %$#@! Apollo cc happy
OEXT = .o
# OPTFLAGS is normally -O2.
OPTFLAGS = -O2 -Olimit 999
DISPOPTFLAGS = -O2 -Olimit 999
FPFLAGS =
DFLAGS = -DFSERROR -DNEW_STORAGE -DAIX -DOLD_CURSOR -DNOPIXRECT -DBYTESWAP \
-DFORKCOMM -DLOGINT -DSYS5 -DDEC3100 -DNOFORN -DNOETHER -DBIGATOMS $(XFLAGS)
LDFLAGS = -lX11 -lc -lm
LDELDFLAGS = -lX11 -lc -lm
# -Dsparc?
INLINE =
OBJECTDIR = ../$(RELEASENAME)/
default : ../$(OSARCHNAME)/lde ../$(OSARCHNAME)/ldeether
# Special rules to create xc.c on Sun4
#run cpp to expand macros
$(OBJECTDIR)xc.o: $(SRCDIR)xc.c $(INCDIR)lispemul.h $(INCDIR)emlglob.h $(INCDIR)address.h \
$(INCDIR)adr68k.h $(INCDIR)stack.h $(INCDIR)lspglob.h \
$(INCDIR)lsptypes.h $(INCDIR)lispmap.h $(INCDIR)cell.h \
$(INCDIR)initatms.h $(INCDIR)gc.h \
$(INCDIR)arith.h $(INCDIR)stream.h \
$(INCDIR)tos1defs.h $(INCDIR)tosret.h \
$(INCDIR)tosfns.h $(INCDIR)inlineC.h \
$(INCDIR)inln68k.h
$(CC) -c $(DFLAGS) -I$(INCDIR) $(SRCDIR)xc.c -o $(OBJECTDIR)xc.o

631
bin/makefile.dos Executable file
View File

@@ -0,0 +1,631 @@
AFLAGS = /T
ARCHFILES = dosmouse.obj doskbd.obj vesafns.obj vesainit.obj vgainit.obj kbdif.obj
ADMINFILES = makefile mkvdate.c optck.c
LPFILES = lpmain.obj lpread.obj lpsolve.obj lpwrite.obj lpdual.obj lptran.obj
KEY = keytstno.obj
CFLAGS = -DBIGATOMS -DNEW_STORAGE -DDOS -DBYTESWAP -DKBINT -DFSERROR -DNOPIXRECT \
-DNOFORN -DNOETHER -DNOVERSION -DBIGVM -DNEWCDRCODING
LDFLAGS = -g graphics.lib binmode.lib mouse.lib
RM = del
SRCFILES = conspage.c gcoflow.c shift.c dbgtool.c gcr.c gcrcell.c llstk.c gcscan.c loopsops.c storage.c allocmds.c dir.c gvar2.c lowlev1.c subr.c arith2.c hacks.c lowlev2.c subr0374.c arith3.c doscomm.c hardrtn.c lsthandl.c sxhash.c arith4.c draw.c main.c testtool.c array.c dsk.c inet.c misc7.c timer.c array2.c dspif.c initdsp.c miscn.c typeof.c array3.c initkbd.c ubf1.c array4.c dspsubrs.c initsout.c mkatom.c ubf2.c array5.c eqf.c intcall.c mkcell.c ubf3.c array6.c ether.c mkvdate.c ufn.c atom.c findkey.c kbdsubrs.c mouseif.c ufs.c bbtsub.c foreign.c keyevent.c unixcomm.c bin.c fp.c keylib.c binds.c asmbbt.c fvar.c mvs.c unwind.c bitblt.c gc.c uraid.c blt.c gc2.c kprint.c keytstno.c keytst.c osmsg.c usrsubr.c byteswap.c gcarray.c perrno.c ldeboot.c ldeether.c uutils.c carcdr.c gccode.c rawcolor.c vars3.c gcfinal.c ldsout.c return.c vmemsave.c chardev.c gchtfind.c lineblt8.c rpc.c xc.c common.c gcmain3.c lisp2c.c rplcons.c z2.c find-dsp.l dsphack.l xmkicon.c xbbt.c xinit.c xscroll.c xcursor.c xlspwin.c xrdopt.c xwinman.c dosmouse.c vesafns.asm vesainit.c vgainit.c kbdif.c dspsparc.il copyright launch.asm lpread.c lpsolve.c lpmain.c lpwrite.c lpdual.c lptran.c
OFILES = conspage.obj gcoflow.obj shift.obj dbgtool.obj gcr.obj gcrcell.obj llstk.obj gcscan.obj loopsops.obj storage.obj allocmds.obj dir.obj gvar2.obj lowlev1.obj subr.obj arith2.obj hacks.obj lowlev2.obj subr0374.obj arith3.obj doscomm.obj hardrtn.obj lsthandl.obj sxhash.obj arith4.obj draw.obj main.obj testtool.obj array.obj dsk.obj inet.obj misc7.obj timer.obj array2.obj dspif.obj initdsp.obj miscn.obj typeof.obj array3.obj initkbd.obj ubf1.obj array4.obj dspsubrs.obj initsout.obj mkatom.obj ubf2.obj array5.obj eqf.obj intcall.obj mkcell.obj ubf3.obj array6.obj ether.obj ufn.obj atom.obj findkey.obj kbdsubrs.obj mouseif.obj ufs.obj bbtsub.obj foreign.obj keyevent.obj unixcomm.obj bin.obj fp.obj keylib.obj binds.obj fvar.obj mvs.obj unwind.obj bitblt.obj gc.obj uraid.obj blt.obj gc2.obj kprint.obj osmsg.obj usrsubr.obj byteswap.obj gcarray.obj perrno.obj uutils.obj carcdr.obj asmbbt.obj gccode.obj vars3.obj gcfinal.obj ldsout.obj return.obj vmemsave.obj chardev.obj gchtfind.obj lineblt8.obj rpc.obj xc.obj common.obj gcmain3.obj lisp2c.obj rplcons.obj z2.obj vdate.obj $(KEY) $(COLORFILES) $(ARCHFILES) $(LPFILES)
HFILES = address.h adr68k.h arith.h cell.h dbprint.h display.h dspif.h ifpage.h iopage.h lispemul.h lispmap.h lsptypes.h miscstat.h lspglob.h array.h bb.h bitblt.h debug.h devconf.h dspdata.h ether.h fast_dsp.h fp.h gc.h hdw_conf.h initatms.h inlinec.h keyboard.h lispver1.h lispver2.h lldsp.h locfile.h mouseif.h my.h opcodes.h osmsg.h pilotbbt.h print.h profile.h return.h stack.h stream.h subrs.h sysatms.h timeout.h tos1defs.h tosfns.h tosret.h vmemsave.h xdefs.h xbitmaps.h xkeymap.h
bigvm:
CFLAGS = $(CFLAGS) -DBIGVM -DNEWCDRCODRING
make -f foot emul.exe
emul.exe : $(OFILES)
@ echo $** > linkopts
@ echo $(CFLAGS) > copts
$(RM) vdate.c
$(CC) @copts @linkopts $(LDFLAGS) /e$@
del linkopts
del copts
@ echo "Executable is now named '$@'"
main.o : lispemul.h address.h lsptypes.h adr68k.h stack.h lspglob.h lispmap.h ifpage.h iopage.h return.h debug.h profile.h
.SUFFIXES .exe .lib .c .obj .c .asm .s .c
medley.exe: launch.obj
TLINK launch,medley
launch.obj: launch.asm
# xc.obj: xc.s
# tasm /ml xc.s
#
#xc.s: xc.c
# rsh sparky (cd /users/nilsson/curr ; gcc-make $* )
vdate.obj : mkvdate.exe
mkvdate > vdate.c
$(CC) vdate.c -c $@
mkvdate.exe : ../dossrc/mkvdate.c
@ echo $(CFLAGS) > copts
$(CC) @copts ../dossrc/mkvdate.c
del copts
xc.obj : ../dossrc/xc.c
@ echo $(CFLAGS) > copts
$(CC) @copts ../dossrc/xc.c -I ../dosinc -c $@
del copts
lpmain.obj : ../dossrc/lpmain.c
@ echo $(CFLAGS) > copts
$(CC) @copts ../dossrc/lpmain.c -I ../dosinc -c $@
del copts
lpsolve.obj : ../dossrc/lpsolve.c
@ echo $(CFLAGS) > copts
$(CC) @copts ../dossrc/lpsolve.c -I ../dosinc -c $@
del copts
lpread.obj : ../dossrc/lpread.c
@ echo $(CFLAGS) > copts
$(CC) @copts ../dossrc/lpread.c -I ../dosinc -c $@
del copts
lptran.obj : ../dossrc/lptran.c
@ echo $(CFLAGS) > copts
$(CC) @copts ../dossrc/lptran.c -I ../dosinc -c $@
del copts
lpdual.obj : ../dossrc/lpdual.c
@ echo $(CFLAGS) > copts
$(CC) @copts ../dossrc/lpdual.c -I ../dosinc -c $@
del copts
lpwrite.obj : ../dossrc/lpwrite.c
@ echo $(CFLAGS) > copts
$(CC) @copts ../dossrc/lpwrite.c -I ../dosinc -c $@
del copts
conspage.obj : ../dossrc/conspage.c
@ echo $(CFLAGS) > copts
$(CC) @copts ../dossrc/conspage.c -I ../dosinc -c $@
del copts
keytstno.obj : ../dossrc/keytstno.c
@ echo $(CFLAGS) > copts
$(CC) @copts ../dossrc/keytstno.c -I ../dosinc -c $@
del copts
dosmouse.obj : ../dossrc/dosmouse.c
@ echo $(CFLAGS) > copts
$(CC) @copts ../dossrc/dosmouse.c -I ../dosinc -c $@
del copts
doskbd.obj : ../dossrc/doskbd.c
@ echo $(CFLAGS) > copts
$(CC) @copts ../dossrc/doskbd.c -I ../dosinc -c $@
del copts
vesafns.obj : ../dossrc/vesafns.asm
tasm /ml ..\dossrc\vesafns.asm
vesainit.obj : ../dossrc/vesainit.c
@ echo $(CFLAGS) > copts
$(CC) @copts ../dossrc/vesainit.c -I ../dosinc -c $@
del copts
vgainit.obj : ../dossrc/vgainit.c
@ echo $(CFLAGS) > copts
$(CC) @copts ../dossrc/vgainit.c -I ../dosinc -c $@
del copts
kbdif.obj : ../dossrc/kbdif.c
@ echo $(CFLAGS) > copts
$(CC) @copts ../dossrc/kbdif.c -I ../dosinc -c $@
del copts
gcoflow.obj : ../dossrc/gcoflow.c
@ echo $(CFLAGS) > copts
$(CC) @copts ../dossrc/gcoflow.c -I ../dosinc -c $@
del copts
shift.obj : ../dossrc/shift.c
@ echo $(CFLAGS) > copts
$(CC) @copts ../dossrc/shift.c -I ../dosinc -c $@
del copts
dbgtool.obj : ../dossrc/dbgtool.c
@ echo $(CFLAGS) > copts
$(CC) @copts ../dossrc/dbgtool.c -I ../dosinc -c $@
del copts
gcr.obj : ../dossrc/gcr.c
@ echo $(CFLAGS) > copts
$(CC) @copts ../dossrc/gcr.c -I ../dosinc -c $@
del copts
gcrcell.obj : ../dossrc/gcrcell.c
@ echo $(CFLAGS) > copts
$(CC) @copts ../dossrc/gcrcell.c -I ../dosinc -c $@
del copts
llstk.obj : ../dossrc/llstk.c
@ echo $(CFLAGS) > copts
$(CC) @copts ../dossrc/llstk.c -I ../dosinc -c $@
del copts
gcscan.obj : ../dossrc/gcscan.c
@ echo $(CFLAGS) > copts
$(CC) @copts ../dossrc/gcscan.c -I ../dosinc -c $@
del copts
loopsops.obj : ../dossrc/loopsops.c
@ echo $(CFLAGS) > copts
$(CC) @copts ../dossrc/loopsops.c -I ../dosinc -c $@
del copts
storage.obj : ../dossrc/storage.c
@ echo $(CFLAGS) > copts
$(CC) @copts ../dossrc/storage.c -I ../dosinc -c $@
del copts
allocmds.obj : ../dossrc/allocmds.c
@ echo $(CFLAGS) > copts
$(CC) @copts ../dossrc/allocmds.c -I ../dosinc -c $@
del copts
dir.obj : ../dossrc/dir.c
@ echo $(CFLAGS) > copts
$(CC) @copts ../dossrc/dir.c -I ../dosinc -c $@
del copts
gvar2.obj : ../dossrc/gvar2.c
@ echo $(CFLAGS) > copts
$(CC) @copts ../dossrc/gvar2.c -I ../dosinc -c $@
del copts
lowlev1.obj : ../dossrc/lowlev1.c
@ echo $(CFLAGS) > copts
$(CC) @copts ../dossrc/lowlev1.c -I ../dosinc -c $@
del copts
subr.obj : ../dossrc/subr.c
@ echo $(CFLAGS) > copts
$(CC) @copts ../dossrc/subr.c -I ../dosinc -c $@
del copts
arith2.obj : ../dossrc/arith2.c
@ echo $(CFLAGS) > copts
$(CC) @copts ../dossrc/arith2.c -I ../dosinc -c $@
del copts
hacks.obj : ../dossrc/hacks.c
@ echo $(CFLAGS) > copts
$(CC) @copts ../dossrc/hacks.c -I ../dosinc -c $@
del copts
lowlev2.obj : ../dossrc/lowlev2.c
@ echo $(CFLAGS) > copts
$(CC) @copts ../dossrc/lowlev2.c -I ../dosinc -c $@
del copts
subr0374.obj : ../dossrc/subr0374.c
@ echo $(CFLAGS) > copts
$(CC) @copts ../dossrc/subr0374.c -I ../dosinc -c $@
del copts
arith3.obj : ../dossrc/arith3.c
@ echo $(CFLAGS) > copts
$(CC) @copts ../dossrc/arith3.c -I ../dosinc -c $@
del copts
doscomm.obj : ../dossrc/doscomm.c
@ echo $(CFLAGS) > copts
$(CC) @copts ../dossrc/doscomm.c -I ../dosinc -c $@
del copts
hardrtn.obj : ../dossrc/hardrtn.c
@ echo $(CFLAGS) > copts
$(CC) @copts ../dossrc/hardrtn.c -I ../dosinc -c $@
del copts
lsthandl.obj : ../dossrc/lsthandl.c
@ echo $(CFLAGS) > copts
$(CC) @copts ../dossrc/lsthandl.c -I ../dosinc -c $@ -Le
del copts
sxhash.obj : ../dossrc/sxhash.c
@ echo $(CFLAGS) > copts
$(CC) @copts ../dossrc/sxhash.c -I ../dosinc -c $@
del copts
arith4.obj : ../dossrc/arith4.c
@ echo $(CFLAGS) > copts
$(CC) @copts ../dossrc/arith4.c -I ../dosinc -c $@
del copts
draw.obj : ../dossrc/draw.c
@ echo $(CFLAGS) > copts
$(CC) @copts ../dossrc/draw.c -I ../dosinc -c $@
del copts
main.obj : ../dossrc/main.c
@ echo $(CFLAGS) > copts
$(CC) @copts ../dossrc/main.c -I ../dosinc -c $@
del copts
testtool.obj : ../dossrc/testtool.c
@ echo $(CFLAGS) > copts
$(CC) @copts ../dossrc/testtool.c -I ../dosinc -c $@
del copts
array.obj : ../dossrc/array.c
@ echo $(CFLAGS) > copts
$(CC) @copts ../dossrc/array.c -I ../dosinc -c $@
del copts
dsk.obj : ../dossrc/dsk.c
@ echo $(CFLAGS) > copts
$(CC) @copts ../dossrc/dsk.c -I ../dosinc -c $@
del copts
inet.obj : ../dossrc/inet.c
@ echo $(CFLAGS) > copts
$(CC) @copts ../dossrc/inet.c -I ../dosinc -c $@
del copts
misc7.obj : ../dossrc/misc7.c
@ echo $(CFLAGS) > copts
$(CC) @copts ../dossrc/misc7.c -I ../dosinc -c $@
del copts
timer.obj : ../dossrc/timer.c
@ echo $(CFLAGS) > copts
$(CC) @copts ../dossrc/timer.c -I ../dosinc -c $@
del copts
array2.obj : ../dossrc/array2.c
@ echo $(CFLAGS) > copts
$(CC) @copts ../dossrc/array2.c -I ../dosinc -c $@
del copts
dspif.obj : ../dossrc/dspif.c
@ echo $(CFLAGS) > copts
$(CC) @copts ../dossrc/dspif.c -I ../dosinc -c $@
del copts
initdsp.obj : ../dossrc/initdsp.c
@ echo $(CFLAGS) > copts
$(CC) @copts ../dossrc/initdsp.c -I ../dosinc -c $@
del copts
miscn.obj : ../dossrc/miscn.c
@ echo $(CFLAGS) > copts
$(CC) @copts ../dossrc/miscn.c -I ../dosinc -c $@
del copts
typeof.obj : ../dossrc/typeof.c
@ echo $(CFLAGS) > copts
$(CC) @copts ../dossrc/typeof.c -I ../dosinc -c $@
del copts
array3.obj : ../dossrc/array3.c
@ echo $(CFLAGS) > copts
$(CC) @copts ../dossrc/array3.c -I ../dosinc -c $@
del copts
initkbd.obj : ../dossrc/initkbd.c
@ echo $(CFLAGS) > copts
$(CC) @copts ../dossrc/initkbd.c -I ../dosinc -c $@
del copts
ubf1.obj : ../dossrc/ubf1.c
@ echo $(CFLAGS) > copts
$(CC) @copts ../dossrc/ubf1.c -I ../dosinc -c $@
del copts
array4.obj : ../dossrc/array4.c
@ echo $(CFLAGS) > copts
$(CC) @copts ../dossrc/array4.c -I ../dosinc -c $@
del copts
dspsubrs.obj : ../dossrc/dspsubrs.c
@ echo $(CFLAGS) > copts
$(CC) @copts ../dossrc/dspsubrs.c -I ../dosinc -c $@
del copts
initsout.obj : ../dossrc/initsout.c
@ echo $(CFLAGS) > copts
$(CC) @copts ../dossrc/initsout.c -I ../dosinc -c $@
del copts
mkatom.obj : ../dossrc/mkatom.c
@ echo $(CFLAGS) > copts
$(CC) @copts ../dossrc/mkatom.c -I ../dosinc -c $@
del copts
ubf2.obj : ../dossrc/ubf2.c
@ echo $(CFLAGS) > copts
$(CC) @copts ../dossrc/ubf2.c -I ../dosinc -c $@
del copts
array5.obj : ../dossrc/array5.c
@ echo $(CFLAGS) > copts
$(CC) @copts ../dossrc/array5.c -I ../dosinc -c $@
del copts
eqf.obj : ../dossrc/eqf.c
@ echo $(CFLAGS) > copts
$(CC) @copts ../dossrc/eqf.c -I ../dosinc -c $@
del copts
intcall.obj : ../dossrc/intcall.c
@ echo $(CFLAGS) > copts
$(CC) @copts ../dossrc/intcall.c -I ../dosinc -c $@
del copts
mkcell.obj : ../dossrc/mkcell.c
@ echo $(CFLAGS) > copts
$(CC) @copts ../dossrc/mkcell.c -I ../dosinc -c $@
del copts
ubf3.obj : ../dossrc/ubf3.c
@ echo $(CFLAGS) > copts
$(CC) @copts ../dossrc/ubf3.c -I ../dosinc -c $@
del copts
array6.obj : ../dossrc/array6.c
@ echo $(CFLAGS) > copts
$(CC) @copts ../dossrc/array6.c -I ../dosinc -c $@
del copts
ether.obj : ../dossrc/ether.c
@ echo $(CFLAGS) > copts
$(CC) @copts ../dossrc/ether.c -I ../dosinc -c $@
del copts
ufn.obj : ../dossrc/ufn.c
@ echo $(CFLAGS) > copts
$(CC) @copts ../dossrc/ufn.c -I ../dosinc -c $@
del copts
atom.obj : ../dossrc/atom.c
@ echo $(CFLAGS) > copts
$(CC) @copts ../dossrc/atom.c -I ../dosinc -c $@
del copts
findkey.obj : ../dossrc/findkey.c
@ echo $(CFLAGS) > copts
$(CC) @copts ../dossrc/findkey.c -I ../dosinc -c $@
del copts
kbdsubrs.obj : ../dossrc/kbdsubrs.c
@ echo $(CFLAGS) > copts
$(CC) @copts ../dossrc/kbdsubrs.c -I ../dosinc -c $@
del copts
mouseif.obj : ../dossrc/mouseif.c
@ echo $(CFLAGS) > copts
$(CC) @copts ../dossrc/mouseif.c -I ../dosinc -c $@
del copts
ufs.obj : ../dossrc/ufs.c
@ echo $(CFLAGS) > copts
$(CC) @copts ../dossrc/ufs.c -I ../dosinc -c $@
del copts
bbtsub.obj : ../dossrc/bbtsub.c
@ echo $(CFLAGS) > copts
$(CC) @copts ../dossrc/bbtsub.c -I ../dosinc -c $@
del copts
foreign.obj : ../dossrc/foreign.c
@ echo $(CFLAGS) > copts
$(CC) @copts ../dossrc/foreign.c -I ../dosinc -c $@
del copts
keyevent.obj : ../dossrc/keyevent.c
@ echo $(CFLAGS) > copts
$(CC) @copts ../dossrc/keyevent.c -I ../dosinc -c $@
del copts
unixcomm.obj : ../dossrc/unixcomm.c
@ echo $(CFLAGS) > copts
$(CC) @copts ../dossrc/unixcomm.c -I ../dosinc -c $@
del copts
bin.obj : ../dossrc/bin.c
@ echo $(CFLAGS) > copts
$(CC) @copts ../dossrc/bin.c -I ../dosinc -c $@
del copts
fp.obj : ../dossrc/fp.c
@ echo $(CFLAGS) > copts
$(CC) @copts ../dossrc/fp.c -I ../dosinc -c $@
del copts
keylib.obj : ../dossrc/keylib.c
@ echo $(CFLAGS) > copts
$(CC) @copts ../dossrc/keylib.c -I ../dosinc -c $@
del copts
binds.obj : ../dossrc/binds.c
@ echo $(CFLAGS) > copts
$(CC) @copts ../dossrc/binds.c -I ../dosinc -c $@
del copts
fvar.obj : ../dossrc/fvar.c
@ echo $(CFLAGS) > copts
$(CC) @copts ../dossrc/fvar.c -I ../dosinc -c $@
del copts
mvs.obj : ../dossrc/mvs.c
@ echo $(CFLAGS) > copts
$(CC) @copts ../dossrc/mvs.c -I ../dosinc -c $@
del copts
unwind.obj : ../dossrc/unwind.c
@ echo $(CFLAGS) > copts
$(CC) @copts ../dossrc/unwind.c -I ../dosinc -c $@
del copts
bitblt.obj : ../dossrc/bitblt.c
@ echo $(CFLAGS) > copts
$(CC) @copts ../dossrc/bitblt.c -I ../dosinc -c $@
del copts
gc.obj : ../dossrc/gc.c
@ echo $(CFLAGS) > copts
$(CC) @copts ../dossrc/gc.c -I ../dosinc -c $@
del copts
uraid.obj : ../dossrc/uraid.c
@ echo $(CFLAGS) > copts
$(CC) @copts ../dossrc/uraid.c -I ../dosinc -c $@
del copts
blt.obj : ../dossrc/blt.c
@ echo $(CFLAGS) > copts
$(CC) @copts ../dossrc/blt.c -I ../dosinc -c $@
del copts
gc2.obj : ../dossrc/gc2.c
@ echo $(CFLAGS) > copts
$(CC) @copts ../dossrc/gc2.c -I ../dosinc -c $@
del copts
kprint.obj : ../dossrc/kprint.c
@ echo $(CFLAGS) > copts
$(CC) @copts ../dossrc/kprint.c -I ../dosinc -c $@
del copts
osmsg.obj : ../dossrc/osmsg.c
@ echo $(CFLAGS) > copts
$(CC) @copts ../dossrc/osmsg.c -I ../dosinc -c $@
del copts
usrsubr.obj : ../dossrc/usrsubr.c
@ echo $(CFLAGS) > copts
$(CC) @copts ../dossrc/usrsubr.c -I ../dosinc -c $@
del copts
byteswap.obj : ../dossrc/byteswap.c
@ echo $(CFLAGS) > copts
$(CC) @copts ../dossrc/byteswap.c -I ../dosinc -c $@
del copts
gcarray.obj : ../dossrc/gcarray.c
@ echo $(CFLAGS) > copts
$(CC) @copts ../dossrc/gcarray.c -I ../dosinc -c $@
del copts
perrno.obj : ../dossrc/perrno.c
@ echo $(CFLAGS) > copts
$(CC) @copts ../dossrc/perrno.c -I ../dosinc -c $@
del copts
uutils.obj : ../dossrc/uutils.c
@ echo $(CFLAGS) > copts
$(CC) @copts ../dossrc/uutils.c -I ../dosinc -c $@
del copts
carcdr.obj : ../dossrc/carcdr.c
@ echo $(CFLAGS) > copts
$(CC) @copts ../dossrc/carcdr.c -I ../dosinc -c $@
del copts
asmbbt.obj : ../dossrc/asmbbt.c
@ echo $(CFLAGS) > copts
$(CC) @copts ../dossrc/asmbbt.c -I ../dosinc -c $@
del copts
gccode.obj : ../dossrc/gccode.c
@ echo $(CFLAGS) > copts
$(CC) @copts ../dossrc/gccode.c -I ../dosinc -c $@
del copts
vars3.obj : ../dossrc/vars3.c
@ echo $(CFLAGS) > copts
$(CC) @copts ../dossrc/vars3.c -I ../dosinc -c $@
del copts
gcfinal.obj : ../dossrc/gcfinal.c
@ echo $(CFLAGS) > copts
$(CC) @copts ../dossrc/gcfinal.c -I ../dosinc -c $@
del copts
ldsout.obj : ../dossrc/ldsout.c
@ echo $(CFLAGS) > copts
$(CC) @copts ../dossrc/ldsout.c -I ../dosinc -c $@
del copts
return.obj : ../dossrc/return.c
@ echo $(CFLAGS) > copts
$(CC) @copts ../dossrc/return.c -I ../dosinc -c $@
del copts
vmemsave.obj : ../dossrc/vmemsave.c
@ echo $(CFLAGS) > copts
$(CC) @copts ../dossrc/vmemsave.c -I ../dosinc -c $@
del copts
chardev.obj : ../dossrc/chardev.c
@ echo $(CFLAGS) > copts
$(CC) @copts ../dossrc/chardev.c -I ../dosinc -c $@
del copts
gchtfind.obj : ../dossrc/gchtfind.c
@ echo $(CFLAGS) > copts
$(CC) @copts ../dossrc/gchtfind.c -I ../dosinc -c $@
del copts
lineblt8.obj : ../dossrc/lineblt8.c
@ echo $(CFLAGS) > copts
$(CC) @copts ../dossrc/lineblt8.c -I ../dosinc -c $@
del copts
rpc.obj : ../dossrc/rpc.c
@ echo $(CFLAGS) > copts
$(CC) @copts ../dossrc/rpc.c -I ../dosinc -c $@
del copts
common.obj : ../dossrc/common.c
@ echo $(CFLAGS) > copts
$(CC) @copts ../dossrc/common.c -I ../dosinc -c $@
del copts
gcmain3.obj : ../dossrc/gcmain3.c
@ echo $(CFLAGS) > copts
$(CC) @copts ../dossrc/gcmain3.c -I ../dosinc -c $@
del copts
lisp2c.obj : ../dossrc/lisp2c.c
@ echo $(CFLAGS) > copts
$(CC) @copts ../dossrc/lisp2c.c -I ../dosinc -c $@
del copts
rplcons.obj : ../dossrc/rplcons.c
@ echo $(CFLAGS) > copts
$(CC) @copts ../dossrc/rplcons.c -I ../dosinc -c $@
del copts
z2.obj : ../dossrc/z2.c
@ echo $(CFLAGS) > copts
$(CC) @copts ../dossrc/z2.c -I ../dosinc -c $@
del copts

17
bin/makeinitlde Executable file
View File

@@ -0,0 +1,17 @@
# Start a csh
# Building an init needs several flags turned on and it is
# best to build an entire new LDE.
# to run this script, enter 'makeinitlde -e' from the shell
set architecture = `mach`
set osversion = `osversion`
set releasename = ${osversion}.${architecture}
set initname = init.${architecture}
setenv OPTFLAGS '-DINIT -g'
# now do the make, including the right stuff, but putting
# it all into init.mach
(echo RELEASENAME = ${initname}; cat makefile-header makefile-${releasename} makefile-tail) | make -f - $*

1092
bin/makeisc Executable file

File diff suppressed because it is too large Load Diff

133
bin/makeright Executable file
View File

@@ -0,0 +1,133 @@
#!/bin/sh
# $Id: makeright,v 1.5 2002/01/01 23:00:13 sybalsky Exp $
#************************************************************************/
#* */
#* (C) Copyright 1989-2001 Venue. All Rights Reserved. */
#* Manufactured in the United States of America. */
#* */
#* The contents of this file are proprietary information */
#* belonging to Venue, and are provided to you under license. */
#* They may not be further distributed or disclosed to third */
#* parties without the specific permission of Venue. */
#* */
#************************************************************************/
#
# Feb. 6 1990 osamu: Add display option
# release option does not support yet.
# Apr.23 1990 osamu: add release option.
#
# Jul 18 1990 JDS: Add 'init' option for making init-loading emulators
#
# Mar 7 1991 JDS: Add '3' option for making 3-byte emulators.
#
# Nov 20 2001 JDS: Convert to use BASH, not CSH, for open-source...
#
# usage: makeright [display-option] [other-option]
#
# example: makeright single ; make lde for mmaped displayFB
# makeright multi ; make lde for cg3,cg6
# makeright x ; make lde for X-windows
# makeright color ; make lde with color support in it.
# makeright multi release ; make release version of lde for cg3,cg6
# makeright init ; make lde for loading INIT.DLINIT b/w only
#
# makeright multi requires directory "maiko/${osversion}.${architecture}-multi"
# (ex. maiko/sunos4.sparc-multi)
# object files are stored there.
#
# makeright init requires directory "maiko/init.${architecture}
#
# Note: X11R4 environment link shared libraries.
# lde need X library. If lde links shared libraries,
# X shared libraries are needed at run time.
#
# Hide X shared libraries from link libraries search path.
LD_LIBRARY_PATH=/usr/local/lib
RELDIR="../RELEASE/"
if test "$1" = ""
then
display="single"
else
if test "$1" = "release"
then
case "$2" in
single) display = single
;;
multi) display = multi
;;
x) display=x
;;
*) makeright single release
makeright multi release
makeright x release
exit
;;
esac
else
display="$1"
fi
fi
if test $# > 0
then
shift
fi
architecture=`machinetype`
osversion=`osversion`
echo "making so far for ${osversion} on ${architecture}."
case "$display" in
init) set display = single
set releasename = init.${architecture}
set ldename = ldeinit
;;
single) set releasename = ${osversion}.${architecture}
set ldename = ldesingle
;;
multi) set releasename = ${osversion}.${architecture}-${display}
set ldename = ldemulti
;;
x) releasename=${osversion}.${architecture}-${display}
ldename=ldex
;;
*) echo "display-option: $display is not supported."
exit
;;
esac
releaseflg=0
if test "$1" = "release"
then
releaseflg=1
if test "$display" != single
then
if test ! -e usermakefile-${releasename}
then
ln usermakefile-${osversion}.${architecture} usermakefile-${releasename}
fi
fi
else
releaseflg=0
fi
installdir=${RELDIR}install.${osversion}.${architecture}/
#if($display == single ) then
# set releasename = ${osversion}.${architecture}
#else
# set releasename = ${osversion}.${architecture}-${display}
#endif
echo start making lde for ${releasename}.
# then finally do the make, including the right stuff
# With makefile-tail merged, this should only take ONE make command....
make RELEASENAME=${releasename} INSDIR=${installdir} LDENAME=${ldename} \
OSARCHNAME=${osversion}.${architecture} \
-f makefile-header -f makefile-${releasename} \
-f makefile-tail $*

131
bin/makeright.sh Executable file
View File

@@ -0,0 +1,131 @@
#! /bin/-sh
#
# @(#) makeright Version 1.12 (7/18/90).
##***********************************************************************/
## */
## Copyright 1989, 1990 Venue, Fuji Xerox Co., Ltd, Xerox Corp. */
## */
## This file is work-product resulting from the Xerox/Venue */
## Agreement dated 18-August-1989 for support of Medley. */
## */
##***********************************************************************/
#
# Feb. 6 1990 osamu: Add display option
# release option does not support yet.
# Apr.23 1990 osamu: add release option.
#
# Jul 18 1990 JDS: Add 'init' option for making init-loading emulators
#
# Mar 7 1991 JDS: Add '3' option for making 3-byte emulators.
#
# usage: makeright [display-option] [other-option]
#
# example: makeright single ; make lde for mmaped displayFB
# makeright multi ; make lde for cg3,cg6
# makeright x ; make lde for X-windows
# makeright color ; make lde with color support in it.
# makeright multi release ; make release version of lde for cg3,cg6
# makeright init ; make lde for loading INIT.DLINIT b/w only
# makeright x 3 ; make lde for X-windows, 3-byte-atom version.
#
# makeright multi requires directory "maiko/${osversion}.${architecture}-multi"
# (ex. maiko/sunos4.sparc-multi)
# object files are stored there.
#
# makeright init requires directory "maiko/init.${architecture}
#
# Note: X11R4 environment link shared libraries.
# lde need X library. If lde links shared libraries,
# X shared libraries are needed at run time.
#
# Hide X shared libraries from link libraries search path.
setenv LD_LIBRARY_PATH /usr/local/lib
set RELDIR = ../RELEASE/
if($1 == "") then
set display=single
else
if($1 == "release") then
switch($2)
case single:
set display = single
breaksw
case multi:
set display = multi
breaksw
case x:
set display = x
breaksw
default:
makeright single release
makeright multi release
makeright x release
exit
breaksw
endsw
else
set display=$1
endif
endif
if( $#argv > 0 ) then
shift
endif
set architecture = `mach`
set osversion = `osversion`
echo "making so far for ${osversion} on ${architecture}."
switch($display)
case init:
set display = single
set releasename = init.${architecture}
set ldename = ldeinit
breaksw
case single:
set releasename = ${osversion}.${architecture}
set ldename = ldesingle
breaksw
case multi:
set releasename = ${osversion}.${architecture}-${display}
set ldename = ldemulti
breaksw
case x:
set releasename = ${osversion}.${architecture}-${display}
set ldename = ldex
breaksw
default:
echo "display-option: $display is not supported."
exit
breaksw
endsw
if ( ("$1" == "3")) then
set releasename = ${releasename}-3
shift
endif
set releaseflg = 0
if( "$1" == "release" ) then
set releaseflg = 1
if($display != single) then
if( !(-e usermakefile-${releasename})) then
ln usermakefile-${osversion}.${architecture} usermakefile-${releasename}
endif
endif
else
set releaseflg = 0
endif
set installdir = ${RELDIR}install.${osversion}.${architecture}/
#if($display == single ) then
# set releasename = ${osversion}.${architecture}
#else
# set releasename = ${osversion}.${architecture}-${display}
#endif
echo start making lde for ${releasename}.
# then finally do the make, including the right stuff
# With makefile-tail merged, this should only take ONE make command....
make RELEASENAME=${releasename} INSDIR=${installdir} LDENAME=${ldename} \
OSARCHNAME=${osversion}.${architecture} \
-f makefile-header -f makefile-${releasename} \
-f makefile-tail $*

120
bin/makersright Executable file
View File

@@ -0,0 +1,120 @@
# makeright
# @(#) makeright Version 1.12 (7/18/90).
##***********************************************************************/
## */
## Copyright 1989, 1990 Venue, Fuji Xerox Co., Ltd, Xerox Corp. */
## */
## This file is work-product resulting from the Xerox/Venue */
## Agreement dated 18-August-1989 for support of Medley. */
## */
##***********************************************************************/
#
# Feb. 6 1990 osamu: Add display option
# release option does not support yet.
# Apr.23 1990 osamu: add release option.
#
# Jul 18 1990 JDS: Add 'init' option for making init-loading emulators
#
# usage: makeright [display-option] [other-option]
#
# example: makeright single ; make lde for mmaped displayFB
# makeright multi ; make lde for cg3,cg6
# makeright x ; make lde for X-windows
# makeright color ; make lde with color support in it.
# makeright multi release ; make release version of lde for cg3,cg6
# makeright init ; make lde for loading INIT.DLINIT b/w only
#
# makeright multi requires directory "maiko/${osversion}.${architecture}-multi"
# (ex. maiko/sunos4.sparc-multi)
# object files are stored there.
#
# makeright init requires directory "maiko/init.${architecture}
#
# Note: X11R4 environment link shared libraries.
# lde need X library. If lde links shared libraries,
# X shared libraries are needed at run time.
#
# Hide X shared libraries from link libraries search path.
setenv LD_LIBRARY_PATH /usr/local/lib
set RELDIR = ../RELEASE/
if($1 == "") then
set display=single
else
if($1 == "release") then
switch($2)
case single:
set display = single
breaksw
case multi:
set display = multi
breaksw
case x:
set display = x
breaksw
default:
makeright single release
makeright multi release
makeright x release
exit
breaksw
endsw
else
set display=$1
endif
endif
if( $#argv > 0 ) then
shift
endif
set architecture = rs6000
set osversion = aix
switch($display)
case init:
set display = single
set releasename = init.${architecture}
set ldename = ldeinit
breaksw
case single:
set releasename = ${osversion}.${architecture}
set ldename = ldesingle
breaksw
case multi:
set releasename = ${osversion}.${architecture}-${display}
set ldename = ldemulti
breaksw
case x:
set releasename = ${osversion}.${architecture}-${display}
set ldename = ldex
breaksw
default:
echo "display-option: $display is not supported."
exit
breaksw
endsw
set releaseflg = 0
if( "$1" == "release" ) then
set releaseflg = 1
if($display != single) then
if( !(-e usermakefile-${releasename})) then
ln usermakefile-${osversion}.${architecture} usermakefile-${releasename}
endif
endif
else
set releaseflg = 0
endif
set installdir = ${RELDIR}install.${osversion}.${architecture}/
#if($display == single ) then
# set releasename = ${osversion}.${architecture}
#else
# set releasename = ${osversion}.${architecture}-${display}
#endif
echo start making lde for ${releasename}.
# then finally do the make, including the right stuff
# With makefile-tail merged, this should only take ONE make command....
make RELEASENAME=${releasename} INSDIR=${installdir} LDENAME=${ldename} \
OSARCHNAME=${osversion}.${architecture} \
-f makefile-header -f makefile-${releasename} \
-f makefile-tail $*

6
bin/makewrong Executable file
View File

@@ -0,0 +1,6 @@
# Allows user to specify version to make
# Almost useless, except that I needed it to handle the
# SunOS 3.2 sparc version
set relname = $1
shift
(echo RELEASENAME = ${relname};cat makefile-header makefile-${relname} makefile-tail) | make -f - $*

203
bin/medley-solaris Executable file
View File

@@ -0,0 +1,203 @@
#! /bin/sh
# ============================================================================
# Changes:
# ============================================================================
# SYNOPSYS:
# medley [[emulator] sysout]
#
# If no arguments are passed to the utility, it will try to find
# an emulator and sysout based on DEFAULTDIR. When arguments are
# given, it will try to be "smart" when finding files.
#
# It also will try to find a file containing the Medley software key.
# If it doesn't find one, it will prompt for a valid key.
#
# ============================================================================
#---------- Change if necessary ----------
DEFAULTEMULATOR=lde
DEFAULTSYSOUT=LISP.SYSOUT
DEFAULTDIR=REPLACEME # Normally updated by installation script
#************************************************************
#********* Changes below this point should normally *********
#********* not be required *********
#************************************************************
APPLICATION="Medley 2.0"
SCRIPTNAME=`/bin/basename $0`
HOSTNAME=`/usr/ucb/hostname`
KEYFILENAME=".medleyKey.$HOSTNAME"
exitScript(){
echo "$1"
exit
}
smartPath() {
FILE=`/bin/basename $1`
if [ -f "$1" ]
then FILEPATH=$1
elif [ "$FILE" = "$1" ]
then if [ -f "$2/$1" ]
then FILEPATH="$2/$1"
elif [ -f "$HOME/$1" ]
then FILEPATH="$HOME/$1"
elif [ -f "$HOME/medley/$1" ]
then FILEPATH="$HOME/medley/$1"
else exitScript "$3 file not found: $1"
fi
else exitScript "$3 file not found: $1"
fi
}
parseCommand() {
case $# in
[012]) getOSVersion
# Now set the machine type
EMULATORDIR=install.sunos${OSVERSION}
PATH=$PATH:$DEFAULTDIR/$EMULATORDIR:.
cd $DEFAULTDIR/$EMULATORDIR
export PATH
case $# in
0) EMULATOR=$DEFAULTEMULATOR ;;
1) EMULATOR=$DEFAULTEMULATOR
smartPath $1 $DEFAULTDIR/lispsysouts Sysout
SYSOUT=$FILEPATH ;;
2) EMULATOR=$1
smartPath $2 $DEFAULTDIR/lispsysouts Sysout
SYSOUT=$FILEPATH ;;
esac ;;
*) echo "Usage: $SCRIPTNAME [[emulator] sysout]"
exit ;;
esac
}
setOSVersion(){
unset validOSVersionP
case "$1" in
3|3.[X245]) OSVERSION=3 ;;
4.0|4.0.*) OSVERSION=4 ;;
4.1|4.1.*) OSVERSION=4.1 ;;
5.*) OSVERSION=5 ;;
*) MESSAGE="Invalid reply: $answer"
validOSVersionP=notTrue ;;
esac
[ ${validOSVersionP:-true} = true ]
}
askOSVersion(){
MESSAGE="$1"
while [ ${menuloop:-notdone} = notdone ]
do /usr/ucb/clear
echo "
<---------------> OS Options Menu <--------------->
3.X - SunOS 3.2 3.4 3.5
4.0 - SunOS 4.0 4.0.X
4.1 - SunOS 4.1 4.1.X
5.0 - SunOS 5.0 and up.
${MESSAGE:+
$MESSAGE}"
unset MESSAGE
echo -n "Select : "
answer=`/usr/bin/line`
if setOSVersion $answer
then menuloop=done
fi
done
}
getOSVersion() {
if [ -f /etc/motd ]
then if setOSVersion `/usr/ucb/sed -e '1s/.*SunOS \(...\).*/\1/' -e '1q' < /etc/motd`
then echo -n ""
else echo "$MESSAGE"
fi
else askOSVersion "Please specify the SunOS version you are running."
fi
}
validKeyP() {
unset keyTooLongP
VALID=`echo $* | /bin/awk '/[^0-9a-fA-F ]/'`
for group in $*
do LENGTH=`echo $group | /bin/awk '{print length}'`
if [ "$LENGTH" -gt 8 ]
then keyTooLongP=true
fi
done
[ $# = 3 -a "$VALID" = "" -a ${keyTooLongP:-notTrue} = notTrue ]
}
saveKey() {
echo "Saving key '$KEY' into file '$KEYFILENAME' ..."
echo -n "Trying $DEFAULTDIR/$KEYFILENAME ..."
if [ -w "$DEFAULTDIR" ]
then echo "$KEY" > "$DEFAULTDIR/$KEYFILENAME"
else echo " Write protected ! "
echo -n "Trying $HOME/$KEYFILENAME instead ..."
echo "$KEY" > "$HOME/$KEYFILENAME"
fi
if [ $? = 0 ]
then echo " Done"
else echo " Some error occured \! "
fi
}
keyDefinedP() {
if [ -f "$DEFAULTDIR/$KEYFILENAME" ]
then if [ -r "$DEFAULTDIR/$KEYFILENAME" ]
then KEYFILE="$DEFAULTDIR/$KEYFILENAME"
else echo "ERROR! Cannot read file: $DEFAULTDIR/$KEYFILE"
fi
elif [ -f "$HOME/$KEYFILENAME" ]
then KEYFILE="$HOME/$KEYFILENAME"
else echo "
To start $APPLICATION, a host access key is required.
Call Venue at (1-800-228-5325) for one,
and be prepared to give them your workstations host ID#
"
fi
[ ${KEYFILE:-notSpecified} != notSpecified ]
}
promptForKey () {
while [ ${VALIDKEYP:-notValid} = notValid ]
do echo "Your workstations host ID# is: `hostid`"
echo -n "Type in the key or [^C] to abort: "
KEY=`/usr/bin/line`
if validKeyP $KEY
then VALIDKEYP=x
else echo "Sorry, invalid key: $KEY"
fi
done
}
#************************************************************
#********** Main piece of code **********
#************************************************************
trap 'echo "
$SCRIPTNAME: Aborted ..."; exit' 2
parseCommand $*
if keyDefinedP
then KEY=`/usr/bin/cat $KEYFILE`
else promptForKey
saveKey
fi
# Well, I think we might be ready to give it a try
echo "Starting up $APPLICATION ..."
/bin/sleep 2
$EMULATOR $SYSOUT -k "$KEY"

212
bin/mkdos Executable file
View File

@@ -0,0 +1,212 @@
#define CORRECT WRONG /* don't mind this text */
#define BELOW in the file makefile in this directory.
# You are editing the CORRECT file.
# Read more BELOW.
# /* When you make a compile target this file is run through
# cpp and redirected to a file called mkfile.
# the file mkfile is then used as the make file for the subtargets.
# This may seem convoluted but the win is quite big. /jarl */
# /* The following #ifdef ... #endif selection uses the
# symbols kexitnown to the local icc we use to transmogrify
# this file with. When you port to a new arch you should
# a) find the unique icc macros (sparc, mips, ibm etc.)
# b) add or edit this to the #ifdef selection below
# c) try it out by doing a make. */
# defDEBUG -g -m
#define DEBUG -O2
#define OEXT o
# remember -DNOEUROKBD
#ifdef _INTELC32_ /* The cpp macro for the DOS extender */
#define EXTRACFLAGS -DDOS -DBYTESWAP -DKBINT -DFSERROR -DNOPIXRECT -DNOFORN -DNOETHER -DBIGATOMS -DBIGVM -DNEWCDRCODING
#define EXTRALDFLAGS graphics.lib binmode.lib mouse.lib
AFLAGS = /T
COLORFILES = rawcolor.obj
ARCHFILES = dosmouse.obj doskbd.obj vesafns.obj vesainit.obj vgainit.obj kbdif.obj
#define EXTRAFILES
#define EXTRALDFLAGS
#undef OEXT
#define OEXT obj
#endif /* DOS */
#define XFLAGS
#define XLDFLAGS
ADMINFILES = mkdos mkvdate.c optck.c
ETHERFILES = ldeether.OEXT
KEY = keytstno.OEXT
CFLAGS = -I. -DBIGATOMS -DNEW_STORAGE XFLAGS EXTRACFLAGS DEBUG
LDFLAGS = DEBUG EXTRALDFLAGS XLDFLAGS
SRCFILES = $(SRCDIR)conspage.c $(SRCDIR)gcoflow.c $(SRCDIR)shift.c $(SRCDIR)dbgtool.c $(SRCDIR)gcr.c\
$(SRCDIR)llcolor.c $(SRCDIR)gcrcell.c $(SRCDIR)llstk.c $(SRCDIR)gcscan.c $(SRCDIR)loopsops.c\
$(SRCDIR)storage.c $(SRCDIR)allocmds.c $(SRCDIR)dir.c $(SRCDIR)gvar2.c $(SRCDIR)lowlev1.c\
$(SRCDIR)subr.c $(SRCDIR)arith2.c $(SRCDIR)hacks.c $(SRCDIR)lowlev2.c $(SRCDIR)subr0374.c \
$(SRCDIR)arith3.c $(SRCDIR)doscomm.c $(SRCDIR)hardrtn.c $(SRCDIR)lsthandl.c $(SRCDIR)sxhash.c \
$(SRCDIR)arith4.c $(SRCDIR)draw.c $(SRCDIR)main.c $(SRCDIR)testtool.c $(SRCDIR)array.c $(SRCDIR)dsk.c \
$(SRCDIR)inet.c $(SRCDIR)misc7.c $(SRCDIR)timer.c $(SRCDIR)array2.c $(SRCDIR)dspif.c $(SRCDIR)initdsp.c \
$(SRCDIR)miscn.c $(SRCDIR)typeof.c $(SRCDIR)array3.c $(SRCDIR)initkbd.c $(SRCDIR)ubf1.c \
$(SRCDIR)array4.c $(SRCDIR)dspsubrs.c $(SRCDIR)initsout.c $(SRCDIR)mkatom.c $(SRCDIR)ubf2.c \
$(SRCDIR)array5.c $(SRCDIR)eqf.c $(SRCDIR)intcall.c $(SRCDIR)mkcell.c $(SRCDIR)ubf3.c $(SRCDIR)array6.c \
$(SRCDIR)ether.c $(SRCDIR)mkvdate.c $(SRCDIR)ufn.c $(SRCDIR)atom.c $(SRCDIR)findkey.c \
$(SRCDIR)kbdsubrs.c $(SRCDIR)mouseif.c $(SRCDIR)ufs.c $(SRCDIR)bbtsub.c $(SRCDIR)foreign.c \
$(SRCDIR)keyevent.c $(SRCDIR)unixcomm.c $(SRCDIR)bin.c $(SRCDIR)fp.c $(SRCDIR)keylib.c $(SRCDIR)binds.c \
$(SRCDIR)asmbbt.c $(SRCDIR)fvar.c $(SRCDIR)mvs.c $(SRCDIR)unwind.c $(SRCDIR)bitblt.c $(SRCDIR)gc.c \
$(SRCDIR)uraid.c $(SRCDIR)blt.c $(SRCDIR)gc2.c $(SRCDIR)kprint.c $(SRCDIR)keytstno.c $(SRCDIR)keytst.c\
$(SRCDIR)osmsg.c usrsubr.c $(SRCDIR)byteswap.c $(SRCDIR)gcarray.c \
$(SRCDIR)perrno.c $(SRCDIR)ldeboot.c $(SRCDIR)ldeether.c $(SRCDIR)uutils.c $(SRCDIR)carcdr.c $(SRCDIR)gccode.c \
$(SRCDIR)rawcolor.c $(SRCDIR)vars3.c $(SRCDIR)gcfinal.c $(SRCDIR)ldsout.c $(SRCDIR)return.c \
$(SRCDIR)vmemsave.c $(SRCDIR)chardev.c $(SRCDIR)gchtfind.c $(SRCDIR)lineblt8.c $(SRCDIR)rpc.c \
$(SRCDIR)xc.c $(SRCDIR)common.c $(SRCDIR)gcmain3.c $(SRCDIR)lisp2c.c $(SRCDIR)rplcons.c $(SRCDIR)z2.c \
$(SRCDIR)find-dsp.l $(SRCDIR)dsphack.l \
$(SRCDIR)xmkicon.c $(SRCDIR)xbbt.c $(SRCDIR)xinit.c $(SRCDIR)xscroll.c $(SRCDIR)xcursor.c $(SRCDIR)xlspwin.c \
$(SRCDIR)xrdopt.c $(SRCDIR)xwinman.c \
$(SRCDIR)dosmouse.c $(SRCDIR)vesafns.asm $(SRCDIR)vesainit.c $(SRCDIR)vgainit.c $(SRCDIR)kbdif.c \
$(SRCDIR)dspsparc.il $(SRCDIR)copyright $(SRCDIR)launch.asm
OFILES = $(OBJECTDIR)conspage.OEXT $(OBJECTDIR)gcoflow.OEXT $(OBJECTDIR)shift.OEXT $(OBJECTDIR)dbgtool.OEXT \
$(OBJECTDIR)gcr.OEXT $(OBJECTDIR)llcolor.OEXT $(OBJECTDIR)gcrcell.OEXT $(OBJECTDIR)llstk.OEXT \
$(OBJECTDIR)gcscan.OEXT $(OBJECTDIR)loopsops.OEXT $(OBJECTDIR)storage.OEXT \
$(OBJECTDIR)allocmds.OEXT $(OBJECTDIR)dir.OEXT $(OBJECTDIR)gvar2.OEXT $(OBJECTDIR)lowlev1.OEXT \
$(OBJECTDIR)subr.OEXT $(OBJECTDIR)arith2.OEXT $(OBJECTDIR)hacks.OEXT $(OBJECTDIR)lowlev2.OEXT \
$(OBJECTDIR)subr0374.OEXT $(OBJECTDIR)arith3.OEXT $(OBJECTDIR)doscomm.OEXT \
$(OBJECTDIR)hardrtn.OEXT $(OBJECTDIR)lsthandl.OEXT $(OBJECTDIR)sxhash.OEXT $(OBJECTDIR)arith4.OEXT \
$(OBJECTDIR)draw.OEXT $(OBJECTDIR)main.OEXT $(OBJECTDIR)testtool.OEXT $(OBJECTDIR)array.OEXT \
$(OBJECTDIR)dsk.OEXT $(OBJECTDIR)inet.OEXT $(OBJECTDIR)misc7.OEXT $(OBJECTDIR)timer.OEXT \
$(OBJECTDIR)array2.OEXT $(OBJECTDIR)dspif.OEXT $(OBJECTDIR)initdsp.OEXT $(OBJECTDIR)miscn.OEXT \
$(OBJECTDIR)typeof.OEXT $(OBJECTDIR)array3.OEXT $(OBJECTDIR)initkbd.OEXT $(OBJECTDIR)ubf1.OEXT \
$(OBJECTDIR)array4.OEXT $(OBJECTDIR)dspsubrs.OEXT $(OBJECTDIR)initsout.OEXT \
$(OBJECTDIR)mkatom.OEXT $(OBJECTDIR)ubf2.OEXT $(OBJECTDIR)array5.OEXT $(OBJECTDIR)eqf.OEXT \
$(OBJECTDIR)intcall.OEXT $(OBJECTDIR)mkcell.OEXT $(OBJECTDIR)ubf3.OEXT $(OBJECTDIR)array6.OEXT \
$(OBJECTDIR)ether.OEXT $(OBJECTDIR)ufn.OEXT $(OBJECTDIR)atom.OEXT \
$(OBJECTDIR)findkey.OEXT $(OBJECTDIR)kbdsubrs.OEXT $(OBJECTDIR)mouseif.OEXT $(OBJECTDIR)ufs.OEXT \
$(OBJECTDIR)bbtsub.OEXT $(OBJECTDIR)foreign.OEXT $(OBJECTDIR)keyevent.OEXT \
$(OBJECTDIR)unixcomm.OEXT $(OBJECTDIR)bin.OEXT $(OBJECTDIR)fp.OEXT $(OBJECTDIR)keylib.OEXT \
$(OBJECTDIR)binds.OEXT $(OBJECTDIR)fvar.OEXT $(OBJECTDIR)mvs.OEXT \
$(OBJECTDIR)unwind.OEXT $(OBJECTDIR)bitblt.OEXT $(OBJECTDIR)gc.OEXT \
$(OBJECTDIR)uraid.OEXT $(OBJECTDIR)blt.OEXT $(OBJECTDIR)gc2.OEXT \
$(OBJECTDIR)kprint.OEXT $(OBJECTDIR)osmsg.OEXT $(OBJECTDIR)usrsubr.OEXT $(OBJECTDIR)byteswap.OEXT \
$(OBJECTDIR)gcarray.OEXT $(OBJECTDIR)perrno.OEXT $(OBJECTDIR)uutils.OEXT \
$(OBJECTDIR)carcdr.OEXT $(OBJECTDIR)asmbbt.OEXT $(OBJECTDIR)gccode.OEXT \
$(OBJECTDIR)vars3.OEXT $(OBJECTDIR)gcfinal.OEXT $(OBJECTDIR)ldsout.OEXT \
$(OBJECTDIR)return.OEXT $(OBJECTDIR)vmemsave.OEXT $(OBJECTDIR)chardev.OEXT \
$(OBJECTDIR)gchtfind.OEXT $(OBJECTDIR)lineblt8.OEXT $(OBJECTDIR)rpc.OEXT $(OBJECTDIR)xc.OEXT \
$(OBJECTDIR)common.OEXT $(OBJECTDIR)gcmain3.OEXT $(OBJECTDIR)lisp2c.OEXT $(OBJECTDIR)rplcons.OEXT \
$(OBJECTDIR)z2.OEXT $(OBJECTDIR) $(OBJECTDIR)vdate.OEXT $(KEY) $(COLORFILES) $(ARCHFILES) EXTRAFILES
HFILES = $(INCDIR)address.h $(INCDIR)adr68k.h $(INCDIR)arith.h $(INCDIR)cell.h $(INCDIR)dbprint.h $(INCDIR)display.h \
$(INCDIR)dspif.h $(INCDIR)ifpage.h $(INCDIR)iopage.h $(INCDIR)lispemul.h $(INCDIR)lispmap.h \
$(INCDIR)lsptypes.h $(INCDIR)miscstat.h $(INCDIR)lspglob.h $(INCDIR)array.h $(INCDIR)bb.h \
$(INCDIR)bitblt.h $(INCDIR)debug.h $(INCDIR)devconf.h $(INCDIR)dspdata.h $(INCDIR)ether.h \
$(INCDIR)fast_dsp.h $(INCDIR)fp.h $(INCDIR)gc.h $(INCDIR)hdw_conf.h $(INCDIR)initatms.h $(INCDIR)inlinec.h $(INCDIR)keyboard.h \
$(INCDIR)lispver1.h $(INCDIR)lispver2.h $(INCDIR)lldsp.h $(INCDIR)locfile.h $(INCDIR)mouseif.h $(INCDIR)my.h \
$(INCDIR)opcodes.h $(INCDIR)osmsg.h $(INCDIR)pilotbbt.h $(INCDIR)print.h $(INCDIR)profile.h \
$(INCDIR)return.h $(INCDIR)stack.h $(INCDIR)stream.h $(INCDIR)subrs.h $(INCDIR)sysatms.h $(INCDIR)timeout.h \
$(INCDIR)tos1defs.h $(INCDIR)tosfns.h $(INCDIR)tosret.h $(INCDIR)vmemsave.h \
$(INCDIR)xdefs.h $(INCDIR)xbitmaps.h $(INCDIR)xkeymap.h
##############################
### Entry rules ###
############### ###
### make only one of these ###
### four rules on the ###
### commandline ###
##############################
all : x raw color
x : xmkfile
$(MAKE) -f xmkfile $(MFLAGS) ldex
raw : mkfile
$(MAKE) -f mkfile $(MFLAGS) lde
color : mkfile
$(MAKE) -f mkfile $(MFLAGS) lde
dos4 :
$(MAKE) -f ./mkfile $(MFLAGS) dosmkfil
$(MAKE) -f ./dosmkfile $(MFLAGS) medley.exe
$(MAKE) -f ./dosmkfile $(MFLAGS) emul.exe
###############################
### Compile rules ###
################# ###
### Don't touch these. The ###
### following rules are ###
### used by the entry rules ###
###############################
xmkfile : mkfile
$(CC) -E -DX mkfile > xmkfile
dosmkfil : mkfile
-copy mkfile mkfile.c
-$(CC) /P /c mkfile.c 2> junk
-copy mkfile.i dosmkfil
emul.exe : $(OFILES)
@ echo $** > linkopts
@ echo $(CFLAGS) > copts
$(CC) @copts @linkopts $(LDFLAGS) /e$@
del linkopts
del copts
@ echo "Executable is now named '$@'"
ldex : $(OFILES) mkvdate
$(RM) vdate.c
mkvdate > vdate.c
- cd ARCH;$(MAKE) $(MFLAGS) all #/* Make the speciffic files for this target */
$(CC) $(OFILES) -o $@ $(LDFLAGS)
lde : $(OFILES) mkvdate
$(RM) vdate.c
mkvdate > vdate.c
- cd ARCH;$(MAKE) $(MFLAGS) all #/* Make the speciffic files for this target */
$(CC) $(LDFLAGS) $(OFILES) -o $@
##################
### File rules ###
##################
main.o : lispemul.h address.h lsptypes.h adr68k.h stack.h lspglob.h lispmap.h ifpage.h iopage.h return.h debug.h profile.h
######################################
### Architecture speciffic targets ###
### ###
### replaces the cruft in the ###
### makefile-<OS>.<ARCH> ###
######################################
#ifdef _INTELC32_ /* The cpp macro for the DOS extender */
.SUFFIXES .exe .lib .c .obj .c .asm .s .c
medley.exe: launch.obj
TLINK launch,medley
launch.obj: launch.asm
xc.obj: xc.s
tasm /ml xc.s
xc.s: xc.c
rsh sparky (cd /users/nilsson/curr ; gcc-make $* )
#endif

201
bin/mkfile Executable file
View File

@@ -0,0 +1,201 @@
#define CORRECT WRONG /* don't mind this text */
#define BELOW in the file makefile in this directory.
# You are editing the CORRECT file.
# Read more BELOW.
# /* When you make a compile target this file is run through
# cpp and redirected to a file called mkfile.
# the file mkfile is then used as the make file for the subtargets.
# This may seem convoluted but the win is quite big. /jarl */
# /* The following #ifdef ... #endif selection uses the
# symbols kexitnown to the local icc we use to transmogrify
# this file with. When you port to a new arch you should
# a) find the unique icc macros (sparc, mips, ibm etc.)
# b) add or edit this to the #ifdef selection below
# c) try it out by doing a make. */
# defDEBUG -g -m
#define DEBUG -O2
#define OEXT o
# remember -DNOEUROKBD
#ifdef _INTELC32_ /* The cpp macro for the DOS extender */
#define SRCDIR .
#define OBJECTDIR .
#define BINDIR ../bin
#define INCDIR ../inc
#define EXTRACFLAGS -DDOS -DBYTESWAP -DKBINT -DFSERROR -DNOPIXRECT -DNOFORN -DNOETHER -DBIGATOMS -DBIGVM -DNEWCDRCODING
#define EXTRALDFLAGS graphics.lib binmode.lib mouse.lib
BINARYDIR = BINDIR
AFLAGS = /T
COLORFILES = rawcolor.obj
ARCHFILES = dosmouse.obj doskbd.obj vesafns.obj vesainit.obj vgainit.obj kbdif.obj
#define EXTRAFILES
#define EXTRALDFLAGS
#undef OEXT
#define OEXT obj
#endif /* DOS */
#define XFLAGS
#define XLDFLAGS
ADMINFILES = mkdos mkvdate.c optck.c
ETHERFILES = ldeether.OEXT
KEY = keytstno.OEXT
CFLAGS = -I. -DBIGATOMS -DNEW_STORAGE XFLAGS EXTRACFLAGS DEBUG
LDFLAGS = DEBUG EXTRALDFLAGS XLDFLAGS
SRCFILES = SRCDIR/conspage.c SRCDIR/gcoflow.c SRCDIR/shift.c SRCDIR/dbgtool.c SRCDIR/gcr.c\
SRCDIR/llcolor.c SRCDIR/gcrcell.c SRCDIR/llstk.c SRCDIR/gcscan.c SRCDIR/loopsops.c\
SRCDIR/storage.c SRCDIR/allocmds.c SRCDIR/dir.c SRCDIR/gvar2.c SRCDIR/lowlev1.c\
SRCDIR/subr.c SRCDIR/arith2.c SRCDIR/hacks.c SRCDIR/lowlev2.c SRCDIR/subr0374.c \
SRCDIR/arith3.c SRCDIR/doscomm.c SRCDIR/hardrtn.c SRCDIR/lsthandl.c SRCDIR/sxhash.c \
SRCDIR/arith4.c SRCDIR/draw.c SRCDIR/main.c SRCDIR/testtool.c SRCDIR/array.c SRCDIR/dsk.c \
SRCDIR/inet.c SRCDIR/misc7.c SRCDIR/timer.c SRCDIR/array2.c SRCDIR/dspif.c SRCDIR/initdsp.c \
SRCDIR/miscn.c SRCDIR/typeof.c SRCDIR/array3.c SRCDIR/initkbd.c SRCDIR/ubf1.c \
SRCDIR/array4.c SRCDIR/dspsubrs.c SRCDIR/initsout.c SRCDIR/mkatom.c SRCDIR/ubf2.c \
SRCDIR/array5.c SRCDIR/eqf.c SRCDIR/intcall.c SRCDIR/mkcell.c SRCDIR/ubf3.c SRCDIR/array6.c \
SRCDIR/ether.c SRCDIR/mkvdate.c SRCDIR/ufn.c SRCDIR/atom.c SRCDIR/findkey.c \
SRCDIR/kbdsubrs.c SRCDIR/mouseif.c SRCDIR/ufs.c SRCDIR/bbtsub.c SRCDIR/foreign.c \
SRCDIR/keyevent.c SRCDIR/unixcomm.c SRCDIR/bin.c SRCDIR/fp.c SRCDIR/keylib.c SRCDIR/binds.c \
SRCDIR/asmbbt.c SRCDIR/fvar.c SRCDIR/mvs.c SRCDIR/unwind.c SRCDIR/bitblt.c SRCDIR/gc.c \
SRCDIR/uraid.c SRCDIR/blt.c SRCDIR/gc2.c SRCDIR/kprint.c SRCDIR/keytstno.c SRCDIR/keytst.c\
SRCDIR/osmsg.c usrsubr.c SRCDIR/byteswap.c SRCDIR/gcarray.c \
SRCDIR/perrno.c SRCDIR/ldeboot.c SRCDIR/ldeether.c SRCDIR/uutils.c SRCDIR/carcdr.c SRCDIR/gccode.c \
SRCDIR/rawcolor.c SRCDIR/vars3.c SRCDIR/gcfinal.c SRCDIR/ldsout.c SRCDIR/return.c \
SRCDIR/vmemsave.c SRCDIR/chardev.c SRCDIR/gchtfind.c SRCDIR/lineblt8.c SRCDIR/rpc.c \
SRCDIR/xc.c SRCDIR/common.c SRCDIR/gcmain3.c SRCDIR/lisp2c.c SRCDIR/rplcons.c SRCDIR/z2.c \
SRCDIR/find-dsp.l SRCDIR/dsphack.l \
SRCDIR/xmkicon.c SRCDIR/xbbt.c SRCDIR/xinit.c SRCDIR/xscroll.c SRCDIR/xcursor.c SRCDIR/xlspwin.c \
SRCDIR/xrdopt.c SRCDIR/xwinman.c \
SRCDIR/dosmouse.c SRCDIR/vesafns.asm SRCDIR/vesainit.c SRCDIR/vgainit.c SRCDIR/kbdif.c \
SRCDIR/dspsparc.il SRCDIR/copyright SRCDIR/launch.asm
OFILES = conspage.OEXT gcoflow.OEXT shift.OEXT dbgtool.OEXT \
gcr.OEXT llcolor.OEXT gcrcell.OEXT llstk.OEXT \
gcscan.OEXT loopsops.OEXT storage.OEXT \
allocmds.OEXT dir.OEXT gvar2.OEXT lowlev1.OEXT \
subr.OEXT arith2.OEXT hacks.OEXT lowlev2.OEXT \
subr0374.OEXT arith3.OEXT doscomm.OEXT \
hardrtn.OEXT lsthandl.OEXT sxhash.OEXT arith4.OEXT \
draw.OEXT main.OEXT testtool.OEXT array.OEXT \
dsk.OEXT inet.OEXT misc7.OEXT timer.OEXT \
array2.OEXT dspif.OEXT initdsp.OEXT miscn.OEXT \
typeof.OEXT array3.OEXT initkbd.OEXT ubf1.OEXT \
array4.OEXT dspsubrs.OEXT initsout.OEXT \
mkatom.OEXT ubf2.OEXT array5.OEXT eqf.OEXT \
intcall.OEXT mkcell.OEXT ubf3.OEXT array6.OEXT \
ether.OEXT ufn.OEXT atom.OEXT \
findkey.OEXT kbdsubrs.OEXT mouseif.OEXT ufs.OEXT \
bbtsub.OEXT foreign.OEXT keyevent.OEXT \
unixcomm.OEXT bin.OEXT fp.OEXT keylib.OEXT \
binds.OEXT fvar.OEXT mvs.OEXT \
unwind.OEXT bitblt.OEXT gc.OEXT \
uraid.OEXT blt.OEXT gc2.OEXT \
kprint.OEXT osmsg.OEXT usrsubr.OEXT byteswap.OEXT \
gcarray.OEXT perrno.OEXT uutils.OEXT \
carcdr.OEXT asmbbt.OEXT gccode.OEXT \
vars3.OEXT gcfinal.OEXT ldsout.OEXT \
return.OEXT vmemsave.OEXT chardev.OEXT \
gchtfind.OEXT lineblt8.OEXT rpc.OEXT xc.OEXT \
common.OEXT gcmain3.OEXT lisp2c.OEXT rplcons.OEXT \
z2.OEXT vdate.OEXT $(KEY) $(COLORFILES) $(ARCHFILES) EXTRAFILES
HFILES = INCDIR/address.h INCDIR/adr68k.h INCDIR/arith.h INCDIR/cell.h INCDIR/dbprint.h INCDIR/display.h \
INCDIR/dspif.h INCDIR/ifpage.h INCDIR/iopage.h INCDIR/lispemul.h INCDIR/lispmap.h \
INCDIR/lsptypes.h INCDIR/miscstat.h INCDIR/lspglob.h INCDIR/array.h INCDIR/bb.h \
INCDIR/bitblt.h INCDIR/debug.h INCDIR/devconf.h INCDIR/dspdata.h INCDIR/ether.h \
INCDIR/fast_dsp.h INCDIR/fp.h INCDIR/gc.h INCDIR/hdw_conf.h INCDIR/initatms.h INCDIR/inlinec.h INCDIR/keyboard.h \
INCDIR/lispver1.h INCDIR/lispver2.h INCDIR/lldsp.h INCDIR/locfile.h INCDIR/mouseif.h INCDIR/my.h \
INCDIR/opcodes.h INCDIR/osmsg.h INCDIR/pilotbbt.h INCDIR/print.h INCDIR/profile.h \
INCDIR/return.h INCDIR/stack.h INCDIR/stream.h INCDIR/subrs.h INCDIR/sysatms.h INCDIR/timeout.h \
INCDIR/tos1defs.h INCDIR/tosfns.h INCDIR/tosret.h INCDIR/vmemsave.h \
INCDIR/xdefs.h INCDIR/xbitmaps.h INCDIR/xkeymap.h
##############################
### Entry rules ###
############### ###
### make only one of these ###
### four rules on the ###
### commandline ###
##############################
dos4 :
$(MAKE) -f ./mkfile $(MFLAGS) dosmkfil
$(MAKE) -f ./dosmkfil $(MFLAGS) ../bin/medley.exe
$(MAKE) -f ./dosmkfil $(MFLAGS) ../bin/emul.exe
###############################
### Compile rules ###
################# ###
### Don't touch these. The ###
### following rules are ###
### used by the entry rules ###
###############################
dosmkfil : mkfile
-copy mkfile mkfile.c
-$(CC) /P /c mkfile.c 2> junk
-copy mkfile.i dosmkfil
../bin/emul.exe : $(OFILES)
@ echo $** > linkopts
@ echo $(CFLAGS) > copts
$(CC) @copts @linkopts $(LDFLAGS) /e$@
del linkopts
del copts
@ echo "Executable is now named '$@'"
lde : $(OFILES) mkvdate
$(RM) vdate.c
mkvdate > vdate.c
- cd ARCH;$(MAKE) $(MFLAGS) all #/* Make the speciffic files for this target */
$(CC) $(LDFLAGS) $(OFILES) -o $@
##################
### File rules ###
##################
OBJECTDIR/main.o : INCDIR/lispemul.h INCDIR/address.h INCDIR/lsptypes.h INCDIR/adr68k.h\
INCDIR/stack.h INCDIR/lspglob.h INCDIR/lispmap.h INCDIR/ifpage.h\
INCDIR/iopage.h INCDIR/return.h INCDIR/debug.h INCDIR/profile.h
######################################
### Architecture speciffic targets ###
### ###
### replaces the cruft in the ###
### makefile-<OS>.<ARCH> ###
######################################
#ifdef _INTELC32_ /* The cpp macro for the DOS extender */
.SUFFIXES .exe .lib .c .obj .c .asm .s .c
BINDIR/medley.exe: OBJECTDIR/launch.obj
TLINK launch,medley
OBJECTDIR/launch.obj: SRCDIR/launch.asm
copy ..\src\launch.asm launch.asm
tasm /ml launch.asm
OBJECTDIR/xc.obj: SRCDIR/xc.s
tasm /ml xc.s
SRCDIR/xc.s: SRCDIR/xc.c
rsh sparky (cd /users/sybalsky/maiko/src ; gcc-make $* )
#endif

201
bin/mkfile.c Executable file
View File

@@ -0,0 +1,201 @@
#define CORRECT WRONG /* don't mind this text */
#define BELOW in the file makefile in this directory.
# You are editing the CORRECT file.
# Read more BELOW.
# /* When you make a compile target this file is run through
# cpp and redirected to a file called mkfile.
# the file mkfile is then used as the make file for the subtargets.
# This may seem convoluted but the win is quite big. /jarl */
# /* The following #ifdef ... #endif selection uses the
# symbols kexitnown to the local icc we use to transmogrify
# this file with. When you port to a new arch you should
# a) find the unique icc macros (sparc, mips, ibm etc.)
# b) add or edit this to the #ifdef selection below
# c) try it out by doing a make. */
# defDEBUG -g -m
#define DEBUG -O2
#define OEXT o
# remember -DNOEUROKBD
#ifdef _INTELC32_ /* The cpp macro for the DOS extender */
#define SRCDIR .
#define OBJECTDIR .
#define BINDIR ../bin
#define INCDIR ../inc
#define EXTRACFLAGS -DDOS -DBYTESWAP -DKBINT -DFSERROR -DNOPIXRECT -DNOFORN -DNOETHER -DBIGATOMS -DBIGVM -DNEWCDRCODING
#define EXTRALDFLAGS graphics.lib binmode.lib mouse.lib
BINARYDIR = BINDIR
AFLAGS = /T
COLORFILES = rawcolor.obj
ARCHFILES = dosmouse.obj doskbd.obj vesafns.obj vesainit.obj vgainit.obj kbdif.obj
#define EXTRAFILES
#define EXTRALDFLAGS
#undef OEXT
#define OEXT obj
#endif /* DOS */
#define XFLAGS
#define XLDFLAGS
ADMINFILES = mkdos mkvdate.c optck.c
ETHERFILES = ldeether.OEXT
KEY = keytstno.OEXT
CFLAGS = -I. -DBIGATOMS -DNEW_STORAGE XFLAGS EXTRACFLAGS DEBUG
LDFLAGS = DEBUG EXTRALDFLAGS XLDFLAGS
SRCFILES = SRCDIR/conspage.c SRCDIR/gcoflow.c SRCDIR/shift.c SRCDIR/dbgtool.c SRCDIR/gcr.c\
SRCDIR/llcolor.c SRCDIR/gcrcell.c SRCDIR/llstk.c SRCDIR/gcscan.c SRCDIR/loopsops.c\
SRCDIR/storage.c SRCDIR/allocmds.c SRCDIR/dir.c SRCDIR/gvar2.c SRCDIR/lowlev1.c\
SRCDIR/subr.c SRCDIR/arith2.c SRCDIR/hacks.c SRCDIR/lowlev2.c SRCDIR/subr0374.c \
SRCDIR/arith3.c SRCDIR/doscomm.c SRCDIR/hardrtn.c SRCDIR/lsthandl.c SRCDIR/sxhash.c \
SRCDIR/arith4.c SRCDIR/draw.c SRCDIR/main.c SRCDIR/testtool.c SRCDIR/array.c SRCDIR/dsk.c \
SRCDIR/inet.c SRCDIR/misc7.c SRCDIR/timer.c SRCDIR/array2.c SRCDIR/dspif.c SRCDIR/initdsp.c \
SRCDIR/miscn.c SRCDIR/typeof.c SRCDIR/array3.c SRCDIR/initkbd.c SRCDIR/ubf1.c \
SRCDIR/array4.c SRCDIR/dspsubrs.c SRCDIR/initsout.c SRCDIR/mkatom.c SRCDIR/ubf2.c \
SRCDIR/array5.c SRCDIR/eqf.c SRCDIR/intcall.c SRCDIR/mkcell.c SRCDIR/ubf3.c SRCDIR/array6.c \
SRCDIR/ether.c SRCDIR/mkvdate.c SRCDIR/ufn.c SRCDIR/atom.c SRCDIR/findkey.c \
SRCDIR/kbdsubrs.c SRCDIR/mouseif.c SRCDIR/ufs.c SRCDIR/bbtsub.c SRCDIR/foreign.c \
SRCDIR/keyevent.c SRCDIR/unixcomm.c SRCDIR/bin.c SRCDIR/fp.c SRCDIR/keylib.c SRCDIR/binds.c \
SRCDIR/asmbbt.c SRCDIR/fvar.c SRCDIR/mvs.c SRCDIR/unwind.c SRCDIR/bitblt.c SRCDIR/gc.c \
SRCDIR/uraid.c SRCDIR/blt.c SRCDIR/gc2.c SRCDIR/kprint.c SRCDIR/keytstno.c SRCDIR/keytst.c\
SRCDIR/osmsg.c usrsubr.c SRCDIR/byteswap.c SRCDIR/gcarray.c \
SRCDIR/perrno.c SRCDIR/ldeboot.c SRCDIR/ldeether.c SRCDIR/uutils.c SRCDIR/carcdr.c SRCDIR/gccode.c \
SRCDIR/rawcolor.c SRCDIR/vars3.c SRCDIR/gcfinal.c SRCDIR/ldsout.c SRCDIR/return.c \
SRCDIR/vmemsave.c SRCDIR/chardev.c SRCDIR/gchtfind.c SRCDIR/lineblt8.c SRCDIR/rpc.c \
SRCDIR/xc.c SRCDIR/common.c SRCDIR/gcmain3.c SRCDIR/lisp2c.c SRCDIR/rplcons.c SRCDIR/z2.c \
SRCDIR/find-dsp.l SRCDIR/dsphack.l \
SRCDIR/xmkicon.c SRCDIR/xbbt.c SRCDIR/xinit.c SRCDIR/xscroll.c SRCDIR/xcursor.c SRCDIR/xlspwin.c \
SRCDIR/xrdopt.c SRCDIR/xwinman.c \
SRCDIR/dosmouse.c SRCDIR/vesafns.asm SRCDIR/vesainit.c SRCDIR/vgainit.c SRCDIR/kbdif.c \
SRCDIR/dspsparc.il SRCDIR/copyright SRCDIR/launch.asm
OFILES = conspage.OEXT gcoflow.OEXT shift.OEXT dbgtool.OEXT \
gcr.OEXT llcolor.OEXT gcrcell.OEXT llstk.OEXT \
gcscan.OEXT loopsops.OEXT storage.OEXT \
allocmds.OEXT dir.OEXT gvar2.OEXT lowlev1.OEXT \
subr.OEXT arith2.OEXT hacks.OEXT lowlev2.OEXT \
subr0374.OEXT arith3.OEXT doscomm.OEXT \
hardrtn.OEXT lsthandl.OEXT sxhash.OEXT arith4.OEXT \
draw.OEXT main.OEXT testtool.OEXT array.OEXT \
dsk.OEXT inet.OEXT misc7.OEXT timer.OEXT \
array2.OEXT dspif.OEXT initdsp.OEXT miscn.OEXT \
typeof.OEXT array3.OEXT initkbd.OEXT ubf1.OEXT \
array4.OEXT dspsubrs.OEXT initsout.OEXT \
mkatom.OEXT ubf2.OEXT array5.OEXT eqf.OEXT \
intcall.OEXT mkcell.OEXT ubf3.OEXT array6.OEXT \
ether.OEXT ufn.OEXT atom.OEXT \
findkey.OEXT kbdsubrs.OEXT mouseif.OEXT ufs.OEXT \
bbtsub.OEXT foreign.OEXT keyevent.OEXT \
unixcomm.OEXT bin.OEXT fp.OEXT keylib.OEXT \
binds.OEXT fvar.OEXT mvs.OEXT \
unwind.OEXT bitblt.OEXT gc.OEXT \
uraid.OEXT blt.OEXT gc2.OEXT \
kprint.OEXT osmsg.OEXT usrsubr.OEXT byteswap.OEXT \
gcarray.OEXT perrno.OEXT uutils.OEXT \
carcdr.OEXT asmbbt.OEXT gccode.OEXT \
vars3.OEXT gcfinal.OEXT ldsout.OEXT \
return.OEXT vmemsave.OEXT chardev.OEXT \
gchtfind.OEXT lineblt8.OEXT rpc.OEXT xc.OEXT \
common.OEXT gcmain3.OEXT lisp2c.OEXT rplcons.OEXT \
z2.OEXT vdate.OEXT $(KEY) $(COLORFILES) $(ARCHFILES) EXTRAFILES
HFILES = INCDIR/address.h INCDIR/adr68k.h INCDIR/arith.h INCDIR/cell.h INCDIR/dbprint.h INCDIR/display.h \
INCDIR/dspif.h INCDIR/ifpage.h INCDIR/iopage.h INCDIR/lispemul.h INCDIR/lispmap.h \
INCDIR/lsptypes.h INCDIR/miscstat.h INCDIR/lspglob.h INCDIR/array.h INCDIR/bb.h \
INCDIR/bitblt.h INCDIR/debug.h INCDIR/devconf.h INCDIR/dspdata.h INCDIR/ether.h \
INCDIR/fast_dsp.h INCDIR/fp.h INCDIR/gc.h INCDIR/hdw_conf.h INCDIR/initatms.h INCDIR/inlinec.h INCDIR/keyboard.h \
INCDIR/lispver1.h INCDIR/lispver2.h INCDIR/lldsp.h INCDIR/locfile.h INCDIR/mouseif.h INCDIR/my.h \
INCDIR/opcodes.h INCDIR/osmsg.h INCDIR/pilotbbt.h INCDIR/print.h INCDIR/profile.h \
INCDIR/return.h INCDIR/stack.h INCDIR/stream.h INCDIR/subrs.h INCDIR/sysatms.h INCDIR/timeout.h \
INCDIR/tos1defs.h INCDIR/tosfns.h INCDIR/tosret.h INCDIR/vmemsave.h \
INCDIR/xdefs.h INCDIR/xbitmaps.h INCDIR/xkeymap.h
##############################
### Entry rules ###
############### ###
### make only one of these ###
### four rules on the ###
### commandline ###
##############################
dos4 :
$(MAKE) -f ./mkfile $(MFLAGS) dosmkfil
$(MAKE) -f ./dosmkfil $(MFLAGS) ../bin/medley.exe
$(MAKE) -f ./dosmkfil $(MFLAGS) ../bin/emul.exe
###############################
### Compile rules ###
################# ###
### Don't touch these. The ###
### following rules are ###
### used by the entry rules ###
###############################
dosmkfil : mkfile
-copy mkfile mkfile.c
-$(CC) /P /c mkfile.c 2> junk
-copy mkfile.i dosmkfil
../bin/emul.exe : $(OFILES)
@ echo $** > linkopts
@ echo $(CFLAGS) > copts
$(CC) @copts @linkopts $(LDFLAGS) /e$@
del linkopts
del copts
@ echo "Executable is now named '$@'"
lde : $(OFILES) mkvdate
$(RM) vdate.c
mkvdate > vdate.c
- cd ARCH;$(MAKE) $(MFLAGS) all #/* Make the speciffic files for this target */
$(CC) $(LDFLAGS) $(OFILES) -o $@
##################
### File rules ###
##################
OBJECTDIR/main.o : INCDIR/lispemul.h INCDIR/address.h INCDIR/lsptypes.h INCDIR/adr68k.h\
INCDIR/stack.h INCDIR/lspglob.h INCDIR/lispmap.h INCDIR/ifpage.h\
INCDIR/iopage.h INCDIR/return.h INCDIR/debug.h INCDIR/profile.h
######################################
### Architecture speciffic targets ###
### ###
### replaces the cruft in the ###
### makefile-<OS>.<ARCH> ###
######################################
#ifdef _INTELC32_ /* The cpp macro for the DOS extender */
.SUFFIXES .exe .lib .c .obj .c .asm .s .c
BINDIR/medley.exe: OBJECTDIR/launch.obj
TLINK launch,medley
OBJECTDIR/launch.obj: SRCDIR/launch.asm
copy ..\src\launch.asm launch.asm
tasm /ml launch.asm
OBJECTDIR/xc.obj: SRCDIR/xc.s
tasm /ml xc.s
SRCDIR/xc.s: SRCDIR/xc.c
rsh sparky (cd /users/sybalsky/maiko/src ; gcc-make $* )
#endif

86
bin/mkfile.i Executable file
View File

@@ -0,0 +1,86 @@
#line 1 "d:/windows/TEMP/cbr3"
#pragma si(C:\codebldr\inc\)
#line 1 "mkfile.c"
BINARYDIR = ../bin
AFLAGS = /T
COLORFILES = rawcolor.obj
ARCHFILES = dosmouse.obj doskbd.obj vesafns.obj vesainit.obj vgainit.obj kbdif.obj
ADMINFILES = mkdos mkvdate.c optck.c
ETHERFILES = ldeether.obj
KEY = keytstno.obj
CFLAGS = -I. -DBIGATOMS -DNEW_STORAGE -DDOS -DBYTESWAP -DKBINT -DFSERROR -DNOPIXRECT -DNOFORN -DNOETHER -DBIGATOMS -DBIGVM -DNEWCDRCODING -O2
LDFLAGS = -O2 graphics.lib binmode.lib mouse.lib
SRCFILES = ./conspage.c ./gcoflow.c ./shift.c ./dbgtool.c ./gcr.c ./llcolor.c ./gcrcell.c ./llstk.c ./gcscan.c ./loopsops.c ./storage.c ./allocmds.c ./dir.c ./gvar2.c ./lowlev1.c ./subr.c ./arith2.c ./hacks.c ./lowlev2.c ./subr0374.c ./arith3.c ./doscomm.c ./hardrtn.c ./lsthandl.c ./sxhash.c ./arith4.c ./draw.c ./main.c ./testtool.c ./array.c ./dsk.c ./inet.c ./misc7.c ./timer.c ./array2.c ./dspif.c ./initdsp.c ./miscn.c ./typeof.c ./array3.c ./initkbd.c ./ubf1.c ./array4.c ./dspsubrs.c ./initsout.c ./mkatom.c ./ubf2.c ./array5.c ./eqf.c ./intcall.c ./mkcell.c ./ubf3.c ./array6.c ./ether.c ./mkvdate.c ./ufn.c ./atom.c ./findkey.c ./kbdsubrs.c ./mouseif.c ./ufs.c ./bbtsub.c ./foreign.c ./keyevent.c ./unixcomm.c ./bin.c ./fp.c ./keylib.c ./binds.c ./asmbbt.c ./fvar.c ./mvs.c ./unwind.c ./bitblt.c ./gc.c ./uraid.c ./blt.c ./gc2.c ./kprint.c ./keytstno.c ./keytst.c ./osmsg.c usrsubr.c ./byteswap.c ./gcarray.c ./perrno.c ./ldeboot.c ./ldeether.c ./uutils.c ./carcdr.c ./gccode.c ./rawcolor.c ./vars3.c ./gcfinal.c ./ldsout.c ./return.c ./vmemsave.c ./chardev.c ./gchtfind.c ./lineblt8.c ./rpc.c ./xc.c ./common.c ./gcmain3.c ./lisp2c.c ./rplcons.c ./z2.c ./find-dsp.l ./dsphack.l ./xmkicon.c ./xbbt.c ./xinit.c ./xscroll.c ./xcursor.c ./xlspwin.c ./xrdopt.c ./xwinman.c ./dosmouse.c ./vesafns.asm ./vesainit.c ./vgainit.c ./kbdif.c ./dspsparc.il ./copyright ./launch.asm
OFILES = conspage.obj gcoflow.obj shift.obj dbgtool.obj gcr.obj llcolor.obj gcrcell.obj llstk.obj gcscan.obj loopsops.obj storage.obj allocmds.obj dir.obj gvar2.obj lowlev1.obj subr.obj arith2.obj hacks.obj lowlev2.obj subr0374.obj arith3.obj doscomm.obj hardrtn.obj lsthandl.obj sxhash.obj arith4.obj draw.obj main.obj testtool.obj array.obj dsk.obj inet.obj misc7.obj timer.obj array2.obj dspif.obj initdsp.obj miscn.obj typeof.obj array3.obj initkbd.obj ubf1.obj array4.obj dspsubrs.obj initsout.obj mkatom.obj ubf2.obj array5.obj eqf.obj intcall.obj mkcell.obj ubf3.obj array6.obj ether.obj ufn.obj atom.obj findkey.obj kbdsubrs.obj mouseif.obj ufs.obj bbtsub.obj foreign.obj keyevent.obj unixcomm.obj bin.obj fp.obj keylib.obj binds.obj fvar.obj mvs.obj unwind.obj bitblt.obj gc.obj uraid.obj blt.obj gc2.obj kprint.obj osmsg.obj usrsubr.obj byteswap.obj gcarray.obj perrno.obj uutils.obj carcdr.obj asmbbt.obj gccode.obj vars3.obj gcfinal.obj ldsout.obj return.obj vmemsave.obj chardev.obj gchtfind.obj lineblt8.obj rpc.obj xc.obj common.obj gcmain3.obj lisp2c.obj rplcons.obj z2.obj vdate.obj $(KEY) $(COLORFILES) $(ARCHFILES)
HFILES = ../inc/address.h ../inc/adr68k.h ../inc/arith.h ../inc/cell.h ../inc/dbprint.h ../inc/display.h ../inc/dspif.h ../inc/ifpage.h ../inc/iopage.h ../inc/lispemul.h ../inc/lispmap.h ../inc/lsptypes.h ../inc/miscstat.h ../inc/lspglob.h ../inc/array.h ../inc/bb.h ../inc/bitblt.h ../inc/debug.h ../inc/devconf.h ../inc/dspdata.h ../inc/ether.h ../inc/fast_dsp.h ../inc/fp.h ../inc/gc.h ../inc/hdw_conf.h ../inc/initatms.h ../inc/inlinec.h ../inc/keyboard.h ../inc/lispver1.h ../inc/lispver2.h ../inc/lldsp.h ../inc/locfile.h ../inc/mouseif.h ../inc/my.h ../inc/opcodes.h ../inc/osmsg.h ../inc/pilotbbt.h ../inc/print.h ../inc/profile.h ../inc/return.h ../inc/stack.h ../inc/stream.h ../inc/subrs.h ../inc/sysatms.h ../inc/timeout.h ../inc/tos1defs.h ../inc/tosfns.h ../inc/tosret.h ../inc/vmemsave.h ../inc/xdefs.h ../inc/xbitmaps.h ../inc/xkeymap.h
dos4 :
$(MAKE) -f ./mkfile $(MFLAGS) dosmkfil
$(MAKE) -f ./dosmkfil $(MFLAGS) ../bin/medley.exe
$(MAKE) -f ./dosmkfil $(MFLAGS) ../bin/emul.exe
dosmkfil : mkfile
-copy mkfile mkfile.c
-$(CC) /P /c mkfile.c 2> junk
-copy mkfile.i dosmkfil
../bin/emul.exe : $(OFILES)
@ echo $** > linkopts
@ echo $(CFLAGS) > copts
$(CC) @copts @linkopts $(LDFLAGS) /e$@
del linkopts
del copts
@ echo "Executable is now named '$@'"
lde : $(OFILES) mkvdate
$(RM) vdate.c
mkvdate > vdate.c
- cd ARCH;$(MAKE) $(MFLAGS) all #/* Make the speciffic files for this target */
$(CC) $(LDFLAGS) $(OFILES) -o $@
./main.o : ../inc/lispemul.h ../inc/address.h ../inc/lsptypes.h ../inc/adr68k.h ../inc/stack.h ../inc/lspglob.h ../inc/lispmap.h ../inc/ifpage.h ../inc/iopage.h ../inc/return.h ../inc/debug.h ../inc/profile.h
.SUFFIXES .exe .lib .c .obj .c .asm .s .c
../bin/medley.exe: ./launch.obj
TLINK launch,medley
./launch.obj: ./launch.asm
copy ..\src\launch.asm launch.asm
tasm /ml launch.asm
./xc.obj: ./xc.s
tasm /ml xc.s
./xc.s: ./xc.c
rsh sparky (cd /users/sybalsky/maiko/src ; gcc-make $* )

133
bin/mkr2 Executable file
View File

@@ -0,0 +1,133 @@
#!/bin/csh
# @(#) makeright Version 1.12 (7/18/90).
##***********************************************************************/
## */
## Copyright 1989, 1990 Venue, Fuji Xerox Co., Ltd, Xerox Corp. */
## */
## This file is work-product resulting from the Xerox/Venue */
## Agreement dated 18-August-1989 for support of Medley. */
## */
##***********************************************************************/
#
# Feb. 6 1990 osamu: Add display option
# release option does not support yet.
# Apr.23 1990 osamu: add release option.
#
# Jul 18 1990 JDS: Add 'init' option for making init-loading emulators
#
# Mar 7 1991 JDS: Add '3' option for making 3-byte emulators.
#
# usage: makeright [display-option] [other-option]
#
# example: makeright single ; make lde for mmaped displayFB
# makeright multi ; make lde for cg3,cg6
# makeright x ; make lde for X-windows
# makeright color ; make lde with color support in it.
# makeright multi release ; make release version of lde for cg3,cg6
# makeright init ; make lde for loading INIT.DLINIT b/w only
# makeright x 3 ; make lde for X-windows, 3-byte-atom version.
#
# makeright multi requires directory "maiko/${osversion}.${architecture}-multi"
# (ex. maiko/sunos4.sparc-multi)
# object files are stored there.
#
# makeright init requires directory "maiko/init.${architecture}
#
# Note: X11R4 environment link shared libraries.
# lde need X library. If lde links shared libraries,
# X shared libraries are needed at run time.
#
# Hide X shared libraries from link libraries search path.
setenv LD_LIBRARY_PATH /usr/local/lib
set RELDIR = ../RELEASE/
# Allows user to specify version to make
# Almost useless, except that I needed it to handle the
# SunOS 3.2 sparc version
set osversion = $1
shift
set architecture = $1
shift
if($1 == "") then
set display=single
else
if($1 == "release") then
switch($2)
case single:
set display = single
breaksw
case multi:
set display = multi
breaksw
case x:
set display = x
breaksw
default:
exit
breaksw
endsw
else
set display=$1
endif
endif
if( $#argv > 0 ) then
shift
endif
echo "making so far for ${osversion} on ${architecture}."
switch($display)
case init:
set display = single
set releasename = init.${architecture}
set ldename = ldeinit
breaksw
case single:
set releasename = ${osversion}.${architecture}
set ldename = ldesingle
breaksw
case multi:
set releasename = ${osversion}.${architecture}-${display}
set ldename = ldemulti
breaksw
case x:
set releasename = ${osversion}.${architecture}-${display}
set ldename = ldex
breaksw
default:
echo "display-option: $display is not supported."
exit
breaksw
endsw
if ( ("$1" == "3")) then
set releasename = ${releasename}-3
shift
endif
set releaseflg = 0
if( "$1" == "release" ) then
set releaseflg = 1
if($display != single) then
if( !(-e usermakefile-${releasename})) then
ln usermakefile-${osversion}.${architecture} usermakefile-${releasename}
endif
endif
else
set releaseflg = 0
endif
set installdir = ${RELDIR}install.${osversion}.${architecture}/
#if($display == single ) then
# set releasename = ${osversion}.${architecture}
#else
# set releasename = ${osversion}.${architecture}-${display}
#endif
echo start making lde for ${releasename}.
# then finally do the make, including the right stuff
# With makefile-tail merged, this should only take ONE make command....
make RELEASENAME=${releasename} INSDIR=${installdir} LDENAME=${ldename} \
OSARCHNAME=${osversion}.${architecture} \
-f makefile-header -f makefile-${releasename} \
-f makefile-tail $*

BIN
bin/optck Executable file

Binary file not shown.

BIN
bin/optck- Executable file

Binary file not shown.

17
bin/optck.sh Executable file
View File

@@ -0,0 +1,17 @@
#!/bin/sh
#
# Check whether Assembler optimization is correct or not.
#
if [ -f ./optck ]; then
/bin/rm -f ./optck
fi
/bin/cc -O2 ../src/optck.c -o optck
res=`./optck`
if [ "$res" = "wrong" ]; then
echo -n "-Qoption as -O~M"
fi

20
bin/osversion Executable file
View File

@@ -0,0 +1,20 @@
#!/bin/sh
# Location of the add-dir-to-var program
os=`./config.guess`
# o/s switch block
case "$os" in
sparc-sun-sunos*) echo sunos4 ;;
sparc-sun-solaris1*) echo sunos4 ;;
sparc-sun-solaris2*) echo sunos5 ;;
alpha-dec-osf1) echo osf1 ;;
i386-*-solaris*) echo sunos5 ;;
*-*-linux*) echo linux ;;
*-*-openbsd*) echo openbsd ;;
esac
### Don't leave the variables set.
unset os

50
bin/runlisp Executable file
View File

@@ -0,0 +1,50 @@
# First comment line required (invokes CSH)
# =============================================================================
# Relies on shell variable MYSYSOUT (which can be set in your .login or .cshrc)
# to start up lisp. The cases below are for the following machines:
#
# trouser 1300283a
# cobra 13001e50
# viper 13001e98
# mamba 13001da3
# garter 17003b46
# squonk 11002517
# timber 1700319b
# gopher 17003016
#
# Switch statement would be nicer to condition on hostname instead of hostid,
# but I built this file automatically from output of keymaker, which doesn't
# know about hostnames....
# =============================================================================
if ($?MYSYSOUT == '1') then
switch ("`hostid`")
case '1300283a':
lde $MYSYSOUT -k 'ac9a0794 b313abae 73421322'
breaksw
case '13001e50':
lde $MYSYSOUT -k '10bfab0c 477ef55e a5ad1b12'
breaksw
case '13001e98':
lde $MYSYSOUT -k '4f470760 51860f70 80453d60'
breaksw
case '13001da3':
lde $MYSYSOUT -k '12abb456 d6ab9f7 6740c0cb'
breaksw
case '11002517':
lde $MYSYSOUT -k 'b3217f6f 8cd14878 a7d84260'
breaksw
case '17003b46':
lde $MYSYSOUT -k '46e27958 4d23421c c4632dc0'
breaksw
case '1700319b':
lde $MYSYSOUT -k '99e8bfc6 92299f45 9199a409'
breaksw
case '17003016':
lde $MYSYSOUT -k '70c5a8d8 7b0498cc 45e35500'
breaksw
default:
echo "Sorry, host '`hostname`' not in this shell script"
endsw
else echo "environment variable MYSYSOUT not set"
endif

54
bin/runlispether Executable file
View File

@@ -0,0 +1,54 @@
# First comment line required (invokes CSH)
# =============================================================================
# Relies on shell variable MYSYSOUT (which can be set in your .login or .cshrc)
# to start up lisp. The cases below are for the following machines:
#
# trouser 1300283a
# cobra 13001e50
# viper 13001e98
# mamba 13001da3
# garter 17003b46
# squonk 11002517
# timber 1700319b
# gopher 17003016
# tree 13003565
#
# Switch statement would be nicer to condition on hostname instead of hostid,
# but I built this file automatically from output of keymaker, which doesn't
# know about hostnames....
# =============================================================================
if ($?MYSYSOUT == '1') then
switch ("`hostid`")
case '1300283a':
ldeether $MYSYSOUT -k 'ac9a0794 b313abae 73421322'
breaksw
case '13001e50':
ldeether $MYSYSOUT -k '10bfab0c 477ef55e a5ad1b12'
breaksw
case '13001e98':
ldeether $MYSYSOUT -k '4f470760 51860f70 80453d60'
breaksw
case '13001da3':
ldeether $MYSYSOUT -k '12abb456 d6ab9f7 6740c0cb'
breaksw
case '11002517':
ldeether $MYSYSOUT -k 'b3217f6f 8cd14878 a7d84260'
breaksw
case '17003b46':
ldeether $MYSYSOUT -k '46e27958 4d23421c c4632dc0'
breaksw
case '1700319b':
ldeether $MYSYSOUT -k '99e8bfc6 92299f45 9199a409'
breaksw
case '17003016':
ldeether $MYSYSOUT -k '70c5a8d8 7b0498cc 45e35500'
breaksw
case '13003565':
ldeether $MYSYSOUT -k 'ce7627bf b5b61ac8 2f990cc0'
breaksw
default:
echo "Sorry, host '`hostname`' not in this shell script"
endsw
else echo "environment variable MYSYSOUT not set"
endif

81
bin/u2dnames.sed Executable file
View File

@@ -0,0 +1,81 @@
s/Cldeether/Cldeetr/g
s/MakeXicon/Xmkicon/g
s/Scrollbar/Xscrolb/g
s/XKbdMouse/Xkbdmus/g
s/XKeyboard/Xkbd/g
s/XReconfig/Xreconf/g
s/Xdefaults/Xdeflt/g
s/asmbitblt/asmbbt/g
s/bitblt68K/bbt68k/g
s/bitbltsub/bbtsub/g
s/devconfig/devconf/g
s/directory/dir/g
s/disp386i/dsp386/g
s/fast_disp/fast_dsp/g
s/gcreccell/gcrcell/g
s/gcreclaim/gcr/g
s/initatoms/initatms/g
s/inline68K/inln68k/g
s/inlinePS2/inlnPS2/g
s/keytester/keytst/g
s/keytestno/keytstno/g
s/lisptypes/lsptypes/g
s/lldisplay/lldsp/g
s/localfile/locfile/g
s/lowlevel1/lowlev1/g
s/lowlevel2/lowlev2/g
s/makevdate/mkvdate/g
s/miscstats/miscstat/g
s/osmessage/osmsg/g
s/osmessage/osmsg/g
s/setsysout/setsout/g
s/socketdvr/socdvr/g
s/timeofday/timeoday/g
s/usersubrs/usrsubr/g
s/InitXevent/Xinit/g
s/LispWindow/Xlspwin/g
s/Subwindows/Xsubwin/g
s/VideoColor/Xcolor/g
s/XCursorDef/Xcursdef/g
s/XWindowMgr/Xwinman/g
s/address68k/adr68k/g
s/bitblt386i/bbt386i/g
s/chardevice/chardev/g
s/createcell/mkcell/g
s/debugtools/dbgtool/g
s/dispSPARC/dspSPARC/g
s/disphack/dsphack/g
s/emulglobal/emlglob/g
s/gcarrayops/gcarray/g
s/hardreturn/hardrtn/g
s/hdw_config/hdw_conf/g
s/initsysout/initsout/g
s/inline386i/inln386i/g
s/inlineMIPS/inlnMIPS/g
s/lispglobal/lspglob/g
s/listhandle/lsthandl/g
s/loadsysout/ldsout/g
s/syscallmsg/perrno/g
s/testsysout/tstsout/g
s/tosfuncall/tosfns/g
s/unix\-utils/uutils/g
s/waitcursor/CHANGEMEcurs/g
s/LispXbitblt/Xbbt/g
s/OpenDisplay/Xopnedsp/g
s/ReadXoption/Xrdopt/g
s/bitbltSPARC/bbtSPARC/g
s/byteswapfns/byteswap/g
s/colorbltfns/rawcolor/g
s/displaydata/dspdata/g
s/find\-disp/find\-dsp/g
s/gchoverflow/gcpunt/g
s/initdisplay/initdsp/g
s/inlineSPARC/inlnSPARC/g
s/newkeymaker/mkkey/g
s/newmakeatom/mkatom/g
s/systematoms/sysatms/g
s/testdisplay/testdsp/g
s/tosretmacro/tosret/g
s/EventHandler/Xevent/g
s/fastinline68K/inln68k\+/g
s/nativeincludes/native/g

81
bin/unix2dos.sed Executable file
View File

@@ -0,0 +1,81 @@
s/Cldeether\.c/Cldeetr\.c/g
s/MakeXicon\.c/Xmkicon\.c/g
s/Scrollbar\.c/Xscrolb\.c/g
s/XKbdMouse\.c/Xkbdmus\.c/g
s/XKeyboard\.c/Xkbd\.c/g
s/XReconfig\.c/Xreconf\.c/g
s/Xdefaults\.h/Xdeflt\.h/g
s/asmbitblt\.c/asmbbt\.c/g
s/bitblt68K\.s/bbt68k\.s/g
s/bitbltsub\.c/bbtsub\.c/g
s/devconfig\.h/devconf\.h/g
s/directory\.c/dir\.c/g
s/disp386i\.il/dsp386\.il/g
s/fast_disp\.h/fast_dsp\.h/g
s/gcreccell\.c/gcrcell\.c/g
s/gcreclaim\.c/gcr\.c/g
s/initatoms\.h/initatms\.h/g
s/inline68K\.h/inln68k\.h/g
s/inlinePS2\.h/inlnPS2\.h/g
s/keytester\.c/keytst\.c/g
s/keytestno\.c/CHANGEMEkey\.c/g
s/lisptypes\.h/lsptypes\.h/g
s/lldisplay\.h/lldsp\.h/g
s/localfile\.h/locfile\.h/g
s/lowlevel1\.c/lowlev1\.c/g
s/lowlevel2\.c/lowlev2\.c/g
s/makevdate\.c/mkvdate\.c/g
s/miscstats\.h/miscstat\.h/g
s/osmessage\.c/osmsg\.c/g
s/osmessage\.h/osmsg\.h/g
s/setsysout\.c/setsout\.c/g
s/socketdvr\.c/socdvr\.c/g
s/timeofday\.c/timeoday\.c/g
s/usersubrs\.c/usrsubr\.c/g
s/InitXevent\.c/Xinit\.c/g
s/LispWindow\.c/Xlspwin\.c/g
s/Subwindows\.c/Xsubwin\.c/g
s/VideoColor\.c/Xcolor\.c/g
s/XCursorDef\.h/Xcursdef\.h/g
s/XWindowMgr\.c/Xwinman\.c/g
s/address68k\.h/adr68k\.h/g
s/bitblt386i\.s/bbt386i\.h/g
s/chardevice\.c/chardev\.c/g
s/createcell\.c/mkcell\.c/g
s/debugtools\.c/dbgtool\.c/g
s/dispSPARC\.il/dspSPACR\.il/g
s/disphack\.lex/dsphack\.lex/g
s/emulglobal\.h/emlglob\.h/g
s/gcarrayops\.c/gcarray\.c/g
s/hardreturn\.c/hardrtn\.c/g
s/hdw_config\.h/hdw_conf\.h/g
s/initsysout\.c/initsout\.c/g
s/inline386i\.h/inln386i\.h/g
s/inlineMIPS\.h/inlnMIPS\.h/g
s/lispglobal\.h/lspglob\.h/g
s/listhandle\.c/lsthandl\.c/g
s/loadsysout\.c/ldsout\.c/g
s/syscallmsg\.c/perrno\.c/g
s/testsysout\.c/tstsout\.c/g
s/tosfuncall\.h/tosfns\.h/g
s/unix\-utils\.c/uutils\.c/g
s/waitcursor\.h/CHANGEMEcurs\.h/g
s/LispXbitblt\.c/Xbbt\.c/g
s/OpenDisplay\.c/Xopnedsp\.c/g
s/ReadXoption\.c/Xrdopt\.c/g
s/bitbltSPARC\.s/bbtSPARC\.s/g
s/byteswapfns\.c/byteswap\.c/g
s/colorbltfns\.c/rawcolor\.c/g
s/displaydata\.h/dspdata\.h/g
s/find\-disp\.lex/find\-dsp\.lex/g
s/gchoverflow\.c/gcpunt\.c/g
s/initdisplay\.c/initdsp\.c/g
s/inlineSPARC\.h/inlnSPARC\.h/g
s/newkeymaker\.c/mkkey\.c/g
s/newmakeatom\.c/mkatom\.c/g
s/systematoms\.h/sysatms\.h/g
s/testdisplay\.c/testdsp\.c/g
s/tosretmacro\.h/tosret\.h/g
s/EventHandler\.c/Xevent\.c/g
s/fastinline68K\.h/inln68k\+\.h/g
s/nativeincludes\.h/native\.h/g

30
bin/usermakefile Executable file
View File

@@ -0,0 +1,30 @@
################################################################################
## This is the user installation makefile, it does not make the "source"
## files in this directory (i.e. this makefile, lde.o).
################################################################################
default : lde ldeether
#### The native translator needs the symbol table in 'lde', so don't 'strip'.
lde : lde.o usersubrs.o
cc lde.o usersubrs.o -f68881 -lsuntool -lsunwindow -lpixrect -lc -o lde
ldeether : ldeether.c
cc ldeether.c -o ldeether
@echo ""
@echo "The 'ldeether' executable must be made setuid root to allow"
@echo "PUP/XNS Ethernet access. Feel free to examine the source"
@echo "of 'ldeether' before doing this."
#### user ops is placeholder for user subrs. needs work.
usersubrs.o : usersubrs.c
cc -c -O usersubrs.c
#### gets rid of user-created files.
cleanup :
rm -f lde ldeether runlisp usersubrs.o

View File

View File

0
bin/usermakefile-irix.sgi Executable file
View File

0
bin/usermakefile-irix.sgi-x Executable file
View File

39
bin/usermakefile-sunos3.mc68020 Executable file
View File

@@ -0,0 +1,39 @@
##########################################################################
# This is the user installation makefile, it does not make the "source"
# files in this directory, i.e. it uses the objectfiles :
# ldesingle.o, ldemulti.o ldex.o
##########################################################################
default : ldesingle ldemulti ldex ldeether
#### The native translator needs the symbol table in 'ldesingle' or 'ldemulti',
#### so don't 'strip'.
ldesingle : ldesingle.o usersubrs.o
cc ldesingle.o usersubrs.o -f68881 -lsuntool -lsunwindow -lpixrect -lc -lm -o ldesingle
ldemulti : ldemulti.o usersubrs.o
cc ldemulti.o usersubrs.o -f68881 -lsuntool -lsunwindow -lpixrect -lc -lm -o ldemulti
ldex : ldex.o usersubrs.o
cc ldex.o usersubrs.o -f68881 -lX11 -lpixrect -lc -o ldex
ldeether : ldeether.c
cc ldeether.c -o ldeether
@echo ""
@echo "The 'ldeether' executable must be made setuid root to allow"
@echo "PUP/XNS Ethernet access. Feel free to examine the source"
@echo "of 'ldeether' before doing this."
#### user ops is placeholder for user subrs. needs work.
usersubrs.o : usersubrs.c
cc -c -O usersubrs.c
#### gets rid of user-created files.
cleanup :
rm -f ldesingle ldemulti ldex ldeether runlisp usersubrs.o

View File

@@ -0,0 +1,37 @@
##########################################################################
# This is the user installation makefile, it does not make the "source"
# files in this directory, i.e. it uses the objectfiles :
# ldesingle.o, ldemulti.o
##########################################################################
default : ldesingle ldemulti ldeether
#### The native translator needs the symbol table in 'ldesingle' or 'ldemulti',
#### so don't 'strip'.
ldesingle : ldesingle.o usersubrs.o
cc ldesingle.o usersubrs.o -f68881 -lsuntool -lsunwindow -lpixrect -lc -lm -o ldesingle
ldemulti : ldemulti.o usersubrs.o
cc ldemulti.o usersubrs.o -f68881 -lsuntool -lsunwindow -lpixrect -lc -lm -o ldemulti
ldeether : ldeether.c
cc ldeether.c -o ldeether
@echo ""
@echo "The 'ldeether' executable must be made setuid root to allow"
@echo "PUP/XNS Ethernet access. Feel free to examine the source"
@echo "of 'ldeether' before doing this."
#### user ops is placeholder for user subrs. needs work.
usersubrs.o : usersubrs.c
cc -c -O usersubrs.c
#### gets rid of user-created files.
cleanup :
rm -f ldesingle ldemulti ldeether runlisp usersubrs.o

View File

@@ -0,0 +1,39 @@
##########################################################################
# This is the user installation makefile, it does not make the "source"
# files in this directory, i.e. it uses the objectfiles :
# ldesingle.o, ldemulti.o ldex.o
##########################################################################
default : ldesingle ldemulti ldex ldeether
#### The native translator needs the symbol table in 'ldesingle' or 'ldemulti',
#### so don't 'strip'.
ldesingle : ldesingle.o usersubrs.o
cc ldesingle.o usersubrs.o -f68881 -lsuntool -lsunwindow -lpixrect -lc -lm -o ldesingle
ldemulti : ldemulti.o usersubrs.o
cc ldemulti.o usersubrs.o -f68881 -lsuntool -lsunwindow -lpixrect -lc -lm -o ldemulti
ldex : ldex.o usersubrs.o
cc ldex.o usersubrs.o -f68881 -lX11 -lpixrect -lc -o ldex
ldeether : ldeether.c
cc ldeether.c -o ldeether
@echo ""
@echo "The 'ldeether' executable must be made setuid root to allow"
@echo "PUP/XNS Ethernet access. Feel free to examine the source"
@echo "of 'ldeether' before doing this."
#### user ops is placeholder for user subrs. needs work.
usersubrs.o : usersubrs.c
cc -c -O usersubrs.c
#### gets rid of user-created files.
cleanup :
rm -f ldesingle ldemulti ldex ldeether runlisp usersubrs.o

Some files were not shown because too many files have changed in this diff Show More