From 50c736aa4461dee7b24c86a4924f58089ab0a064 Mon Sep 17 00:00:00 2001 From: Richard Qin Date: Mon, 28 Sep 2026 00:37:28 +0800 Subject: Add lab02 tests --- lab02/tests/Makefile | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 lab02/tests/Makefile (limited to 'lab02/tests/Makefile') diff --git a/lab02/tests/Makefile b/lab02/tests/Makefile new file mode 100644 index 0000000..78c49f6 --- /dev/null +++ b/lab02/tests/Makefile @@ -0,0 +1,18 @@ +CC ?= gcc +CFLAGS ?= -std=gnu11 -Wall -Wextra -Werror -O2 +LDLIBS ?= -lm + +TARGET := test_runner + +.PHONY: all run clean + +all: $(TARGET) + +$(TARGET): test.c ../container_of.h ../list.h ../vec.h ../polynomial.h + $(CC) $(CFLAGS) -I.. test.c $(LDLIBS) -o $@ + +run: $(TARGET) + ./$(TARGET) + +clean: + rm -f $(TARGET) -- cgit v1.2.3