Datasheet
PSoC Designer IDE Guide, Document # 001-42655 Rev *B 147
B.2.3.2 project.mk
Project.mk is generated by psocmakemake.exe from environment variables and the project’s .soc
file. It is rewritten by the PSoC Designer build process.
This section describes what these symbolic variables are and gives examples of what values they
can have. Figure B-1 shows an example of a project.mk file for the c24 project using a CY8C24423
device.
Figure B-1. Example PROJECT.MK file
The section provides a description of each of the symbolic names found in a project.mk file. You can
look at the master make file in an editor and use a text search utility to see how these symbolic
names are used.
PROJNAME – Helps the master make file create the file name for the .hex, .lst, and .map files.
DEVICE – Not actually used by the master make file, but used by the psocmakemake.exe utility to
get things out of the device description XML files. This is a shell environment variable that is set
before running the ‘makemake’ target.
BASEDEVICE – Used to help create the proper path to a device family specific library. This is a shell
environment variable that is set before running the ‘makemake’ target.
PROJPATH – Helps create a path to link in the project’s user module library (libpsoc.a)
PSOCDIR – Helps form a path to invoke a sub-make target called ‘expanded_lib_prereq’. This is
also used in formulating other paths.
INCLUDE_PATH – PSoC Designer version 4.2 with Service Pack 1 has a limitation to the use of this
make variable in the master make file. The makemake target (psocmakemake.exe process) essen-
tially creates only one path for this variable using the PSOCDIR and BASEDEVICE values. The
PROJNAME=c24
DEVICE=CY8C24423
BASEDEVICE=CY8C24000B
PROJPATH=C:/temp/BASEPA~1/c24
PSOCDIR=C:/PROGRA~1/CYPRES~1/PSOCDE~1
INCLUDE_PATH=C:/PROGRA~1/CYPRES~1/PSOCDE~1/tools/include/CY8C24~1
CSRCS=
LIBCSRCS=
ASMSRCS= main.asm
LIBASMSRCS= delsig8_1.asm delsig8_1int.asm psocconfig.asm psocconfigtbl.asm
OBJECT_SOURCES= main.asm
FILLVALUE=0x30
LASTROM=0xfff
LASTRAM=0xff
CODECOMPRESSOR=
MORE_CFLAGS=-Wf-Osize
RELSTART=0x150
CDEFINES=
LIBS=
LIB_PATH=
ENABLE_ALIGN_SHIFT=0
LMM=
SYS_INC_CONTENTS:=SYSTEM_STACK_PAGE:_equ_...etc…
SYSTEM_TOOLS=1
CONFIG_NAMES=c24