54 lines
1.7 KiB
Plaintext
Executable File
54 lines
1.7 KiB
Plaintext
Executable File
#/*
|
||
#*********************************************************************************************************
|
||
#* 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
|
||
#*********************************************************************************************************
|
||
#*/
|
||
|
||
|
||
#<23><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||
BSP_PATH = bsp_for_a39
|
||
ARCH = sun9iw1p1
|
||
ARM_CROSS_TOOL = ARMCC_CROSSTOOL
|
||
include make.cfg
|
||
|
||
#<23><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ŀ¼<C4BF>еõ<D0B5>Դ<EFBFBD><D4B4><EFBFBD><EFBFBD><EFBFBD><EFBFBD>б<EFBFBD>
|
||
SRCCS=$(foreach dir,$(SRCDIRS),$(wildcard $(dir)/*.c))
|
||
SRCSS=$(foreach dir,$(SRCDIRS),$(wildcard $(dir)/*.s))
|
||
|
||
#<23>õ<EFBFBD>Դ<EFBFBD><D4B4><EFBFBD><EFBFBD><EFBFBD>Ӧ<EFBFBD><D3A6>Ŀ<EFBFBD><C4BF><EFBFBD>ļ<EFBFBD><C4BC><EFBFBD><EFBFBD>б<EFBFBD>
|
||
OBJS=$(SRCCS:.c=.o) $(SRCSS:.s=.o)
|
||
|
||
|
||
#<23><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ŀ<EFBFBD><C4BF><EFBFBD>ļ<EFBFBD>
|
||
all:$(LOCALTARGET)
|
||
$(LOAD) $(LDFLAGS) $(TMPTARGET) $(LOCALTARGET)
|
||
-$(WORKTOOLS)/gen_check_code.exe $(TMPTARGET) fes1_$(ARCH).bin
|
||
-cp fes1_$(ARCH).bin $(TARGET)
|
||
-cp fes1_$(ARCH).bin $(TARGET1)
|
||
-rm $(OBJS) $(TMPTARGET) fes1_$(ARCH).bin
|
||
@echo ----------------------------
|
||
@echo target make finish
|
||
@echo ----------------------------
|
||
|
||
#<23><><EFBFBD>ɱ<EFBFBD><C9B1><EFBFBD>Ŀ<EFBFBD><C4BF><EFBFBD>ļ<EFBFBD>
|
||
$(LOCALTARGET):$(OBJS)
|
||
$(LINK) $(LKFLAGS) -o $@ $(filter %.o ,$+) $(LIBS)
|
||
|
||
|
||
# ɾ<><C9BE><EFBFBD><EFBFBD><EFBFBD>ɵ<EFBFBD><C9B5>м<EFBFBD><D0BC>ļ<EFBFBD>
|
||
clean:
|
||
-rm $(OBJS) $(LOCALTARGET) $(TEMPTARGET)
|
||
|