2001-06-08 04:36:23 +02:00
|
|
|
#
|
|
|
|
# mdctl - manage Linux "md" devices aka RAID arrays.
|
|
|
|
#
|
2002-03-07 00:17:40 +01:00
|
|
|
# Copyright (C) 2001-2002 Neil Brown <neilb@cse.unsw.edu.au>
|
2001-06-08 04:36:23 +02:00
|
|
|
#
|
|
|
|
#
|
|
|
|
# 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
|
|
|
|
#
|
|
|
|
# Author: Neil Brown
|
|
|
|
# Email: <neilb@cse.unsw.edu.au>
|
|
|
|
# Paper: Neil Brown
|
|
|
|
# School of Computer Science and Engineering
|
|
|
|
# The University of New South Wales
|
|
|
|
# Sydney, 2052
|
|
|
|
# Australia
|
|
|
|
#
|
|
|
|
|
2002-03-07 00:17:40 +01:00
|
|
|
CC = gcc
|
2001-07-26 09:00:09 +02:00
|
|
|
CFLAGS = -Wall,error,strict-prototypes -ggdb
|
2001-06-08 04:36:23 +02:00
|
|
|
|
2002-03-07 00:17:40 +01:00
|
|
|
INSTALL = /usr/bin/install
|
|
|
|
DESTDIR = /sbin
|
|
|
|
|
2001-08-23 04:33:20 +02:00
|
|
|
OBJS = mdctl.o config.o ReadMe.o util.o Manage.o Assemble.o Build.o Create.o Detail.o Examine.o Monitor.o dlink.o
|
2002-03-07 00:17:40 +01:00
|
|
|
|
|
|
|
all : mdctl mdctl.man
|
2001-06-08 04:36:23 +02:00
|
|
|
|
|
|
|
mdctl : $(OBJS)
|
|
|
|
$(CC) -o mdctl $^
|
|
|
|
|
2002-03-07 00:17:40 +01:00
|
|
|
mdctl.man : mdctl.8
|
|
|
|
nroff -man mdctl.8 > mdctl.man
|
|
|
|
|
2001-06-08 04:36:23 +02:00
|
|
|
$(OBJS) : mdctl.h
|
|
|
|
|
2002-03-07 00:17:40 +01:00
|
|
|
install : mdctl
|
|
|
|
$(INSTALL) -m 755 mdctl $(DESTDIR)/sbin
|
|
|
|
|
2001-06-08 04:36:23 +02:00
|
|
|
clean :
|
2002-03-07 00:17:40 +01:00
|
|
|
rm -f mdctl $(OBJS) core mdctl.man
|
2001-06-08 04:36:23 +02:00
|
|
|
|
|
|
|
dist : clean
|
|
|
|
./makedist
|
2001-06-14 07:33:53 +02:00
|
|
|
|
|
|
|
TAGS :
|
|
|
|
etags *.h *.c
|