# Project:   AC3


# Toolflags:
CCflags = -c -depend !Depend -IC: -throwback -DMAKELOG -zM -fah -zps1 -Wc -cpu 4 -memaccess -L22-S22-L41 -apcs 3/32/fpe2/swst/fp/nofpr 
LIBflags = C:o.stubsg 
Linkflags = -rmf -o $@ 
ObjAsmflags = -throwback -CPU ARM7M -NoCache -depend !Depend 
CMHGflags = -depend !Depend -throwback 
OBJflags = \
        @.o.bitstream @.o.bit_allocate @.o.downmix @.o.imdct @.o.parse \
        @.o.imuls @.o.Log @.o.mem @.o.stream @.o.module @.o.Header \


# Final targets:
@.AC3: \
        $(OBJflags) $(LIBflags) @.h.Header 
        link $(Linkflags) \
        $(OBJflags) $(LIBflags) 
@.clean: 
        x wipe <Prefix$Dir>.h.header ~cf~v 
        x wipe <Prefix$Dir>.o.* ~cf~v 


# User-editable dependencies:

# Static dependencies:
.SUFFIXES: .o .hdr .h .cmhg .c .s
@.h.Header: @.cmhg.Header
.c.o:; cc $(CCflags) -o $@ $<
.s.o:; objasm $(ObjAsmflags) -from $< -to $@
.cmhg.o:; cmhg $(CMHGflags) $< -o $@
.cmhg.h:; cmhg $(CMHGflags) $< -d $@


# Dynamic dependencies:
o.main:	c.main
o.main:	C:h.kernel
o.main:	C:h.swis
o.main:	h.a52
o.main:	h.Log
o.main:	h.Header
o.main:	h.GlobHdr
o.main:	h.module
o.main:	C:h.kernel
o.main:	h.a52
o.main:	h.FStream
o.main:	h.mem
o.main:	C:h.kernel
o.bitstream:	c.bitstream
o.bitstream:	h.config
o.bitstream:	h.a52
o.bitstream:	h.a52_internal
o.bitstream:	h.bitstream
o.bit_allocate:	c.bit_allocate
o.bit_allocate:	h.config
o.bit_allocate:	h.a52
o.bit_allocate:	h.a52_internal
o.downmix:	c.downmix
o.downmix:	h.config
o.downmix:	h.a52
o.downmix:	h.a52_internal
o.imdct:	c.imdct
o.imdct:	h.config
o.imdct:	h.a52
o.imdct:	h.a52_internal
o.imdct:	h.imdct_table
o.parse:	c.parse
o.parse:	h.config
o.parse:	h.a52
o.parse:	h.a52_internal
o.parse:	h.bitstream
o.parse:	h.tables
o.parse:	h.mem
o.parse:	C:h.kernel
o.imuls: s.imuls
o.Log:	c.Log
o.Log:	C:h.swis
o.Log:	C:h.kernel
o.Log:	h.Header
o.Log:	h.Log
o.mem:	c.mem
o.mem:	c.memdyn
o.mem:	h.mem
o.mem:	C:h.kernel
o.mem:	C:h.kernel
o.mem:	C:h.swis
o.mem:	h.log
o.stream:	c.stream
o.stream:	h.GlobHdr
o.stream:	h.module
o.stream:	C:h.kernel
o.stream:	h.a52
o.stream:	h.Header
o.stream:	h.FStream
o.stream:	h.Log
o.stream:	h.mem
o.stream:	C:h.kernel
o.stream:	h.a52
o.stream:	C:h.kernel
o.stream:	C:h.swis
o.module:	c.module
o.module:	h.Header
o.module:	C:h.kernel
o.module:	h.GlobHdr
o.module:	h.module
o.module:	C:h.kernel
o.module:	h.a52
o.module:	C:h.swis
o.module:	h.FStream
o.module:	h.mem
o.module:	C:h.kernel
