This repository has been archived on 2026-01-21. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
ground-old/Makefile

23 lines
438 B
Makefile

CXX = g++
CXXFLAGS = -O3 -Isrc -Wall -Wextra -std=c++17
BUILD_DIR = build
SRCS = $(shell find src -name '*.cpp')
VPATH = $(sort $(dir $(SRCS)))
OBJS = $(addprefix $(BUILD_DIR)/, $(notdir $(SRCS:.cpp=.o)))
TARGET = ground
all: $(TARGET)
$(TARGET): $(OBJS)
$(CXX) $(CXXFLAGS) -o $(TARGET) $(OBJS)
$(BUILD_DIR)/%.o: %.cpp
@mkdir -p $(BUILD_DIR)
$(CXX) $(CXXFLAGS) -c $< -o $@
clean:
rm -rf $(BUILD_DIR) $(TARGET)
.PHONY: all clean