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

📄 make.mak

📁 三星S3C2440开发系统基本功能测试程序
💻 MAK
字号:
##############################################
# File name: Makefile
# Description: 3C2440 Makefile for ADS1.2
# Date: April 15, 2003.
# Revision History
# Rev0.0: made for 2440 test program.
##############################################


##### File Definition ####
PRJ = 2440test
INIT= 2440init
AM1 = 2440slib
AM2 = swis
CM1 = 2440lib
CM2 = mmu
CM3 = retarget
CM4 = xmain

UC1 = User_Test
UC2 = User_Test1
UC3 = User_Test2
UC4 = PD6710
UC5 = int
UC6 = eint
UC7 = nwait
UC8 = stone
UC9 = nand
UC10 = k9k2g16
UC11 = CpuSpeed
UC12 = Userlib
UC13 = idle
UC14 = power
UC15 = pwr_c
UC16 = sleep
UC17 = pll
UC18 = glib
UC19 = lcdlib
UC20 = lcd
UC21 = memtest
UC22 = iotest
UC23 = am29f800
UC24 = flash
UC25 = strata32
UC26 = camif
UC27 = sccb
UC28 = iic
UC29 = rtc
UC30 = spi
UC31 = uart_test
UC32 = uart0
UC33 = uart1
UC34 = uart2
UC35 = irda
UC36 = sdi
UC37 = adcts
UC38 = timer
UC39 = dma
UC40 = iis
UC41 = iis_dual
UC42 = clkdiv
UC43 = swi
UC44 = iic_s5x532

#### Destination path Definition ####
OBJ=.\obj
ERR=.\err

#### ARM tool Definition ####
ARMLINK= armlink
ARMASM = armasm
ARMCC  = armcc
ARMCPP = armcpp

#### Option Definition ####
LFLAGS = -entry 0x30000000 -ro-base 0x30000000 -elf -map -xref -list list.txt -first $(INIT).o(Init)
AFLAGS = -li -apcs /noswst -cpu ARM920T
CFLAGS = -c -g+ -li -apcs /noswst -cpu ARM920T

#If you doesn't debug,use following CFLAGS for more faster operation.
#CFLAGS = -c -g- -li -apcs /noswst -cpu ARM920T
#dhry stone test.
#CFLAGS = -c -li  -cpu ARM920T -W -O2 -DREG=register

#### Object combine Definition ####
OBJS =	$(OBJ)\$(INIT).o $(OBJ)\$(AM1).o $(OBJ)\$(AM2).o $(OBJ)\$(PRJ).o \
	$(OBJ)\$(CM1).o $(OBJ)\$(CM2).o $(OBJ)\$(CM3).o $(OBJ)\$(CM4).o \
	$(OBJ)\$(UC1).o $(OBJ)\$(UC2).o $(OBJ)\$(UC3).o $(OBJ)\$(UC4).o \
	$(OBJ)\$(UC5).o $(OBJ)\$(UC6).o $(OBJ)\$(UC7).o $(OBJ)\$(UC8).o \
	$(OBJ)\$(UC9).o $(OBJ)\$(UC10).o $(OBJ)\$(UC11).o $(OBJ)\$(UC12).o \
	$(OBJ)\$(UC13).o $(OBJ)\$(UC14).o $(OBJ)\$(UC15).o $(OBJ)\$(UC16).o \
	$(OBJ)\$(UC17).o $(OBJ)\$(UC18).o $(OBJ)\$(UC19).o $(OBJ)\$(UC20).o \
	$(OBJ)\$(UC21).o $(OBJ)\$(UC22).o $(OBJ)\$(UC23).o $(OBJ)\$(UC24).o \
	$(OBJ)\$(UC25).o $(OBJ)\$(UC26).o $(OBJ)\$(UC27).o $(OBJ)\$(UC28).o \
	$(OBJ)\$(UC29).o $(OBJ)\$(UC30).o $(OBJ)\$(UC31).o $(OBJ)\$(UC32).o \
	$(OBJ)\$(UC33).o $(OBJ)\$(UC34).o $(OBJ)\$(UC35).o $(OBJ)\$(UC36).o \
	$(OBJ)\$(UC37).o $(OBJ)\$(UC38).o $(OBJ)\$(UC39).o $(OBJ)\$(UC40).o \
	$(OBJ)\$(UC41).o $(OBJ)\$(UC42).o $(OBJ)\$(UC43).o $(OBJ)\$(UC44).o
	
all: $(PRJ).axf

clean:
	del $(OBJ)\*.o
	del $(ERR)\*.err
	del $(PRJ).axf
	del $(PRJ).bin
	
$(PRJ).axf: $(OBJS) 
	$(ARMLINK) $(LFLAGS) -o $(PRJ).axf $(OBJS)
