--- jikes.orig/src/Makefile.amiga Sun May 2 11:47:53 1999 +++ jikes/src/Makefile.amiga Sun May 2 11:50:18 1999 @@ -0,0 +1,408 @@ +# Generated automatically from Makefile.in by configure. +# $Id: Makefile.in,v 1.1 1999/03/09 14:49:40 shields Exp $ +JIKES_VERSION=0.46 + +CC=/bin/g++ +CCREQUIREDFLAGS=-funsigned-char -c -DTYPE_bool -ansi -DBIGENDIAN -I. +CCDEBUGFLAGS=-DTEST -g +CCOPTFLAGS=-O0 -fomit-frame-pointer -m68020-60 -m68881 +CCFLAGS=$(CCREQUIREDFLAGS) $(CCOPTFLAGS) -Dstat=mystat -Dfopen=myfopen -Dopendir=myopendir +CFLAGS=$(CCOPTFLAGS) +ERASE=rm -f +EXECUTABLE=jikes +LD=/bin/g++ +LDFLAGS=-L. -o $(EXECUTABLE) -s -m68020-60 -m68881 -noixemul +SYSOBJECTS=-lnix -ldebug + + + +BUILD_DIR=. + +srcdir = . +prefix = /gg +exec_prefix = ${prefix} + + +# +# You should not need to edit below here +# + + +all: $(EXECUTABLE) + +clean: + $(ERASE) $(EXECUTABLE) + $(ERASE) $(OBJECTS) + +distclean: clean + $(ERASE) config.cache config.log config.status + $(ERASE) Makefile + +install: all + mkdir -p $(exec_prefix)/bin + cp $(EXECUTABLE) $(exec_prefix)/bin + +OBJECTS=jikes.o scanner.o code.o zip.o unzip.o \ + ast.o diagnose.o parser.o lpginput.o javaact.o \ + error.o set.o symbol.o lookup.o long.o depend.o \ + stream.o op.o control.o modifier.o system.o \ + bytecode.o body.o decl.o definite.o dump.o expr.o \ + getclass.o init.o double.o config.o option.o \ + incrmnt.o case.o tab.o amiga.o + +$(EXECUTABLE): $(OBJECTS) + $(LD) $(LDFLAGS) $(OBJECTS) $(SYSOBJECTS) + + +javasym.h: $(srcdir)/java.g + jikespg $(srcdir)/java.g + $(ERASE) java.l + +javadef.h: $(srcdir)/java.g + jikespg $(srcdir)/java.g + $(ERASE) java.l + +javadcl.h: $(srcdir)/java.g + jikespg $(srcdir)/java.g + $(ERASE) java.l + +javaprs.h: $(srcdir)/java.g + jikespg $(srcdir)/java.g + $(ERASE) java.l + + +ast.o: $(srcdir)/ast.cpp $(srcdir)/config.h $(srcdir)/unicode.h \ + $(srcdir)/bool.h $(srcdir)/code.h $(srcdir)/case.h $(srcdir)/ast.h \ + $(srcdir)/stream.h $(srcdir)/javadef.h $(srcdir)/javasym.h \ + $(srcdir)/tuple.h $(srcdir)/tab.h $(srcdir)/lookup.h $(srcdir)/long.h \ + $(srcdir)/double.h $(srcdir)/symbol.h $(srcdir)/option.h \ + $(srcdir)/depend.h $(srcdir)/access.h + $(CC) $(CCFLAGS) $(srcdir)/ast.cpp + +body.o: $(srcdir)/body.cpp $(srcdir)/config.h $(srcdir)/semantic.h \ + $(srcdir)/ast.h $(srcdir)/stream.h $(srcdir)/javadef.h \ + $(srcdir)/javasym.h $(srcdir)/tuple.h $(srcdir)/bool.h \ + $(srcdir)/tab.h $(srcdir)/lookup.h $(srcdir)/long.h \ + $(srcdir)/double.h $(srcdir)/unicode.h $(srcdir)/code.h \ + $(srcdir)/case.h $(srcdir)/symbol.h $(srcdir)/option.h \ + $(srcdir)/depend.h $(srcdir)/access.h $(srcdir)/diagnose.h \ + $(srcdir)/parser.h $(srcdir)/lpginput.h $(srcdir)/javaprs.h \ + $(srcdir)/javaact.h $(srcdir)/error.h $(srcdir)/control.h $(srcdir)/set.h + $(CC) $(CCFLAGS) $(srcdir)/body.cpp + +bytecode.o: $(srcdir)/bytecode.cpp $(srcdir)/config.h $(srcdir)/ast.h \ + $(srcdir)/stream.h $(srcdir)/javadef.h $(srcdir)/javasym.h \ + $(srcdir)/tuple.h $(srcdir)/bool.h $(srcdir)/tab.h \ + $(srcdir)/lookup.h $(srcdir)/long.h $(srcdir)/double.h \ + $(srcdir)/unicode.h $(srcdir)/code.h $(srcdir)/case.h \ + $(srcdir)/symbol.h $(srcdir)/option.h $(srcdir)/depend.h \ + $(srcdir)/access.h $(srcdir)/bytecode.h $(srcdir)/class.h \ + $(srcdir)/semantic.h $(srcdir)/diagnose.h $(srcdir)/parser.h \ + $(srcdir)/lpginput.h $(srcdir)/javaprs.h $(srcdir)/javaact.h \ + $(srcdir)/error.h $(srcdir)/control.h $(srcdir)/set.h \ + $(srcdir)/op.h $(srcdir)/table.h + $(CC) $(CCFLAGS) $(srcdir)/bytecode.cpp + +config.o: $(srcdir)/config.cpp $(srcdir)/config.h + $(CC) $(CCFLAGS) $(srcdir)/config.cpp + +code.o: $(srcdir)/code.cpp $(srcdir)/code.h $(srcdir)/config.h $(srcdir)/bool.h + $(CC) $(CCFLAGS) $(srcdir)/code.cpp + +control.o: $(srcdir)/control.cpp $(srcdir)/config.h $(srcdir)/control.h \ + $(srcdir)/option.h $(srcdir)/bool.h $(srcdir)/code.h \ + $(srcdir)/tuple.h $(srcdir)/symbol.h $(srcdir)/stream.h \ + $(srcdir)/javadef.h $(srcdir)/javasym.h $(srcdir)/tab.h \ + $(srcdir)/lookup.h $(srcdir)/long.h $(srcdir)/double.h \ + $(srcdir)/unicode.h $(srcdir)/case.h $(srcdir)/depend.h \ + $(srcdir)/access.h $(srcdir)/set.h $(srcdir)/scanner.h \ + $(srcdir)/parser.h $(srcdir)/lpginput.h $(srcdir)/javaprs.h \ + $(srcdir)/javaact.h $(srcdir)/semantic.h $(srcdir)/ast.h \ + $(srcdir)/diagnose.h $(srcdir)/error.h $(srcdir)/bytecode.h \ + $(srcdir)/class.h $(srcdir)/op.h + $(CC) $(CCFLAGS) $(srcdir)/control.cpp + +case.o: $(srcdir)/case.cpp $(srcdir)/config.h $(srcdir)/case.h $(srcdir)/bool.h + $(CC) $(CCFLAGS) $(srcdir)/case.cpp + +diagnose.o: $(srcdir)/diagnose.cpp $(srcdir)/config.h $(srcdir)/diagnose.h \ + $(srcdir)/parser.h $(srcdir)/lpginput.h $(srcdir)/stream.h \ + $(srcdir)/javadef.h $(srcdir)/javasym.h $(srcdir)/tuple.h \ + $(srcdir)/bool.h $(srcdir)/tab.h $(srcdir)/lookup.h \ + $(srcdir)/long.h $(srcdir)/double.h $(srcdir)/unicode.h \ + $(srcdir)/code.h $(srcdir)/case.h $(srcdir)/javaprs.h \ + $(srcdir)/javaact.h $(srcdir)/control.h $(srcdir)/option.h \ + $(srcdir)/symbol.h $(srcdir)/depend.h $(srcdir)/access.h \ + $(srcdir)/set.h $(srcdir)/semantic.h $(srcdir)/ast.h \ + $(srcdir)/error.h $(srcdir)/spell.h + $(CC) $(CCFLAGS) $(srcdir)/diagnose.cpp + +decl.o: $(srcdir)/decl.cpp $(srcdir)/config.h $(srcdir)/semantic.h \ + $(srcdir)/ast.h $(srcdir)/stream.h $(srcdir)/javadef.h \ + $(srcdir)/javasym.h $(srcdir)/tuple.h $(srcdir)/bool.h \ + $(srcdir)/tab.h $(srcdir)/lookup.h $(srcdir)/long.h \ + $(srcdir)/double.h $(srcdir)/unicode.h $(srcdir)/code.h \ + $(srcdir)/case.h $(srcdir)/symbol.h $(srcdir)/option.h \ + $(srcdir)/depend.h $(srcdir)/access.h $(srcdir)/diagnose.h \ + $(srcdir)/parser.h $(srcdir)/lpginput.h $(srcdir)/javaprs.h \ + $(srcdir)/javaact.h $(srcdir)/error.h $(srcdir)/control.h \ + $(srcdir)/set.h $(srcdir)/table.h + $(CC) $(CCFLAGS) $(srcdir)/decl.cpp + +definite.o: $(srcdir)/definite.cpp $(srcdir)/config.h $(srcdir)/semantic.h \ + $(srcdir)/ast.h $(srcdir)/stream.h $(srcdir)/javadef.h \ + $(srcdir)/javasym.h $(srcdir)/tuple.h $(srcdir)/bool.h \ + $(srcdir)/tab.h $(srcdir)/lookup.h $(srcdir)/long.h \ + $(srcdir)/double.h $(srcdir)/unicode.h $(srcdir)/code.h \ + $(srcdir)/case.h $(srcdir)/symbol.h $(srcdir)/option.h \ + $(srcdir)/depend.h $(srcdir)/access.h $(srcdir)/diagnose.h \ + $(srcdir)/parser.h $(srcdir)/lpginput.h $(srcdir)/javaprs.h \ + $(srcdir)/javaact.h $(srcdir)/error.h $(srcdir)/control.h \ + $(srcdir)/set.h + $(CC) $(CCFLAGS) $(srcdir)/definite.cpp + +depend.o: $(srcdir)/depend.cpp $(srcdir)/config.h $(srcdir)/ast.h \ + $(srcdir)/stream.h $(srcdir)/javadef.h $(srcdir)/javasym.h \ + $(srcdir)/tuple.h $(srcdir)/bool.h $(srcdir)/tab.h \ + $(srcdir)/lookup.h $(srcdir)/long.h $(srcdir)/double.h \ + $(srcdir)/unicode.h $(srcdir)/code.h $(srcdir)/case.h \ + $(srcdir)/symbol.h $(srcdir)/option.h $(srcdir)/depend.h \ + $(srcdir)/access.h $(srcdir)/semantic.h $(srcdir)/diagnose.h \ + $(srcdir)/parser.h $(srcdir)/lpginput.h $(srcdir)/javaprs.h \ + $(srcdir)/javaact.h $(srcdir)/error.h $(srcdir)/control.h \ + $(srcdir)/set.h + $(CC) $(CCFLAGS) $(srcdir)/depend.cpp + +double.o: $(srcdir)/double.cpp $(srcdir)/config.h $(srcdir)/double.h \ + $(srcdir)/bool.h $(srcdir)/long.h + $(CC) $(CCFLAGS) $(srcdir)/double.cpp + +dump.o: $(srcdir)/dump.cpp $(srcdir)/config.h $(srcdir)/javasym.h \ + $(srcdir)/control.h $(srcdir)/option.h $(srcdir)/bool.h \ + $(srcdir)/code.h $(srcdir)/tuple.h $(srcdir)/symbol.h \ + $(srcdir)/stream.h $(srcdir)/javadef.h $(srcdir)/tab.h \ + $(srcdir)/lookup.h $(srcdir)/long.h $(srcdir)/double.h \ + $(srcdir)/unicode.h $(srcdir)/case.h $(srcdir)/depend.h \ + $(srcdir)/access.h $(srcdir)/set.h + $(CC) $(CCFLAGS) $(srcdir)/dump.cpp + +error.o: $(srcdir)/error.cpp $(srcdir)/config.h $(srcdir)/unicode.h \ + $(srcdir)/bool.h $(srcdir)/code.h $(srcdir)/case.h \ + $(srcdir)/error.h $(srcdir)/stream.h $(srcdir)/javadef.h \ + $(srcdir)/javasym.h $(srcdir)/tuple.h $(srcdir)/tab.h \ + $(srcdir)/lookup.h $(srcdir)/long.h $(srcdir)/double.h \ + $(srcdir)/control.h $(srcdir)/option.h $(srcdir)/symbol.h \ + $(srcdir)/depend.h $(srcdir)/access.h $(srcdir)/set.h \ + $(srcdir)/semantic.h $(srcdir)/ast.h $(srcdir)/diagnose.h \ + $(srcdir)/parser.h $(srcdir)/lpginput.h $(srcdir)/javaprs.h \ + $(srcdir)/javaact.h + $(CC) $(CCFLAGS) $(srcdir)/error.cpp + +expr.o: $(srcdir)/expr.cpp $(srcdir)/double.h $(srcdir)/config.h \ + $(srcdir)/bool.h $(srcdir)/parser.h $(srcdir)/lpginput.h \ + $(srcdir)/stream.h $(srcdir)/javadef.h $(srcdir)/javasym.h \ + $(srcdir)/tuple.h $(srcdir)/tab.h $(srcdir)/lookup.h \ + $(srcdir)/long.h $(srcdir)/unicode.h $(srcdir)/code.h \ + $(srcdir)/case.h $(srcdir)/javaprs.h $(srcdir)/javaact.h \ + $(srcdir)/semantic.h $(srcdir)/ast.h $(srcdir)/symbol.h \ + $(srcdir)/option.h $(srcdir)/depend.h $(srcdir)/access.h \ + $(srcdir)/diagnose.h $(srcdir)/error.h $(srcdir)/control.h \ + $(srcdir)/set.h $(srcdir)/table.h $(srcdir)/spell.h + $(CC) $(CCFLAGS) $(srcdir)/expr.cpp + +getclass.o: $(srcdir)/getclass.cpp $(srcdir)/config.h $(srcdir)/control.h \ + $(srcdir)/option.h $(srcdir)/bool.h $(srcdir)/code.h \ + $(srcdir)/tuple.h $(srcdir)/symbol.h $(srcdir)/stream.h \ + $(srcdir)/javadef.h $(srcdir)/javasym.h $(srcdir)/tab.h \ + $(srcdir)/lookup.h $(srcdir)/long.h $(srcdir)/double.h \ + $(srcdir)/unicode.h $(srcdir)/case.h $(srcdir)/depend.h \ + $(srcdir)/access.h $(srcdir)/set.h $(srcdir)/semantic.h \ + $(srcdir)/ast.h $(srcdir)/diagnose.h $(srcdir)/parser.h \ + $(srcdir)/lpginput.h $(srcdir)/javaprs.h $(srcdir)/javaact.h \ + $(srcdir)/error.h $(srcdir)/getclass.h $(srcdir)/zip.h \ + $(srcdir)/unzip.h + $(CC) $(CCFLAGS) $(srcdir)/getclass.cpp + +incrmnt.o: $(srcdir)/incrmnt.cpp $(srcdir)/config.h $(srcdir)/control.h \ + $(srcdir)/option.h $(srcdir)/bool.h $(srcdir)/code.h \ + $(srcdir)/tuple.h $(srcdir)/symbol.h $(srcdir)/stream.h \ + $(srcdir)/javadef.h $(srcdir)/javasym.h $(srcdir)/tab.h \ + $(srcdir)/lookup.h $(srcdir)/long.h $(srcdir)/double.h \ + $(srcdir)/unicode.h $(srcdir)/case.h $(srcdir)/depend.h \ + $(srcdir)/access.h $(srcdir)/set.h $(srcdir)/scanner.h \ + $(srcdir)/parser.h $(srcdir)/lpginput.h $(srcdir)/javaprs.h \ + $(srcdir)/javaact.h $(srcdir)/semantic.h $(srcdir)/ast.h \ + $(srcdir)/diagnose.h $(srcdir)/error.h + $(CC) $(CCFLAGS) $(srcdir)/incrmnt.cpp + +init.o: $(srcdir)/init.cpp $(srcdir)/config.h $(srcdir)/semantic.h \ + $(srcdir)/ast.h $(srcdir)/stream.h $(srcdir)/javadef.h \ + $(srcdir)/javasym.h $(srcdir)/tuple.h $(srcdir)/bool.h \ + $(srcdir)/tab.h $(srcdir)/lookup.h $(srcdir)/long.h \ + $(srcdir)/double.h $(srcdir)/unicode.h $(srcdir)/code.h \ + $(srcdir)/case.h $(srcdir)/symbol.h $(srcdir)/option.h \ + $(srcdir)/depend.h $(srcdir)/access.h $(srcdir)/diagnose.h \ + $(srcdir)/parser.h $(srcdir)/lpginput.h $(srcdir)/javaprs.h \ + $(srcdir)/javaact.h $(srcdir)/error.h $(srcdir)/control.h $(srcdir)/set.h + $(CC) $(CCFLAGS) $(srcdir)/init.cpp + +javaact.o: $(srcdir)/javaact.cpp $(srcdir)/config.h $(srcdir)/parser.h \ + $(srcdir)/lpginput.h $(srcdir)/stream.h $(srcdir)/javadef.h \ + $(srcdir)/javasym.h $(srcdir)/tuple.h $(srcdir)/bool.h \ + $(srcdir)/tab.h $(srcdir)/lookup.h $(srcdir)/long.h \ + $(srcdir)/double.h $(srcdir)/unicode.h $(srcdir)/code.h \ + $(srcdir)/case.h $(srcdir)/javaprs.h $(srcdir)/javaact.h \ + $(srcdir)/ast.h $(srcdir)/symbol.h $(srcdir)/option.h \ + $(srcdir)/depend.h $(srcdir)/access.h + $(CC) $(CCFLAGS) $(srcdir)/javaact.cpp + +jikes.o: $(srcdir)/jikes.cpp $(srcdir)/config.h $(srcdir)/control.h \ + $(srcdir)/option.h $(srcdir)/bool.h $(srcdir)/code.h \ + $(srcdir)/tuple.h $(srcdir)/symbol.h $(srcdir)/stream.h \ + $(srcdir)/javadef.h $(srcdir)/javasym.h $(srcdir)/tab.h \ + $(srcdir)/lookup.h $(srcdir)/long.h $(srcdir)/double.h \ + $(srcdir)/unicode.h $(srcdir)/case.h $(srcdir)/depend.h \ + $(srcdir)/access.h $(srcdir)/set.h + $(CC) $(CCFLAGS) $(srcdir)/jikes.cpp + +long.o: $(srcdir)/long.cpp $(srcdir)/config.h $(srcdir)/long.h \ + $(srcdir)/bool.h $(srcdir)/double.h + $(CC) $(CCFLAGS) $(srcdir)/long.cpp + +lookup.o: $(srcdir)/lookup.cpp $(srcdir)/config.h $(srcdir)/lookup.h \ + $(srcdir)/tuple.h $(srcdir)/bool.h $(srcdir)/long.h \ + $(srcdir)/double.h $(srcdir)/symbol.h $(srcdir)/code.h \ + $(srcdir)/stream.h $(srcdir)/javadef.h $(srcdir)/javasym.h \ + $(srcdir)/tab.h $(srcdir)/unicode.h $(srcdir)/case.h \ + $(srcdir)/option.h $(srcdir)/depend.h $(srcdir)/access.h \ + $(srcdir)/ast.h + $(CC) $(CCFLAGS) $(srcdir)/lookup.cpp + +lpginput.o: $(srcdir)/lpginput.cpp $(srcdir)/config.h $(srcdir)/lpginput.h \ + $(srcdir)/stream.h $(srcdir)/javadef.h $(srcdir)/javasym.h \ + $(srcdir)/tuple.h $(srcdir)/bool.h $(srcdir)/tab.h \ + $(srcdir)/lookup.h $(srcdir)/long.h $(srcdir)/double.h \ + $(srcdir)/unicode.h $(srcdir)/code.h $(srcdir)/case.h \ + $(srcdir)/javaprs.h $(srcdir)/javadcl.h + $(CC) $(CCFLAGS) $(srcdir)/lpginput.cpp + +modifier.o: $(srcdir)/modifier.cpp $(srcdir)/config.h $(srcdir)/semantic.h \ + $(srcdir)/ast.h $(srcdir)/stream.h $(srcdir)/javadef.h \ + $(srcdir)/javasym.h $(srcdir)/tuple.h $(srcdir)/bool.h \ + $(srcdir)/tab.h $(srcdir)/lookup.h $(srcdir)/long.h \ + $(srcdir)/double.h $(srcdir)/unicode.h $(srcdir)/code.h \ + $(srcdir)/case.h $(srcdir)/symbol.h $(srcdir)/option.h \ + $(srcdir)/depend.h $(srcdir)/access.h $(srcdir)/diagnose.h \ + $(srcdir)/parser.h $(srcdir)/lpginput.h $(srcdir)/javaprs.h \ + $(srcdir)/javaact.h $(srcdir)/error.h $(srcdir)/control.h \ + $(srcdir)/set.h + $(CC) $(CCFLAGS) $(srcdir)/modifier.cpp + +op.o: $(srcdir)/op.cpp $(srcdir)/config.h $(srcdir)/op.h $(srcdir)/tuple.h \ + $(srcdir)/bool.h $(srcdir)/class.h $(srcdir)/semantic.h $(srcdir)/ast.h \ + $(srcdir)/stream.h $(srcdir)/javadef.h $(srcdir)/javasym.h \ + $(srcdir)/tab.h $(srcdir)/lookup.h $(srcdir)/long.h $(srcdir)/double.h \ + $(srcdir)/unicode.h $(srcdir)/code.h $(srcdir)/case.h $(srcdir)/symbol.h \ + $(srcdir)/option.h $(srcdir)/depend.h $(srcdir)/access.h \ + $(srcdir)/diagnose.h $(srcdir)/parser.h $(srcdir)/lpginput.h \ + $(srcdir)/javaprs.h $(srcdir)/javaact.h $(srcdir)/error.h \ + $(srcdir)/control.h $(srcdir)/set.h + $(CC) $(CCFLAGS) $(srcdir)/op.cpp + +option.o: $(srcdir)/option.cpp $(srcdir)/option.h $(srcdir)/config.h \ + $(srcdir)/bool.h $(srcdir)/code.h $(srcdir)/tuple.h \ + $(srcdir)/javasym.h $(srcdir)/error.h $(srcdir)/stream.h \ + $(srcdir)/javadef.h $(srcdir)/tab.h $(srcdir)/lookup.h \ + $(srcdir)/long.h $(srcdir)/double.h $(srcdir)/unicode.h \ + $(srcdir)/case.h + $(CC) $(CCFLAGS) $(srcdir)/option.cpp + +parser.o: $(srcdir)/parser.cpp $(srcdir)/config.h $(srcdir)/parser.h \ + $(srcdir)/lpginput.h $(srcdir)/stream.h $(srcdir)/javadef.h \ + $(srcdir)/javasym.h $(srcdir)/tuple.h $(srcdir)/bool.h \ + $(srcdir)/tab.h $(srcdir)/lookup.h $(srcdir)/long.h \ + $(srcdir)/double.h $(srcdir)/unicode.h $(srcdir)/code.h \ + $(srcdir)/case.h $(srcdir)/javaprs.h $(srcdir)/javaact.h \ + $(srcdir)/ast.h $(srcdir)/symbol.h $(srcdir)/option.h \ + $(srcdir)/depend.h $(srcdir)/access.h + $(CC) $(CCFLAGS) $(srcdir)/parser.cpp + +scanner.o: $(srcdir)/scanner.cpp $(srcdir)/config.h $(srcdir)/scanner.h \ + $(srcdir)/code.h $(srcdir)/bool.h $(srcdir)/javadef.h \ + $(srcdir)/javasym.h $(srcdir)/stream.h $(srcdir)/tuple.h \ + $(srcdir)/tab.h $(srcdir)/lookup.h $(srcdir)/long.h \ + $(srcdir)/double.h $(srcdir)/unicode.h $(srcdir)/case.h \ + $(srcdir)/control.h $(srcdir)/option.h $(srcdir)/symbol.h \ + $(srcdir)/depend.h $(srcdir)/access.h $(srcdir)/set.h $(srcdir)/error.h + $(CC) $(CCFLAGS) $(srcdir)/scanner.cpp + +set.o: $(srcdir)/set.cpp $(srcdir)/set.h $(srcdir)/config.h \ + $(srcdir)/symbol.h $(srcdir)/code.h $(srcdir)/bool.h \ + $(srcdir)/stream.h $(srcdir)/javadef.h $(srcdir)/javasym.h \ + $(srcdir)/tuple.h $(srcdir)/tab.h $(srcdir)/lookup.h \ + $(srcdir)/long.h $(srcdir)/double.h $(srcdir)/unicode.h \ + $(srcdir)/case.h $(srcdir)/option.h $(srcdir)/depend.h \ + $(srcdir)/access.h + $(CC) $(CCFLAGS) $(srcdir)/set.cpp + +stream.o: $(srcdir)/stream.cpp $(srcdir)/config.h $(srcdir)/stream.h \ + $(srcdir)/javadef.h $(srcdir)/javasym.h $(srcdir)/tuple.h \ + $(srcdir)/bool.h $(srcdir)/tab.h $(srcdir)/lookup.h \ + $(srcdir)/long.h $(srcdir)/double.h $(srcdir)/unicode.h \ + $(srcdir)/code.h $(srcdir)/case.h $(srcdir)/zip.h \ + $(srcdir)/unzip.h $(srcdir)/symbol.h $(srcdir)/option.h \ + $(srcdir)/depend.h $(srcdir)/access.h $(srcdir)/control.h \ + $(srcdir)/set.h $(srcdir)/semantic.h $(srcdir)/ast.h \ + $(srcdir)/diagnose.h $(srcdir)/parser.h $(srcdir)/lpginput.h \ + $(srcdir)/javaprs.h $(srcdir)/javaact.h $(srcdir)/error.h + $(CC) $(CCFLAGS) $(srcdir)/stream.cpp + +symbol.o: $(srcdir)/symbol.cpp $(srcdir)/config.h $(srcdir)/stream.h \ + $(srcdir)/javadef.h $(srcdir)/javasym.h $(srcdir)/tuple.h \ + $(srcdir)/bool.h $(srcdir)/tab.h $(srcdir)/lookup.h \ + $(srcdir)/long.h $(srcdir)/double.h $(srcdir)/unicode.h \ + $(srcdir)/code.h $(srcdir)/case.h $(srcdir)/control.h \ + $(srcdir)/option.h $(srcdir)/symbol.h $(srcdir)/depend.h \ + $(srcdir)/access.h $(srcdir)/set.h $(srcdir)/ast.h \ + $(srcdir)/semantic.h $(srcdir)/diagnose.h $(srcdir)/parser.h \ + $(srcdir)/lpginput.h $(srcdir)/javaprs.h $(srcdir)/javaact.h \ + $(srcdir)/error.h $(srcdir)/table.h $(srcdir)/zip.h $(srcdir)/unzip.h + $(CC) $(CCFLAGS) $(srcdir)/symbol.cpp + +system.o: $(srcdir)/system.cpp $(srcdir)/config.h $(srcdir)/control.h \ + $(srcdir)/option.h $(srcdir)/bool.h $(srcdir)/code.h \ + $(srcdir)/tuple.h $(srcdir)/symbol.h $(srcdir)/stream.h \ + $(srcdir)/javadef.h $(srcdir)/javasym.h $(srcdir)/tab.h \ + $(srcdir)/lookup.h $(srcdir)/long.h $(srcdir)/double.h \ + $(srcdir)/unicode.h $(srcdir)/case.h $(srcdir)/depend.h \ + $(srcdir)/access.h $(srcdir)/set.h $(srcdir)/semantic.h \ + $(srcdir)/ast.h $(srcdir)/diagnose.h $(srcdir)/parser.h \ + $(srcdir)/lpginput.h $(srcdir)/javaprs.h $(srcdir)/javaact.h \ + $(srcdir)/error.h $(srcdir)/zip.h $(srcdir)/unzip.h + $(CC) $(CCFLAGS) $(srcdir)/system.cpp + +tab.o: $(srcdir)/tab.h $(srcdir)/tab.cpp $(srcdir)/config.h + $(CC) $(CCFLAGS) $(srcdir)/tab.cpp + +unzip.o: $(srcdir)/unzip.cpp $(srcdir)/config.h $(srcdir)/unzip.h + $(CC) $(CCFLAGS) $(srcdir)/unzip.cpp + +wom.o: $(srcdir)/wom.cpp $(srcdir)/config.h $(srcdir)/semantic.h \ + $(srcdir)/ast.h $(srcdir)/stream.h $(srcdir)/javadef.h \ + $(srcdir)/javasym.h $(srcdir)/tuple.h $(srcdir)/bool.h \ + $(srcdir)/tab.h $(srcdir)/lookup.h $(srcdir)/long.h \ + $(srcdir)/double.h $(srcdir)/unicode.h $(srcdir)/code.h \ + $(srcdir)/case.h $(srcdir)/symbol.h $(srcdir)/option.h \ + $(srcdir)/depend.h $(srcdir)/access.h $(srcdir)/diagnose.h \ + $(srcdir)/parser.h $(srcdir)/lpginput.h $(srcdir)/javaprs.h \ + $(srcdir)/javaact.h $(srcdir)/error.h $(srcdir)/control.h $(srcdir)/set.h + $(CC) $(CCFLAGS) $(srcdir)/wom.cpp + +zip.o: $(srcdir)/zip.cpp $(srcdir)/config.h $(srcdir)/control.h \ + $(srcdir)/option.h $(srcdir)/bool.h $(srcdir)/code.h $(srcdir)/tuple.h \ + $(srcdir)/symbol.h $(srcdir)/stream.h $(srcdir)/javadef.h \ + $(srcdir)/javasym.h $(srcdir)/tab.h $(srcdir)/lookup.h $(srcdir)/long.h \ + $(srcdir)/double.h $(srcdir)/unicode.h $(srcdir)/case.h \ + $(srcdir)/depend.h $(srcdir)/access.h $(srcdir)/set.h \ + $(srcdir)/zip.h $(srcdir)/unzip.h + $(CC) $(CCFLAGS) $(srcdir)/zip.cpp --- jikes.orig/src/README.AMIGA Sun May 2 11:52:13 1999 +++ jikes/src/README.AMIGA Sun May 2 20:00:19 1999 @@ -0,0 +1,40 @@ +To build jikes on the Amiga, you can either run the configure script, +e.g., "configure --prefix=/gg" from sh and tweak the resulting Makefile, +or simply copy Makefile.amiga to Makefile. + +Before typing "make", you may want to make the following changes to the +Makefile: +* Change the CPU and FPU options. +* Change the optimization level. Note that using -O2 will produce a binary + that is about a megabyte larger, and the resulting gains in compilation + time will be overwhelmed by the additional loading time. Also note that + you will need at least 70M of memory to compile jikes with -O2, i.e., + you will most likely need to use VMM, and that on a 68040@28MHz it + takes about a day to produce the optimized binary. In other words, + don't bother. + +INSTALLATION: +Simply copy the jikes executable somewhere in your path. + +USAGE: +Set either the CLASSPATH or the JIKESPATH environment variable to point +to the directories and zip/jar files that you want your compiler to use. +E.g., if you are using Kaffe, you can say: +setenv CLASSPATH "GG:share/kaffe/Klasses.jar;GG:share/kaffe/Pizza.jar;." +Separate the path components using semicolons. You can use UNIX "." and ".." +notation for the current directory and for the parent directory of a +directory. + +If you find a bug in the Amiga port, you can contact me at kyrimis@cti.gr +and I'll see what I can do. + +Kriton Kyrimis. + +****************************************************************************** +This software is subject to the terms of the IBM Jikes Compiler +License Agreement available at the following URL: +http://www.ibm.com/research/jikes. Copyright (C) 1996, 1999, +International Business Machines Corporation and others. All Rights +Reserved. You must accept the terms of that agreement to use this +software. +****************************************************************************** --- jikes.orig/src/amiga.c Sun May 2 11:47:48 1999 +++ jikes/src/amiga.c Fri Apr 30 16:33:14 1999 @@ -0,0 +1,118 @@ +#include +#include +#include +#include +#include +#include +#include + +__BEGIN_DECLS +/** + * Provide wrappers for the stat, fopen, and opendir functions that massage + * the file names given to them as arguments so that UNIX "." and ".." + * path names are translated to their AmigaOS equivalents. This is done so + * that no intervention is done in terms of file semantics to the jikes + * source. + */ +static char buf[MAXPATHLEN+1]; +static char cwd[MAXPATHLEN+1]; +static char pathComponent[MAXPATHLEN+1]; + +static void ix_out(char *s) +{ + int ptr; + + if (strcmp(s, ".") == '\0') { + if (buf[0] == '\0') { + strcat(buf, cwd); + }else{ + ptr = strlen(buf)-1; + if (buf[ptr] == '/') { + buf[ptr] = '\0'; + } + } + }else{ + if (strcmp(s, "..") != 0) { + strcat(buf, s); + } + } +} + +static char * +ix_path(const char *path) +{ + int len; + char sep[2]; + int appendSep, skipNext = 0; + int i, j; + + buf[0] = '\0'; + cwd[0] = '\0'; + pathComponent[0] = '\0'; + sep[1] = '\0'; + getcwd(cwd, sizeof(cwd)); + len = strlen(path); + + for (i=0, j=0; i 0) { + pathComponent[j] = '\0'; + ix_out(pathComponent); + } + return buf; +} + +int +mystat(const char *path, struct stat *sb) +{ + int status = stat(ix_path(path), sb); + return status; +} + +FILE * +myfopen(char *path, char *mode) +{ + FILE *f = fopen(ix_path(path), mode); + return f; +} + +int +myfclose(FILE *stream) +{ + int status = fclose(stream); + return status; +} + +DIR *myopendir(const char *path) +{ + return opendir(ix_path(path)); +} +__END_DECLS --- jikes.orig/src/bytecode.cpp Wed Mar 10 20:59:20 1999 +++ jikes/src/bytecode.cpp Sun Apr 4 16:21:35 1999 @@ -20,7 +20,9 @@ #include "table.h" #include #include +#ifndef __amigaos__ #include +#endif #ifdef WIN32_FILE_SYSTEM #include --- jikes.orig/src/case.h Mon Jan 25 21:00:27 1999 +++ jikes/src/case.h Sun Apr 4 15:39:37 1999 @@ -13,7 +13,9 @@ #include "config.h" #include "bool.h" +#ifndef __amigaos__ #include +#endif // // NOTE that this class is hard-wired to work on an ASCII machine. --- jikes.orig/src/config.cpp Tue Mar 9 15:37:15 1999 +++ jikes/src/config.cpp Sun Apr 4 00:46:44 1999 @@ -293,7 +293,7 @@ #endif -#if defined(GNU_LIBC5) +#if defined(GNU_LIBC5) || defined __amigaos__ #include #ifndef UNIX int SystemMkdir(char *dirname) --- jikes.orig/src/config.h Tue Mar 9 15:37:15 1999 +++ jikes/src/config.h Wed Apr 28 23:09:10 1999 @@ -468,8 +468,12 @@ #define UNIX_FILE_SYSTEM #endif +#ifdef __amigaos__ +#define AMIGAOS_FILE_SYSTEM +#endif -#if defined(GNU_LIBC5) + +#if defined(GNU_LIBC5) || defined __amigaos__ extern size_t wcslen(wchar_t *); extern wchar_t *wcscpy(wchar_t *, wchar_t *); extern wchar_t *wcsncpy(wchar_t *, wchar_t *, int); --- jikes.orig/src/configure Tue Mar 9 15:49:40 1999 +++ jikes/src/configure Sun May 2 11:46:39 1999 @@ -960,6 +960,16 @@ ;; esac ;; + AmigaOS) + CCREQUIREDFLAGS="$CCREQUIREDFLAGS -DBIGENDIAN -Dstat=mystat -Dfopen=myfopen -Dopendir=myopendir" + SYSOBJECTS="-noixemul -lnix -ldebug" + + case "$CC_NAME" in + g++) + CCREQUIREDFLAGS="-funsigned-char $CCREQUIREDFLAGS" + ;; + esac + ;; *) { echo "configure: error: platform '`uname -s`' is not supported." 1>&2; exit 1; } ;; --- jikes.orig/src/control.cpp Wed Mar 10 20:59:21 1999 +++ jikes/src/control.cpp Wed Apr 28 21:30:22 1999 @@ -496,7 +496,7 @@ // When searching for a directory in the system, if it is not already present in the hierarchy // insert it and attempt to read it from the system... // -#ifdef UNIX_FILE_SYSTEM +#if defined(UNIX_FILE_SYSTEM) || defined(AMIGAOS_FILE_SYSTEM) DirectorySymbol *Control::ProcessSubdirectories(wchar_t *source_name, int source_name_length) { DirectorySymbol *directory_symbol = classpath[dot_classpath_index] -> RootDirectory(); @@ -795,13 +795,13 @@ // DirectorySymbol *directory_symbol; NameSymbol *file_name_symbol; -#ifdef UNIX_FILE_SYSTEM +#if defined(UNIX_FILE_SYSTEM) || defined(AMIGAOS_FILE_SYSTEM) int len; for (len = name_length - 1; len >= 0 && name[len] != U_SLASH; len--) ; directory_symbol = ProcessSubdirectories(name, len); file_name_symbol = FindOrInsertName(&name[len + 1], name_length - (len + 1)); -#elif defined(WIN32_FILE_SYSTEM) +#elif defined(WIN32_FILE_SYSTEM) || defined(AMIGAOS_FILE_SYSTEM) int len; for (len = name_length - 1; len >= 0 && name[len] != U_SLASH && name[len] != U_COLON; len--) ; --- jikes.orig/src/getclass.cpp Tue Mar 9 15:37:17 1999 +++ jikes/src/getclass.cpp Sun Apr 4 01:19:45 1999 @@ -362,7 +362,7 @@ } else { -#ifdef UNIX_FILE_SYSTEM +#if defined(UNIX_FILE_SYSTEM) || defined(AMIGAOS_FILE_SYSTEM) FILE *classfile = ::SystemFopen(file_symbol -> FileName(), "rb"); if (classfile == NULL) { --- jikes.orig/src/option.cpp Wed Mar 10 20:59:21 1999 +++ jikes/src/option.cpp Sun Apr 4 01:28:06 1999 @@ -243,7 +243,7 @@ else if (strcmp(arguments.argv[i], "-d") == 0 && ((i + 1) < arguments.argc)) { ++i; -#ifdef UNIX_FILE_SYSTEM +#if defined(UNIX_FILE_SYSTEM) || defined(AMIGAOS_FILE_SYSTEM) int length = strlen(arguments.argv[i]); directory = new char[length + 1]; strcpy(directory, arguments.argv[i]); --- jikes.orig/src/option.h Wed Mar 10 20:59:21 1999 +++ jikes/src/option.h Sun Apr 4 13:57:19 1999 @@ -18,6 +18,10 @@ #include "bool.h" #include "code.h" #include "tuple.h" +#ifdef AMIGAOS_FILE_SYSTEM +#include +#include +#endif class ArgumentExpander { @@ -99,6 +103,13 @@ char *GetMainCurrentDirectory() { return current_directory[main_disk]; + } +#elif defined(AMIGAOS_FILE_SYSTEM) +public: + char *GetMainCurrentDirectory() + { + static char buf[MAXPATHLEN+1]; + return getcwd(buf, sizeof(buf)); } #endif --- jikes.orig/src/parser.h Mon Jan 25 21:00:31 1999 +++ jikes/src/parser.h Sun Apr 4 15:41:02 1999 @@ -13,7 +13,9 @@ #include "config.h" #include #include +#ifndef __amigaos__ #include +#endif #include #include #include "lpginput.h" --- jikes.orig/src/semantic.h Wed Mar 10 20:59:21 1999 +++ jikes/src/semantic.h Sun Apr 4 15:41:12 1999 @@ -11,7 +11,9 @@ #define semantic_INCLUDED #include "config.h" +#ifndef __amigaos__ #include +#endif #include "ast.h" #include "diagnose.h" #include "error.h" --- jikes.orig/src/stream.cpp Tue Mar 9 15:37:17 1999 +++ jikes/src/stream.cpp Sun Apr 4 01:31:25 1999 @@ -282,7 +282,7 @@ file_symbol -> mtime = status.st_mtime; // actual time stamp of file read file_symbol -> lex_stream = this; -#ifdef UNIX_FILE_SYSTEM +#if defined(UNIX_FILE_SYSTEM) || defined(AMIGAOS_FILE_SYSTEM) FILE *srcfile = ::SystemFopen(FileName(), "r"); if (srcfile != NULL) { @@ -342,7 +342,7 @@ if (status.st_mtime == file_symbol -> mtime) { -#ifdef UNIX_FILE_SYSTEM +#if defined(UNIX_FILE_SYSTEM) || defined(AMIGAOS_FILE_SYSTEM) FILE *srcfile = ::SystemFopen(FileName(), "r"); if (srcfile != NULL) { --- jikes.orig/src/symbol.cpp Tue Mar 9 15:37:17 1999 +++ jikes/src/symbol.cpp Sun Apr 4 01:30:40 1999 @@ -17,7 +17,7 @@ #include "table.h" #include "zip.h" -#ifdef UNIX_FILE_SYSTEM +#if defined(UNIX_FILE_SYSTEM) || defined(AMIGAOS_FILE_SYSTEM) #include #elif defined(WIN32_FILE_SYSTEM) #include @@ -749,7 +749,7 @@ void DirectorySymbol::ReadDirectory() { -#ifdef UNIX_FILE_SYSTEM +#if defined(UNIX_FILE_SYSTEM) || defined(AMIGAOS_FILE_SYSTEM) DIR *directory = opendir(this -> DirectoryName()); if (directory) { --- jikes.orig/src/symbol.h Tue Mar 9 15:37:17 1999 +++ jikes/src/symbol.h Sun Apr 4 01:18:06 1999 @@ -2274,6 +2274,19 @@ { return Case::StringSegmentEqual(suffix, java_suffix, java_suffix_length); } +#elif defined(AMIGAOS_FILE_SYSTEM) + // Do not use StringSegmentEqual() as in the WIN32 case, because that + // function may check beyond the end of the string, thus possibly causing + // enforcer hits. + inline bool FileSymbol::IsClassSuffix(char *suffix) + { + return (strncasecmp(suffix, class_suffix, class_suffix_length) == 0); + } + + inline bool FileSymbol::IsJavaSuffix(char *suffix) + { + return (strncasecmp(suffix, java_suffix, java_suffix_length) == 0); + } #endif #endif // ifndef symbol_INCLUDED --- jikes.orig/src/system.cpp Fri Feb 12 15:39:13 1999 +++ jikes/src/system.cpp Wed Apr 28 20:46:01 1999 @@ -160,9 +160,9 @@ { NameSymbol *dot_path_name_symbol; -#ifdef UNIX_FILE_SYSTEM +#if defined(UNIX_FILE_SYSTEM) || defined(AMIGAOS_FILE_SYSTEM) dot_path_name_symbol = dot_name_symbol; -#elif defined(WIN32_FILE_SYSTEM) +#elif defined(WIN32_FILE_SYSTEM) /*|| defined(AMIGAOS_FILE_SYSTEM)*/ char *main_current_directory = option.GetMainCurrentDirectory(); int dot_path_name_length = strlen(main_current_directory); wchar_t *dot_path_name = new wchar_t[dot_path_name_length + 1]; @@ -211,7 +211,7 @@ path_name[i] = head[i]; path_name[path_name_length] = U_NULL; -#ifdef UNIX_FILE_SYSTEM +#if defined(UNIX_FILE_SYSTEM) || defined(AMIGAOS_FILE_SYSTEM) input_name = path_name; --- jikes.orig/src/tab.h Fri Feb 12 15:39:13 1999 +++ jikes/src/tab.h Sun Apr 4 15:36:32 1999 @@ -11,7 +11,9 @@ #define tab_INCLUDED #include "config.h" +#ifndef __amigaos__ #include +#endif #include class Tab --- jikes.orig/src/tuple.h Mon Jan 25 21:00:32 1999 +++ jikes/src/tuple.h Sun Apr 4 01:20:16 1999 @@ -410,7 +410,7 @@ inline bool WriteToFile(char *file_name) { -#ifdef UNIX_FILE_SYSTEM +#if defined(UNIX_FILE_SYSTEM) || defined(AMIGAOS_FILE_SYSTEM) FILE *file = ::SystemFopen(file_name, "wb"); if (file == (FILE *) NULL) return false; --- jikes.orig/src/unicode.h Mon Jan 25 21:00:32 1999 +++ jikes/src/unicode.h Sun Apr 4 15:39:23 1999 @@ -12,7 +12,9 @@ #include "config.h" #include +#ifndef __amigaos__ #include +#endif #include #include "bool.h" #include "code.h" --- jikes.orig/src/unzip.cpp Wed Jan 13 22:48:48 1999 +++ jikes/src/unzip.cpp Sun Apr 4 01:15:49 1999 @@ -44,7 +44,7 @@ struct huft *Unzip::global_fixed_td; /* inflate static */ int Unzip::global_fixed_bl, Unzip::global_fixed_bd; -#ifdef UNIX_FILE_SYSTEM +#if defined(UNIX_FILE_SYSTEM) || defined(AMIGAOS_FILE_SYSTEM) FILE *Unzip::global_file; /* file pointer for zip file */ #elif defined(WIN32_FILE_SYSTEM) char *Unzip::global_file; /* file pointer for zip file */ @@ -749,7 +749,7 @@ return 0; } -#ifdef UNIX_FILE_SYSTEM +#if defined(UNIX_FILE_SYSTEM) || defined(AMIGAOS_FILE_SYSTEM) int Unzip::unzip8(FILE * zipfile, char *buffer) #elif defined(WIN32_FILE_SYSTEM) int Unzip::unzip8(char *zipfile, char *buffer) @@ -790,7 +790,7 @@ } -#ifdef UNIX_FILE_SYSTEM +#if defined(UNIX_FILE_SYSTEM) || defined(AMIGAOS_FILE_SYSTEM) int Unzip::UncompressFile0(FILE *zipfile, char *buffer, long buffer_length) { fread(buffer, sizeof(char), buffer_length, zipfile); --- jikes.orig/src/unzip.h Wed Jan 13 22:48:42 1999 +++ jikes/src/unzip.h Sun Apr 4 01:18:46 1999 @@ -176,7 +176,7 @@ #ifndef NEXTBYTE /* default is to simply get a byte from stdin */ /* default for define NEXTBYTE is getchar() */ -#ifdef UNIX_FILE_SYSTEM +#if defined(UNIX_FILE_SYSTEM) || defined(AMIGAOS_FILE_SYSTEM) #define NEXTBYTE getc(global_file) #elif defined(WIN32_FILE_SYSTEM) #define NEXTBYTE ((u1) (*global_file++)) @@ -279,7 +279,7 @@ static struct huft *global_fixed_td; /* inflate static */ static int global_fixed_bl, global_fixed_bd; -#ifdef UNIX_FILE_SYSTEM +#if defined(UNIX_FILE_SYSTEM) || defined(AMIGAOS_FILE_SYSTEM) static FILE *global_file; /* file pointer for zip file */ #elif defined(WIN32_FILE_SYSTEM) static char *global_file; @@ -341,7 +341,7 @@ static int inflate_block(int *); static int inflate_free(); -#ifdef UNIX_FILE_SYSTEM +#if defined(UNIX_FILE_SYSTEM) || defined(AMIGAOS_FILE_SYSTEM) static int unzip8(FILE * zipfile, char *buffer); static int UncompressFile0(FILE *, char *, long); --- jikes.orig/src/zip.cpp Mon Jan 25 21:00:32 1999 +++ jikes/src/zip.cpp Sun Apr 4 02:23:59 1999 @@ -20,7 +20,7 @@ // The ZipFile methods follow // //************************************************************************************************ -#ifdef UNIX_FILE_SYSTEM +#if defined(UNIX_FILE_SYSTEM) || defined(AMIGAOS_FILE_SYSTEM) int (*ZipFile::uncompress_file[10]) (FILE *, char *, long) = { UncompressFile0, @@ -71,6 +71,7 @@ { file_buffer += length; } + #endif @@ -98,7 +99,7 @@ { Zip *zip = file_symbol -> Zipfile(); -#ifdef UNIX_FILE_SYSTEM +#if defined(UNIX_FILE_SYSTEM) || defined(AMIGAOS_FILE_SYSTEM) zipfile = zip -> zipfile; int rc = fseek(zipfile, file_symbol -> offset, SEEK_SET); assert(rc == 0); @@ -119,7 +120,7 @@ u2 extra_field_length = GetU2(); Skip(filename_length + extra_field_length); -#ifdef UNIX_FILE_SYSTEM +#if defined(UNIX_FILE_SYSTEM) || defined(AMIGAOS_FILE_SYSTEM) this -> buffer = new char[file_symbol -> uncompressed_size]; if (! uncompress_file[compression_method < 9 ? compression_method : 9](zipfile, this -> buffer, file_symbol -> uncompressed_size)) { @@ -314,7 +315,7 @@ zipbuffer(NULL), magic(0) { -#ifdef UNIX_FILE_SYSTEM +#if defined(UNIX_FILE_SYSTEM) || defined(AMIGAOS_FILE_SYSTEM) zipfile = ::SystemFopen(zipfile_name, "rb"); if (zipfile) { @@ -348,7 +349,7 @@ Zip::~Zip() { -#ifdef UNIX_FILE_SYSTEM +#if defined(UNIX_FILE_SYSTEM) || defined(AMIGAOS_FILE_SYSTEM) delete [] zipbuffer; if (zipfile) fclose(zipfile); @@ -376,7 +377,7 @@ // u2 total_number_of_entries_in_the_ = GetU2(); u4 central_directory_size = GetU4(); -#ifdef UNIX_FILE_SYSTEM +#if defined(UNIX_FILE_SYSTEM) || defined(AMIGAOS_FILE_SYSTEM) int rc = fseek(zipfile, -((int) central_directory_size + 22), SEEK_END); assert(rc == 0); --- jikes.orig/src/zip.h Mon Jan 25 21:00:32 1999 +++ jikes/src/zip.h Sun Apr 4 01:19:05 1999 @@ -41,7 +41,7 @@ u4 GetU4(); void Skip(u4 length); -#ifdef UNIX_FILE_SYSTEM +#if defined(UNIX_FILE_SYSTEM) || defined(AMIGAOS_FILE_SYSTEM) FILE *zipfile; static int (*uncompress_file[10]) (FILE *, char *, long); public: @@ -82,7 +82,7 @@ DirectorySymbol *ProcessSubdirectoryEntries(DirectorySymbol *, char *, int); void ProcessDirectoryEntry(DirectorySymbol *); -#ifdef UNIX_FILE_SYSTEM +#if defined(UNIX_FILE_SYSTEM) || defined(AMIGAOS_FILE_SYSTEM) FILE *zipfile; #elif defined(WIN32_FILE_SYSTEM) HANDLE zipfile, mapfile;