CC ?= cc
CFLAGS ?= -std=c11 -Wall -Wextra -Werror -I../../include

all: test_command_queue test_game_domain

test_command_queue: test_command_queue.c ../../src/command_queue.c ../../src/application.c
	$(CC) $(CFLAGS) $^ -o $@

run: all
	./test_command_queue
	./test_game_domain

test_game_domain: test_game_domain.c ../../src/fleet_generator.c ../../src/game_engine.c
	$(CC) $(CFLAGS) $^ -o $@

clean:
	rm -f test_command_queue test_game_domain