#For ADS1.0 
#	fromelf -nodebug -bin -output $(PRJ).bin $(PRJ).axf
#For SDT2.5x 
	fromelf -nodebug -nozeropad $(PRJ).axf -bin $(PRJ).bin 

#For ADS1.0	
#$(OBJ)\$(PRJ).o :  $(PRJ).cpp 2440addr.h 2440lib.h 2440slib.h makefile option.h
#	$(ARMCPP) $(CFLAGS)  $(PRJ).cpp -o $(OBJ)\$(PRJ).o -Errors $(ERR)\$(PRJ).err
#For SDT2.5	
$(OBJ)\$(PRJ).o :  $(PRJ).cpp 2440addr.h 2440lib.h 2440slib.h makefile option.h
	$(ARMCC) $(CFLAGS)  $(PRJ).cpp -o $(OBJ)\$(PRJ).o -Errors $(ERR)\$(PRJ).err
 
$(OBJ)\$(INIT).o:  $(INIT).s  option.inc  memcfg.inc  makefile
	$(ARMASM) $(AFLAGS)  $(INIT).s -o $(OBJ)\$(INIT).o -Errors $(ERR)\$(INIT).err

$(OBJ)\$(AM1).o:  $(AM1).s  makefile
	$(ARMASM) $(AFLAGS)  $(AM1).s -o $(OBJ)\$(AM1).o -Errors $(ERR)\$(AM1).err

$(OBJ)\$(AM2).o:  $(AM2).s  makefile
	$(ARMASM) $(AFLAGS)  $(AM2).s -o $(OBJ)\$(AM2).o -Errors $(ERR)\$(AM2).err

$(OBJ)\$(CM1).o:  $(CM1).c  2440addr.h  2440lib.h  makefile
	$(ARMCC) $(CFLAGS)  $(CM1).c -o $(OBJ)\$(CM1).o -Errors $(ERR)\$(CM1).err

$(OBJ)\$(CM2).o:  $(CM2).c  2440addr.h  2440lib.h  makefile
	$(ARMCC) $(CFLAGS)  $(CM2).c -o $(OBJ)\$(CM2).o -Errors $(ERR)\$(CM2).err

$(OBJ)\$(CM3).o:  $(CM3).c  2440addr.h  2440lib.h  makefile
	$(ARMCC) $(CFLAGS)  $(CM3).c -o $(OBJ)\$(CM3).o -Errors $(ERR)\$(CM3).err

$(OBJ)\$(CM4).o:  $(CM4).c  2440addr.h  2440lib.h  makefile
	$(ARMCC) $(CFLAGS)  $(CM4).c -o $(OBJ)\$(CM4).o -Errors $(ERR)\$(CM4).err

$(OBJ)\$(UC1).o:  $(UC1).c  2440addr.h  2440lib.h  makefile
	$(ARMCC) $(CFLAGS)  $(UC1).c -o $(OBJ)\$(UC1).o -Errors $(ERR)\$(UC1).err

$(OBJ)\$(UC2).o:  $(UC2).c  2440addr.h  2440lib.h  makefile
	$(ARMCC) $(CFLAGS)  $(UC2).c -o $(OBJ)\$(UC2).o -Errors $(ERR)\$(UC2).err

$(OBJ)\$(UC3).o:  $(UC3).c  2440addr.h  2440lib.h  makefile
	$(ARMCC) $(CFLAGS)  $(UC3).c -o $(OBJ)\$(UC3).o -Errors $(ERR)\$(UC3).err

$(OBJ)\$(UC4).o:  $(UC4).c  2440addr.h  2440lib.h  makefile
	$(ARMCC) $(CFLAGS)  $(UC4).c -o $(OBJ)\$(UC4).o -Errors $(ERR)\$(UC4).err

$(OBJ)\$(UC5).o:  $(UC5).c  2440addr.h  2440lib.h  makefile
	$(ARMCC) $(CFLAGS)  $(UC5).c -o $(OBJ)\$(UC5).o -Errors $(ERR)\$(UC5).err

$(OBJ)\$(UC6).o:  $(UC6).c  2440addr.h  2440lib.h  makefile
	$(ARMCC) $(CFLAGS)  $(UC6).c -o $(OBJ)\$(UC6).o -Errors $(ERR)\$(UC6).err

$(OBJ)\$(UC7).o:  $(UC7).c  2440addr.h  2440lib.h  makefile
	$(ARMCC) $(CFLAGS)  $(UC7).c -o $(OBJ)\$(UC7).o -Errors $(ERR)\$(UC7).err

$(OBJ)\$(UC8).o:  $(UC8).c  2440addr.h  2440lib.h  makefile
	$(ARMCC) $(CFLAGS)  $(UC8).c -o $(OBJ)\$(UC8).o -Errors $(ERR)\$(UC8).err

