# Makefile for udpwhois_server/client

COMPILER = g++
COMPILE_FLAGS = -c -g
EXECUTABLE_SERVER = udpwhois_server
EXECUTABLE_CLIENT = udpwhois_client
OBJECTS_SERVER = udpwhois_server.o
OBJECTS_CLIENT = udpwhois_client.o

$(EXECUTABLE_SERVER): $(OBJECTS_SERVER)
      $(COMPILER) $(OBJECTS_SERVER) -o $(EXECUTABLE_SERVER)

$(EXECUTABLE_CLIENT): $(OBJECTS_CLIENT)  
      $(COMPILER) $(OBJECTS_CLIENT) -o $(EXECUTABLE_CLIENT)

udpwhois_server.o: udpwhois_server.cpp udpwhois.h
      $(COMPILER) $(COMPILER_FLAGS) udpwhois_server.cpp

udpwhois_client.o: udpwhois_client.cpp udpwhois.h
      $(COMPILER) $(COMPILER_FLAGS) upwhois_client.cpp
 

1