File: make_rules

package info (click to toggle)
tun 1.1-7
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 496 kB
  • ctags: 329
  • sloc: ansic: 2,936; sh: 1,584; makefile: 341
file content (27 lines) | stat: -rw-r--r-- 904 bytes parent folder | download
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
#
#  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/01/10 00:34:22 maxk Exp $
#

module:

ifeq ($(UPGRADE), 1)
kernel:
	@$(INSTALL) -v -m 644 -o root -g root tun.c $(KDIR)/drivers/net
	@$(INSTALL) -v -m 644 -o root -g root if_tun.h $(KDIR)/include/linux
else
kernel:
	@echo "Kernel driver upgrade is not required";
endif