📄 makefile
字号:
ARCH_FORMAT= coff-e1BUILD_ROMS= $(ROMS)BUILD_COFFS= $(patsubst %img, %coff, $(IMGS))CC= e1-coff-gccAS= e1-coff-asLD= e1-coff-ldSIZE= e1-coff-sizeAR= e1-coff-arRANLIB= e1-coff-ranlibOBJCOPY=e1-coff-objcopy# DMAC_HW_ADDR_DRV holds the ethernet's MAC address. It is passed as# flag to the low level driver instead of reading it from an # external EEPROM, which we do not have!EXTRA_CFLAGS = -DEMBEDDED -DMAC_HW_ADDR_DRV="'H','Y','L','N','X','1'"START= $(BIN)/start.oSTART16= $(BIN)/start.oSRCS+= arch/e1/core/e132_xs.cSRCS+= arch/e1/core/e1_timer.cSRCS+= arch/e1/core/longjmp.cSRCS+= arch/e1/core/memcmp.SSRCS+= arch/e1/core/memcpy.SSRCS+= arch/e1/core/memset.SSRCS+= arch/e1/core/setjmp.cSRCS+= arch/e1/core/strcmp.SSRCS+= arch/e1/core/start.SROMLIMIT:=3276800include $(BIN)/RomsROMS= $(BIN)/cs89x0.romIMGS= $(BIN)/cs89x0.img#allfiles: $(BUILD_ROMS)all: $(BUILD_COFFS)BOBJS+= $(BIN)/e1_timer.oBOBJS+= $(BIN)/memcmp.o $(BIN)/memcpy.o $(BIN)/memset.oBOBJS+= $(BIN)/setjmp.o $(BIN)/longjmp.o BOBJS+= $(BIN)/e132_xs.o# Utilities$(BIN)/nrv2b: util/nrv2b.c $(HOST_CC) -O2 -DENCODE -DDECODE -DMAIN -DVERBOSE -DNDEBUG -DBITSIZE=32 -DENDIAN=0 -o $@ $<# Pattern Rules# General for compiling/assembly source files$(BIN)/cs89x0.o: drivers/net/cs89x0.c $(MAKEDEPS) $(CC) $(CFLAGS) $(EXTRA_CFLAGS) -o $@ -c $<# With the current tools we have problem with the compilation # of the vsprintf file when the -O2 is selected. So we compile # the aforemntioned file with -O1 !!!$(BIN)/vsprintf.o: core/vsprintf.c $(MAKEDEPS) $(CC) $(CFLAGS) -O1 -o $@ -c $<$(BIN)/%.o: arch/e1/core/%.c $(MAKEDEPS) $(CC) $(CFLAGS) -o $@ -c $<$(BIN)/%.o: arch/e1/core/%.S $(MAKEDEPS) $(CPP) $(CFLAGS) -D ASSEMBLY $< | $(AS) $(ASFLAGS) -o $@$(BIN)/%.coff: $(BIN)/%.tmp $(MAKEDEPS) mv $< $(BIN)/etherboot.coff
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -