CSIS 440 chat client/server project.

Makefile 1.2KB

    # Filename: Makefile # Author: Matt Kava # Asmt: CSIS 440, Spring 2010, Assignment 6 :: IRC-Like Client/Server # Purpose: Make both the client and server apps for # the assignment. CC = g++ OBJECTS = EXECS = $(SERVER_EXEC) $(CLIENT_EXEC) SERVER_EXEC = server CLIENT_EXEC = client ROGUE_EXEC = rogue SERVER_OBJECTS = server.o SircServer.o User.o CLIENT_OBJECTS = client.o User.o SircClient.o ROGUE_OBJECTS = rogue.o CFLAGS = -Wall LFLAGS = -lcurses # this will compile all the EXECs automatically asmt: $(EXECS) $(SERVER_EXEC): $(SERVER_OBJECTS) $(CC) $(CFLAGS) $(SERVER_OBJECTS) -o $(SERVER_EXEC) $(LFLAGS) $(CLIENT_EXEC): $(CLIENT_OBJECTS) $(CC) $(CFLAGS) $(CLIENT_OBJECTS) -o $(CLIENT_EXEC) $(LFLAGS) # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # server.o: server.cpp constants.h SircServer.h $(CC) -c server.cpp SircServer.o: SircServer.cpp SircServer.h constants.h User.h $(CC) -c SircServer.cpp User.o: User.cpp User.h $(CC) -c User.cpp client.o: client.cpp SircClient.o SircClient.h $(CC) -c client.cpp SircClient.o: SircClient.cpp SircClient.h User.h constants.h $(CC) -c SircClient.cpp clean: rm -rf $(SERVER_EXEC) $(CLIENT_EXEC) *.o