Datasheet
146 PSoC Designer IDE Guide, Document # 001-42655 Rev *B
B.2 Make Process
B.2.1 Environment Variables
PATH: Change the path to add the PSoC designer tools directory.
Example:
PATH=c:\program files\cypress microsystems\psoc designer\tools;%PATH%
DEVICE: The name of the device.
Example: DEVICE=CY8C24794
BASEDEVICE: The tools/include subdirectory of the PSoC Designer install directory that con-
tains the include files for the DEVICE.
Example: BASEDEVICE=CY8C24090
LASTROM: The last location in ROM.
Example: LASTROM=0x3fff
B.2.2 MAKE Invocations
PSoC Designer sets the environment variables as indicated above and calls MAKE as follows:
make –f <installdir>/tools/makefile clean
make PROJNAME=<projectname> -f <installdir>/tools/makefile makemake
make –f <installdir>/tools/makefile depend
make –f <installdir>/tools/makefile
Make invocations are executed from the project root folder.
B.2.3 Build Files
This section describes the files used by the build process. Except for ‘Makefile’, these files reside in
the local project folder.
B.2.3.1 Makefile
This file is a general-purpose MAKE file for all PSoC projects. Therefore, use care when changing
the actions in this file, because they apply to all PSoC builds. This file is located in the tools folder, off
the main PSoC Designer installation path.
The relevant makefile targets are:
Makemake target
When you use the psocmakemake.exe utility, this target produces the project.mk from the
project.SOC file (see Section B.2.3.2 project.mk).
Depend target
This runs mkdepend.exe with the appropriate arguments to generate include file dependencies.
All target
This is the default target that compiles, links, and builds.
Clean target
This removes all object files.