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

📄 makefile.2.4

📁 linux数字电视播放器,比先的版本高一些.
💻 4
字号:
# where the kernel sources are locatedKERNEL_LOCATION=/usr/src/linux################################################## some magic for using linux kernel settings# when compiling module(s)CC=gccEXTRA_CFLAGS = -g -I ../include -I $(KERNEL_LOCATION)/include/ \		-DEM8300_VIDEOMODE_DEFAULT=EM8300_VIDEOMODE_PAL \		-DEM8300_AUDIOMODE_DEFAULT=EM8300_AUDIOMODE_ANALOGMODULES = em8300.o adv717x.o bt865.o adv717x_eeprom.oEM8300_OBJS = em8300_main.o em8300_i2c.o em8300_audio.o em8300_fifo.o \	   em8300_video.o em8300_misc.o em8300_dicom.o em8300_ucode.o \	   em8300_ioctl.o em8300_spu.o em9010.oMODVERS=$(shell cat $(KERNEL_LOCATION)/include/linux/autoconf.h | grep "CONFIG_MODVERSIONS" | cut -d " " -f 3)KERNVER=$(shell cat $(KERNEL_LOCATION)/include/linux/version.h | grep "UTS" | sed -e 's/.*"\(.*\)"/\1/')SOUND_BUILTIN=$(shell cat $(KERNEL_LOCATION)/include/linux/autoconf.h | grep " CONFIG_SOUND " | cut -d " " -f 3)SOUND_MODULE=$(shell cat $(KERNEL_LOCATION)/include/linux/autoconf.h | grep " CONFIG_SOUND_MODULE " | cut -d " " -f 3)I2CALGO_BUILTIN=$(shell cat $(KERNEL_LOCATION)/include/linux/autoconf.h | grep " CONFIG_I2C_ALGOBIT " | cut -d " " -f 3)I2CALGO_MODULE=$(shell cat $(KERNEL_LOCATION)/include/linux/autoconf.h | grep " CONFIG_I2C_ALGOBIT_MODULE " | cut -d " " -f 3)CFLAGS=-D__KERNEL__ -DMODULE $(EM8300_DEBUG) -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer $(EXTRA_CFLAGS)ifeq "$(MODVERS)" "1"	CFLAGS+=-DMODVERSIONS -include $(KERNEL_LOCATION)/include/linux/modversions.hendififeq "$(SOUND_BUILTIN)" "1"	CFLAGS+=-DREGISTER_DSPelse	ifeq "$(SOUND_MODULE)" "1"		CFLAGS+=-DREGISTER_DSP	endifendififeq "$(I2CALGO_BUILTIN)" "1"	CFLAGS+=-DI2C_BITBANGINGelse	ifeq "$(I2CALGO_MODULE)" "1"		CFLAGS+=-DI2C_BITBANGING	endifendifall : $(MODULES)debug :	EM8300_DEBUG="-DDEBUG" makeem8300.o : $(EM8300_OBJS)	$(LD) $(EXTRA_LDFLAGS) -r -o $@ $(EM8300_OBJS)install : $(MODULES)	@for module in $^ ;\	do \	install -D $$module $(prefix)/lib/modules/`uname -r`/kernel/drivers/video/$$module ;\	echo $$module ;\	done	@depmod -a	@echo em8300.h	@install -D ../include/linux/em8300.h \		$(KERNEL_LOCATION)/include/linux/em8300.h	@echo Installed to running kernelinstall-newkern : $(MODULES)	@for module in $^ ;\	do \	install -D $$module /lib/modules/$(KERNVER)/kernel/drivers/video/$$module ;\	echo $$module ;\	@echo em8300.h	@install -D ../include/linux/em8300.h \		$(KERNEL_LOCATION)/include/linux/em8300.h	done	@echo Installed to kernel version of header filesclean :	rm *.o

⌨️ 快捷键说明

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