CC = g++ # CCFLAGS are all the flags to send during compilation and linking # The -g flag says to put in debugging information, which is needed # to run the debugger, called gdb. # CCFLAGS = -Wall # LDFLAGS are all the flags to send during linking LDFLAGS = runvector: main.o vectorint.o $(CC) $(LDFLAGS) -o runvector main.o vectorint.o main.o: main.cc vector.h $(CC) $(CCFLAGS) -c main.cc vectorint.o: vectorint.cc vector.cc vector.h $(CC) $(CCFLAGS) -c vectorint.cc vector.o: vector.cc vector.h $(CC) $(CCFLAGS) -c vector.cc clean: rm -f core *.o runvector *~