mdadm/Makefile

74 lines
2.0 KiB
Makefile
Raw Normal View History

2001-06-08 04:36:23 +02:00
#
2002-03-08 01:03:52 +01:00
# mdadm - manage Linux "md" devices aka RAID arrays.
2001-06-08 04:36:23 +02:00
#
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
2002-03-20 23:39:50 +01:00
SYSCONFDIR = /etc
CONFFILE = $(SYSCONFDIR)/mdadm.conf
2002-04-04 03:58:32 +02:00
CFLAGS = -Wall -Werror -Wstrict-prototypes -ggdb -DCONFFILE=\"$(CONFFILE)\"
2002-03-20 23:39:50 +01:00
# If you want a static binary, you might uncomment these
# LDFLAGS = -static
# STRIP = -s
2001-06-08 04:36:23 +02:00
2002-03-07 00:17:40 +01:00
INSTALL = /usr/bin/install
2002-03-08 01:03:52 +01:00
DESTDIR = /.
BINDIR = /sbin
MANDIR = /usr/share/man/man8
2002-03-07 00:17:40 +01:00
2002-04-04 03:58:32 +02:00
OBJS = mdadm.o config.o mdstat.o ReadMe.o util.o Manage.o Assemble.o Build.o Create.o Detail.o Examine.o Monitor.o dlink.o Kill.o Query.o
2002-03-07 00:17:40 +01:00
2002-03-15 06:21:36 +01:00
all : mdadm mdadm.man md.man mdadm.conf.man
2001-06-08 04:36:23 +02:00
2002-03-08 01:03:52 +01:00
mdadm : $(OBJS)
2002-03-20 23:39:50 +01:00
$(CC) $(LDFLAGS) -o mdadm $^
2001-06-08 04:36:23 +02:00
2002-03-08 01:03:52 +01:00
mdadm.man : mdadm.8
nroff -man mdadm.8 > mdadm.man
2002-03-07 00:17:40 +01:00
2002-03-15 06:21:36 +01:00
md.man : md.4
nroff -man md.4 > md.man
mdadm.conf.man : mdadm.conf.5
nroff -man mdadm.conf.5 > mdadm.conf.man
2002-03-08 01:03:52 +01:00
$(OBJS) : mdadm.h
2001-06-08 04:36:23 +02:00
2002-03-08 01:03:52 +01:00
install : mdadm mdadm.8
2002-03-20 23:39:50 +01:00
$(INSTALL) $(STRIP) -m 755 mdadm $(DESTDIR)/$(BINDIR)
2002-03-08 01:03:52 +01:00
$(INSTALL) -m 644 mdadm.8 $(DESTDIR)/$(MANDIR)
2002-03-07 00:17:40 +01:00
2001-06-08 04:36:23 +02:00
clean :
2002-03-08 01:03:52 +01:00
rm -f mdadm $(OBJS) core mdadm.man
2001-06-08 04:36:23 +02:00
dist : clean
./makedist
2001-06-14 07:33:53 +02:00
TAGS :
etags *.h *.c