next up previous
Next: Grading Up: The Problem: Previous: Part 4 Command Specification

Submission Instructions

To make your submission file, make a directory and copy all required files into it. Change to that directory and type:

           tar -cvf part#.tar *
           gzip part#.tar

To submit type(submit will usually be working 1 week before the due date):

           ~mhf20001/lbin/submit # part#.tar.gz

In all cases '#' represents the number of the project part you are submitting(1,2,3 or 4).

You must include the following with every submission: All necessary source files (.h, .cpp, .java etc.) to compile your program. A file called README, all upper case, which contains your name, login id, and any information you would like to add. A file called 'project#', where # is the part you are submitting- 1,2,3 or 4. This file must contain the line needed to run your project after it is comiles. For instance-

           proj1

if you used c++, or

           java proj1

if you used java.

If you leave out the README or project# file your project will fail to submit! You must also include a makefile, so that by typing 'make' I can compile your project. A very basic sample makefile might be:

all:
	javac *.java

or

all:
	g++ *.cpp -o proj3

Here is a moderately more complicated makefile that you might use as a template:

CC = cxx
FLAGS =
LFLAGS = -lm

proj4: bpnode.o bptree.o cell.o main.o pmedge.o pmpoint.o  pmquadtree.o util.o
	$(CC) $(LFLAGS) *.o -o proj4

bpnode.o: bpnode.cpp bpnode.h bpdata.h
	$(CC) -c $(FLAGS) bpnode.cpp

bptree.o: bptree.cpp bptree.h bpdata.h
	$(CC) -c $(FLAGS) bptree.cpp

cell.o: cell.cpp cell.h bpdata.h pmpoint.h pmedge.h celledge.h
	$(CC) -c $(FLAGS) cell.cpp

main.o: main.cpp bptree.h cell.h celledge.h pmedge.h pmpoint.h util.h psdraw.h $
	$(CC) -c $(FLAGS) main.cpp                     

pmedge.o: pmedge.cpp pmedge.h pmpoint.h util.h
	$(CC) -c $(FLAGS) pmedge.cpp

pmpoint.o: pmpoint.cpp pmpoint.h pmedge.h
	$(CC) -c $(FLAGS) pmpoint.cpp

pmquadtree.o: pmquadtree.cpp pmquadtree.h pmpoint.h pmedge.h util.h psdraw.h
	$(CC) -c $(FLAGS) pmquadtree.cpp

util.o: util.h util.cpp
	$(CC) -c $(FLAGS) util.cpp

clean:
	rm -f *.o
	rm -f proj4
	rm -f core

No promises are made that I will read your READMEs, but they are useful when problems come up with a project.

There is a 100K filesize limit, so especially if you used g++ make sure to *not* include .o files , core, or a compiled executable. In java you should dump the .class files, but they really aren't that big...

And finally- if you had to add lines to your path in order to compile, remember that I won't have those lines in my path when I am grading! So make sure to include full paths and such in your makefile. Java people- if you are using jikes you might consider submitting a makefile which uses javac.

If there is popular demand for me to add something to my path, post to the newsgroup and I will.


next up previous
Next: Grading Up: The Problem: Previous: Part 4 Command Specification
Brian Krznarich 2002-12-08

Web Accessibility