summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnas Nashif <anas.nashif@intel.com>2012-11-07 09:30:53 -0800
committerAnas Nashif <anas.nashif@intel.com>2012-11-07 09:30:53 -0800
commitd96e01ed10509a717f392d704e1e04fc7df040e6 (patch)
tree1e54cf6e66ccb8ac49a030fb24e6fe79f4a25b81
parentb962b90de1ca1d5631971042b036e994d346c360 (diff)
downloadfdupes-d96e01ed10509a717f392d704e1e04fc7df040e6.tar.gz
fdupes-d96e01ed10509a717f392d704e1e04fc7df040e6.tar.bz2
fdupes-d96e01ed10509a717f392d704e1e04fc7df040e6.zip
install
-rw-r--r--Makefile6
-rw-r--r--md5/md5.c2
2 files changed, 4 insertions, 4 deletions
diff --git a/Makefile b/Makefile
index 090ad1d..4f3436f 100644
--- a/Makefile
+++ b/Makefile
@@ -2,13 +2,13 @@
# INSTALLDIR indicates directory where program is to be installed.
# Suggested values are "/usr/local/bin" or "/usr/bin".
#
-INSTALLDIR = /usr/local/bin
+INSTALLDIR = /usr/bin
#
# MANPAGEDIR indicates directory where the fdupes man page is to be
# installed. Suggested values are "/usr/local/man" or "/usr/man".
#
-MANPAGEDIR = /usr/local/man
+MANPAGEDIR = /usr/share/man
#
# VERSION determines the program's version number.
@@ -35,7 +35,7 @@ VERSION = "1.40"
#####################################################################
fdupes: fdupes.c md5/md5.c
- gcc fdupes.c md5/md5.c -Wall -o fdupes -DVERSION=\"$(VERSION)\" $(EXTERNAL_MD5) $(EXPERIMENTAL_RBTREE)
+ gcc fdupes.c md5/md5.c $(RPM_OPT_FLAGS) -o fdupes -DVERSION=\"$(VERSION)\" $(EXTERNAL_MD5) $(EXPERIMENTAL_RBTREE)
install: fdupes
cp fdupes $(INSTALLDIR)
diff --git a/md5/md5.c b/md5/md5.c
index d6f78b8..7b75cb2 100644
--- a/md5/md5.c
+++ b/md5/md5.c
@@ -39,6 +39,7 @@
*/
#include "md5.h"
+#include <string.h>
#ifdef TEST
/*
@@ -46,7 +47,6 @@
* The test program should print out the same values as given in section
* A.5 of RFC 1321, reproduced below.
*/
-#include <string.h>
main()
{
static const char *const test[7] = {