CS 23
120 pts., due Apr. 30
Project 15, pg. 350 of Carrano.
Create a new, empty directory for your project. Copy the file
~kelliher/pub/cs23/Makefile
to the directory. Here's a copy of the
file:
# To use this Makefile: # # 1) Edit the SRCS line so that the names of all source files are on it. # Save this file. # # 2) Anytime you've changed the SRCS line or added/delete an #include line # in a source file run the following: # make depend # # 3) To compile your program run the following: # make # The executable program will be named according to the PROGNAME line. # # 4) To clean up (remove) extraneous files run the following: # make clean # Include the names of all source files on the following SRCS line. They # all need to fit on one line. # Example: SRCS = main.cc queue.cc sortedllist.cc SRCS = # The following PROGNAME specifies the name for the executable program. # Please leave as "project". PROGNAME = project # You should not have to modify anything below this line. OBJS = ${SRCS:.cc=.o} C++FLAGS = -g ${PROGNAME} : ${OBJS} ${C++C} -g -o $@ ${OBJS} depend : makedepend -I/usr/include/g++ ${SRCS} clean : /bin/rm -f *~ *.o ${PROGNAME} *.bak *.tar *.gz # DO NOT DELETE THIS LINE -- makedepend depends on it.Follow the instructions for using this file for compiling your program. Put your source and header files in this directory.
I will test your program with my own data file. Thus, it is extremely important that you follow the instructions for input format to the letter. You will deposit your source files and Makefile, in one unit, into a directory that I am specifying. Here's the procedure:
tar -cvf id.tar *
(Replace id with your student id
number in this and the following commands)
mv id.tar ~kelliher/pub/cs23/submit