This commit is contained in:
MCorange
2025-06-24 21:09:26 +03:00
parent 77a1e74526
commit 7e95a9af34
6 changed files with 93 additions and 9 deletions

View File

@@ -1,11 +1,10 @@
BIN=cmplx
BIN=morph
BUILD_DIR?=build
COM_FLAGS = -fPIC -Isrc/include $(shell pkg-config --cflags libcx)
CC_FLAGS = -std=c23 -ggdb
CXX_FLAGS = -std=c++23 -nostdinc++ -ggdb
LD_FLAGS = -nostdlib++ -lsupc++ -ggdb $(shell pkg-config --libs libcx)
CC_FLAGS = -std=c23 -ggdb -Isrc/include
CXX_FLAGS = -std=c++23 -ggdb
LD_FLAGS = -ggdb
CC=clang
CXX=clang
LD=clang
@@ -16,7 +15,8 @@ c_sources=$(wildcard src/*.c)
objects=$(patsubst src/%.cpp,$(BUILD_DIR)/obj/%.cpp.o,$(cxx_sources)) $(patsubst src/%.c,$(BUILD_DIR)/obj/%.c.o,$(c_sources))
all: $(BUILD_DIR)/$(BIN) compile_commands.json
all: $(BUILD_DIR)/$(BIN)
# compile_commands.json
$(BUILD_DIR)/$(BIN): $(objects)