From 0f2c685db3d3790ce9bdc9598df8dae7d6b67eae Mon Sep 17 00:00:00 2001 From: Ludovic Pouzenc Date: Sun, 9 Oct 2011 12:33:48 +0000 Subject: On range tout le code actuel du trunk dans une branche nommée "0.x" et on crée une branche 1.x qui contiendra une nouvelle mouture (re-conception, méta info de packaging...). MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit git-svn-id: file:///var/svn/2011-ddhardrescue/branches/0.x@29 d3078510-dda0-49f1-841c-895ef4b7ec81 --- Makefile | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 Makefile (limited to 'Makefile') diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..fccc821 --- /dev/null +++ b/Makefile @@ -0,0 +1,31 @@ +BIN=ddhardrescue +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)) + gcc -o $@ $^ $(CFLAGS) $(LIBS) + +obj/%.o: + gcc -c -o $@ $< $(CFLAGS) + +deps/%.d: src/%.c + gcc -MM -o $@ $< $(CFLAGS) -MG -MT $(patsubst src/%.c,obj/%.o,$<) + +Makefile src/%.c inc/%.h: ; + +.PHONY: clean + +clean: + -rm -f obj/*.o deps/*.d bin/$(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)) + -- cgit v1.2.3