2019-08-01 10:21:41 +00:00
|
|
|
CC := g++
|
2019-08-28 10:11:51 +00:00
|
|
|
C_FLAGS := -std=c++17 -Wall -Wextra -g -O2 -Wno-unused-parameter -Wno-unused-function
|
2019-08-01 10:21:41 +00:00
|
|
|
|
|
|
|
BIN := bin
|
|
|
|
SRC := src
|
|
|
|
INCLUDE := include
|
|
|
|
LIB := lib
|
|
|
|
|
|
|
|
LIBRARIES :=
|
|
|
|
|
|
|
|
ifeq ($(OS),Windows_NT)
|
|
|
|
EXECUTABLE := main.exe
|
|
|
|
else
|
|
|
|
EXECUTABLE := main
|
|
|
|
endif
|
|
|
|
|
|
|
|
all: $(BIN)/$(EXECUTABLE)
|
|
|
|
|
|
|
|
clean:
|
|
|
|
$(RM) $(BIN)/$(EXECUTABLE)
|
|
|
|
|
|
|
|
run: all
|
|
|
|
./$(BIN)/$(EXECUTABLE)
|
|
|
|
|
|
|
|
$(BIN)/$(EXECUTABLE): $(SRC)/*
|
2019-08-28 10:11:51 +00:00
|
|
|
$(CC) $(C_FLAGS) -I$(INCLUDE) -L$(LIB) $^ -o $@ $(LIBRARIES)
|