A command-line client for interacting with "book" and "member" servers via XMLRPC calls. Servers were created by other students.

Makefile 1.9KB

    # Filename: Makefile # Author: Matt Kava # Asmt: CSIS 440, Spring 2010, Assignment FINAL :: XMLRPC Bookstore # Purpose: Make both the client and server apps for # the assignment. CC = g++ SHARED_OBJECTS = BookType.o MemberType.o ALL_OBJECTS = $(SHARED_OBJECTS) BookstoreCaller.o SHARED_HEADERS = BookType.h MemberType.h EXECS = $(CLIENT_EXEC) SERVER_EXEC = server CLIENT_EXEC = client SERVER_OBJECTS = xmlrpc_server.cpp $(SHARED_OBJECTS) SERVER_INCLUDES = $(SHARED_HEADERS) # These two lines utilize the xmlrpc-c-config util to generate necessary flags # and library linkage _dynamically_ for the system this is being compiled on. SERVER_CFLAGS = `xmlrpc-c-config c++2 abyss-server --cflags` SERVER_LIBS = `xmlrpc-c-config c++2 abyss-server --libs` CLIENT_OBJECTS = xmlrpc_client.cpp $(SHARED_OBJECTS) BookstoreCaller.o menu.o CLIENT_INCLUDES = $(SHARED_HEADERS) BookstoreCaller.h menu.h # These two lines utilize the xmlrpc-c-config util to generate necessary flags # and library linkage _dynamically_ for the system this is being compiled on. CLIENT_CFLAGS = `xmlrpc-c-config c++2 libwww-client --cflags` CLIENT_LIBS = `xmlrpc-c-config c++2 libwww-client --libs` LIBS = CFLAGS = LFLAGS = # this will compile all the EXECs automatically asmt: $(EXECS) $(SERVER_EXEC): $(SERVER_OBJECTS) $(SERVER_INCLUDES) $(CC) $(SERVER_CFLAGS) $(SERVER_OBJECTS) -o $@ $(SERVER_LIBS) $(CLIENT_EXEC): $(CLIENT_OBJECTS) $(CLIENT_INCLUDESS) $(CC) $(CLIENT_CFLAGS) $(CLIENT_OBJECTS) -o $@ $(CLIENT_LIBS) # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # BookType.o: BookType.cpp BookType.h $(CC) -c BookType.cpp MemberType.o: MemberType.cpp MemberType.h $(CC) -c MemberType.cpp BookstoreCaller.o: BookstoreCaller.cpp BookstoreCaller.h BookType.o MemberType.o $(CC) -c BookstoreCaller.cpp # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # clean: rm -rf $(EXECS) $(ALL_OBJECTS) clean~: rm -rf ./*~