# This builds Amiga hunk executables for Amiga OS 68000

CC=vbccm68k
COPTS=-D__AMIGA__ -cpu=68020 -fpu=68881 -O=991 -I. -I../amiga

pdptest.exe: amistart.o pdptest.o stdio.o string.o stdlib.o \
       start.o time.o errno.o assert.o signal.o locale.o \
       ctype.o setjmp.o math.o amisupa.o
  copy /b stdio.o+string.o+stdlib.o+start.o+time.o+errno.o+assert.o+signal.o+locale.o+ctype.o+setjmp.o+math.o+amisupa.o pdpclib.lib
  vlink -bamigahunk -o pdptest.exe amistart.o pdptest.o pdpclib.lib

.c.o:
  $(CC) $(COPTS) -o=$*.s $<
  vasmm68k_mot -o $*.o -Fhunk $*.s
  rm -f $*.s

.asm.o:
  vasmm68k_std -o $*.o -Fhunk $<
