Makefiles and using multiple .as files?

So I code using the free flex sdk under ubuntu linux. Anywho, I was wondering if anyone knows how to make a “makefile” for a project that requires mxmlc to compile multiple files.

I can’t do it the same way its done for C because the mxmlc compiler only takes one file at a time. Below is makefile that works for one file. I’m kinda new to makefiles in general tried looking up the basic instructions but efforts have been in vain.


MXMLC = mxmlc
MFLAGS = 

TARGETS = target.swf

all:$(TARGETS)

clean:
    $(RM)$(TARGETS)

.SUFFIXES: .as .swf

.as.swf:
    $(MXMLC) $(MFLAGS) $<

Any help appreciated.