add src-space c/cpp
This commit is contained in:
15
space/src-cpp/Makefile
Normal file
15
space/src-cpp/Makefile
Normal 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)
|
||||
Reference in New Issue
Block a user