Skip to content

Commit

Permalink
Initial commit from macross.tar.gz
Browse files Browse the repository at this point in the history
MD5 (macross.tar.gz) = 4ecb4a6e015b11fef043fe78d1eedb61
  • Loading branch information
mist64 committed May 4, 2014
0 parents commit 98a3655
Show file tree
Hide file tree
Showing 143 changed files with 36,916 additions and 0 deletions.
1 change: 1 addition & 0 deletions .mark
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Mon Feb 2 23:18:33 PST 1987
34 changes: 34 additions & 0 deletions DOC
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
/u0/chip/macross:
This directory contains the source to Macross. Here's what's here:

DOC - this file

Makefile - current makefile
Makefile_6502 - makefile for 6502 version
Makefile_68000 - makefile for 68000

There are both 6502 and 68000 versions of Macross, though the 68000
version has not been very well tested. Source for both is here. Source files
which come in different flavors for the different versions are marked 6502 or
68000 in their names as appropriate. There are two different Makefiles also.
At any given time, either the 6502 version or the 68000 version is the
'working' version. The 'working' version is what the default makefile
'Makefile' will produce. Typing 'make foobar' will change the working version
by swapping the makefiles.

*.c, *.h, *.y - source for the program

doc/ - the manual and other user documentation are here
notes68/ - notes on 68000 syntax and operand structure
opt/ - working directory for 'optimized' version. When I
was developing the program, I needed to keep two separate copies of
the source and object code. This is because the C compiler can
compile with debugging or with optimization, but not both. The
version that folks use needs to be compiled with optimization, but I
need a version with debugging to fix any problems that crop up. Since
the time to recompile the whole thing is so enormous, it was easiest
to keep two copies. In the interest of saving file space, all that is
in this directory now, however, are the Makefiles for compiling with
optimization.

slinky/ - Slinky lives here
164 changes: 164 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,164 @@
.SUFFIXES: .o .c .h .run

# to make for another target CPU, redefine PROC to the name of the target
# processor, e.g., 68000
PROC =6502

OBJECTS = y.tab.o actions.o buildStuff1.o buildStuff2.o\
buildStuff3.o builtInFunctions.o builtInFunsSD.o debugPrint.o debugPrintSD.o\
emitBranch.o emitStuff.o encode.o errorStuff.o expressionSemantics.o fixups.o\
garbage.o initialize.o lexer.o listing.o lookups.o macrossTables.o main.o\
malloc.o object.o operandStuffSD.o parserMisc.o semanticMisc.o\
statementSemantics.o structSemantics.o tokenStrings.o

SOURCES = macross_$(PROC).y actions_$(PROC).c buildStuff1.c buildStuff2.c\
buildStuff3.c builtInFunctions.c builtInFunsSD_$(PROC).c debugPrint.c\
debugPrintSD_$(PROC).c emitBranch_$(PROC).c emitStuff.c encode.c errorStuff.c\
expressionSemantics.c fixups.c garbage.c initialize.c lexer.c listing.c\
lookups.c macrossTables_$(PROC).c main.c malloc.c object.c\
operandStuffSD_$(PROC).c parserMisc.c semanticMisc.c statementSemantics.c\
structSemantics.c tokenStrings_$(PROC).c lexerTables.h macrossGlobals.h\
macrossTypes.h operandDefs_$(PROC).h operandBody_$(PROC).h\
conditionDefs_$(PROC).h driver.c slinkyExpressions.h

HEADERS = macrossTypes.h macrossGlobals.h

.c.o:
cc -c -g -DTARGET_CPU=CPU_$(PROC) $*.c

.c.run:
cc -o $* $*.c

macross: $(OBJECTS)
cc -g -o macross $(OBJECTS)

driver: driver.c
cc -o driver driver.c

update: .mark
kessel "(cd /u0/chip/macross; make macross >&errorfyle)" &

