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