Makefile 358 Bytes
Newer Older
1 2 3 4 5 6
CFLAGS = -std=c99 -O2 -W -Wall -g

.PHONY: all clean

all: main

Vytor Calixto's avatar
Vytor Calixto committed
7 8 9 10
test: main
	cd tests; \
	$(CC) -std=c99 -o test geraMapa.c; \
	chmod +x runTests.sh; \
11
	./runTests.sh
Vytor Calixto's avatar
Vytor Calixto committed
12

Vytor Calixto's avatar
Vytor Calixto committed
13
main: main.c libs/jogador.o libs/tabuleiro.o libs/grafo.o libs/vertice.o libs/filha.o libs/lista.o libs/no.o
14 15 16 17
	$(CC) $(CFLAGS) -o $@ $^

clean:
	$(RM) *.o
Vytor Calixto's avatar
Vytor Calixto committed
18
	$(RM) libs/*.o
Vytor Calixto's avatar
Vytor Calixto committed
19
	$(RM) tests/*.time