projects
/
dus.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Added an S_ISDIR check before opendir() to work on hfsplus volumes (?)
[dus.git]
/
Makefile
diff --git
a/Makefile
b/Makefile
index
d147886
..
3325911
100644
(file)
--- a/
Makefile
+++ b/
Makefile
@@
-26,13
+26,15
@@
MAN_PATH = /usr/share/man/man1
LDFLAGS=
LDFLAGS=
+UNAME=\"$(shell uname -srmn)\"
+
ifeq ($(DEBUG),yes)
OPTIMIZE_FLAG = -ggdb3 -DDEBUG -fno-omit-frame-pointer
else
OPTIMIZE_FLAG = -O2
endif
ifeq ($(DEBUG),yes)
OPTIMIZE_FLAG = -ggdb3 -DDEBUG -fno-omit-frame-pointer
else
OPTIMIZE_FLAG = -O2
endif
-CFLAGS = -Wall -
ansi -pedantic -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
$(OPTIMIZE_FLAG)
+CFLAGS = -Wall -
Wextra -ansi -pedantic -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DUNAME="$(UNAME)"
$(OPTIMIZE_FLAG)
all: dus
all: dus
@@
-41,12
+43,12
@@
dus: dus.o
install: dus
install -m 755 dus $(BINARY_PATH)
install: dus
install -m 755 dus $(BINARY_PATH)
-
#
install -m 644 dus.1 $(MAN_PATH)
-
#
gzip $(MAN_PATH)/dus.1
+ install -m 644 dus.1 $(MAN_PATH)
+ gzip $(MAN_PATH)/dus.1
uninstall:
rm $(BINARY_PATH)/dus
uninstall:
rm $(BINARY_PATH)/dus
-
#
rm $(MAN_PATH)/dus.1.gz
+ rm $(MAN_PATH)/dus.1.gz
clean:
rm -f *.o dus
clean:
rm -f *.o dus