#makefile for jpegAGA (68020+ version)
#you have to delete all .o files before
#starting this makefile

#you also need libjpeg.a in the GCC:lib directory

#to create libjpeg.a enter:
#make -f makefile.gcc.amiga libjpeg.a
#copy libjpeg.a GCC:lib

#you need PhxAss or a similar assembler
#that understands 68020 opcodes
#and creates standard Amiga object format

CFLAGS = -O2 -m68020 -msoft-float -fomit-frame-pointer 
CC=gcc


OBJ = jpegAGA.o display.o EncodeHAM8.o

jpegAGA: $(OBJ) 
	gcc $(CFLAGS) $(OBJ) -ljpeg -o jpegAGA.020


EncodeHAM8.o: EncodeHAM8.asm
	PHXass -n! EncodeHAM8.asm -otemp.o
	hunk2gcc temp.o
	mv obj.* EncodeHAM8.o 
	
