19 lines
345 B
Makefile
19 lines
345 B
Makefile
CC = clang
|
|
|
|
all: ../build/libc+ test compile_commands.json
|
|
|
|
clean:
|
|
rm -rf test *.o compile_commands.json
|
|
|
|
test: test.o
|
|
$(CC) -o $@ $^ -L../build -l:libc+.a -ggdb # -nostdlib++ -lsupc++
|
|
|
|
%.o: %.cpp
|
|
$(CC) -c -o $@ $< -std=c++23 -I../src/include -ggdb # -nostdinc++
|
|
|
|
../build/libc+:
|
|
$(MAKE) -C ../
|
|
|
|
compile_commands.json:
|
|
compiledb -n make
|