# Make file for Lab Exercise 3 # ORIGINALLY WRITTEN BY: Michael Main (main@colorado.edu), Jan 11, 1997 # MODIFIED BY: Jim Rogers, Jan/2001 # # This makefile is used to regenerate files for the testtank program: # make tank.o -- Regenerates tank.o by compiling # make testtank.o -- Regenerates testtank.o by compiling # make testtank.exe -- Regenerates the executable testtank file by compiling # make -- Same as "make testtank" # # Two special targets may also be used with this makefile: # make all -- Regenerates all files listed above # make clean -- Erases all files listed above # # All compilations occur with -Wall and -gstabs+. # The clean command uses rm to remove all expendable files EXPENDABLES = testtank testtank.o tank.o testtank: testtank.o tank.o c++ -Wall -gstabs+ tank.o testtank.o -o testtank tank.o: tank.h tank.cpp c++ -Wall -gstabs+ -c tank.cpp testtank.o: tank.h testtank.cpp c++ -Wall -gstabs+ -c testtank.cpp clean: rm -f $(EXPENDABLES) all: rm -f $(EXPENDABLES) @make $(EXPENDABLES)