⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 makefile

📁 嵌入式系统下的文件管理处理,和基本图片jpg格式处理原代码
💻
字号:
#/**************************************************************************
# *                                                                        *
# *         Copyright (c) 2005 by Sunplus Technology Co., Ltd.             *
# *                                                                        *
# *  This software is copyrighted by and is the property of Sunplus        *
# *  Technology Co., Ltd. All rights are reserved by Sunplus Technology    *
# *  Co., Ltd. This software may only be used in accordance with the       *
# *  corresponding license agreement. Any unauthorized use, duplication,   *
# *  distribution, or disclosure of this software is expressly forbidden.  *
# *                                                                        *
# *  This Copyright notice MUST not be removed or modified without prior   *
# *  written consent of Sunplus Technology Co., Ltd.                       *
# *                                                                        *
# *  Sunplus Technology Co., Ltd. reserves the right to modify this        *
# *  software without notice.                                              *
# *                                                                        *
# *  Sunplus Technology Co., Ltd.                                          *
# *  19, Innovation First Road, Science-Based Industrial Park,             *
# *  Hsin-Chu, Taiwan, R.O.C.                                              *
# *                                                                        *
# *  Author: Jason                                                         *
# *                                                                        *
# *  Reviewer:                                                             *
# *                                                                        *
# **************************************************************************/

#---------------------------------------------------------------------------
# Target definition (User)
# [ROOT]
# For Middleware  : ROOT = ../../..
# For Application : ROOT = ../..
#
#---------------------------------------------------------------------------
ROOT  = ../..
GOAL  = $(LIB_DIR)/pmpapp/libappdrv.a

#---------------------------------------------------------------------------
# Source section (User)
#---------------------------------------------------------------------------
INCLUDE_DIR	+= -I$(ROOT)/include
INCLUDE_DIR	+= -I$(ROOT)/include/ucos
INCLUDE_DIR	+= -I$(ROOT)/include/mw
INCLUDE_DIR	+= -I$(ROOT)/include/hw
INCLUDE_DIR	+= -I$(ROOT)/include/app
INCLUDE_DIR	+= -I$(ROOT)/include/pmpapp

#--------  lanzhu add for GUI include file 
#INCLUDE_DIR	+= -I$(ROOT)/gui/include
INCLUDE_DIR	+= -I$(ROOT)/mwingui/include/MWGuiKernel
INCLUDE_DIR	+= -I$(ROOT)/mwingui/include/PlatformDriver
INCLUDE_DIR	+= -I$(ROOT)/mwingui/include/ProductApp	

#------------------------------------------------------

ASM_SRC	    +=
C_SRC       += pic_playback.c
C_SRC       += demo_jpg_pk.c
#C_SRC       += pmp_key_task.c

C_SRC       += pmp_key_task_new.c
C_SRC       += pmp_io_function.c

C_SRC       += pmp_audio_driver.c
C_SRC       += pmp_fs_api_ZA.c
C_SRC       += pmp_file_list.c
C_SRC       += pmp_file_list.c
C_SRC       += pmp_key_sound.c

#---------- lanzhu @[9/19/2006] add
C_SRC       += unicode2local.c
C_SRC       += vfs_nls_cp949.c
#-----------------------------------------------------
#---------- lanzhu @[9/25/2006] add
C_SRC       += pmp_rtc_driver.c
#-----------------------------------------------------





#---------------------------------------------------------------------------
# Export Header Section (User)
#----------------------------:-----------------------------------------------
EXPORT_H_DIR = $(ROOT)/include/app/
#EXPORT_H_SRC += App.h

#---------------------------------------------------------------------------
# Constant Variable definition
#---------------------------------------------------------------------------
# Include the definition of tool chain
include $(ROOT)/include/tool_chain.def 
LIB_DIR	  =	$(ROOT)/lib

#---------------------------------------------------------------------------
# Complier options
#---------------------------------------------------------------------------
CCFLAGS    += -Wall

ASFLAGS    += -Wa

ifeq ($(DEBUG),1)
CCFLAGS   += -g
ASFLAGS   += -g
LDFLAGS   +=
else
CCFLAGS   += -O2
endif

#---------------------------------------------------------------------------
# Implicit rules
#---------------------------------------------------------------------------
.c.o:
	@$(CC) -MM -MT $@ -o $*.d $< $(INCLUDE_DIR)
	@$(ECHO) "Compiling $<..."
	@$(CC) -c $(ARM_FLAG) $(CCFLAGS) -o $*.o $< $(INCLUDE_DIR)

.S.o:
	@$(CC) -MM -MT $@ -o $*.d $< $(INCLUDE_DIR)
	@$(ECHO) "Compiling $<..."
	@$(CC) -c $(ARM_FLAG) $(ASFLAGS) -o $*.o $<

#---------------------------------------------------------------------------
# Explicit ruls
#---------------------------------------------------------------------------
OBJ_FILES	= $(C_SRC:%.c=%.o) $(ASM_SRC:%.s=%.o)

all: export_h $(GOAL)

$(GOAL): $(OBJ_FILES)
	@$(ECHO) "---------"
	@$(AR) ru $@ $(OBJ_FILES)
	@$(ECHO) "***" $(GOAL) "is built successfully! ***"

export_h:
ifdef EXPORT_H_SRC
	@$(ECHO) "---------"
	@$(ECHO) "Export [$(EXPORT_H_SRC)] to [$(EXPORT_H_DIR)]"
	@cp	-f -u $(EXPORT_H_SRC) $(EXPORT_H_DIR)
endif

.PHONY: clean
clean:
	rm -f $(GOAL)
	rm -f $(OBJ_FILES:.o=.d) $(OBJ_FILES)
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -