add src-space c/cpp

This commit is contained in:
2025-05-08 03:25:39 +09:00
parent 07924bed36
commit 2886820691
5 changed files with 49 additions and 2 deletions

View File

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