1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39
|
#
# Universal TUN/TAP device driver.
# Copyright (C) 1999-2000 Maxim Krasnyansky <max_mk@yahoo.com>
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# $Id: make_rules,v 1.2 2001/02/02 03:51:35 maxk Exp $
#
all: module
include $(KDIR)/.config
include $(KDIR)/arch/$(ARCH)/Makefile
CFLAGS := $(CFLAGS) $(DEFS) -O2 -DMODULE -D__KERNEL__ -I$(HPATH) -I. \
-Wall -Wstrict-prototypes -fomit-frame-pointer -fno-strict-aliasing
ifdef CONFIG_SMP
CFLAGS += -D__SMP__
endif
ifdef CONFIG_MODVERSIONS
CFLAGS += -DMODVERSIONS -include $(HPATH)/linux/modversions.h
endif
module: tun.o
tun.o: tun.c if_tun.h
kernel: module
$(INSTALL) -d -m 755 -o root -g root $(MDIR)
$(INSTALL) -m 644 -o root -g root tun.o $(MDIR)
$(DEPMOD) -a
|