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

📄 makefile

📁 三星S3C44B0开发板附带光盘
💻
字号:
##### File Definition ####
PRJ = 44bmon
INIT= 44binit
CM1 = 44blib
AM1 = 44blib_a

#### Destination path Definition ####
SRC=.
INC=..\inc
OBJ=..\obj
ERR=..\err
BIN=..\bin

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

#### Option Definition ####
LFLAGS = -ro-base 0x0 -rw-base 0xc7f0000 -elf -map -xref -list $(BIN)\list.lst
AFLAGS  = -li -apcs 3/32bit/noswst/nofp -cpu ARM7TM
CFLAGS  = -c -g+ -fc -apcs 3/32bit/noswst/nofp -li -processor ARM7TM -arch 4T

#If you doesn't debug,use following CFLAGS for more faster operation.
#CFLAGS = -c -g- -fc -apcs 3/32bit/noswst/nofp -li -processor ARM7TM -arch 4T

#### Object combine Definition ####

OBJS =	$(OBJ)\$(PRJ).o	 $(OBJ)\$(INIT).o $(OBJ)\$(CM1).o $(OBJ)\$(AM1).o

all: $(BIN)\$(PRJ).elf


$(BIN)\$(PRJ).elf: $(OBJS) 
	del $(BIN)\$(PRJ).bin
	del $(BIN)\$(PRJ).elf
	$(ARMLINK) $(LFLAGS) -first $(OBJ)\$(INIT).o(Init) -o $(BIN)\$(PRJ).elf $(OBJS)
	fromelf -nodebug -nozeropad $(BIN)\$(PRJ).elf -bin $(BIN)\$(PRJ).bin
	fromelf $(BIN)\$(PRJ).elf -text/s $(BIN)\syms.sym	
	fromelf $(BIN)\$(PRJ).elf -text/c $(BIN)\symc.sym	

$(OBJ)\$(PRJ).o : $(SRC)\$(PRJ).c $(INC)\lcd.h $(INC)\44b.h $(INC)\44blib.h makefile
	del $(OBJ)\$(PRJ).o 
	del $(ERR)\$(PRJ).err
	$(ARMCC) $(CFLAGS) $(SRC)\$(PRJ).c -o $(OBJ)\$(PRJ).o -Errors $(ERR)\$(PRJ).err
 
$(OBJ)\$(INIT).o: $(SRC)\$(INIT).s makefile
	del $(OBJ)\$(INIT).o 
	del $(ERR)\$(INIT).err
	$(ARMASM) $(AFLAGS) $(SRC)\$(INIT).s -o $(OBJ)\$(INIT).o -Errors $(ERR)\$(INIT).err

$(OBJ)\$(CM1).o: $(SRC)\$(CM1).c $(INC)\44b.h $(INC)\44blib.h makefile
	del $(OBJ)\$(CM1).o 
	del $(ERR)\$(CM1).err
	$(ARMCC) $(CFLAGS) $(SRC)\$(CM1).c -o $(OBJ)\$(CM1).o -Errors $(ERR)\$(CM1).err

$(OBJ)\$(AM1).o: $(SRC)\$(AM1).s $(INC)\44b.h $(INC)\44blib.h makefile
	del $(OBJ)\$(AM1).o 
	del $(ERR)\$(AM1).err
	$(ARMASM) $(AFLAGS) $(SRC)\$(AM1).s -o $(OBJ)\$(AM1).o -Errors $(ERR)\$(AM1).err

⌨️ 快捷键说明

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