#/* #********************************************************************************************************* #* MELIS #* the Easy Portable/Player Develop Kits #* makefile Module #* #* (c) Copyright 2006-2010, kevin.z China #* All Rights Reserved #* #* File : makefile #* By : kevin.z #* Version : v1.0 #* Date : 2010-9-3 9:39 #* Descript: #* Update : date auther ver notes #********************************************************************************************************* #*/ #������������� BSP_PATH = bsp_for_a31 ARCH = sun8iw1p1 ARCH1 = sun6i ARM_CROSS_TOOL = ARMCC_CROSSTOOL export include make.cfg #��������Ŀ¼�еõ�Դ������б� SRCCS=$(foreach dir,$(SRCDIRS),$(wildcard $(dir)/*.c)) SRCSS=$(foreach dir,$(SRCDIRS),$(wildcard $(dir)/*.s)) #�õ�Դ�����Ӧ��Ŀ���ļ����б� OBJS=$(SRCCS:.c=.o) $(SRCSS:.s=.o) #�������Ŀ���ļ� all:$(LOCALTARGET) $(LOAD) $(LDFLAGS) $(TMPTARGET) $(LOCALTARGET) -$(WORKTOOLS)/gen_check_code.exe $(TMPTARGET) fes1_$(ARCH).bin -cp fes1_$(ARCH).bin $(TARGET) ifneq ($(TARGET1), ) -cp fes1_$(ARCH).bin $(TARGET1) endif -rm $(OBJS) $(TMPTARGET) fes1_$(ARCH).bin @echo ---------------------------- @echo target make finish @echo ---------------------------- #���ɱ���Ŀ���ļ� $(LOCALTARGET):$(OBJS) $(LINK) $(LKFLAGS) -o $@ $(filter %.o ,$+) $(LIBS) # ɾ�����ɵ��м��ļ� clean: -rm $(OBJS) $(LOCALTARGET) $(TEMPTARGET) fes1.bin