connect4/Makefile
Julia Lange b3b369a076
Add Horizontal and Vertical win checking
Adds horizontal and vertical win checking, as well as tests for such
features.

Adds valgrind to the flake.nix

Adds test_connect4 option to Makefile
2024-07-16 01:43:16 -07:00

16 lines
343 B
Makefile

CC = gcc
CFLAGS = -g -Wall -pedantic
test_connect4.c connect4.c main.c: connect4.h
CFILES = main.c connect4.c
OFILES = ${CFILES:.c=.o}
connect4: ${OFILES}
$(CC) $(CFLAGS) -o connect4 ${OFILES}
test_connect4: test_connect4.o connect4.o
$(CC) $(CFLAGS) -o test_connect4 test_connect4.o connect4.o
clean:
rm -r connect4 test_connect4 *.o