From 65d7f653e536ff8804a6477e4ce59d08fad261bf Mon Sep 17 00:00:00 2001 From: MrBesen Date: Fri, 25 Sep 2020 15:58:52 +0200 Subject: [PATCH 1/2] enhanced makefile --- .gitignore | 5 ++++- Makefile | 3 +++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index ba6c86e..e89354a 100644 --- a/.gitignore +++ b/.gitignore @@ -3,4 +3,7 @@ Log.o # for test test test.o -*.log \ No newline at end of file +*.log + +#dependecy files +*.d \ No newline at end of file diff --git a/Makefile b/Makefile index 4a631da..33962be 100644 --- a/Makefile +++ b/Makefile @@ -10,7 +10,10 @@ test: $(TARGET) $(TEST).o $(CXX) -o test $^ %.o: %.cpp + $(CXX) $(INCLUDES) $^ -MM -MT $@ > $*.d $(CXX) -c -o $@ $(CFLAGS) $^ clean: $(RM) $(TARGET) $(TEST) $(TEST).o *.log + +include *.d \ No newline at end of file From 884ddfcdb6d99153efe36a15f4422dfb31d8673c Mon Sep 17 00:00:00 2001 From: MrBesen Date: Fri, 20 Nov 2020 22:07:00 +0100 Subject: [PATCH 2/2] fixed typo --- .gitignore | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index e89354a..c613a08 100644 --- a/.gitignore +++ b/.gitignore @@ -5,5 +5,5 @@ test test.o *.log -#dependecy files +# dependency files *.d \ No newline at end of file