#
# Makefile  -  makefile for packet driver binaries
#
# Copyright (C) 1998-2003 Gero Kuhlmann <gero@gkminix.han.de>
#
#  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
#  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., 675 Mass Ave, Cambridge, MA 02139, USA.
#
# $Id: Makefile,v 1.6 2003/01/25 23:29:42 gkminix Exp $
#


#
#  Include user configuration:
#
include ../../../make.config


#
# Name of module this subdirectory is part of
#
MODULE		= netdrvr
MODSUBDIR	= ndis2


#
#  List of source and object files:
#
DRVEXT1		= dos
DRVEXT2		= sys
DRIVERS		= $(wildcard *.$(DRVEXT1)) $(wildcard *.$(DRVEXT2))
MD5FILES	= $(addsuffix .md5,$(basename $(DRIVERS)))
CSRCS		= 
ASRCS		=
TARGET		= md5sums


#
#  Flags for compiling the sources
#
FLAGS		= $(UTLFL)


#
#  Include system dependent definitions:
#
include ../../../make.defs


#
#  Target rules.
#
all:		$(TARGET)


%.md5:		%.$(DRVEXT1)
	$(MD5SUM) -b $(srcdir)/$(MODULE)/$(MODSUBDIR)/drivers/$< | \
	  sed "s,$(srcdir)/$(MODULE)/,," >$@

%.md5:		%.$(DRVEXT2)
	$(MD5SUM) -b $(srcdir)/$(MODULE)/$(MODSUBDIR)/drivers/$< | \
	  sed "s,$(srcdir)/$(MODULE)/,," >$@



#
#  Maintenance rules.
#
.PHONY:	dep install clean distclean realclean md5sums

install:
	$(INSTALL) -o bin -g bin -d $(nblibdir)
	$(INSTALL) -o bin -g bin -d $(nblibdir)/$(MODULE)
	$(INSTALL) -o bin -g bin -d $(nblibdir)/$(MODULE)/$(MODSUBDIR)
	#@for i in $(DRIVERS); do \
	#  INSTALL="$(INSTALL)" $(top_srcdir)/misc/instdrv $$i $(nblibdir); \
	#done


md5sums:	$(MD5FILES)


dep:


clean:


distclean:


realclean:
	rm -f $(MD5FILES)



syntax highlighted by Code2HTML, v. 0.9.1