#
#  Makefile for Nomad programs
#

CCC             = g++
CCFLAGS         = -w $(INCLUDE)

#
# you will want to change this CLIENT directory if you
# are using your own copies of the Nclient.* files
#

CLIENT    	= /cs/cs154/Nomad

INCLUDE         = -I$(CLIENT)

LOBJS           = $(CLIENT)/Nclient.o
LDFLAGS         = # -L$(TOP)/client -L$(TOP)/server
LDLIBS          = -lsocket -lnsl -lm

default:        mcl


mcl:   		mcl.cc Timing.o KbdInput.o
		$(CCC) $(CCFLAGS) mcl.cc \
		KbdInput.o Timing.o \
		$(LOBJS) $(LDLIBS) $(LDFLAGS) -o mcl


Timing.o:     	Timing.cc Timing.hh
		$(CCC) -c $(CCFLAGS) Timing.cc -o Timing.o

KbdInput.o:     KbdInput.cc KbdInput.hh
		$(CCC) -c $(CCFLAGS) KbdInput.cc -o KbdInput.o

