makefile

来自「Solaris操作系统下的过滤驱动程序, C源码程序.」· 代码 · 共 48 行

TXT
48
字号
## Makefile for the Linux 2.4 wrapfs## this should point to where your kernel headers areTOPINC	= -I/lib/modules/$(shell uname -r)/build/include# allow custmom override of TOPINC for fistgen developers-include fistdev.mkCC	= gccCFLAGS = -D__KERNEL__ -DMODULE -DFISTGEN -I. ${TOPINC} -O2 -Wall -Wno-unused -WerrorUCFLAGS = -DFISTGEN -I. ${TOPINC} -g -O2 -Wall -Wno-unused # -WerrorO_TARGET := wrapfs.oADD_M_SRC = FIST_MOD_SRC FIST_AUX_SRC# vm_area.o is not needed if we use generic_file_mmap# mmap.o and attach.o are optionally addedO_OBJS   := fist_wrapfs.o \	dentry.o file.o inode.o main.o super.o print.o \	${ADD_M_SRC:.c=.o}M_OBJS   := $(O_TARGET)BINS	:=	fist_ioctl FIST_USER_BINSall:	${O_TARGET} ${BINS}${O_TARGET}: ${O_OBJS}	ld -o ${O_TARGET} -r ${O_OBJS}fist_ioctl: fist_ioctl.c	${CC} -o $@ $? ${UCFLAGS}FIST_UBIN_RULESTAGS:	etags -t *.[hc]clean:	rm -f ${O_TARGET} ${O_OBJS} *.d .*.flags \#* *~	rm -f ${BINS} TAGS# dependencies${O_OBJS}: wrapfs.h fist.h fist_wrapfs.h FIST_MOD_HDR# additional makefile rules, if anyFIST_ADDMK

⌨️ 快捷键说明

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