Commit 32b26d80 authored by Tom Niget's avatar Tom Niget

Add simple makefile just for debugging

parent 55e951ff
CC = clang++-16
CFLAGS = -O3 -Wno-return-type -Wno-unused-result -I../rt/include -std=c++20
LDFLAGS = -pthread -luring -lfmt
# Get a list of all .cpp files in the tests directory
SOURCES := $(wildcard tests/*.cpp)
# Generate the list of corresponding output files
EXECUTABLES := $(patsubst tests/%.cpp, tests/%, $(SOURCES))
.PHONY: all clean
# Default target, builds all executables
all: $(EXECUTABLES)
# Rule to build each executable
tests/%: tests/%.cpp
$(CC) $(CFLAGS) -o $@ $< $(LDFLAGS)
# Clean generated files
clean:
rm -f $(EXECUTABLES)
\ No newline at end of file
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment