I set my sights pretty high: porting minivmac emulator to GP32
http://www.gryphel.com/c/minivmac/
Thanks again to Paul C. Pratt & Mr. Spiv & Nutribrain
I haven't given up yet. Am considering finding a less ambitious project, but till then -
closer still - waiting on a eureka - current results:
[powpowpowerbook:~/GP32/gp32] johndago% make
/usr/share/gcc/arm-elf/bin/gcc -I /usr/share/gcc/include -MM MYOSGLUE.c GLOBGLUE.c ADDRSPAC.c MINEM68K.c PROGMAIN.c VIAEMDEV.c IWMEMDEV.c SCCEMDEV.c RTCEMDEV.c ROMEMDEV.c SCSIEMDV.c SONYEMDV.c SNDEMDEV.c SCRNEMDV.c KBRDEMDV.c MOUSEMDV.c > .dep
Dependencies done
/usr/share/gcc/arm-elf/bin/gcc -O -I/usr/share/gcc/include -mtune=arm920 -c MYOSGLUE.c -o MYOSGLUE.o
/usr/share/gcc/arm-elf/bin/gcc -O -I/usr/share/gcc/include -mtune=arm920 -c GLOBGLUE.c -o GLOBGLUE.o
/usr/share/gcc/arm-elf/bin/gcc -O -I/usr/share/gcc/include -mtune=arm920 -c ADDRSPAC.c -o ADDRSPAC.o
/usr/share/gcc/arm-elf/bin/gcc -O -I/usr/share/gcc/include -mtune=arm920 -c MINEM68K.c -o MINEM68K.o
/usr/share/gcc/arm-elf/bin/gcc -O -I/usr/share/gcc/include -mtune=arm920 -c PROGMAIN.c -o PROGMAIN.o
/usr/share/gcc/arm-elf/bin/gcc -O -I/usr/share/gcc/include -mtune=arm920 -c VIAEMDEV.c -o VIAEMDEV.o
/usr/share/gcc/arm-elf/bin/gcc -O -I/usr/share/gcc/include -mtune=arm920 -c IWMEMDEV.c -o IWMEMDEV.o
/usr/share/gcc/arm-elf/bin/gcc -O -I/usr/share/gcc/include -mtune=arm920 -c SCCEMDEV.c -o SCCEMDEV.o
/usr/share/gcc/arm-elf/bin/gcc -O -I/usr/share/gcc/include -mtune=arm920 -c RTCEMDEV.c -o RTCEMDEV.o
/usr/share/gcc/arm-elf/bin/gcc -O -I/usr/share/gcc/include -mtune=arm920 -c ROMEMDEV.c -o ROMEMDEV.o
/usr/share/gcc/arm-elf/bin/gcc -O -I/usr/share/gcc/include -mtune=arm920 -c SCSIEMDV.c -o SCSIEMDV.o
/usr/share/gcc/arm-elf/bin/gcc -O -I/usr/share/gcc/include -mtune=arm920 -c SONYEMDV.c -o SONYEMDV.o
/usr/share/gcc/arm-elf/bin/gcc -O -I/usr/share/gcc/include -mtune=arm920 -c SNDEMDEV.c -o SNDEMDEV.o
/usr/share/gcc/arm-elf/bin/gcc -O -I/usr/share/gcc/include -mtune=arm920 -c SCRNEMDV.c -o SCRNEMDV.o
/usr/share/gcc/arm-elf/bin/gcc -O -I/usr/share/gcc/include -mtune=arm920 -c KBRDEMDV.c -o KBRDEMDV.o
/usr/share/gcc/arm-elf/bin/gcc -O -I/usr/share/gcc/include -mtune=arm920 -c MOUSEMDV.c -o MOUSEMDV.o
/usr/share/gcc/arm-elf/bin/gcc -o minivmac MYOSGLUE.o GLOBGLUE.o ADDRSPAC.o MINEM68K.o PROGMAIN.o VIAEMDEV.o IWMEMDEV.o SCCEMDEV.o RTCEMDEV.o ROMEMDEV.o SCSIEMDV.o SONYEMDV.o SNDEMDEV.o SCRNEMDV.o KBRDEMDV.o MOUSEMDV.o /usr/share/gcc/lib -lgpstdlib -lgpos -lgpgraphic -lgpstdio -lgpsound -lgpmem -lgpfont
/usr/share/gcc/lib: file not recognized: Operation not permitted
collect2: ld returned 1 exit status
make: *** [minivmac] Error 1
---- hack'd makefile follows -----
#
# © 2001 Jouni 'Mr.Spiv' Korhonen / Dead Coders Society
#
#
.PHONY: clean all dep dist
.SUFFIXES:
.SUFFIXES: .c .o .h .s
.DEFAULT:
make all
#
SRCS = MYOSGLUE.c GLOBGLUE.c ADDRSPAC.c MINEM68K.c PROGMAIN.c VIAEMDEV.c IWMEMDEV.c SCCEMDEV.c RTCEMDEV.c ROMEMDEV.c SCSIEMDV.c SONYEMDV.c SNDEMDEV.c SCRNEMDV.c KBRDEMDV.c MOUSEMDV.c
ASRCS =
OBJS = MYOSGLUE.o GLOBGLUE.o ADDRSPAC.o MINEM68K.o PROGMAIN.o VIAEMDEV.o IWMEMDEV.o SCCEMDEV.o RTCEMDEV.o ROMEMDEV.o SCSIEMDV.o SONYEMDV.o SNDEMDEV.o SCRNEMDV.o KBRDEMDV.o MOUSEMDV.o
#
PROG = minivmac
GXB = $(PROG).gxb
FXE = $(PROG).fxe
#
# If you want to (of course you want to
compile all source
# for Amiga using Amiga specific stuff then just uncomment the
# OS and CPU defines..
#
BIN = /usr/share/gcc/arm-elf/bin
CC = $(BIN)/gcc
AS = $(BIN)/as
OC = $(BIN)/../../bin/arm-elf-objcopy
B2 = $(BIN)/b2fxe
RM = rm -f
CP = cp
DEPEND = .dep
WILD = *
FOO = GP32 rules!
INC = /usr/share/gcc/include
LOCAL_LIBDIR = /usr/share/gcc/lib
LOCAL_LIBS = -lgpstdlib -lgpos -lgpgraphic -lgpstdio -lgpsound -lgpmem -lgpfont
LOCAL_CFLAGS = -O -I$(INC) -mtune=arm920
LOCAL_LDFLAGS =
#
#
#
#
# rules
all: $(DEPEND) $(PROG)
@echo $(FOO)
ifeq ($(DEPEND),$(wildcard $(DEPEND)))
include $(DEPEND)
endif
$(DEPEND): Makefile
$(CC) -I $(INC) -MM $(SRCS) > $(DEPEND)
@echo "Dependencies done"
%.o: %.c
$(CC) $(LOCAL_CFLAGS) -c $< -o $@
%.o: %.s
$(AS) $(LOCAL_AFLAGS) $< -o $@
$(PROG): $(OBJS)
$(CC) -o $(PROG) $(OBJS) $(LOCAL_LDFLAGS) $(LOCAL_LIBDIR) $(LOCAL_LIBS)
$(OC) -O binary $(PROG) $(GXB)
$(B2) $(GXB) $(FXE)
clean:
-$(RM) $(WILD).o
-$(RM) $(WILD)~
-$(RM) $(FXE).tgz
-$(RM) $(DEPEND)
-$(RM) $(FXE)
-$(RM) $(GXB)
-$(RM) $(PROG)
dist:
tar zcvf $(FXE).tgz *.c *.h Makefile readme.txt