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