diff options
| author | Richard Qin <richard.qin.x@gmail.com> | 2026-10-10 01:17:15 +0800 |
|---|---|---|
| committer | Richard Qin <richard.qin.x@gmail.com> | 2026-10-10 01:17:15 +0800 |
| commit | 18aa4c8a2708c5f476ffa453b78594e3a00b52e9 (patch) | |
| tree | b68cc3b22bae804d80f8f5ceb24f111df93c141b /lab03/tests/Makefile | |
| parent | 243741627195fbd8e40b1a2e396d26fb9a7c6464 (diff) | |
| download | RUCDSA-18aa4c8a2708c5f476ffa453b78594e3a00b52e9.tar.gz RUCDSA-18aa4c8a2708c5f476ffa453b78594e3a00b52e9.tar.xz | |
Add lab03 initial files
Signed-off-by: Richard Qin <richard.qin.x@gmail.com>
Diffstat (limited to 'lab03/tests/Makefile')
| -rw-r--r-- | lab03/tests/Makefile | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/lab03/tests/Makefile b/lab03/tests/Makefile new file mode 100644 index 0000000..78c49f6 --- /dev/null +++ b/lab03/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) |
