# Hey Emacs, this is a -*- makefile -*-! # 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 your section here (i.e, AA or AB) SECTION = # Put the name you want your executable to have here (i.e., qsort) PROGRAM = mcst # Put the names of your header files here (i.e., myheader.h). You # don't need to include system headers (like ). HEADERS = # Put the names of your source files here (i.e., mysource.cpp) SOURCES = mcst.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. OBJECTS = mcst.o # Put the turnin ID of the project here. If this is project 1, the # ID is proj1, project 2's ID is proj2, etc. PROJECT = proj3 # # --------------- 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 = -DEXPLICIT_TEMPLATES # ------------- 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 $< turnin: turnin -c cse326=$(SECTION) -p $(PROJECT) $(HEADERS) $(SOURCES) $(MF) depend: makedepend -I/usr/local/.contrib/libg++/lib/g++-include $(DEFINES) \ -f $(MF) $(SOURCES) ##################### EVERYTHING BELOW THIS LINE IS SUBJECT TO SUDDEN DEATH... # DO NOT DELETE THIS LINE -- make depend depends on it.