CFLAGS=-Wall -fPIC -ggdb
CC=gcc

all: libtclient.so test_client

tcommon.o: tcommon.h

tclient.c: tcommon.h


libtclient.so: tclient.o tcommon.o
	ld -g -shared -o libtclient.so tclient.o tcommon.o -ldl

test_client: test_client.o libtclient.so
	$(CC) -ltclient -L . -o test_client test_client.o

clean:
	rm *.o test_client *.so
