# Simple makefile for cse333 lec21 (DNS) code CXX = g++ CPPFLAGS = -Wall -g -std=c++17 all: genaddr genstring dnsresolve connect socket sendreceive dnsresolve: dnsresolve.cc $(CXX) $(CPPFLAGS) -o dnsresolve dnsresolve.cc genaddr: genaddr.cc $(CXX) $(CPPFLAGS) -o genaddr genaddr.cc genstring: genstring.cc $(CXX) $(CPPFLAGS) -o genstring genstring.cc connect: connect.cc $(CXX) $(CPPFLAGS) -o connect connect.cc socket: socket.cc $(CXX) $(CPPFLAGS) -o socket socket.cc sendreceive: sendreceive.cc $(CXX) $(CPPFLAGS) -o sendreceive sendreceive.cc clean: rm -rf dnsresolve genaddr genstring connect socket sendreceive *.o *~ *.dSYM