diff options
author | Neil Brown <neilb@suse.de> | 2002-03-20 22:39:50 +0000 |
---|---|---|
committer | Neil Brown <neilb@suse.de> | 2002-03-20 22:39:50 +0000 |
commit | 11a3e71da434939895cc504e20e735eb656b1c74 (patch) | |
tree | 96e43f983f95a1db8ab74550ce90d855bf1511bd /Makefile | |
parent | 56eb10c0b6e8f21540af444c8a28aa9e8f138ce6 (diff) | |
download | mdadm-11a3e71da434939895cc504e20e735eb656b1c74.tar.gz mdadm-11a3e71da434939895cc504e20e735eb656b1c74.tar.xz mdadm-11a3e71da434939895cc504e20e735eb656b1c74.zip |
mdadm-0.7.2mdadm-0.7.2
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 12 |
1 files changed, 9 insertions, 3 deletions
@@ -28,7 +28,13 @@ # CC = gcc -CFLAGS = -Wall,error,strict-prototypes -ggdb +SYSCONFDIR = /etc +CONFFILE = $(SYSCONFDIR)/mdadm.conf +CFLAGS = -Wall,error,strict-prototypes -ggdb -DCONFFILE=\"$(CONFFILE)\" + +# If you want a static binary, you might uncomment these +# LDFLAGS = -static +# STRIP = -s INSTALL = /usr/bin/install DESTDIR = /. @@ -40,7 +46,7 @@ OBJS = mdadm.o config.o ReadMe.o util.o Manage.o Assemble.o Build.o Create.o D all : mdadm mdadm.man md.man mdadm.conf.man mdadm : $(OBJS) - $(CC) -o mdadm $^ + $(CC) $(LDFLAGS) -o mdadm $^ mdadm.man : mdadm.8 nroff -man mdadm.8 > mdadm.man @@ -54,7 +60,7 @@ mdadm.conf.man : mdadm.conf.5 $(OBJS) : mdadm.h install : mdadm mdadm.8 - $(INSTALL) -m 755 mdadm $(DESTDIR)/$(BINDIR) + $(INSTALL) $(STRIP) -m 755 mdadm $(DESTDIR)/$(BINDIR) $(INSTALL) -m 644 mdadm.8 $(DESTDIR)/$(MANDIR) clean : |