#This makefile is for Manx Aztec C 5.x

# The name of your C compiler:
CC= sc

# You may need to adjust these cc options:
# Uncomment for generic 68000 code (will work on any Amiga)
#ARCHFLAGS= -sn

# Uncomment for 68020/68030 code (faster, but won't run on 68000 CPU)
ARCHFLAGS= -c2

CFLAGS= -MC -MD $(ARCHFLAGS) -r4 -bs -wo -i /jpeg-6

#-spfam

# Link-time cc options:
LDFLAGS= -g

# To link any special libraries, add the necessary -l commands here.
LDLIBS= -lml -lcl +l -lamiga

# Put here the object file name for the correct system-dependent memory
# manager file.  For Amiga we recommend jmemname.o.
SYSDEPMEM= jmemname.o

# miscellaneous OS-dependent stuff
# linker
LN= ln
# file deletion command
RM= delete quiet
# library (.lib) file creation command
AR= lb

# End of configurable options.



SOURCES= jpegAGA.c display.c scalefit.c ASLScreenMode.c pattern.c ASLfiles.c\
fromWB.c AmigaJdatasrc.c EncodeHAM8.asm WritePixel.asm

# files included by source files
INCLUDES= jconfig.h jmorecfg.h jpeglib.h myerror.h jerror.h WBFlags.h



OBJECTS = jpegAGA.o display.o scalefit.o ASLScreenMode.o pattern.o ASLfiles.o\
AmigaJdatasrc.o  fromWB.o EncodeHAM8.o WritePixel.o


jpegAGA: $(OBJECTS)
	$(LN) $(LDFLAGS) -o jpegAGA $(OBJECTS) libjpeg.lib $(LDLIBS)


jpegAGA.o: jpegAGA.c $(INCLUDES)
display.o: display.c

$(OBJECTS): $(INCLUDES)

EncodeHAM8.o: EncodeHam8.asm
	PhxAss OPT ! EncodeHAM8.asm

WritePixel.o: WritePixel.asm
	PhxAss I=hd:aztec/include WritePixel.asm
