
CXX = g++
CFLAGS = -Wall -g -Ipthreads/include
LDFLAGS = -g -Lpthreads/lib
LIBS = -lpthread

EXE = tns

OBJS = Connection.o Server.o error.o main.o

all:	$(EXE)

.cc.o:
	$(CXX) $(CFLAGS) -c $< -o $@

$(EXE): $(OBJS)
	$(CXX) $(LDFLAGS) $(OBJS) $(LIBS) -o $(EXE)

clean:
	rm -f $(OBJS) $(EXE)

Connection.o : Connection.cc threads.h error.h Connection.h
Server.o : Server.cc threads.h error.h Server.h Connection.h
error.o : error.cc threads.h error.h
main.o : main.cc threads.h Server.h Connection.h

