Merge pull request 'enhanced makefile' (#1) from MrBesen/Log:patch-1 into master

Reviewed-on: https://git.okaestne.de/okaestne/Log/pulls/1
This commit is contained in:
Oliver 2020-11-21 14:29:36 +01:00
commit ab5f2266d5
2 changed files with 7 additions and 1 deletions

5
.gitignore vendored
View File

@ -3,4 +3,7 @@ Log.o
# for test
test
test.o
*.log
*.log
# dependency files
*.d

View File

@ -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