makefile
上传用户:fy98168
上传日期:2015-06-26
资源大小:13771k
文件大小:2k
- #######################################################################
- # Makefile for STBURNER
- #
- # Board Options
- # set DVD_PLATFORM mb231/mb275/mb282b/mb390
- #
- # Type
- # 'make' to build applic
- # 'make run TARGET=<jei-name>' to run applic
- # 'make debug TARGET=<jei-name>' to run applic with GUI Debugger
- # 'make clean' to remove dependancies
- # 'make clean_all' to remove all driver dependancies
- #######################################################################
- DVD_MAKE_VERSION := 2
- include $(DVD_MAKE)/generic.mak
- TARGETS := wtmecburner.lku
- # Other components this component is dependant upon
- ## ST20_IMPORTS := stboot stcommon sttbx testtool stflash stpio stuart
- vpath %.lib $(DVD_EXPORTS)
- #----------------------------------------------------------------------
- # objects to be built
- ST20_OBJS := wts_getertxt.tco wts_main.tco wts_flash.tco wt_flash.tco
- #----------------------------------------------------------------------
- # Produce a map file
- ST20_LKFLAGS = -M $(basename $@).map
- #----------------------------------------------------------------------
- # Reporting
- CFLAGS += -DSTTBX_REPORT -DSTTBX_PRINT -DSTTBX_INPUT
- ifeq "$(DVD_APPLIC)" "TESTTOOL"
- CFLAGS := $(CFLAGS) -DTESTTOOL
- endif
- #----------------------------------------------------------------------
- # Build targets
- include $(DVD_MAKE)/defrules.mak
- ##ray stburner.lku : $(ST20_OBJS) stapi_$(DVD_TRANSPORT)$(LIB_SUFFIX)
- ##ray $(ECHO) Building $@
- ##ray $(LINK_EXECUTABLE)
-
- wtmecburner.lku : $(ST20_OBJS) stapi_$(DVD_TRANSPORT)$(LIB_SUFFIX)
- $(ECHO) Building $@
- $(LINK_EXECUTABLE)
-
- #######################################################################
- # Run targets
- #######################################################################
- clean:
- ifeq "$(ARCHITECTURE)" "ST20"
- -$(RM) *.lku
- -$(RM) *.dbg
- -$(RM) *.map
- -$(RM) *.tco
- -$(RM) *.lib
- endif
- # DO NOT DELETE