# Depending on the environment, one or more of the # following macros may need to be modified. # Define which compiler to use CC=c++ #CC=g++ # Define extra libraries to link LIBS= #LIBS=-lsocket -lnsl #LIBS=-lxnet tcpclient: hexdumpdata.o mysocket.o tcpclient.o $(CC) -o tcpclient hexdumpdata.o mysocket.o tcpclient.o $(LIBS) hexdumpdata.o: hexdumpdata.cpp $(CC) -c hexdumpdata.cpp mysocket.o: mysocket.cpp $(CC) -c mysocket.cpp tcpclient.o: tcpclient.cpp $(CC) -c tcpclient.cpp clean: @rm -f *.o @rm -f tcpclient