MXMLC compiles a single top-level file and then chases down dependencies based on the source-path options. If the top-level file references the other two files, then it should "just work".
There are ways to inject files that don't have dependencies from the main file but most folks don't use that. I don't know anybody using Make, but there's plenty of examples of using Ant. -Alex On 2/13/14 5:49 PM, "bgoldnyxnet" <[email protected]> wrote: >I'm trying to figure out how to compile my project using mxmlc in the >command >line. > >I have my project split into multiple MXML files: one for the top-level, >which lays out the various things I want to appear in the window, and then >others for the various helper classes, the script that controls progress >through the game, etc. > >If this were written in C, I would type: gcc *.c and they would all be >compiled and linked together to produce my application. But when I type >"mxmlc *.mxml", I get: > Error: only one source is allowed in the filespec > >So, if I have to compile each source file separately, how do I combine the >resulting compiled outputs into a single .swf file? > >Oh, and btw, does anybody have a sample makefile for compiling a project >that is split into multiple files and directories? > > > >-- >View this message in context: >http://apache-flex-users.2333346.n4.nabble.com/How-to-link-multiple-source >-files-when-using-the-command-line-compiler-tp4974.html >Sent from the Apache Flex Users mailing list archive at Nabble.com.
