-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
24 lines (18 loc) · 686 Bytes
/
Makefile
File metadata and controls
24 lines (18 loc) · 686 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#--Variables-------------------------------------------------------------------
# For your personal compilation it can be changed, but if anything will go
# wrong - see ya, that's not my fault
CXX = g++
CXXFLAGS = -Wall -Wextra -O2 -I./inc -std=c++17
TARGET = sorg
BUILD_DIR = ./build
SCR_DIR = ./src
INC_DIR = ./inc
#--Scripts---------------------------------------------------------------------
all: $(TARGET)
$(TARGET): $(BUILD_DIR)/main.o
$(CXX) $(CXXFLAGS) $(BUILD_DIR)/main.o -o $(BUILD_DIR)/$(TARGET)
$(BUILD_DIR)/main.o: $(SCR_DIR)/main.cpp
@mkdir -p $(BUILD_DIR)
$(CXX) $(CXXFLAGS) -c $(SCR_DIR)/main.cpp -o $(BUILD_DIR)/main.o
clean:
rm -f $(BUILD_DIR)/*.o $(TARGET)