install: macross
cp macross /u1/gg/bin/macross_tmp
strip /u1/gg/bin/macross_tmp
mv /u1/gg/bin/macross_$(PROC) /u1/gg/bin/macross_$(PROC).old
mv /u1/gg/bin/macross_tmp /u1/gg/bin/macross_$(PROC)
cp /u1/gg/bin/macross_$(PROC) /net/mycroft/u1/gg/bin
cp /u1/gg/bin/macross_$(PROC) /net/shem/u1/gg/bin
cp /u1/gg/bin/macross_$(PROC) /net/weyr/u1/gg/bin

dinstall: driver
cp driver /u1/gg/bin/driver_tmp
strip /u1/gg/bin/driver_tmp
mv /u1/gg/bin/driver_tmp /u1/gg/bin/driver/macross
cp /u1/gg/bin/driver /net/mycroft/u1/gg/bin/macross
cp /u1/gg/bin/driver /net/shem/u1/gg/bin/macross
cp /u1/gg/bin/driver /net/weyr/u1/gg/bin/macross

change:
rm *.o
rm *.tab.*
cp Makefile_68000 Makefile

move: .mark

.mark: $(SOURCES)
cp $? /net/kessel/u0/chip/macross
cp $? /net/kessel/u0/chip/macross/prof
cp $? opt
date >.mark
date >/net/kessel/u0/chip/macross/.mark
date >/net/kessel/u0/chip/macross/prof/.mark
date >opt/.mark

macrossTypes.h: macrossTypes.h operandDefs_$(PROC).h operandBody_$(PROC).h\
conditionDefs_$(PROC).h

actions.o: actions_$(PROC).c $(HEADERS)
cc -c -g -DTARGET_CPU=CPU_$(PROC) actions_$(PROC).c
mv actions_$(PROC).o actions.o

buildStuff1.o: buildStuff1.c $(HEADERS)

buildStuff2.o: buildStuff2.c $(HEADERS)

buildStuff3.o: buildStuff3.c $(HEADERS)

builtInFunctions.o: builtInFunctions.c $(HEADERS)

builtInFunsSD.o: builtInFunsSD_$(PROC).c $(HEADERS)
cc -c -g -DTARGET_CPU=CPU_$(PROC) builtInFunsSD_$(PROC).c
mv builtInFunsSD_$(PROC).o builtInFunsSD.o

debugPrint.o: debugPrint.c y.tab.h $(HEADERS)

debugPrintSD.o: debugPrintSD_$(PROC).c y.tab.h $(HEADERS)
cc -c -g -DTARGET_CPU=CPU_$(PROC) debugPrintSD_$(PROC).c
mv debugPrintSD_$(PROC).o debugPrintSD.o

emitBranch.o: emitBranch_$(PROC).c $(HEADERS)
cc -c -g -DTARGET_CPU=CPU_$(PROC) emitBranch_$(PROC).c
mv emitBranch_$(PROC).o emitBranch.o

emitStuff.o: emitStuff.c $(HEADERS)
cc -c -g -DBYTESWAPPED -DTARGET_CPU=CPU_$(PROC) emitStuff.c

encode.o: encode.c $(HEADERS)

errorStuff.o: errorStuff.c $(HEADERS)

expressionSemantics.o: expressionSemantics.c y.tab.h $(HEADERS)

fixups.o: fixups.c $(HEADERS)

garbage.o: garbage.c y.tab.h $(HEADERS)

initialize.o: initialize.c $(HEADERS)

lexer.o: lexer.c lexerTables.h y.tab.h $(HEADERS)

listing.o: listing.c $(HEADERS)

lookups.o: lookups.c $(HEADERS)

macrossTables.o: macrossTables_$(PROC).c y.tab.h macrossTypes.h
cc -c -g -DTARGET_CPU=CPU_$(PROC) macrossTables_$(PROC).c
mv macrossTables_$(PROC).o macrossTables.o

malloc.o: malloc.c

main.o: main.c $(HEADERS)

object.o: object.c $(HEADERS)

operandStuffSD.o: operandStuffSD_$(PROC).c $(HEADERS)
cc -c -g -DTARGET_CPU=CPU_$(PROC) operandStuffSD_$(PROC).c
mv operandStuffSD_$(PROC).o operandStuffSD.o

parserMisc.o: parserMisc.c y.tab.h $(HEADERS)

