The Allegro Wiki is migrating to github at https://github.com/liballeg/allegro_wiki/wiki

CBUILD Example2

From Allegro Wiki
Jump to: navigation, search

Example for CBUILD:

<highlightSyntax language="cbuild">sources = "src/a1.c src/a2.c src/a3.c"

compile ${sources} linkexec a

</highlightSyntax>

This will do what you would expect. It first compiles the three source files, then links them to an executable called "a". Additionally, it will generate dependency files, and do timestamp-based dependency analysis. So if you modify a header file included by a source file, it is recompiled.