# Makefiles and using multiple .as files?

**URL:** <https://forum.kirupa.com/t/makefiles-and-using-multiple-as-files/286987>\
**Category:** flash\
**Created:** [April 24, 2009, 1:36am UTC](https://forum.kirupa.com/t/makefiles-and-using-multiple-as-files/286987 "2009-04-24T01:36:58Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![jm8thew](https://avatars.discourse-cdn.com/v4/letter/j/8edcca/32.png) [@jm8thew](https://forum.kirupa.com/u/jm8thew)\
**Post date:** [April 24, 2009, 1:36am UTC](https://forum.kirupa.com/t/makefiles-and-using-multiple-as-files/286987/1 "2009-04-24T01:36:58Z")

</div>

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.

```auto

MXMLC = mxmlc
MFLAGS = 

TARGETS = target.swf

all:$(TARGETS)

clean:
    $(RM)$(TARGETS)

.SUFFIXES: .as .swf

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

```

Any help appreciated.
