Updated Makefile
This commit is contained in:
parent
45c359a45e
commit
b1b7ea5d86
1 changed files with 5 additions and 5 deletions
10
Makefile
10
Makefile
|
|
@ -1,6 +1,6 @@
|
||||||
CXX := g++
|
CXX := g++
|
||||||
CXXFLAGS := -std=c++17 -Wall -Wextra
|
CXXFLAGS := -std=c++17 -Wall -Wextra
|
||||||
LDFLAGS :=
|
LDFLAGS := -lpthread
|
||||||
|
|
||||||
ifeq ($(OS), Windows_NT)
|
ifeq ($(OS), Windows_NT)
|
||||||
LDFLAGS += -lws2_32
|
LDFLAGS += -lws2_32
|
||||||
|
|
@ -13,13 +13,13 @@ BUILD_DIR := build
|
||||||
SRC_DIR := src
|
SRC_DIR := src
|
||||||
|
|
||||||
SRCS := $(SRC_DIR)/main.cpp \
|
SRCS := $(SRC_DIR)/main.cpp \
|
||||||
$(SRC_DIR)/Core/Logger.cpp \
|
$(SRC_DIR)/Logger.cpp \
|
||||||
$(SRC_DIR)/Network/Socket.cpp
|
$(SRC_DIR)/Socket.cpp
|
||||||
|
|
||||||
OBJS := $(patsubst $(SRC_DIR)/%.cpp, $(BUILD_DIR)/%.o, $(SRCS))
|
OBJS := $(patsubst $(SRC_DIR)/%.cpp, $(BUILD_DIR)/%.o, $(SRCS))
|
||||||
|
|
||||||
INCLUDES := -I$(SRC_DIR)/Core \
|
INCLUDES := -I$(SRC_DIR)/Logger.hpp \
|
||||||
-I$(SRC_DIR)/Network
|
-I$(SRC_DIR)/Socket.hpp
|
||||||
|
|
||||||
.PHONY: all clean
|
.PHONY: all clean
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue