##*++======================================================================
## Program Name:     Novell NCP Redirector for Linux
## File Name:        Makefile
## Version:          v1.01
## Author:           James Turner
##
## Abstract:         This is used to generate the novfs module
## Notes:
## Revision History: 
##	6/10/2005 - Added lines for SuSE
##
## Copyright (C) 2005 Novell, Inc.
##
## 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.
##
## You should have received a copy of the GNU General Public License
## along with this program; if not, write to the Free Software
## Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
##=====================================================================--*/ 

#
# Makefile for the Novell NetWare Client for Linux filesystem.
#
NOVFS_VFS_MAJOR = 1
NOVFS_VFS_MINOR = 1
NOVFS_VFS_SUB = 0
NOVFS_VFS_RELEASE = 0
NOVFS_VFS_BUILD = $(NOVFS_VFS_MAJOR).$(NOVFS_VFS_MINOR).$(NOVFS_VFS_SUB)-$(NOVFS_VFS_RELEASE)

# Remove # from the following line for debug version
CFLAGS += -finstrument-functions
CFLAGS += -g
CFLAGS += -I.
CFLAGS += -I$(SUBDIRS)/../include
#CFLAGS += -I$(SUBDIRS)/../../include
CFLAGS += -DNOVFS_VFS_MAJOR=$(NOVFS_VFS_MAJOR)
CFLAGS += -DNOVFS_VFS_MINOR=$(NOVFS_VFS_MINOR)
CFLAGS += -DNOVFS_VFS_SUB=$(NOVFS_VFS_SUB)
CFLAGS += -DNOVFS_VFS_PATCH=$(NOVFS_VFS_PATCH)
CFLAGS += -DNOVFS_VFS_RELEASE=$(NOVFS_VFS_RELEASE)


obj-m := novfs.o

novfs-y := inode.o proc.o profile.o daemon.o file.o scope.o nwcapi.o


modules modules_add clean:
	$(MAKE) -C $(KERNEL_SOURCE) KERNEL_SOURCE=$(KERNEL_SOURCE) $@ SUBDIRS=$(CURDIR)

install : modules_add
