add src-space c/cpp

This commit is contained in:
yenru0 committed 2025-05-08 03:25:39 +09:00
1 parent 07924bed36
commit 2886820691
5 files changed
+49 -2

No files matched your search

+15
View File
@@ -0,0 +1,15 @@
CC = g++
SRC_DIR = ./src
TARGET = main.cpp
BUILD_DIR = ../../build
OUTPUT = cpp.out
build:
$(CC) -o $(BUILD_DIR)/$(OUTPUT) -O2 -Wall -lm --std=c++17 -fsanitize=address,leak,undefined $(SRC_DIR)/$(TARGET)
run: build
$(BUILD_DIR)/$(OUTPUT)