semanticMisc.o: semanticMisc.c $(HEADERS)

statementSemantics.o: statementSemantics.c $(HEADERS)

structSemantics.o: structSemantics.c $(HEADERS)

tokenStrings.o: tokenStrings_$(PROC).c $(HEADERS)
cc -c -g -DTARGET_CPU=CPU_$(PROC) tokenStrings_$(PROC).c
mv tokenStrings_$(PROC).o tokenStrings.o

y.tab.o: y.tab.c $(HEADERS)
cc -c -g -DYYDEBUG -DTARGET_CPU=CPU_$(PROC) y.tab.c

y.tab.c y.tab.h: macross_$(PROC).y
yacc -d macross_$(PROC).y

y.output: macross_$(PROC).y
yacc -vd macross_$(PROC).y

cleanup:
/bin/rm -f *.o y.output y.tab.c y.tab.h macross

love:
@echo "Not war?"

162 changes: 162 additions & 0 deletions Makefile_6502
Original file line number Diff line number Diff line change
@@ -0,0 +1,162 @@
.SUFFIXES: .o .c .h .run

# to make for another target CPU, redefine PROC to the name of the target
# processor, e.g., 68000
PROC =6502

OBJECTS = y.tab.o actions.o buildStuff1.o buildStuff2.o\
buildStuff3.o builtInFunctions.o builtInFunsSD.o debugPrint.o debugPrintSD.o\
emitBranch.o emitStuff.o errorStuff.o expressionSemantics.o fixups.o\
garbage.o initialize.o lexer.o listing.o lookups.o macrossTables.o main.o\
malloc.o object.o operandStuffSD.o parserMisc.o semanticMisc.o\
statementSemantics.o structSemantics.o tokenStrings.o

SOURCES = macross_$(PROC).y actions_$(PROC).c buildStuff1.c buildStuff2.c\
buildStuff3.c builtInFunctions.c builtInFunsSD_$(PROC).c debugPrint.c\
debugPrintSD_$(PROC).c emitBranch_$(PROC).c emitStuff.c errorStuff.c\
expressionSemantics.c fixups.c garbage.c initialize.c lexer.c listing.c\
lookups.c macrossTables_$(PROC).c main.c malloc.c object.c\
operandStuffSD_$(PROC).c parserMisc.c semanticMisc.c statementSemantics.c\
structSemantics.c tokenStrings_$(PROC).c lexerTables.h macrossGlobals.h\
macrossTypes.h operandDefs_$(PROC).h operandBody_$(PROC).h\
conditionDefs_$(PROC).h driver.c

HEADERS = macrossTypes.h macrossGlobals.h

.c.o:
cc -c -g -DTARGET_CPU=CPU_$(PROC) $*.c

.c.run:
cc -o $* $*.c

macross: $(OBJECTS)
cc -g -o macross $(OBJECTS)

driver: driver.c
cc -o driver driver.c

update: .mark
kessel "(cd /u0/chip/macross; make macross >&errorfyle)" &

install: macross
cp macross /u1/gg/bin/macross_tmp
strip /u1/gg/bin/macross_tmp
mv /u1/gg/bin/macross_$(PROC) /u1/gg/bin/macross_$(PROC).old
mv /u1/gg/bin/macross_tmp /u1/gg/bin/macross_$(PROC)
cp /u1/gg/bin/macross_$(PROC) /net/mycroft/u1/gg/bin
cp /u1/gg/bin/macross_$(PROC) /net/shem/u1/gg/bin
cp /u1/gg/bin/macross_$(PROC) /net/weyr/u1/gg/bin

dinstall: driver
cp driver /u1/gg/bin/driver_tmp
strip /u1/gg/bin/driver_tmp
mv /u1/gg/bin/driver_tmp /u1/gg/bin/driver/macross
cp /u1/gg/bin/driver /net/mycroft/u1/gg/bin/macross
cp /u1/gg/bin/driver /net/shem/u1/gg/bin/macross
cp /u1/gg/bin/driver /net/weyr/u1/gg/bin/macross

change:
rm *.o
rm *.tab.*
cp Makefile_68000 Makefile

move: .mark

