summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorLudovic Pouzenc <ludovic@pouzenc.fr>2011-03-06 11:49:15 +0000
committerLudovic Pouzenc <ludovic@pouzenc.fr>2011-03-06 11:49:15 +0000
commitc5f58f1bc59707660112f21d91f38468be60f7a5 (patch)
tree7ecd89f6d7748f135cc97ec1c1295777cd43a043 /Makefile
parent261ec98c16ed512529472218fee3bf6db298a748 (diff)
download2011-ddhardrescue-c5f58f1bc59707660112f21d91f38468be60f7a5.tar.gz
2011-ddhardrescue-c5f58f1bc59707660112f21d91f38468be60f7a5.tar.bz2
2011-ddhardrescue-c5f58f1bc59707660112f21d91f38468be60f7a5.zip
Code qui compile sans warnings (mess up avec un struct et un typedef).
Makefile améliore pour make cont : réactif comme il faut, n'utilise plus watch. git-svn-id: file:///var/svn/2011-ddhardrescue/trunk@9 d3078510-dda0-49f1-841c-895ef4b7ec81
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile9
1 files changed, 7 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 6aa9d44..d49717f 100644
--- a/Makefile
+++ b/Makefile
@@ -1,9 +1,10 @@
BIN=ddhardrescue
-CFLAGS=-Iinc -Wall -g -pg
+CFLAGS=-Iinc -Wall -Werror -Wfatal-errors -g -pg
LIBS=-lpanel -lncurses -lpthread
-
#FIXME : liste des dépendances = tous les .c trouvés. C'est nul.
+
+all: $(BIN)
$(BIN): bin/$(BIN)
bin/$(BIN): obj/$(BIN).o $(patsubst src/%.c,obj/%.o,$(wildcard src/*.c))
@@ -22,5 +23,9 @@ Makefile src/%.c inc/%.h: ;
clean:
-rm -f obj/*.o deps/*.d bin/*
+cont:
+ while true; do clear; date; LANG=C make; echo "make returns '$$?'";\
+ inotifywait -e modify -r . --exclude '(~$$|\.swp$$)' 2>/dev/null; done
+
include $(patsubst src/%.c,deps/%.d,$(wildcard src/*.c))