
INC=../common

all: bfs dfs dls ids ucs

dfs: dfs.c ../common/stack.c ../common/graph.c
	gcc -I$(INC) -o dfs -Wall dfs.c ../common/stack.c ../common/graph.c

dls: dls.c ../common/stack.c ../common/graph.c
	gcc -I$(INC) -o dls -Wall dls.c ../common/stack.c ../common/graph.c

ids: ids.c ../common/stack.c ../common/graph.c
	gcc -I$(INC) -o ids -Wall ids.c ../common/stack.c ../common/graph.c

bfs: bfs.c ../common/queue.c ../common/graph.c
	gcc -I$(INC) -o bfs -Wall bfs.c ../common/queue.c ../common/graph.c

ucs: ucs.c ../common/pqueue.c ../common/graph.c
	gcc -I$(INC) -o ucs -Wall ucs.c ../common/pqueue.c ../common/graph.c

clean:
	rm -f *.exe dfs bfs dls ids ucs
