projects
/
finddup.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Added the DESTDIR.
[finddup.git]
/
Makefile
diff --git
a/Makefile
b/Makefile
index
d02a4d9
..
7af163a
100644
(file)
--- a/
Makefile
+++ b/
Makefile
@@
-21,10
+21,16
@@
# along with finddup. If not, see <http://www.gnu.org/licenses/>.
#
# along with finddup. If not, see <http://www.gnu.org/licenses/>.
#
-BINARY_PATH = /usr/bin
-MAN_PATH = /usr/share/man/man1
+BINARY_PATH =
$(DESTDIR)
/usr/bin
+MAN_PATH =
$(DESTDIR)
/usr/share/man/man1
-LDFLAGS=
+ifeq ($(WITH_MD5),yes)
+ LDFLAGS=-lssl
+ MD5FLAG=-DWITH_MD5
+else
+ LDFLAGS=
+ MD5FLAG=
+endif
UNAME=\"$(shell uname -srmn)\"
UNAME=\"$(shell uname -srmn)\"
@@
-34,7
+40,7
@@
else
OPTIMIZE_FLAG = -O2
endif
OPTIMIZE_FLAG = -O2
endif
-CFLAGS = -Wall -
ansi -pedantic -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DUNAME="$(UNAME)"
$(OPTIMIZE_FLAG)
+CFLAGS = -Wall -
Wextra -ansi -pedantic -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DUNAME="$(UNAME)" $(MD5FLAG)
$(OPTIMIZE_FLAG)
all: finddup
all: finddup
@@
-43,12
+49,12
@@
finddup: finddup.o
install: finddup
install -m 755 finddup $(BINARY_PATH)
install: finddup
install -m 755 finddup $(BINARY_PATH)
-
#
install -m 644 finddup.1 $(MAN_PATH)
-
#
gzip $(MAN_PATH)/finddup.1
+ install -m 644 finddup.1 $(MAN_PATH)
+ gzip $(MAN_PATH)/finddup.1
uninstall:
rm $(BINARY_PATH)/finddup
uninstall:
rm $(BINARY_PATH)/finddup
-
#
rm $(MAN_PATH)/finddup.1.gz
+ rm $(MAN_PATH)/finddup.1.gz
clean:
rm -f *.o finddup
clean:
rm -f *.o finddup