Resources | developer.brewmp.com Resources | developer.brewmp.com

Developer

resources

Customizing build rules

It is sometimes necessary to define custom build rules. For example, when a single file needs a custom compile option, or there is a generator tool (for example converting a mif file into a source file) which generates a known extension. These rules can be added to the makefile after the include $(RULES_MIN) line.

For example:

$(OBJ_DIR)/aeecoreappmif.c : AEECoreApp.mif
      $(BREW_DIR)/pk/utils/bin2src.exe -s$(subst /,\\,$<) -dfs:/mif/aeecoreapp.mif -o$@