Makefile 278 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 tabuleiro.o filha.o lista.o no.o 
14 15 16 17
	$(CC) $(CFLAGS) -o $@ $^

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