COSC345 Software Engineering. Make
|
|
- Iris Caldwell
- 5 years ago
- Views:
Transcription
1 COSC345 Software Engineering Make
2 The build process Make When to use make How to use make Suffix rules makedepend Outline Warning: Make is different everywhere you go!
3 Build Process The build process can often: Be complex Rely on several different processes Be time-consuming Be difficult to remember defs.h command.h main.c kbd.c main.o kbd.o edit
4 Dependencies If a header changes then the source must be recompiled If command.h changes then recompile kbd.c relink edit Actually, we must rebuild: All files that include the header All executables dependant on the object code All libraries dependant on the object code All executables dependant on the library And all in the right order!
5 What Make Does We need some way of scripting the build process When changes are made: Only re-build the parts that are necessary Automatically work out which parts those are Make Manages the creation of output files from source files Uses a configuration file (makefile) to specify how Uses file time-stamps to determine what s out-of-date Make also: Enables those new to a project to build it without understanding the build process Enables the developers to build: Clean-up scripts Install scripts
6 When to use Make When the project has more than one file When the build process is more than just compile It reduces compile / debug cycle time When the build process is different on different machines When you expect to go-back to a project later And won t be able to remember how to build it In short always The time required to write a makefile is very small It saves time if you re going to compile more than once
7 Make Scripting Make uses a script to determine: Which files need rebuilding The order they should be rebuilt If you change only one thing then make will make changes only to files dependant on that change In a script (a makefile) you tell make How to execute a series of commands to make a target from sources What the target is dependant on Call your makefile either makefile or Makefile
8 Make Rules A makefile is made from a series of rules <target> : <dependency> <dependency> <command> <command> <target> is the name of the file to be built <dependency> is the name of a file needed to build it <command> is each command needed to create the target Commands are indented by one tab A rule describes how and when to perform an action Unless specified otherwise make builds only the first target
9 Sample Makefile edit : main.o kbd.o cc -o edit main.o kbd.o main.o : main.c defs.h cc -c main.c kbd.o : kbd.c defs.h command.h cc -c kbd.c clean : rm edit main.o kbd.o In the rule: edit : main.o kbd.o cc -o edit main.o kbd.o The target is edit The dependents are main.o and kbd.o The command is cc -o edit main.o kbd.o Which will result in edit being built
10 What Make Does Read the makefile Generate a dependency graph for the first target Starting at the target For every dependent Target the dependent If any dependent is more recent then the target Execute the commands If any target doesn t exist Execute the commands To run make on Linux: make To run make on Windows: nmake
11 In the example: Dependency Graph If any of the.h or.c files is touched then edit is rebuilt edit : main.o kbd.o cc -o edit main.o kbd.o main.o : main.c defs.h cc -c main.c kbd.o : kbd.c defs.h command.h cc -c kbd.c clean : rm edit main.o kbd.o main.c main.o defs.h edit kbd.c kbd.o command.h
12 Commands Make will execute one or more commands specified: Each on separate line Without blank lines between them clean : rm edit rm main.o kbd.o Make does not execute commands directly, it calls a (configurable) shell to execute them If a command returns an error (non-zero) then make exits This stops the build process at the first error Commands are not echoed to the console (silent) - the return code is ignored (can t produce an error)
13 Macros / Inference Rules Macros can be defined objects = main.o kbd.o And used edit : $(objects) cc -o edit $(objects) So changes only need to be made in one place Some rules are inferred main.o : defs.h kbd.o : defs.h command.h Make knows how to make.c files into.o files
14 Inference Rules main.o is made from main.c & defs.h by an inference rule: $(CC) -c $(CFLAGS) main.c Inference rules can be specified in the makefile <.from><.to>: <command> <command> Example.c.o: $(CC) -c $(CFLAGS) $< Make must be told about inference rules.suffixes: #Clear the suffix list.suffixes:.c.o #Append to the suffix list
15 Predefined Macros Make has many built in default macros: For compilers it includes For inference rules it includes: Macro Definition Compiler Flags CC CXX CFLAGS CXXFLAGS Current target's full name $< Dependent file with a later timestamp than the current target $? All dependents with a later timestamp than the current target $* Current target's path and base name minus file extension $+ All dependents of the current target As well as the environment variables
16 Other Rules Multiple targets for a dependency main.o kdb.o : defs.h kbd.o : command.h Targets built by multiple commands (::) libaspt.a :: kbd.o ar -rv libaspt.a kbd.o libaspt.a :: another.o ar -rv libaspt.a another.o Makefiles can include other makefiles include another.mak # at the beginning of a line is a comment
17 Dependencies The dependencies must be kept up-to-date Every new header file included must be accounted for This is time consuming and prone to error Tools exist to build the dependencies makedepend mkdep And others too For more on makedepend (on Linux) try man makedepend
18 Make-like Tools Many IDEs have make-like tools Visual Studio Xcode Many IDEs require their build files to debug Visual Studio does not Xcode (essentially) does Cmake Reads CMakeLists.txt and converts into different formats Visual Studio, Xcode, Make, etc. Cmake is a bit esoteric but it is cross-platform Linux, Mac, Windows, etc.
19 GNU make References NMAKE reference Cmake
GNU Make 1. 1 material adapted from GNU Make by Richard Stallman
1 The make utility automatically determines which pieces of a large program need to be recompiled, and issues commands to recompile them. Make can be used with any programming language whose compiler can
More informationBasic Compilation Control with Make
by P.N. Hilfinger (U.C. Berkeley) modified by M. Clancy (UCB) and C. Bono Basic Compilation Control with Make Even relatively small software systems can require rather involved, or at least tedious, sequences
More informationCS11 Advanced C++ Fall Lecture 4
CS11 Advanced C++ Fall 2006-2007 Lecture 4 Today s Topics Using make to automate build tasks Using doxygen to generate API docs Build-Automation Standard development cycle: Write more code Compile Test
More informationMakefiles SE 2XA3. Term I, 2018/19
Makefiles SE 2XA3 Term I, 2018/19 Outline Example Calling make Syntax How it works Macros Suffix rules Command line options Example Assume we have files main.c, test.c, and lo.asm Consider the makefile
More informationChapter 2: An Introduction to Makeles 5 2 An Introduction to Makeles You need a le called a makele to tell make what to do. Most often, the makele tel
Chapter 2: An Introduction to Makeles 5 2 An Introduction to Makeles You need a le called a makele to tell make what to do. Most often, the makele tells make how to compile and link a program. In this
More information2 Compiling a C program
2 Compiling a C program This chapter describes how to compile C programs using gcc. Programs can be compiled from a single source file or from multiple source files, and may use system libraries and header
More information[Software Development] Makefiles. Davide Balzarotti. Eurecom Sophia Antipolis, France
[Software Development] Makefiles Davide Balzarotti Eurecom Sophia Antipolis, France 1 Software Development Tools 1. Configuring and Building the program GCC Makefiles Autotools 2. Writing and managing
More informationThe make utility automatically determines which pieces of a large program need to be recompiled, and issues commands to recompile them.
What is make? 1 make is a system utility for managing the build process (compilation/linking/etc). There are various versions of make; these notes discuss the GNU make utility included on Linux systems.
More informationCS11 Intro C++ Spring 2018 Lecture 4
CS11 Intro C++ Spring 2018 Lecture 4 Build Automation When a program grows beyond a certain size, compiling gets annoying g++ -std=c++14 -Wall units.cpp testbase.cpp \ hw3testunits.cpp -o hw3testunits
More informationCMPT 300. Operating Systems. Brief Intro to UNIX and C
CMPT 300 Operating Systems Brief Intro to UNIX and C Outline Welcome Review Questions UNIX basics and Vi editor Using SSH to remote access Lab2(4214) Compiling a C Program Makefile Basic C/C++ programming
More informationProgram Development Tools
Program Development Tools GNU make (much of this material is adapted from GNU Make by Richard Stallman) The make utility automatically determines which pieces of a large program need to be recompiled,
More informationBuild. System building
Build System building The process of compiling and linking software components into an executable system Different systems are built from different combinations of components Invariably supported by automated
More informationSoftware Building (Sestavování aplikací)
Software Building (Sestavování aplikací) http://d3s.mff.cuni.cz Pavel Parízek parizek@d3s.mff.cuni.cz CHARLES UNIVERSITY IN PRAGUE faculty of mathematics and physics Make Nástroje pro vývoj software Software
More informationMakefile Tutorial. Eric S. Missimer. December 6, 2013
Makefile Tutorial Eric S. Missimer December 6, 2013 1 Basic Elements of a Makefile 1.1 Explicit Rules A the major part of a Makefile are the explicit rules (a.k.a. recipes) that make certain files. Below
More informationGNU Make. A Program for Directing Recompilation GNU make Version 3.79 April Richard M. Stallman and Roland McGrath
GNU Make GNU Make A Program for Directing Recompilation GNU make Version 3.79 April 2000 Richard M. Stallman and Roland McGrath Copyright c 1988, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 2000 Free
More informationCSE 374 Programming Concepts & Tools
CSE 374 Programming Concepts & Tools Hal Perkins Fall 2017 Lecture 14 Makefiles and Compilation Management 1 Where we are Onto tools... Basics of make, particular the concepts Some fancier make features
More informationMultiple file project management & Makefile
Multiple file project management & Makefile Compilation & linkage read.c read.h main.c Compilation: gcc -c read.c main.c list.c list.h list.c read.o main.o list.o Linkage: gcc... read.o main.o list.o -o
More informationKurt Schmidt. May 23, 2018
duction to duction to Dept. of Computer Science, Drexel University May 23, 2018 duction to make duction to Automates certain tasks Usually simple command-line stuff Compiling multi-file programs Archiving/extracting
More informationCompilation & linkage. Compilation & linkage. Make. Compilation & linkage. Explicit rules. What makefile contains
Linkage: g++ read main list o Compilation: g++ -c read main list read read read main main list list list If only one file is modified, do we have to recompile all over again? No. The Makefile uses the
More informationSystems Programming/ C and UNIX
Systems Programming/ C and UNIX Alice E. Fischer Lecture 5 Makefiles October 2, 2017 Alice E. Fischer Lecture 5 Makefiles Lecture 5 Makefiles... 1/14 October 2, 2017 1 / 14 Outline 1 Modules and Makefiles
More information/visualc/vcug/_asug_overview.3a_.nmake_reference.htm
NMAKE 1 Definition : Microsoft development utility program for keeping a set of separately compiled files current, (AT&T and Lucent also maintain versions of nmake). Eliminates unnecessary compilations
More informationUNIVERSITY OF CALIFORNIA Department of Electrical Engineering and Computer Sciences Computer Science Division. P. N. Hilfinger
UNIVERSITY OF CALIFORNIA Department of Electrical Engineering and Computer Sciences Computer Science Division CS164 Spring 2009 P. N. Hilfinger Basic Compilation Control with Gmake Even relatively small
More informationGDB and Makefile. Bin Li Assistant Professor Dept. of Electrical, Computer and Biomedical Engineering University of Rhode Island
GDB and Makefile Bin Li Assistant Professor Dept. of Electrical, Computer and Biomedical Engineering University of Rhode Island GDB Debugging: An Example #include void main() { int i; int result
More informationThe makeutility automatically determines which pieces of a large program need to be recompiled, and issues commands to recompile them.
What is make? 1 make is a system utility for managing the build process (compilation/linking/etc). There are various versions of make; these notes discuss the GNU makeutility included on Linux systems.
More informationIntroduction to System Programming : makefile
Introduction to System Programming : makefile Reference Documentation: http://www.gnu.org/software/make/manual/make.html Tutorials: http://www.cs.umd.edu/class/spring2002/cmsc214/tutorial/makefile.html
More informationThe make utility. Alark Joshi COMPSCI 253
The make utility Alark Joshi COMPSCI 253 What is make? Make is a utility that is included with Linux/Unix operating systems It is a command generator It is designed to help you compile large projects It
More informationIntermediate Programming, Spring 2017*
600.120 Intermediate Programming, Spring 2017* Misha Kazhdan *Much of the code in these examples is not commented because it would otherwise not fit on the slides. This is bad coding practice in general
More informationAnd You Thought There Couldn t be More C++ Fundamentals of Computer Science
And You Thought There Couldn t be More C++ Fundamentals of Computer Science Outline Multi-File Programs makefiles Multi-File Programs Advantages If you write classes in separate files (like in Java) you
More informationReviewing gcc, make, gdb, and Linux Editors 1
Reviewing gcc, make, gdb, and Linux Editors 1 Colin Gordon csgordon@cs.washington.edu University of Washington CSE333 Section 1, 3/31/11 1 Lots of material borrowed from 351/303 slides Colin Gordon (University
More informationCS240: Programming in C
CS240: Programming in C Lecture 2: Hello World! Cristina Nita-Rotaru Lecture 2/ Fall 2013 1 Introducing C High-level programming language Developed between 1969 and 1973 by Dennis Ritchie at the Bell Labs
More informationCSE 333 Interlude - make and build tools
CSE 333 Interlude - make and build tools Hal Perkins Paul G. Allen School of Computer Science & Engineering University of Washington make make is a classic program for controlling what gets (re)compiled
More informationAN 834: Developing for the Intel HLS Compiler with an IDE
AN 834: Developing for the Intel HLS Compiler with an IDE Subscribe Send Feedback Latest document on the web: PDF HTML Contents Contents 1 Developing for the Intel HLS Compiler with an Eclipse* IDE...
More informationCS 261 Recitation 1 Compiling C on UNIX
Oregon State University School of Electrical Engineering and Computer Science CS 261 Recitation 1 Compiling C on UNIX Winter 2017 Outline Secure Shell Basic UNIX commands Editing text The GNU Compiler
More informationPattern Matching, set-up. Pattern Matching, example. Pattern Matching, set-up, cont. Lecture 9: Make Pattern Matching & Conceptual Integrity
Lecture 9: Make Pattern Matching & Conceptual Integrity Kenneth M. Anderson Software Methods and Tools CSCI 3308 - Fall Semester, 2004 Pattern Matching, set-up Below is a fairly standard makefile. What
More informationLab #3 Automating Installation & Introduction to Make Due in Lab, September 15, 2004
Lab #3 Automating Installation & Introduction to Make Due in Lab, September 15, 2004 Name: Lab Time: Grade: /10 Error Checking In this lab you will be writing a shell script to automate the installation
More informationSeparate Compilation of Multi-File Programs
1 About Compiling What most people mean by the phrase "compiling a program" is actually two separate steps in the creation of that program. The rst step is proper compilation. Compilation is the translation
More informationMakefiles are a simple way to organize code compilation. Using a makefile it is possible to compile several source files to produce an executable;
Makefile Makefiles are a simple way to organize code compilation. Using a makefile it is possible to compile several source files to produce an executable; Source (.cc) and header (.h) files can be placed
More informationMake: a build automation tool
Make: a build automation tool What is the problem? The lab examples repository for the CS 253 course has 228 files in 54 folders. To build them all would requires us to navigate to 54 folders and compile
More informationindependent compilation and Make
independent compilation and Make Geoffrey Brown David S. Wise Chris Haynes Bryce Himebaugh Computer Structures Fall 2013 Independent Compilation As a matter of style, source code files should rarely be
More informationCS354R: Game Technology
CS354R: Game Technology DevOps and Quality Assurance Fall 2018 What is DevOps? Development Operations Backend facilitation of development Handles local and remote hardware Maintains build infrastructure
More informationGNU Make. A Program for Directing Recompilation GNU make Version 3.82 July Richard M. Stallman, Roland McGrath, Paul D.
GNU Make GNU Make A Program for Directing Recompilation GNU make Version 3.82 July 2010 Richard M. Stallman, Roland McGrath, Paul D. Smith This file documents the GNU make utility, which determines automatically
More informationGNU Make. A Program for Directing Recompilation. Edition 0.51, for make Version 3.75 Beta. May Richard M. Stallman and Roland McGrath
GNU Make GNU Make A Program for Directing Recompilation Edition 0.51, for make Version 3.75 Beta. May 1996 Richard M. Stallman and Roland McGrath Copyright c 1988, '89, '90, '91, '92, '93, '94, '95, '96
More informationMakefile Brief Reference
Makefile Brief Reference COMP 229, 346, 444, 5201 Revision 1.1 Date: July 31, 2003 1 Contents Intro Format Examples 2 Intro Makefiles in conjunction with the make utility (man make) provide a very convenient
More informationContinue: How do I learn C? C Primer Continued (Makefiles, debugging, and more ) Last Time: A Simple(st) C Program 1-hello-world.c!
Continue: How do I learn C? C Primer Continued (Makefiles, debugging, and more ) Hello Word! ~/ctest/ In addition to syntax you need to learn: the Tools the Libraries. And the Documentation. Maria Hybinette,
More information@shorttitlepage GNU Make Copyright (C) 1988, '89, '90, '91, '92, '93 Free Software Foundation, Inc.
GNU Make @shorttitlepage GNU Make Copyright (C) 1988, '89, '90, '91, '92, '93 Free Software Foundation, Inc. Published by the Free Software Foundation 675 Massachusetts Avenue, Cambridge, MA 02139 USA
More informationThe Make Utility. Independent compilation. Large programs are difficult to maintain. Problem solved by breaking the program into separate files
The Make Utility Independent compilation Large programs are difficult to maintain Problem solved by breaking the program into separate files Different functions placed in different files The main function
More information{C} Tools of the Trade
{C} Tools of the Trade make Building Software 3 gcc is our compiler Turns C code into machine code ar is our librarian Gathers machine code files into groups called libraries But calling these over and
More informationGNU make... Martin Ohlerich, Parallel Programming of High Performance Systems
... Martin Ohlerich, Martin.Ohlerich@lrz.de Parallel Programming of High Performance Systems Outline 1 2 3 Leibniz Rechenzentrum 2 / 42 Outline 1 2 3 Leibniz Rechenzentrum 3 / 42 Common Situation Larger
More informationCptS 360 (System Programming) Unit 3: Development Tools
CptS 360 (System Programming) Unit 3: Development Tools Bob Lewis School of Engineering and Applied Sciences Washington State University Spring, 2018 Motivation Using UNIX-style development tools lets
More informationCSCi 4061: Intro to Operating Systems Spring 2017 Instructor: Jon Weissman Assignment 1: Simple Make Due: Feb. 15, 11:55 pm
CSCi 4061: Intro to Operating Systems Spring 2017 Instructor: Jon Weissman Assignment 1: Simple Make Due: Feb. 15, 11:55 pm 1 Purpose Make is a useful utility which builds executable programs or libraries
More informationHow to learn C? CSCI [4 6]730: A C Refresher or Introduction. Diving In: A Simple C Program 1-hello-word.c
How to learn C? CSCI [4 6]730: A C Refresher or Introduction Hello Word! ~/ctutorial/ In addition to syntax you need to learn: the Tools. the Libraries. And the Documentation (how to access) Practice on
More informationThe Linux Programming Environment. Computer Science Department Texas State University
The Linux Programming Environment Computer Science Department Texas State University TUTORIAL REQUIREMENTS... 1 INTRODUCTION... 1 COMPILATION... 1 COMMAND LINE COMPILATION... 1 Basic Compilation... 2 The
More informationMaemo Diablo GNU Make and makefiles Training Material
Maemo Diablo GNU Make and makefiles Training Material February 9, 2009 Contents 1 GNU Make and makefiles 2 1.1 What is GNU Make?......................... 2 1.2 How does make work?........................
More informationBMS: Build Management System
BMS: Build Management System D. Lawrence Jefferson Lab May 3, 2005 Abstract The BMS Build Management System is a set of GNU Makefiles which simplify and standardize the building of source code distribruted
More informationMake. Dependency Graphs
Make Typical program development cycle think edit compile test Potential problems edit a file, but forget to compile it edit an interface, but forget to compile all the files that depend on it do more
More informationMake was originally a Unix tool from 1976, but it has been re-implemented several times, notably as GNU Make.
make Make was originally a Unix tool from 1976, but it has been re-implemented several times, notably as GNU Make. Make accepts a Makefile, which is a strictly formatted file detailing a series of desired
More informationCMake & Ninja. by István Papp
CMake & Ninja by István Papp istvan.papp@ericsson.com Hello & Disclaimer I don t know everything (surprise!), if I stare blankly after a question, go to https://cmake.org/ Spoiler alert: or https://ninja-build.org/
More informationCS 247: Software Engineering Principles. Modules
CS 247: Software Engineering Principles Modules Readings: Eckel, Vol. 1 Ch. 2 Making and Using Objects: The Process of Language Translation Ch. 3 The C in C++: Make: Managing separate compilation Ch. 10
More informationCS Basics 15) Compiling a C prog.
CS Basics 15) Compiling a C prog. Emmanuel Benoist Fall Term 2016-17 Berner Fachhochschule Haute cole spcialise bernoise Berne University of Applied Sciences 1 Compiling a C program Example of a small
More informationIntroduction to Linux
Introduction to Linux EECS 211 Martin Luessi April 14, 2010 Martin Luessi () Introduction to Linux April 14, 2010 1 / 14 Outline 1 Introduction 2 How to Get Started 3 Software Development under Linux 4
More informationBerner Fachhochschule Haute cole spcialise bernoise Berne University of Applied Sciences 2
Compiling a C program CS Basics 15) Compiling a C prog. Emmanuel Benoist Fall Term 2016-17 Example of a small program Makefile Define Variables Compilation options Conclusion Berner Fachhochschule Haute
More informationThe Make Utility. Independent compilation. Large programs are difficult to maintain. Problem solved by breaking the program into separate files
The Make Utility Independent compilation Large programs are difficult to maintain Problem solved by breaking the program into separate files Different functions placed in different files The main function
More informationCS240: Programming in C. Lecture 2: Overview
CS240: Programming in C Lecture 2: Overview 1 Programming Model How does C view the world? Stack Memory code Globals 2 Programming Model Execution mediated via a stack function calls and returns local
More informationUsing GNU make C HAPTER 4
CH04.fm Page 101 Monday, October 7, 2002 8:54 PM C HAPTER 4 Using GNU make A ll serious software projects are built in pieces by many developers. These pieces consist of source code and header files, libraries
More informationOutline. Configuration management. Main Phases MOTIVATION
Outline Configuration management! Motivation! Versioning! Configuration items, configurations, baselines! Change control! Build! Configuration management plan! Configuration management tools Main Phases
More informationMake: a build automation tool 1/23
Make: a build automation tool 1/23 What is the problem? The lab examples repository for the CS 253 course has 293 files in 81 folders. To build them all would requires us to navigate to 81 folders and
More informationcget Documentation Release Paul Fultz II
cget Documentation Release 0.1.0 Paul Fultz II Jun 27, 2018 Contents 1 Introduction 3 1.1 Installing cget.............................................. 3 1.2 Quickstart................................................
More informationC/C++ Programming. Session 10
C/C++ Programming Dr Jim Lupo LSU/CCT Computational Enablement jalupo@cct.lsu.edu Concept Review int main (... ) {... }; Float precision if / else if / else statement; Promotion switch { statement block;...
More informationOregon State University School of Electrical Engineering and Computer Science. CS 261 Recitation 1. Spring 2011
Oregon State University School of Electrical Engineering and Computer Science CS 261 Recitation 1 Spring 2011 Outline Using Secure Shell Clients GCC Some Examples Intro to C * * Windows File transfer client:
More informationCS2141 Software Development using C/C++ Compiling a C++ Program
CS2141 Software Development using C/C++ Compiling a C++ Program g++ g++ is the GNU C++ compiler. A program in a file called hello.cpp: #include using namespace std; int main( ) { cout
More informationGNU make. Michal Koutný. Software development and monitoring tools (NSWI126)
GNU make Michal Koutný Software development and monitoring tools (NSWI126) Make basics Dependency tree (target and prerequisites) Check prerequisites, build target with recipe Configured via Makefile (a
More informationHPC User Environment
HPC User Environment Dirk Schmidl schmidl@rz.rwth-aachen.de Center for Computing and Communication RWTH Aachen University 22.03.2010 1 Program development tools on Linux IDEs eclipse sunstudio kdevelop
More informationCSE 390 Lecture 8. Large Program Management: Make; Ant
CSE 390 Lecture 8 Large Program Management: Make; Ant slides created by Marty Stepp, modified by Jessica Miller and Ruth Anderson http://www.cs.washington.edu/390a/ 1 Motivation single-file programs do
More information15-323/ Spring 2019 Project 4. Real-Time Audio Processing Due: April 2 Last updated: 6 March 2019
15-323/15-623 Spring 2019 Project 4. Real-Time Audio Processing Due: April 2 Last updated: 6 March 2019 1 Overview In this project, you will create a program that performs real-time audio generation. There
More informationWe d like to hear your suggestions for improving our indexes. Send to
Index [ ] (brackets) wildcard, 12 { } (curly braces) in variables, 41 ( ) (parentheses) in variables, 41 += (append) operator, 45 * (asterisk) wildcard, 12 $% automatic variable, 16 $+ automatic variable,
More informationChris' Makefile Tutorial
Chris' Makefile Tutorial Chris Serson University of Victoria June 26, 2007 Contents: Chapter Page Introduction 2 1 The most basic of Makefiles 3 2 Syntax so far 5 3 Making Makefiles Modular 7 4 Multi-file
More informationExercise 1: Basic Tools
Exercise 1: Basic Tools This exercise is created so everybody can learn the basic tools we will use during this course. It is really more like a tutorial than an exercise and, you are not required to submit
More informationProjects and Make Files
Projects and Make Files Creating an executable file requires compiling the source code into an object* file (file.o) and then linking that file with (other files and) libraries to create the executable
More informationCMake refactoring. P. Hristov 19/03/2014
CMake refactoring P. Hristov 19/03/2014 History I Recursive makefiles (F.Carminati): 1999-2001 Problems in dependencies Slow "Recursive Makefiles Considered Harmful" => flat makefiles similar to what Root
More informationData and File Structures Laboratory
Tools: Gcov, Cscope, Ctags, and Makefiles Assistant Professor Machine Intelligence Unit Indian Statistical Institute, Kolkata August, 2018 1 Gcov 2 Cscope 3 Ctags 4 Makefiles Gcov Gcov stands for GNU Coverage
More informationSoftware Development With Emacs: The Edit-Compile-Debug Cycle
Software Development With Emacs: The Edit-Compile-Debug Cycle Luis Fernandes Department of Electrical and Computer Engineering Ryerson Polytechnic University August 8, 2017 The Emacs editor permits the
More informationLab #3 Automating Installation & Introduction to Make Due in Lab, September 17, 2003
Lab #3 Automating Installation & Introduction to Make Due in Lab, September 17, 2003 Name: Lab Time: Grade: /10 Error Checking In this lab you will be writing a shell script to automate the installation
More informationINTERMEDIATE SOFTWARE DESIGN SPRING 2011 ACCESS SPECIFIER: SOURCE FILE
HEADER FILE A header (.h,.hpp,...) file contains Class definitions ( class X {... }; ) Inline function definitions ( inline int get_x() {... } ) Function declarations ( void help(); ) Object declarations
More informationProgramming in the Large Steps
Building 1 Programming in the Large Steps Design & Implement Program & programming style Common data structures and algorithms Modularity Building techniques & tools
More informationOutline. COMP 2718: Software Development Tools: gcc and make. C and Java 3/28/16
Outline COMP 2718: Software Development Tools: gcc and make Slides adapted by Andrew Vardy ( Memorial University) Originally created by Marty Stepp, Jessica Miller, and Ruth Anderson (University of Washington)
More informationIntroduction to Supercomputing
Introduction to Supercomputing TMA4280 Introduction to UNIX environment and tools 0.1 Getting started with the environment and the bash shell interpreter Desktop computers are usually operated from a graphical
More informationThe Makefile utility. (Extract from the slides by Terrance E. Boult
The Makefile utility (Extract from the slides by Terrance E. Boult http://vast.uccs.edu/~tboult/) Motivation Small programs single file Not so small programs : Many lines of code Multiple components More
More informationMake! CSC230: C and Software Tools. N.C. State Department of Computer Science. Some examples adapted from
Make! CSC230: C and Software Tools N.C. State Department of Computer Science Some examples adapted from http://mrbook.org/tutorials/make/ CSC230: C and Software Tools NC State University Computer Science
More informationWeek 5 Lecture 3. Compiler Errors
Lecture 3 Compiler Errors Agile Development Backlog of stories defines projects Backlog contains all of the requirements currently known Stories define features of the project Three elements: feature user,
More informationUsing Eclipse for C Programming
Using Eclipse for C Programming George Ferguson ferguson@cs.rochester.edu June 2018 Abstract Students are used to using the Eclipse IDE for programming in Java. This document describes how to install and
More informationBUILDING TESTING DEBUGGING PACKAGING BUILDING OOREXX
BUILDING TESTING DEBUGGING PACKAGING BUILDING OOREXX René Vincent Jansen 27th International Rexx Language Symposium, Tampa 2016 BUILDING OOREXX AGENDA Getting the code Building Testing Debugging Packaging
More informationUsing the Unix system. UNIX Introduction
Using the Unix system Navigating the Unix file system Editing with emacs Compiling with gcc UNIX Introduction The UNIX operating system is made up of three parts: the kernel, the shell and the programs
More informationComputer Science, a Mac, and You. Kevin Cathey Junior, Computer Science
Computer Science, a Mac, and You Kevin Cathey Junior, Computer Science Roadmap Introduction to Apple s Developer Tools Xcode & Instruments Implement three MP s acm.uiuc.edu Introduction to Developer Tools
More informationCMake, an overview. D. Arrivault 1. 24th November, 2014 / Talep presentation. Aix Marseille Université. CMake, an overview.
CMake, an overview. D. Arrivault 1 1 Laboratoire d Excellence Archimède Aix Marseille Université 24th November, 2014 / Talep presentation Outline Credits Build sytems What problems does it solve? The good
More informationSystems Programming. laboratory. Compilation automation. make ceedling
Systems Programming 2 nd laboratory Compilation automation make ceedling Compilation automation Large SW projects are composed of diferent su-systems with links and dependencies among them Libraries/ cliens/servers/interfaces
More informationCompiling Code using Makefiles and GNUstep. 2501ICT Nathan
Compiling Code using Makefiles and GNUstep 2501ICT Nathan Makefiles Save compile time only recompile what s necessary Help avoiding mistakes that would otherwise occur if outdated modules were linked together
More informationHow to install and build an application
GEANT4 BEGINNERS COURSE GSSI, L Aquila (Italy) 27-30 June 2016 How to install and build an application tutorial course Outline Supported platforms & compilers Required software Where to download the packages
More informationCSE 15L Winter Midterm :) Review
CSE 15L Winter 2015 Midterm :) Review Makefiles Makefiles - The Overview Questions you should be able to answer What is the point of a Makefile Why don t we just compile it again? Why don t we just use
More informationUsing Doxygen to Create Xcode Documentation Sets
Using Doxygen to Create Xcode Documentation Sets Documentation sets (doc sets) provide a convenient way for an Xcode developer to search API and conceptual documentation (including guides, tutorials, TechNotes,
More informationCS Students Linux User's Guide
CS Students Linux User's Guide Writing a Makefile Author: Jaco Kroon (jaco@kroon.co.za) Version: 1.0 Last modified: Mon Aug 11 13:27:34 SAST 2003 Table of Contents 4.2 Writing a Makefile 4.2.1 Why Use
More information