jerrym | f157933 | 2013-02-07 01:56:28 +0000 | [diff] [blame] | 1 | # The file ".wrmakefile" is the template used by the Wind River Workbench to
|
| 2 | # generate the makefiles of this project. Add user-specific build targets and
|
| 3 | # make rules only(!) in this project's ".wrmakefile" file. These will then be
|
| 4 | # automatically dumped into the makefiles.
|
| 5 |
|
| 6 | WIND_HOME := $(subst \,/,$(WIND_HOME))
|
| 7 | WIND_BASE := $(subst \,/,$(WIND_BASE))
|
| 8 | WIND_USR := $(subst \,/,$(WIND_USR))
|
| 9 |
|
| 10 | all : pre_build main_all post_build
|
| 11 |
|
| 12 | _clean ::
|
| 13 | @echo "make: removing targets and objects of `pwd`"
|
| 14 |
|
| 15 | %IDE_GENERATED%
|
| 16 |
|
| 17 | -include $(PRJ_ROOT_DIR)/*.makefile
|
| 18 |
|
| 19 | -include *.makefile
|
| 20 |
|
| 21 | main_all : external_build $(PROJECT_TARGETS)
|
| 22 | @echo "make: built targets of `pwd`"
|
| 23 |
|
| 24 | # entry point for extending the build
|
| 25 | external_build ::
|
| 26 | @echo ""
|
| 27 |
|
| 28 | # main entry point for pre processing prior to the build
|
| 29 | pre_build :: $(PRE_BUILD_STEP) generate_sources
|
| 30 | @echo ""
|
| 31 |
|
| 32 | # entry point for generating sources prior to the build
|
| 33 | generate_sources ::
|
| 34 | @echo ""
|
| 35 |
|
| 36 | # main entry point for post processing after the build
|
| 37 | post_build :: $(POST_BUILD_STEP) deploy_output
|
| 38 | @echo ""
|
| 39 |
|
| 40 | # entry point for deploying output after the build
|
| 41 | deploy_output ::
|
| 42 | @echo ""
|
| 43 |
|
| 44 | clean :: external_clean $(CLEAN_STEP) _clean
|
| 45 |
|
| 46 | # entry point for extending the build clean
|
| 47 | external_clean ::
|
| 48 | @echo ""
|