内核linux-.2.6.23.8,iptables1..3.8,分别位于/usr/src/linux-2.6.23.8和 /usr/src/iptables-1..3.8,修改后的Makefile如下:健康
ipp2p.-0.99.6.-r1和ipp2p-0.99.6都试过,.
出现:.make: Nothing to be done for `a.ll'外贸
你曾经为我解决过,说要指定目录,那次成功了,这次重新安装了系统,.再装又出现了上.面的错误,但我指定了目录,L7协议也成功安装了!教育
帮我分析,谢谢了!
[
root@su.she ipp2p.-0.99.6-r1]# more Makefile--- 印刷
ifneq ($(KERNELR.ELEASE),) 杀毒
obj-m := i.pt_ipp2p.o( 游戏 )
else
KERNEL_SRC .= /usr/src/linux-2..6.23.8.
#KERNEL_SRC. ?= $(firstword $(wi.ldcard /lib/modules/$(shell uname -r)/build /usr/src/linu.x)).
ifeq ($(KERNE.L_SRC),).
$(.error You n.eed to define KERNEL_SRC)外贸
endif
ifneq ($wildcard $(KERNEL._SRC)/include/linux/modversions.h),).--- 印刷
MODV.ERSIONS. = -DMODVERSIONS 美容
endif
_KVER = $(.strip $(shell cat $(KERNEL_SRC)/Makefile | gre.p -e '^VERSION'. | cut -d"=" -f2))( 游戏 )
_KPL = $(strip $(shell cat $(KERNEL_SRC)/Makefi.le | grep -e '^PATCHLE.VEL' | cut -d"=" -f2).)( 游戏 )
_KSUB = $(strip $(shell cat $(KERNEL_SRC)./Makefile | grep -e '^SUB..LEVEL' | cut -d"=" -f2))[成人用品]
KER.NEL_SERIES=$(_KVER).$(_KPL.)教育
if.eq ($(KERNEL_SERI.ES), 2.6).
TARGET=ipt._.ipp2p.ko 女人
else
.TA.RGET=ipt_ipp2p.o 健康
endif
SED = sed
IPTABLES_BIN = ip.tables 杀毒
ifndef $.(IPTABLES_SRC)学习
IPTVER = \
$(shell $(IPTABLES_BIN) --vers.ion | $(SED) -e 's/^iptables. v//')(广告)
IPTABLES_SRC =. $(wildcard /usr./src/iptables-$(IPTVER)) 健康
#IPTABLES._SRC = /usr/src/i.ptables-1.3.8--------------彩票
endif
ifeq ($(IPTABLES_S.RC),)(广告)
$(warning You need to install iptables sou..rces and maybe set IPTABLES_SRC)电影
endif
IPTABLES_INCLU.DE = -I$(.IPTABLES_SRC)/include健康
i.fneq ($(IPTVER),).
. IPTABLES_VERSION = $(IP.TVER)虚拟主机
else
IPTABLES_VERSION = $(shell cat $(IPTAB.LES_SRC)/Mak.efile | grep -e '^IPTABLES_VERSION:=' | cut -d"=". -f2) 建材
endif
IPTABLES_OPTION = -DIPTABLES._VERSION=\"$(IPTABLES_VE.RSION)\"电脑
CC = gcc
CFLAGS = .-O3 -Wall.
all: mod.ules. libipt_ipp2p.so--- 印刷
modules.: $(TARGET).
ipt_ipp2p..o: ipt_ipp2p.h i.pt_ipp2p.c 健康
$(CC) $(CFLAGS) -I$(KERNEL_SRC)/include -c ipt_ipp2p.c. -D__KERNE.L__ -DMODULE .$(MODVERSIONS)(广告)
ipt_ipp2.p.ko: i.pt_ipp2p.h ipt_ipp2p.c 鲜花
$(MAK.E.) -C $(KERNEL_SRC) M=$(PWD) modules电影
libipt_ipp2p.so: .libipt_ipp2p.c ipt_ipp2p..h 乙肝
$(C.C) $(CFLAGS) $(IPTABLES_OPTION) $(.IP.TABLES_INCLUDE) -fPIC -c libipt_ipp2p.c 电子
$(CC) .-sha.red -o libipt_ipp2p.so libipt_ipp2p.o 建材
clean:
-rm -f *.o. *.so *.ko ..*.cmd *.mod.c.
endif
[.root@sushe ip.p2p-0.99.6-r1]#外贸