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

Developer

resources

Makefiles

Each makefile should include the following make.d files:

  • defines.min - at the beginning of the makefile.
  • rules.min - at the end of the makefile.

A makefile typically contains rules for one or more libraries, modules, images, or executables. A makefile can also contain variables that define the source files and resources required for each module, as well as the directories to search for include files.

The following example makefile is for c_basicapp, which is included in the Brew MP sample code.

###############################################################################
#        Copyright (c)  2009 QUALCOMM Incorporated.
#               All Rights Reserved.
#            QUALCOMM Proprietary and Confidential 
###############################################################################

_shortname=$(strip $(if $(strip $(filter ECHO%,$(shell echo))),\
              $(shell for %%g in ( "$(1)" ) do echo. %%~fsg),\
              $(shell cmd /Q /C for %g in \( "$(1)" \) do echo. %~fsg)))


MAKE_D:=$(call _shortname,$(BREWMP_PLATFORM)/../make.d)

include $(MAKE_D)/defines.min

INCDIRS=$(BREWMP_PLATFORM_DIR)/connectivity/inc \
	$(BREWMP_PLATFORM_DIR)/databases/inc \
	$(BREWMP_PLATFORM_DIR)/deprecated/inc \
	$(BREWMP_PLATFORM_DIR)/hardware/inc \
	$(BREWMP_PLATFORM_DIR)/languages/inc \
	$(BREWMP_PLATFORM_DIR)/media/inc \
	$(BREWMP_PLATFORM_DIR)/networking/inc \
	$(BREWMP_PLATFORM_DIR)/security/inc \
	$(BREWMP_PLATFORM_DIR)/system/inc \
	$(BREWMP_PLATFORM_DIR)/telephony/inc \
	$(BREWMP_PLATFORM_DIR)/ui/inc

c_basicapp_C_SRCS = c_basicapp \
	AEEModGen \
	AEEAppGen

c_basicapp_CIFS = c_basicapp

c_basicapp_CARS = c_basicapp

BUILD_BREWMODS = c_basicapp

AEEModGen_CC = $(ARMCC)

# Include BMP SDK make.d/rules.min. Do not change this file.
# Should always be the last thing
include $(RULES_MIN)