diff options
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..be9fc08 --- /dev/null +++ b/Makefile @@ -0,0 +1,26 @@ +BIN=ddhardrescue +CFLAGS=-Iinc -Wall -g -pg +LIBS=-lpanel -lncurses + + +#FIXME : liste des dépendances = tous les .c trouvés. C'est nul. +$(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 -o $@ $< $(CFLAGS) -MM -MG -MT $(patsubst src/%.c,obj/%.o,$<) + +Makefile src/%.c inc/%.h: ; + +.PHONY: clean + +clean: + -rm -f obj/*.o deps/*.d bin/* + +include $(patsubst src/%.c,deps/%.d,$(wildcard src/*.c)) + |