summaryrefslogtreecommitdiff
path: root/lab03/tests/Makefile
blob: 78c49f642e4a02f86a54c6b75ac90c43f971c9b3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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)