#
#       Copyright (C) 1997 Claus Heine.
#
# 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, 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; see the file COPYING.  If not, write to
# the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
#
# $Source: /homes/cvs/ftape-stacked/contrib/swapout/Makefile,v $
# $Revision: 1.10 $
# $Date: 1997/10/05 19:17:47 $
#
#      Makefile for the swapout utility for the QIC-40/80/3010/3020
#      floppy-tape driver "ftape" for Linux.
#
TOPDIR = ../..
#
# all other configuration is in $(TOPDIR)/MCONFIG:
#
include $(TOPDIR)/MCONFIG

PROGS = swapout
SRCS  = swapout.c
OBJS  = swapout.o

override CPPFLAGS = -I$(TOPDIR)/include -D_GNU_SOURCE
override MODULE_OPT = 
LDFLAGS=-s

include $(TOPDIR)/Rules.make

$(PROGS): $(OBJS)

$(OBJS): $(SRCS)

install:: $(PROGS)
	$(INSTALL) -m 0744 $(PROGS) $(SBINDIR)

uninstall::
	cd $(SBINDIR) ; rm -f $(PROGS)
