makefile.kernelmodule

来自「一种linux下的看摄像头的画面的软件」· KERNELMODULE 代码 · 共 53 行

KERNELMODULE
53
字号
#
# Possible settings:
# _DEBUG_ will make the driver _verbose_ (via syslog KERN_DEBUG) , please let
#   this switched on until we have version 1.0, we need the output in case
#   of troubles
# CONFIG_VIDEO_CPIA_PP_DMA will enable dma code, see README for further info
# __SMP__ if you have compiled your kernel with SMP support (more than
#   one CPU)
# 

CC       = gcc
DEBUG    =
WARN     = -Wall -Wstrict-prototypes
OPTIMIZE = -O2 -pipe
CODESTYL = -fomit-frame-pointer -fno-strength-reduce
INCLUDES = -I.
DEFINES  = -D__KERNEL__ -DMODULE -D_DEBUG_
CFLAGS   = $(DEBUG) $(WARN) $(OPTIMIZE) $(CODESTYL) $(INCLUDES) $(DEFINES)
LIBS     =
LFLAGS   =
OBJS     = sq.o

all: .depend $(OBJS)

.c.o:
	$(CC) -c $(WARN) $<

test:	bayer.o gamma.o test-sq.o
	gcc -o test-sq bayer.o gamma.o test-sq.o -lm

install:  $(OBJS)
	install -m=644 -o=root -g=root $(OBJS) /lib/modules/`uname -r`/misc
	/sbin/depmod -a

clean:
	rm -f *.o *~ core .depend

dep:
	rm -f .depend
	make .depend

.depend:
	echo '# Program dependencies' >.depend
	gcc -M $(CFLAGS) *.c >>.depend

#
# include a dependency file if one exists
#
ifeq (.depend,$(wildcard .depend))
include .depend
endif

⌨️ 快捷键说明

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