Add Makefile and .gitignore

This commit is contained in:
Oliver 2019-10-04 18:44:40 +02:00
parent 8169db351e
commit a22d89f3f6
2 changed files with 13 additions and 0 deletions

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
Log.o

12
Makefile Normal file
View File

@ -0,0 +1,12 @@
TARGET = Log.o
CFLAGS = -O2 -std=c++11 -Wall -Wextra -pedantic-errors -g
.PHONY: all clean
all: $(TARGET)
%.o: %.cpp
$(CXX) -c -o $@ $(CFLAGS) $^
clean:
$(RM) $(TARGET)