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

📄 makefile

📁 linux平台上的开放源代码的网络摄像机程序.实现视频捕捉,传输以及云台控制等.非常具有参考价值.
💻
字号:
# tools/e100boot/sbl/Makefile# Makefile to generate .ima files used when booting ETRAX100# Now support building images for debug on serial port 0-3 and none # $Id: Makefile,v 1.20 2001/10/31 14:41:27 johana Exp $INCS  = -I.CFLAGS  = -O2 -Wall -nostdinc -nostdlib  -I. $(INCS)CFLAGS += -DBUILDING_CBLLNFLAGS = -Ttext 0x380000f0CFLAGS += -isystem $(prefix)/include# The code in here assumes stuff that is only true for a.out objects.# If this is gcc-cris from cris-dist-1.10 or later, we need to supply# -maout for that, an option which is not available in earlier versions.# Use a simple make-variable to evaluate the test only once per make# invocation in this directory.CC      := gcc-cris $(shell `gcc-cris -print-prog-name=ld` -V | sed -n -e 's/.* crisaout/-maout/p')SRCS    = common_init.c net_init.c common.c ser_init.c crc_buffer.c flash.cOBJS    = common_init.o net_init.o common.o ser_init.o crc_buffer.o flash.oIMAGES  = net_boot_none.ima net_boot0.ima net_boot1.ima net_boot2.ima \          net_boot3.imaifeq (.target_port_none,$(wildcard .target_*))CFLAGS += -DCONFIG_DEBUG_PORT_NONEendififeq (.target_port0,$(wildcard .target_*))CFLAGS += -DCONFIG_DEBUG_PORT0endififeq (.target_port1,$(wildcard .target_*))CFLAGS += -DCONFIG_DEBUG_PORT1endififeq (.target_port2,$(wildcard .target_*))CFLAGS += -DCONFIG_DEBUG_PORT2endififeq (.target_port3,$(wildcard .target_*))CFLAGS += -DCONFIG_DEBUG_PORT3endifall: all_imagesall_images: $(SRCS) ./../../../os/linux/include/linux/autoconf.h	@echo "Generating all images: $(IMAGES)"	rm -f *.ima	make miniclean	touch .target_port_none	make net_boot	mv net_boot.ima net_boot_none.ima	make miniclean	touch .target_port0	make net_boot	mv net_boot.ima net_boot0.ima	make miniclean	touch .target_port1	make net_boot	mv net_boot.ima net_boot1.ima	make miniclean	touch .target_port2	make net_boot	mv net_boot.ima net_boot2.ima	make miniclean	touch .target_port3	make net_boot	mv net_boot.ima net_boot3.ima	rm .target_port3	touch all_images	@echo "###############################################################"	@./free_size	@echo "###############################################################"net_boot: common_init.o net_init.o common.o ser_init.o crc_buffer.o flash.o	$(CC) -o $@.out  $(CFLAGS) $(LNFLAGS) crc_buffer.o common_init.o \	net_init.o common.o ser_init.o flash.o	cris-objcopy -O binary --remove-section=.data --remove-section=.bss $@.out $@.text	cris-objcopy -O binary --remove-section=.text --remove-section=.bss $@.out $@.data	cat $@.text $@.data >$@.ima	rm $@.text $@.data#svinto_boot: svinto_boot.c svinto_boot.o#	$(CC) -o svinto_boot.out $(CFLAGS) $(LNFLAGS) svinto_boot.c $(LIBS)#	$(CC) -o svinto_boot.out2 $(CFLAGS) svinto_boot.c $(LIBS)#	cris-strip.pl svinto_boot.out svinto_boot.ima#	cris-sym-tab svinto_boot.out > svinto_boot.symcommon_init.o: common_init.c	$(CC) -c -o $@ $(CFLAGS) $<common.o: common.c	$(CC) -c -o $@ $(CFLAGS) $<net_init.o: net_init.c	$(CC) -c -o $@ $(CFLAGS) $<ser_init.o: ser_init.c	$(CC) -c -o $@ $(CFLAGS) $<crc_buffer.o: crc_buffer.c	$(CC) -c -o $@ $(CFLAGS) $<flash.o: flash.c	$(CC) -c -o $@ $(CFLAGS) $<#.PHONY: svinto_boot_version.hsvinto_boot_version.h: $(SRCS)	@if [ ! -f svinto_boot_version.h ]; then \	echo "Generating version file....."; \	echo "char svinto_boot_version[]=\"This bootloader hacked by `id -u -n` `date`.\\r\\n\";" > svinto_boot_version.h;\	fiser_boot: common_init.o net_init.o common.o ser_init.o	$(CC) -o $@.out  $(CFLAGS) $(LNFLAGS) common_init.o ser_init.o net_init.o common.o	$(CC) -o $@.out2 $(CFLAGS) common_init.o ser_init.o net_init.o common.o	cris-strip.pl $@.out $@.imaminiclean:	rm -f *.o *.out *.res *.sym .target* all_images svinto_boot_version.hclean: 	rm -f *.o *.out *.res *.sym *.ima .target* all_images svinto_boot_version.hdepend:	makedepend -Y -I. $(SRCS) 2>/dev/null# -------------------------------------------------------------------------# The following is used to automatically generate dependencies.# DO NOT DELETEcommon_init.o: ./sv_addr_ag.h sv_addr.agh ./svinto_boot.h ./serialdefines.hnet_init.o: ./sv_addr_ag.h sv_addr.agh ./svinto_boot.h ./serialdefines.hcommon.o: ./../../../os/linux/include/linux/autoconf.h ./serialdefines.hcommon.o: ./sv_addr_ag.h sv_addr.agh ./svinto_boot.h ./svinto_boot_version.hser_init.o: ./sv_addr_ag.h sv_addr.agh ./svinto_boot.h ./serialdefines.hcrc_buffer.o: ./svinto_boot.h ./serialdefines.hflash.o: ./svinto_boot.h ./serialdefines.h

⌨️ 快捷键说明

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