22 lines
449 B
Makefile
22 lines
449 B
Makefile
CC=gcc
|
|
CFLAGS=-Wall -Wextra -I../main
|
|
SRC = Unity/src/unity.c test_parser.c \
|
|
../main/message_parser.c
|
|
TARGET = test_runner
|
|
|
|
.PHONY: test_builder
|
|
|
|
all: $(TARGET)
|
|
|
|
$(TARGET): $(SRC)
|
|
$(CC) $(CFLAGS) -o $@ $^
|
|
./$(TARGET)
|
|
|
|
test_builder: Unity/src/unity.c test_message_builder.c ../main/message_parser.c ../main/message_builder.c
|
|
$(CC) $(CFLAGS) -o $@ $^
|
|
@echo "--- Running Builder Tests ---"
|
|
./$(BUILDER_TEST_TARGET)
|
|
|
|
clean:
|
|
rm -f $(TARGET)
|