libcp/test/Makefile
2025-05-12 21:37:13 +03:00

19 lines
329 B
Makefile

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