## ## 2004 Utah High School Programming Contest, University of Utah ## Take-Home Problem ## ## Makefile ## ## On Linux/Unix, you can use this file to compile the skeleton program. You ## may need to change some of the definitions below to fit your environment. ## ## In a terminal window, type "make" to compile the skeleton program. To ## delete the compiled versions of the program files, type "make clean". ## # The name of the compiled program. # PROG = decrypt # The "object files" that are part of the skeleton program. # OBJS = Cipher.o \ Decrypt.o \ Dictionary.o \ main.o \ Puzzle.o \ RotationCipher.o \ Search.o \ SubstitutionCipher.o \ Words.o # The name of the C++ compiler, and the command-line options for the compiler. # If you are using G++, you should use G++ version 3 or later. # CXX = g++ CXXFLAGS = -Wall -g ############################################################################### all: $(PROG) $(PROG): $(OBJS) $(CXX) -o $@ $(OBJS) .cpp.o: $(CXX) $(CXXFLAGS) -c -o $@ $< clean: $(RM) $(OBJS) ############################################################################### # Auto-generated dependencies. Cipher.o: Cipher.cpp Cipher.hpp Decrypt.o: Decrypt.cpp Decrypt.hpp Cipher.hpp Dictionary.hpp \ Puzzle.hpp Search.hpp Words.hpp Dictionary.o: Dictionary.cpp Dictionary.hpp Puzzle.o: Puzzle.cpp Puzzle.hpp Cipher.hpp Dictionary.hpp RotationCipher.o: RotationCipher.cpp RotationCipher.hpp Cipher.hpp Search.o: Search.cpp Search.hpp Cipher.hpp Dictionary.hpp \ Puzzle.hpp RotationCipher.hpp SubstitutionCipher.hpp SubstitutionCipher.o: SubstitutionCipher.cpp SubstitutionCipher.hpp \ Cipher.hpp Words.o: Words.cpp Words.hpp ## End of file.