A Project Makefile (from now on: Makefile) is a generic Makefile template that SNiFF+ automatically generates and adds to a newly created project. This Makefile is located in the project directory. Makefiles define macros which are used by SNiFF+'s Make Support for building project targets. These macros, in turn, are expanded to the values of other macros defined in Make Support Files. There are macro definitions, e.g., for:
Macro definitions are automatically maintained by SNiFF+. The values of the macros used in the Makefile are taken from the Build Options view of the Project Attributes dialog.
For details about the macros defined in a Makefile, please refer directly to a project's Makefile. Make Support Files are discussed on page 102.
Configuring the Project Makefile (excluding Java)
For configuring Make Support for Java, please refer to the Technical Reference in the Java tutorial. In general, it is unnecessary for you to modify a project's Makefile. By modifying the Project Makefile, you can extend or override all settings that you make in the SNiFF+ Project Attributes. However, you should try to avoid such modifications wherever possible because they are usually hard to migrate to new versions of SNiFF+.
All macros defined in a Platform Makefile can be overridden in the Project Makefile, but note that this makes the current project platform dependent. Therefore, we discourage changing any settings in the Project Makefile apart from the examples shown below.
In a project's Makefile, you can also redefine the platform-independent flags and macros that are set in the General Makefile. If you want to incorporate additional Make rules in a project's Makefile, you must do so after the code line that includes the General Makefile: