CFLAGS=-Wall -fPIC -ggdb
CC=gcc

all: libtclient.so libtclient.a 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

libtclient.a: tclient.o tcommon.o
	ar crsv libtclient.a tclient.o tcommon.o

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

clean:
	rm -f *.o test_client *.so *.a
# DO NOT DELETE
