diff options
Diffstat (limited to 'lab04/tests/Makefile')
| -rw-r--r-- | lab04/tests/Makefile | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/lab04/tests/Makefile b/lab04/tests/Makefile new file mode 100644 index 0000000..5724f6f --- /dev/null +++ b/lab04/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 ../expression.h ../stack.h + $(CC) $(CFLAGS) -I.. test.c $(LDLIBS) -o $@ + +run: $(TARGET) + ./$(TARGET) + +clean: + rm -f $(TARGET) |