.mark: $(SOURCES)
cp $? /net/kessel/u0/chip/macross
cp $? /net/kessel/u0/chip/macross/prof
cp $? opt
date >.mark
date >/net/kessel/u0/chip/macross/.mark
date >/net/kessel/u0/chip/macross/prof/.mark
date >opt/.mark

macrossTypes.h: macrossTypes.h operandDefs_$(PROC).h operandBody_$(PROC).h\
conditionDefs_$(PROC).h

actions.o: actions_$(PROC).c $(HEADERS)
cc -c -g -DTARGET_CPU=CPU_$(PROC) actions_$(PROC).c
mv actions_$(PROC).o actions.o

buildStuff1.o: buildStuff1.c $(HEADERS)

buildStuff2.o: buildStuff2.c $(HEADERS)

buildStuff3.o: buildStuff3.c $(HEADERS)

builtInFunctions.o: builtInFunctions.c $(HEADERS)

builtInFunsSD.o: builtInFunsSD_$(PROC).c $(HEADERS)
cc -c -g -DTARGET_CPU=CPU_$(PROC) builtInFunsSD_$(PROC).c
mv builtInFunsSD_$(PROC).o builtInFunsSD.o

debugPrint.o: debugPrint.c y.tab.h $(HEADERS)

debugPrintSD.o: debugPrintSD_$(PROC).c y.tab.h $(HEADERS)
cc -c -g -DTARGET_CPU=CPU_$(PROC) debugPrintSD_$(PROC).c
mv debugPrintSD_$(PROC).o debugPrintSD.o

emitBranch.o: emitBranch_$(PROC).c $(HEADERS)
cc -c -g -DTARGET_CPU=CPU_$(PROC) emitBranch_$(PROC).c
mv emitBranch_$(PROC).o emitBranch.o

emitStuff.o: emitStuff.c $(HEADERS)
cc -c -g -DBYTESWAPPED -DTARGET_CPU=CPU_$(PROC) emitStuff.c

errorStuff.o: errorStuff.c $(HEADERS)

expressionSemantics.o: expressionSemantics.c y.tab.h $(HEADERS)

fixups.o: fixups.c $(HEADERS)

garbage.o: garbage.c y.tab.h $(HEADERS)

initialize.o: initialize.c $(HEADERS)

lexer.o: lexer.c lexerTables.h y.tab.h $(HEADERS)

listing.o: listing.c $(HEADERS)

lookups.o: lookups.c $(HEADERS)

macrossTables.o: macrossTables_$(PROC).c y.tab.h macrossTypes.h
cc -c -g -DTARGET_CPU=CPU_$(PROC) macrossTables_$(PROC).c
mv macrossTables_$(PROC).o macrossTables.o

malloc.o: malloc.c

main.o: main.c $(HEADERS)

object.o: object.c $(HEADERS)

operandStuffSD.o: operandStuffSD_$(PROC).c $(HEADERS)
cc -c -g -DTARGET_CPU=CPU_$(PROC) operandStuffSD_$(PROC).c
mv operandStuffSD_$(PROC).o operandStuffSD.o

parserMisc.o: parserMisc.c y.tab.h $(HEADERS)

semanticMisc.o: semanticMisc.c $(HEADERS)

statementSemantics.o: statementSemantics.c $(HEADERS)

structSemantics.o: structSemantics.c $(HEADERS)

tokenStrings.o: tokenStrings_$(PROC).c $(HEADERS)
cc -c -g -DTARGET_CPU=CPU_$(PROC) tokenStrings_$(PROC).c
mv tokenStrings_$(PROC).o tokenStrings.o

y.tab.o: y.tab.c $(HEADERS)
cc -c -g -DYYDEBUG -DTARGET_CPU=CPU_$(PROC) y.tab.c

y.tab.c y.tab.h: macross_$(PROC).y
yacc -d macross_$(PROC).y

y.output: macross_$(PROC).y
yacc -vd macross_$(PROC).y

cleanup:
/bin/rm -f *.o y.output y.tab.c y.tab.h macross

love:
@echo "Not war?"

Loading

0 comments on commit 98a3655

Please sign in to comment.