Jan 15 - G++ main.o squared.o squareroot.o o main.exe...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
Jan 15, 2006 – ECE106 Make Main.cc Squared.h Squarerooth Squared.cc Squareroot.cc 1. Figure out commands 2. Figure out what commands when a file changes 3. Express this in a file: Makefile 4. %make Main.exe Main.o squared.o squareroot.o Main.cc squared.h squared.cc squareroot.h squareroot.cc Makefile Main.exe: main.o squared.o suareroot.o //must have tabs (no spaces)
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Background image of page 2
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: G++ main.o squared.o squareroot.o o main.exe Main.o: main.cc squared.h squareroot.h G++ -c main.cc Squared.o: squared.cc squared.h G++ -c squared.cc Squareroot.o: squareroot.cc squareroot.h G++ -c squareroot.cc Clean: rm core *o*ef %make main.exe %make main.o %make clean...
View Full Document

Page1 / 2

Jan 15 - G++ main.o squared.o squareroot.o o main.exe...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online