# A template makefile for CSE 326 # by Dan Fasulo # 10-6-1997 # type "make depend" whenever you add new #includes or files to # your program. (optional) # type "make " to make your program. # type "make turnin" to submit your program for grading. # type "make clean" to get rid of backup files and object files. # --------------------- REALLY IMPORTANT STUFF --------------------------- # Be sure to read all of the instructions below and fill in the # appropriate variable values. Also, do NOT put carriage returns # in the lines; separate file names by spaces. # Put the name you want your executable to have here (i.e., qsort) PROGRAM = qtest # Put the names of your header files here (i.e., myheader.h). You # don't need to include system headers (like ). HEADERS = Queue.h # Put the names of your source files here (i.e., mysource.cpp) SOURCES = Queue.cpp qtest.cpp # Put the names of your object files here. For every C++ source file # in SOURCES above of the form "mysource.cpp", there should be a filename # of the form "mysource.o" below. # NOTE: TEMPLATE IMPLEMENTATION FILES DON'T COUNT FOR THIS LINE ONLY! OBJECTS = qtest.o # # --------------- Stuff you MIGHT have to change -------------------- # -------------- Please verify that it is correct ------------------- # # Put the name of the compiler you intend to use here. CC = g++ # Put the extension you intend to use for C++ files here (cpp by default) CPPEXT = cpp # The file name of the makefile. MF = makefile # Put linking commands for any libraries that you want to use here. # For example, if you want to use the math library defined in , # you would put -lm on this line. Generally, in CSE 326 this line will # be blank. LIBS = # Put any macros you wish to define for the compiler here (i.e., to # define the macro "EXPLICIT_TEMPLATES", you would put "-DEXPLICIT_TEMPLATES" DEFINES = # ------------- Stuff you shouldn't have to change ------------------ # Don't change these unless you know what you're doing. # If you're using DEC OSF/1 or ULTRIX, uncomment the line below. .SUFFIXES: .o .h .$(CPPEXT) # This line sets the options for the compiler. Commonly, the following # options are used: # # -g: Include debugging info in the executable; necessary to debug # the program with gdb. # -Wall: Enable all warning messages # -fno-implicit-templates: disable automatic generation of template # code. Only relevant when templates are being used in the project. CFLAGS = -g -Wall -fno-implicit-templates $(PROGRAM): $(OBJECTS) $(CC) -o $(PROGRAM) $(CFLAGS) $(OBJECTS) $(LIBS) clean: @rm -f *~ "#*" *.o .$(CPPEXT).o: $(CC) $(CFLAGS) $(DEFINES) -c -o $*.o $< depend: makedepend -I/usr/local/.contrib/libg++/lib/g++-include \ -f $(MF) $(SOURCES) # DO NOT DELETE THIS LINE -- make depend depends on it. qtest.o: Queue.h Queue.cpp