CC	=	gcc
CFLAGS	=	-Wall -pedantic -Werror -ggdb -Iinclude


all:
	@cd src && make

test: test.c $(LIB)
	$(CC) $(CFLAGS) -o $@ $< -L. -lgdbrpc -lexpect -ltcl

clean:
	@cd src && make clean
	rm -f test

distclean: clean
	@cd src && make distclean
	rm -f libgdbrpc.a
	
