# Makefile P.Conrad 01/28/2007 for CISC181, Spring 2007 # A script to compile and link function definition with main function # for test of function to find index of largest element in an array # list the executable programs we want to make BINARIES = main1 # Define the C++ compiler (CCC) as either CC or g++ CCC = CC #define a rule for how to make the file test1 main1: main1.o indexLargestElemBroken.o ${CCC} main1.o indexLargestElemBroken.o -o main1 main1.o: main1.cc ${CCC} -c main1.cc indexLargestElemBroken.o: indexLargestElemBroken.cc ${CCC} -c indexLargestElemBroken.cc clean: /bin/rm -f *.o ${BINARIES}