diff options
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) |
