#-----------------------------------------------------------------------------

NET_INCLUDE = Langages:Sources/AWeb/AmiTCP-SDK-4.3/netinclude
AMISSL_INCLUDE = Langages:Sources/AWeb/AmiSSLSDK/include
MIAMISSL =
MIAMISSL_INCLUDE = include/miami
INET225_INCLUDE = Langages:Sources/AWeb/INetSDK/include

#-----------------------------------------------------------------------------
CPPFLAGS=-I. -IJpeg -IZlib -I/ADE/Include -I$(INET225_INCLUDE) -I/Include
# Comment out the following line if you use egcs :
CXXFLAGS=-O3 -Wall -ffast-math -funroll-loops -m68020-40 -fomit-frame-pointer 

INCLUDES= adpcm.h        cxform.h       graphic.h      script.h       sqrt.h\
	bitmap.h       displaylist.h  matrix.h       shape.h        swf.h\
	button.h       flash.h        program.h      sound.h        text.h\
	character.h    font.h         rect.h         sprite.h    movie.h


SWFOBJS=\
    flash.o \
    character.o \
    shape.o \
    button.o \
    program.o \
    bitmap.o \
    displaylist.o \
    font.o \
    graphic.o \
    text.o \
    matrix.o \
    script.o \
    sound.o \
    sprite.o \
    movie.o \
    cxform.o \
    adpcm.o \
    sqrt.o \
    graphic16.o \
    graphic24.o \
    graphic32.o \
    jpeg/libjpeg.a \
    Zlib/libz.a

#    bitstream.o
#    dump.o

all: libflash.a

libflash.a: $(SWFOBJS) 
	ar rcs $@ $(SWFOBJS)

Jpeg/libjpeg.a:
	cd Jpeg; $(MAKE)

Zlib/libz.a:
	cd Zlib; $(MAKE)

$(SWFOBJS): $(INCLUDES)

clean:
	rm -f $(SWFOBJS) *~ libflash.a

.PHONY: plugin jpeg all
