Makefile Assignment Create a file called f1.cpp. It should contain the following function: int squareIt ( int x ) { //insert code to calc and return the.

Slides:



Advertisements
Similar presentations
ITK-Overview Insight Software Consortium. What is ITK Image Processing Segmentation Registration No Graphical User Interface (GUI) No Visualization.
Advertisements

CPSC 441 TUTORIAL – JANUARY 16, 2012 TA: MARYAM ELAHI INTRODUCTION TO C.
 Gearing up for the stretch run CSCI 21, Spring 2013.
Makefile Ansuman Banerjee Arijit Bishnu Debapriyo Majumdar Data and File Structures Lab M.Tech. Computer Science 1 st Year, Semester I Indian Statistical.
JavaScript FaaDoOEngineers.com FaaDoOEngineers.com.
Module R2 CS450. Next Week R1 is due next Friday ▫Bring manuals in a binder - make sure to have a cover page with group number, module, and date. You.
Makefiles. makefiles Problem: You are working on one part of a large programming project (e. g., MS Word).  It consists of hundreds of individual.c files.
MT311 Tutorial Li Tak Sing( 李德成 ). Uploading your work You need to upload your work for tutorials and assignments at the following site:
Copyright © 2008 Pearson Addison-Wesley. All rights reserved. Chapter 12 Separate Compilation Namespaces Simple Make Files (Ignore all class references.
CS 202 Computer Science II Lab Fall 2009 September 17.
Unix Continuum of Tools Do something once: use the command line Do something many times: –Use an alias –Use a shell script Do something that is complex.
1 ENERGY 211 / CME 211 Lecture 2 September 24, 2008.
Computer Architecture and Assembly Languages Course’s web site: Teaching Assistant: Or Peri Office Hours: Thursday 37/-108.
Guidelines for working with Microsoft Visual Studio 6.
G++ and make Dan Wilson CS193 02/01/06. The g++ Compiler What happens when you call g++ to build your program? Phase 1, Compilation:.cpp files are compiled.
Lecture 8  make. Overview: Development process  Creation of source files (.c,.h,.cpp)  Compilation (e.g. *.c  *.o) and linking  Running and testing.
Makefiles. makefiles Problem: You are working on one part of a large programming project (e. g., MS Word).  It consists of hundreds of individual.c files.
YourClassPage.com TM Inservice Quickstart Guide Getting YOUR classpage up and running!
Makefiles CISC/QCSE 810. BeamApp and Tests in C++ 5 source code files After any modification, changed source needs to be recompiled all object files need.
Makefiles. makefiles Problem: You are working on one part of a large programming project (e. g., MS Word).  It consists of hundreds of individual.cpp.
The UNIX development environment CS 400/600 – Data Structures.
Open the Goodyear Homepage Click on Teacher Tools.
TAMU CSCE 313 (the basics). Basic Unix/Linux programming Accessing CS systems  PuTTY (putty.exe) – a Telnet and SSH client  Common hosts: unix.cs.tamu.edu.
MPI and High Performance Computing: Systems and Programming Barry Britt, Systems Administrator Department of Computer Science Iowa State University.
ITEC 320 C++ Examples.
C Tutorial - Program Organization CS Introduction to Operating Systems.
Makefile M.A Doman. Compiling multiple objects Card.cpp -> Card.o Deck.cpp -> Deck.o main.cpp -> main.o main.o Deck.o Card.o -> Dealer.exe.
Executing a C Program Creating the Program Compilation Linking Execution.
Data Display Debugger (DDD)
C++ / G4MICE Course Session 2 Basic C++ types. Control and Looping Functions in C Function/method signatures and scope.
Google HOW DO I SUBMIT MY ASSIGNMENT?. To join a classroom, your teacher will give you a code.
July Doxygen A Code Documentation System Doxygen generates documentation directly from the structure and comments in the code –Browsable HTML documentation.
HTML Links HTML uses a hyperlink to another document on the Web.
EIToolkit stub doc. main.cpp file int main(int argc, char* argv[]) { EIProperties::UseStandards(); // create the stub ExampleStub stub; stub.Start();
Rubicon ATLAS A User’s Manual:. Rubicon ATLAS How to Log on and How to Edit: Essential Questions Enduring Understandings Knowledge Standards Unit Titles.
Makefiles Problem: You are working on one part of a large programming project (e. g., MS Word).  It consists of hundreds of individual.c files all linked.
Problem Solving With C++ Recitation – make February 2016.
C code organization CSE 2451 Rong Shi. Topics C code organization Linking Header files Makefiles.
Session: 4. © Aptech Ltd. 2Creating Hyperlinks and Anchors / Session 4  Describe hyperlinks  Explain absolute and relative paths  Explain how to hyperlink.
Build Tools 1. Building a program for a large project is usually managed by a build tool that controls the various steps involved. These steps may include:
Program Libraries 1. What is a program library? A library is a collection of implementations of behavior, written in terms of a language, that has a well-defined.
Announcements Assignment 1 will be regraded for all who’s score (not percentage) is less than 6 (out of 65). If your score is 6 or higher, but you feel.
Brandon Packard. Why make? So far, you have probably worked on relatively small projects Coding projects can become huge My research consists of 1600.
Sung-Dong Kim Dept. of Computer Engineering, Hansung University Chapter 3 Programming Tools.
Import existing part with drawing
Windows Programming Lecture 03. Pointers and Arrays.
Linux CSE 1222 CSE1222: Lecture 1BThe Ohio State University1.
Institute of Radio Physics and Electronics ILug-Cal Introduction to GDB Institute of Radio Physics and Electronics and Indian GNU/Linux Users Group Kolkata.
Windows 7 Ultimate
Document Upload The Document Upload feature enables districts and schools to upload documents for the state to view. The district can also view documents.
Homework 1.
5.13 Recursion Recursive functions Functions that call themselves
CISC105 – General Computer Science
Compilation and Debugging
Compilation and Debugging
Makefiles.
Agenda Make Utility Command Line Arguments in Unix
CS 537 Section 1 Programming in Unix and C
Command-Line Arguments
Lab 8 Instructions You can use g++ on build server, visual studio on local machine or your preferred C++ IDE. Important Note: For your grade, please show.
Makefiles and the make utility
2.1 Processes process = abstraction of a running program
Command Line Parameters
How to Submit Google Docs to the Homework Drop Box
Appendix F C Programming Environment on UNIX Systems
C Programming Language
Makefiles and the make utility
CSC 253 Lecture 15.
This presentation document has been prepared by Vault Intelligence Limited (“Vault") and is intended for off line demonstration, presentation and educational.
ENERGY 211 / CME 211 Lecture 29 December 3, 2008.
Presentation transcript:

Makefile Assignment Create a file called f1.cpp. It should contain the following function: int squareIt ( int x ) { //insert code to calc and return the square of x }

Assignment (cont’d.) Create a file called f2.cpp. It should contain the following function: int cubeIt ( int x ) { //insert code to calc and return the cube of x }

Assignment (cont’d.) Create a main program in a file called main.cpp. #include <stdio.h> extern int squareIt ( int x ); extern int cubeIt ( int x ); int main ( int argc, char* argv[] ) { … }

Assignment (cont’d.) main should then call the two functions using any values you wish, and add up the values. main should repeat the above 3 times. Get this to compile, link, and run using makefiles on both Windows and Unix/Linux/MacOS. (Do not use cmake to create the makefiles.)

Assignment (cont’d.) Then create a makefile which should recompile and relink only when changes are made. The makefile should also contain a tag called clean. Whenever the user types make clean, this tag should simply delete all object and executable files. See the man page for rm (Unix) and del (Windows). If no object or executable files are present, make clean should not report any errors.

Assignment (cont’d.) Fully document each C/C++ file and each function with doxygen. Add a tag to the makefile called docs. When the user enters ‘make docs’ or ‘nmake docs’, doxygen is executed to update the documentation. Email f1.cpp, f2.cpp, main.cpp, and your makefiles to me. The subject must be SE Makefile.