$(OBJ)\$(UC9).o:  $(UC9).c  2440addr.h  2440lib.h  makefile
	$(ARMCC) $(CFLAGS)  $(UC9).c -o $(OBJ)\$(UC9).o -Errors $(ERR)\$(UC9).err

$(OBJ)\$(UC10).o:  $(UC10).c  2440addr.h  2440lib.h  makefile
	$(ARMCC) $(CFLAGS)  $(UC10).c -o $(OBJ)\$(UC10).o -Errors $(ERR)\$(UC10).err

$(OBJ)\$(UC11).o:  $(UC11).c  2440addr.h  2440lib.h  makefile
	$(ARMCC) $(CFLAGS)  $(UC11).c -o $(OBJ)\$(UC11).o -Errors $(ERR)\$(UC11).err

$(OBJ)\$(UC12).o:  $(UC12).c  2440addr.h  2440lib.h  makefile
	$(ARMCC) $(CFLAGS)  $(UC12).c -o $(OBJ)\$(UC12).o -Errors $(ERR)\$(UC12).err

$(OBJ)\$(UC13).o:  $(UC13).c  2440addr.h  2440lib.h  makefile
	$(ARMCC) $(CFLAGS)  $(UC13).c -o $(OBJ)\$(UC13).o -Errors $(ERR)\$(UC13).err

$(OBJ)\$(UC14).o:  $(UC14).c  2440addr.h  2440lib.h  makefile
	$(ARMCC) $(CFLAGS)  $(UC14).c -o $(OBJ)\$(UC14).o -Errors $(ERR)\$(UC14).err

$(OBJ)\$(UC15).o:  $(UC15).c  2440addr.h  2440lib.h  makefile
	$(ARMCC) $(CFLAGS)  $(UC15).c -o $(OBJ)\$(UC15).o -Errors $(ERR)\$(UC15).err

$(OBJ)\$(UC16).o:  $(UC16).c  2440addr.h  2440lib.h  makefile
	$(ARMCC) $(CFLAGS)  $(UC16).c -o $(OBJ)\$(UC16).o -Errors $(ERR)\$(UC16).err

$(OBJ)\$(UC17).o:  $(UC17).c  2440addr.h  2440lib.h  makefile
	$(ARMCC) $(CFLAGS)  $(UC17).c -o $(OBJ)\$(UC17).o -Errors $(ERR)\$(UC17).err

$(OBJ)\$(UC18).o:  $(UC18).c  2440addr.h  2440lib.h  makefile
	$(ARMCC) $(CFLAGS)  $(UC18).c -o $(OBJ)\$(UC18).o -Errors $(ERR)\$(UC18).err

$(OBJ)\$(UC19).o:  $(UC19).c  2440addr.h  2440lib.h  makefile
	$(ARMCC) $(CFLAGS)  $(UC19).c -o $(OBJ)\$(UC19).o -Errors $(ERR)\$(UC19).err

$(OBJ)\$(UC20).o:  $(UC20).c  2440addr.h  2440lib.h  makefile
	$(ARMCC) $(CFLAGS)  $(UC20).c -o $(OBJ)\$(UC20).o -Errors $(ERR)\$(UC20).err

$(OBJ)\$(UC21).o:  $(UC21).c  2440addr.h  2440lib.h  makefile
	$(ARMCC) $(CFLAGS)  $(UC21).c -o $(OBJ)\$(UC21).o -Errors $(ERR)\$(UC21).err

$(OBJ)\$(UC22).o:  $(UC22).c  2440addr.h  2440lib.h  makefile
	$(ARMCC) $(CFLAGS)  $(UC22).c -o $(OBJ)\$(UC22).o -Errors $(ERR)\$(UC22).err

$(OBJ)\$(UC23).o:  $(UC23).c  2440addr.h  2440lib.h  makefile
	$(ARMCC) $(CFLAGS)  $(UC23).c -o $(OBJ)\$(UC23).o -Errors $(ERR)\$(UC23).err

$(OBJ)\$(UC24).o:  $(UC24).c  2440addr.h  2440lib.h  makefile
	$(ARMCC) $(CFLAGS)  $(UC24).c -o $(OBJ)\$(UC24).o -Errors $(ERR)\$(UC24).err

$(OBJ)\$(UC25).o:  $(UC25).c  2440addr.h  2440lib.h  makefile
	$(ARMCC) $(CFLAGS)  $(UC25).c -o $(OBJ)\$(UC25).o -Errors $(ERR)\$(UC25).err

$(OBJ)\$(UC26).o:  $(UC26).c  2440addr.h  2440lib.h  makefile
	$(ARMCC) $(CFLAGS) -Otime -O2  $(UC26).c -o $(OBJ)\$(UC26).o -Errors $(ERR)\$(UC26).err

