(A) Makefiles

BookStore: main.o book.o Printout.o
    	gcc -o BookStore main.c book.c Printout.c

main.o: main.c main.h      gcc -c main.c
book.o: book.c book.h      gcc -c book.c
Printout.o: Printout.c Printout.h      gcc -c Printout.c


(B) RCS

First: Create the RCS repository
mkdir /home/source/RCS

Second: Put all the sources files into the repository
mv /home/source/main.c /home/source/RCS/main.c
mv /home/source/main.h /home/source/RCS/main.h
mv /home/source/Book.c /home/source/RCS/Book.h
mv /home/source/Printout.c /home/source/RCS/Printout.h

Third: Give permissions to mJackson, hPotter, and msOprah to edit all those files
rcs -a mJackson,hPotter,msOprah /home/source/RCS/*

Fourth: Assume two users edited the same file at the same time, how can RCS help us?
RCS will detect this issue and inform one of the users that an updated version of the file they are working on has already been submitted (checked in). The user can incorporate their edits into the updated file instead of overwiting it.

Fifth: Print out the log for main.c
rlog main