
CC            = cc
CCFlags       = -c -throwback -IC: -IOS: -Izlib: -D__riscos__
LinkFlags     = -o $@
SqueezeFlags    = -f -v

Libs          = C:o.Stubs OSLib:o.OSLib ZLib:zlib
Objects       = o.main o.bucket o.rectangle o.matrix o.gradient o.bitcount \
                o.shape o.cxform o.action o.bitmap o.button o.preprocess \
                o.bbox o.parser o.evaluate o.fonttext o.dictionary \
                o.sound o.utils o.adpcm

!MakeFlash.writeflash:   $(Objects)
              Link $(Linkflags) $(Objects) $(Libs)
              squeeze $(SqueezeFlags) !MakeFlash.writeflash

.c.o:;        $(CC) $(CCflags) $< -o $@

# Dynamic dependencies:
o.main:       c.main h.main h.preprocess h.parser h.bucket h.proto \
              h.evaluate
o.parser:     c.parser h.proto h.bucket h.bitcount h.matrix h.rectangle \
              h.gradient h.flash h.action h.main h.bitmap h.button h.main \
              h.evaluate h.fonttext h.dictionary h.sound h.utils
o.bucket:     c.bucket h.proto h.bucket
o.rectangle:  c.rectangle h.proto h.bitcount h.rectangle h.bucket
o.gradient:   c.gradient h.proto h.bitcount h.gradient
o.matrix:     c.matrix h.proto h.bitcount h.matrix h.bucket
o.bitcount:   c.bitcount h.bitcount h.proto
o.shape:      c.shape h.shape h.proto h.flash h.bucket h.bitcount \
              h.matrix h.rectangle h.gradient h.main h.bbox
o.cxform:     c.cxform h.cxform h.proto h.bucket h.bitcount
o.action:     c.action h.action h.bucket h.proto h.main h.flash
o.bitmap:     c.bitmap h.bitmap h.proto h.bucket h.main h.flash \
              h.utils
o.button:     c.button h.button h.proto h.bucket h.main h.flash
o.preprocess: c.preprocess h.preprocess h.main h.proto h.evaluate
o.bbox:       c.bbox h.bbox h.proto
o.evaluate:   c.evaluate h.evaluate h.proto
o.fonttext:   c.fonttext h.fonttext h.proto h.flash h.bucket h.bitcount \
              h.matrix h.rectangle h.main
o.dictionary: c.dictionary h.dictionary h.proto
o.sound:      c.sound h.sound h.proto h.bucket h.main h.flash h.adpcm
o.utils:      c.utils h.utils h.proto
o.adpcm:      c.adpcm h.adpcm h.proto
