Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
CXX=g++
CXXFLAGS=-std=c++17 -Wall -Wextra -Wpedantic -Werror
IFLAGS=-I inc
SOURCES=*.cpp

.PHONY: all
all: debug release

debug: $(SOURCES)
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

jeszcze zapomnieliśmy o plikach nagłówkowych w zależnościach

$(CXX) $^ $(CXXFLAGS) $(IFLAGS) -g -o $@

release: $(SOURCES)
$(CXX) $^ $(CXXFLAGS) $(IFLAGS) -O3 -o $@

.PHONY: clean
clean:
rm debug release
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.