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

📄 makefile

📁 This a naive implementation of BOOTP/TFTPBOOT, the protocols to use to bootstrap a computer through
💻
字号:
## tftpnaive makefile#VPATH := ../src:$VPATHBASELIBDIR = ../../baselibBASELIBINCDIR = ../../baselib/includeBASELIB = $(BASELIBDIR)/lib/libbaselib.aTFTPNAIVELIB = libtftpnaive.a## Compilation environment#TARGET  = m68k-elfARCH    = -m68000LSCRIPT = ram.ld# Compiler and associated tools filenames.CC = $(TARGET)-gccLD = $(TARGET)-ldAR = $(TARGET)-arOBJCOPY = $(TARGET)-objcopy# Board setting# -DCONFIG_DRAGEN2 for the Dragon Engine II# -DCONFIG_UCDIMM for the uCdimmDEFS = -DCONFIG_DRAGEN2 -DTFTPNAIVE_TIMEREQUEST# Flags.AFLAGS = $(ARCH) -Wall $(DEFS) -I../src -I../include -I$(BASELIBINCDIR)CFLAGS = $(ARCH) -Wall -O2 --omit-frame-pointer $(DEFS) -I../src -I../include -I$(BASELIBINCDIR)LFLAGS = $(ARCH) -nostdlib -T $(LSCRIPT) -Wl,-Map=$(basename $@).map## Targets#LIBOBJ = \	cs89x.o \	arp.o \	ip.o \	icmp.o \	udp.o \	bootp.o \	tftp.o \	net.o \	netinit.oOBJECTS = \	main.oall: prog.bin$(TFTPNAIVELIB): ${LIBOBJ}	$(AR) -rcs $@ ${LIBOBJ}$(BASELIB):	make -C $(BASELIBDIR)crt0.o: crt0.S	$(CC) $(AFLAGS) -o $@ -c $+prog.out: ${OBJECTS} crt0.o $(TFTPNAIVELIB) $(BASELIB)	$(CC) $(LFLAGS) -o $@ ${OBJECTS} $(TFTPNAIVELIB) $(BASELIB)prog.bin: prog.out	$(OBJCOPY) -O binary -j .text -j .data $< $@clean:	rm -f *.a *.o *.map *.srec *.disasm *.brec *.out *.bin *~ *.s

⌨️ 快捷键说明

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