$(OBJ)\$(UC27).o:  $(UC27).c  2440addr.h  2440lib.h  makefile
	$(ARMCC) $(CFLAGS)  $(UC27).c -o $(OBJ)\$(UC27).o -Errors $(ERR)\$(UC27).err

$(OBJ)\$(UC28).o:  $(UC28).c  2440addr.h  2440lib.h  makefile
	$(ARMCC) $(CFLAGS)  $(UC28).c -o $(OBJ)\$(UC28).o -Errors $(ERR)\$(UC28).err

$(OBJ)\$(UC29).o:  $(UC29).c  2440addr.h  2440lib.h  makefile
	$(ARMCC) $(CFLAGS)  $(UC29).c -o $(OBJ)\$(UC29).o -Errors $(ERR)\$(UC29).err

$(OBJ)\$(UC30).o:  $(UC30).c  2440addr.h  2440lib.h  makefile
	$(ARMCC) $(CFLAGS)  $(UC30).c -o $(OBJ)\$(UC30).o -Errors $(ERR)\$(UC30).err

$(OBJ)\$(UC31).o:  $(UC31).c  2440addr.h  2440lib.h  makefile
	$(ARMCC) $(CFLAGS)  $(UC31).c -o $(OBJ)\$(UC31).o -Errors $(ERR)\$(UC31).err

$(OBJ)\$(UC32).o:  $(UC32).c  2440addr.h  2440lib.h  makefile
	$(ARMCC) $(CFLAGS)  $(UC32).c -o $(OBJ)\$(UC32).o -Errors $(ERR)\$(UC32).err

$(OBJ)\$(UC33).o:  $(UC33).c  2440addr.h  2440lib.h  makefile
	$(ARMCC) $(CFLAGS)  $(UC33).c -o $(OBJ)\$(UC33).o -Errors $(ERR)\$(UC33).err

$(OBJ)\$(UC34).o:  $(UC34).c  2440addr.h  2440lib.h  makefile
	$(ARMCC) $(CFLAGS)  $(UC34).c -o $(OBJ)\$(UC34).o -Errors $(ERR)\$(UC34).err

$(OBJ)\$(UC35).o:  $(UC35).c  2440addr.h  2440lib.h  makefile
	$(ARMCC) $(CFLAGS)  $(UC35).c -o $(OBJ)\$(UC35).o -Errors $(ERR)\$(UC35).err

$(OBJ)\$(UC36).o:  $(UC36).c  2440addr.h  2440lib.h  makefile
	$(ARMCC) $(CFLAGS)  $(UC36).c -o $(OBJ)\$(UC36).o -Errors $(ERR)\$(UC36).err

$(OBJ)\$(UC37).o:  $(UC37).c  2440addr.h  2440lib.h  makefile
	$(ARMCC) $(CFLAGS)  $(UC37).c -o $(OBJ)\$(UC37).o -Errors $(ERR)\$(UC37).err

$(OBJ)\$(UC38).o:  $(UC38).c  2440addr.h  2440lib.h  makefile
	$(ARMCC) $(CFLAGS)  $(UC38).c -o $(OBJ)\$(UC38).o -Errors $(ERR)\$(UC38).err

$(OBJ)\$(UC39).o:  $(UC39).c  2440addr.h  2440lib.h  makefile
	$(ARMCC) $(CFLAGS)  $(UC39).c -o $(OBJ)\$(UC39).o -Errors $(ERR)\$(UC39).err

$(OBJ)\$(UC40).o:  $(UC40).c  2440addr.h  2440lib.h  makefile
	$(ARMCC) $(CFLAGS)  $(UC40).c -o $(OBJ)\$(UC40).o -Errors $(ERR)\$(UC40).err

$(OBJ)\$(UC41).o:  $(UC41).c  2440addr.h  2440lib.h  makefile
	$(ARMCC) $(CFLAGS)  $(UC41).c -o $(OBJ)\$(UC41).o -Errors $(ERR)\$(UC41).err

$(OBJ)\$(UC42).o:  $(UC42).c  2440addr.h  2440lib.h  makefile
	$(ARMCC) $(CFLAGS)  $(UC42).c -o $(OBJ)\$(UC42).o -Errors $(ERR)\$(UC42).err

$(OBJ)\$(UC43).o:  $(UC43).c  2440addr.h  2440lib.h  makefile
	$(ARMCC) $(CFLAGS)  $(UC43).c -o $(OBJ)\$(UC43).o -Errors $(ERR)\$(UC43).err

$(OBJ)\$(UC44).o:  $(UC44).c  2440addr.h  2440lib.h  makefile
	$(ARMCC) $(CFLAGS)  $(UC44).c -o $(OBJ)\$(UC44).o -Errors $(ERR)\$(UC44).err

⌨️ 快捷键说明

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