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
21 changes: 21 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
CXX=g++
CXXFLAGS= -std=c++17 -Wall -Wpedantic -Wextra
SOURCES= *.cpp
OBJECTS = $(SOURCES:.cpp)
INCLUDES= includes/*.hpp
include_dirs= -Iincludes
all_target= debug release

.PHONY: all
all: $(all_target)
Copy link
Owner

Choose a reason for hiding this comment

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

tutaj bez Tab powinno być

target: dependencies
  [Tab] command (may be skipped)


debug: $(SOURCES) $(INCLUDES)
$(CXX) $< $(CXXFLAGS) -g -o nazwa $(include_dir)

release: $(SOURCES) $(INCLUDES)
$(CXX) $< $(CXXFLAGS) -O3 -o nazwa $(include_dir)


.PHONY: clean
clean:
rm $(all_target)
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.