diff options
| author | Richard Qin <richard.qin.x@gmail.com> | 2026-09-28 00:37:28 +0800 |
|---|---|---|
| committer | Richard Qin <richard.qin.x@gmail.com> | 2026-09-28 00:37:28 +0800 |
| commit | 50c736aa4461dee7b24c86a4924f58089ab0a064 (patch) | |
| tree | e985fb037c2f443e69d763ab3be4437e9475782b /lab02/tests/Makefile | |
| parent | 2fd0b1512887fdbd16679cd4c6ab638604ec9886 (diff) | |
| download | RUCDSA-50c736aa4461dee7b24c86a4924f58089ab0a064.tar.gz RUCDSA-50c736aa4461dee7b24c86a4924f58089ab0a064.tar.xz | |
Add lab02 tests
Diffstat (limited to 'lab02/tests/Makefile')
| -rw-r--r-- | lab02/tests/Makefile | 18 |
1 files changed, 18 insertions, 0 deletions
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) |
