# 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 tcpserver: hexdumpdata.o mysocket.o tcpserver.o $(CC) -o tcpserver hexdumpdata.o mysocket.o tcpserver.o $(LIBS) hexdumpdata.o: hexdumpdata.cpp $(CC) -c hexdumpdata.cpp mysocket.o: mysocket.cpp $(CC) -c mysocket.cpp tcpserver.o: tcpserver.cpp $(CC) -c tcpserver.cpp clean: @rm -f *.o @rm -f tcpserver