From 0b6d6b70f171b18cad86c0ac8d79a2c849175324 Mon Sep 17 00:00:00 2001 From: Lion Kortlepel Date: Thu, 15 Jan 2026 00:28:30 +0100 Subject: initial commit --- Makefile | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 Makefile (limited to 'Makefile') diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..a983640 --- /dev/null +++ b/Makefile @@ -0,0 +1,20 @@ +CC = cc +CFLAGS = -I . -Wall -Wextra -Wpedantic -pedantic +C89FLAGS = -std=c89 + +TARGET = examples/simple +SOURCE = examples/simple.c + +all: tests/tests $(TARGET) + +$(TARGET): $(SOURCE) ls_vec.h + $(CC) -o $(TARGET) $(SOURCE) $(CFLAGS) $(C89FLAGS) + +tests/tests: ls_vec.h tests/tests.c tests/ls_test.h + $(CC) -o $@ tests/tests.c -Itests -I. + +clean: + rm -f $(TARGET) + rm -f tests/tests + +.PHONY: clean all -- cgit