July 8, 2007 Jim Huang (jserv)
|
|
- Morgan Merritt
- 6 years ago
- Views:
Transcription
1 Introduction to Autotools July 8, 2007 Jim Huang (jserv)
2 Overview Autoconf, Automake, and libtool working together Address portability, configuration needs Support GNU Coding Standards Provide consistent user experience Very popular in Free/Open Source World
3 The Bad Old Days 1990 Edit Makefile Edit source Build No make install
4 Handy Quote It it easier to write a portable shell than to write a portable shell script. Larry Wall
5 Useful tools colormake make with colorful decoration remake modified version of GNU make with debugging and tracing support
6 The real Problem How do we handle platform specific issues? Providing a different Makefile for each architecture Using Autoconf, Automake and Libtool The installer needs only Bourne shell C compilers Make program
7 Some advantages when using GNU autotools The installation of a program is straightforward:./configure; make; make install This procedure checks for system parameters, libraries, location of programs, availability of functions and writes a Makefile./configure supports many options to overwrite defaults settings
8 Development Use Cases
9 GNU toolchain flow (simplified) Developer User configure.in autoconf automake configure Makefile.in./configure Check for required libraries Generate Makefile Makefile.am Makefile
10 Autotools Overview (no libtool) Starting, occasional Under source control Source files [autoscan] [configure.scan] configure.ac Developer, on development system configure.ac [acinclude.m4] Makefile.am autoconf [autoheader] automake configure [config.h.in] Makefile.in distribute Installer, on target system configure [config.h.in] Makefile.in config.cache config.log config.status Source files [config.h] Makefile make End User Executables, libraries, documents, etc.
11 GNU autoconf Source Code configure.ac (configure.in) aclocal autoscan autoconf configure.scan configure
12 GNU automake Makefile.am Makefile.in automake configure Makefile
13 Autoconf(1) Preprocessor based on m4 Turns configure.ac into configure World's most insane shell scripts But portable ones!
14 Autoconf(2) Some philosophy Feature tests, not platform tests The programmer makes the code portable The programmer decides what matters
15 Autoconf(3) Test what is on the actual machine Write conclusions into text files Makefile, config.h, etc Uniform command line options Standard directories like bindir, includedir Large, extensible library of tests
16 Autoconf Example AC_INIT([amhello], [1.0], [bug AM_INIT_AUTOMAKE([ Wall Werror]) AC_PROG_CC AC_CHECK_LIB(z, deflate) AC_CHECK_HEADERS([unistd.h bstring.h]) AC_CONFIG_HEADERS([config.h]) AC_CONFIG_FILES([Makefile]) AC_OUTPUT
17 Boilerplate AC_INIT([amhello], [1.0], [bug AM_INIT_AUTOMAKE([ Wall Werror]) AC_PROG_CC AC_CHECK_LIB(z, deflate) AC_CHECK_HEADERS([unistd.h bstring.h]) AC_CONFIG_HEADERS([config.h]) AC_CONFIG_FILES([Makefile]) AC_OUTPUT
18 Program Checks AC_INIT([amhello], [1.0], [bug AM_INIT_AUTOMAKE([ Wall Werror]) AC_PROG_CC AC_CHECK_LIB(z, deflate) AC_CHECK_HEADERS([unistd.h bstring.h]) AC_CONFIG_HEADERS([config.h]) AC_CONFIG_FILES([Makefile]) AC_OUTPUT
19 Library Checks AC_INIT([amhello], [1.0], [bug AM_INIT_AUTOMAKE([ Wall Werror]) AC_PROG_CC AC_CHECK_LIB(z, deflate) Adds lz to LIBS; defines HAVE_LIBZ AC_CHECK_HEADERS([unistd.h bstring.h]) AC_CONFIG_HEADERS([config.h]) AC_CONFIG_FILES([Makefile]) AC_OUTPUT
20 Header Checks AC_INIT([amhello], [1.0], [bug AM_INIT_AUTOMAKE([ Wall Werror]) AC_PROG_CC AC_CHECK_LIB(z, deflate) AC_CHECK_HEADERS([unistd.h bstring.h]) defines HAVE_UNISTD_H, HAVE_BSTRING_H AC_CONFIG_HEADERS([config.h]) AC_CONFIG_FILES([Makefile]) AC_OUTPUT
21 Automake Support GNU Coding Standards Make common things simple Automate some difficult things Turns Makefile.am into Makefile.in Unrecognized input passed through
22 Automake Features(1) Low cost, precise automatic dependency tracking Non srcdir builds dist/distcheck Various clean targets install/uninstall Parallel builds
23 Automake Features(2) DESTDIR Hooks Platform integration
24 Automake Example bin_programs = hello hello_sources = hello.c
25 Install Directory(1) bin_programs = hello hello_sources = hello.c
26 Install Directory(2) You can make your own directories mylibdir = $(libdir)/whatever mylib_programs = echo
27 Primary(1) bin_programs = hello hello_sources = hello.c
28 Primary(2) There are many primaries PROGRAMS, LIBRARIES, LTLIBRARIES, LISP, PYTHON, JAVA, SCRIPTS, DATA, HEADERS, MANS, TEXINFOS You won't use most of them Other prefixes control semantics: nobase, nodist nobase_nodist_include_headers = foo/foo.h
29 Object Naming(1) bin_programs = hello hello_sources = hello.c
30 Object Naming(2) Names are made make friendly by automake Weird characters are turned to _
31 Object Suffix(1) bin_programs = hello hello_sources = hello.c
32 Object Suffix(2) Object suffixes depend on the type of object Typical ones: SOURCES, CFLAGS, LDFLAGS SOURCES handles many languages C, C++, Yacc, Lex, assembly, Fortran, Java (with gcj) Also header files
33 Libtool Portable creation of shared libraries Integration with autoconf and automake Side features libltdl Convenience libraries
34 Libtool Example(1) configure.ac: AC_PROG_LIBTOOL That's it!
35 Libtool Example(2) lib_ltlibraries = libexample.la libexample_la_sources = src/example1.c x2.c
36 URLs Google Alexandre Duret Lutz archive.cryp.to/
Autotools and GNU Build system
Autotools and GNU Build system YAKA 2008 EPITA 12/12/2006 YAKA 2008 (EPITA) Autotools and GNU Build system Page 1 / 13 Licence Copying is allowed Copyright c 2006 Benoit Sigoure Copyright c 2006 Alexandre
More informationBeyond Makefiles: Autotools and the GNU Build System
SEA : Autotools and the GNU Build System Patrick Nichols Software Engineer CISL Consulting Group UCAR SEA December 10, 2015 Why do we need more tools? Diversity! 1. Compilers, programming languages and
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 informationHow To Create a GNU Autoconf / Automake Based Configure Script for Your Application Under Construction
How To Create a GNU Autoconf / Automake Based Configure Script for Your Application Under Construction by Prof.Dr. University of Applied Science Suedwestfalen, Germany 1 Table of Contents 1 Typography...
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 Outline Maven NuGet Gradle GNU build
More informationGNU Autotools Tutorial
GNU Autotools Tutorial Copyright c 2010 Nils Turner Chapter 1: Introduction 1 1 Introduction Those of us that have installed software from source code at some time in our career have no doubt become familiar
More informationWhy Use the Autotools?...xviii Acknowledgments... xx I Wish You the Very Best... xx
CONTENTS IN DETAIL FOREWORD by Ralf Wildenhues xv PREFACE xvii Why Use the?...xviii Acknowledgments... xx I Wish You the Very Best... xx INTRODUCTION xxi Who Should Read This Book... xxii How This Book
More informationAutotools Tutorial. Mengke HU. ASPITRG Group Meeting. ECE Department Drexel University
Autotools Tutorial Mengke HU ECE Department Drexel University ASPITRG Group Meeting Outline 1 Introduction 2 GNU Coding standards 3 Autoconf 4 Automake 5 Libtools 6 Demonstration The Basics of Autotools
More informationCOMP 2400 UNIX Tools
COMP 2400 UNIX Tools Christian Grothoff christian@grothoff.org http://grothoff.org/christian/ 1 Makefile Basics make reads instructions from a file Makefile. A Makefile is essentially a list of rules.
More informationGNU Automake. For version , 1 February David MacKenzie Tom Tromey Alexandre Duret-Lutz
GNU Automake For version 1.11.3, 1 February 2012 David MacKenzie Tom Tromey Alexandre Duret-Lutz This manual is for GNU Automake (version 1.11.3, 1 February 2012), a program that creates GNU standards-compliant
More informationThe GNU configure and build system
!"$#% &(') *+ The GNU configure and build system Ian Lance Taylor Copyright c 1998 Cygnus Solutions Permission is granted to make and distribute verbatim copies of this manual provided the copyright notice
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 informationModule 2: GNU Tools and Compilation Process Introduction to GCC and History The original GNU C Compiler is developed by Richard Stallman in 1984 to create a complete UNIX like operating systems as free
More informationAutoconf Tutorial. Mark Galassi
Autoconf Tutorial Mark Galassi Copyright c 1996 Mark Galassi Permission is granted to make and distribute verbatim copies of this manual provided the copyright notice and this permission notice are preserved
More informationESTABLISHED Paul Kunz SLAC. Overview. Examples. Expose the downsides. Benefits. Risks and Costs. Building with Automake 1 Paul F.
Building with Automake Paul Kunz SLAC Overview Examples Expose the downsides Benefits Risks and Costs Building with Automake 1 Paul F. Kunz Overview Primary targets build in developer s working directory
More informationStudy of tools used in build process
Study of tools used in build process Sameera Deshpande November 16, 2005 Contents 1 Introduction 2 1.1 Introduction to configure and build process................. 2 1.2 Configure and Build Process.........................
More informationFOLLOW ALONG WITH THE EXAMPLES
FOLLOW ALONG WITH THE EXAMPLES $ git clone https://gitlab.com/jtfrey/unix-software-dev.git ( or "git pull" if you cloned at last session ) $ git checkout tags/session2 $ ls -l total 8 -rw-r--r-- 1 frey
More informationDevelopment Tools. Akim D le Roland Levillain June 14, 2012
Development Tools Akim Demaille akim@lrde.epita.fr Roland Levillain roland@lrde.epita.fr EPITA École Pour l Informatique et les Techniques Avancées June 14, 2012 Development Tools 1 tc Tasks 2 3 A. Demaille,
More informationCONFIGURING YOUR PROJECT WITH AUTOCONF
CONFIGURING YOUR PROJECT WITH AUTOCONF Come my friends, Tis not too late to seek a newer world. Alfred, Lord Tennyson, Ulysses Because Automake and Libtool are essentially add-on components to the original
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 informationGLIMMER, Version Control and Build Systems
Outlines GLIMMER, Version Control and Build Systems Magnus Hagdorn School of GeoSciences University of Edinburgh December 5, 2005 Outlines Outline of Part I Unix Directory Structure Installing GLIMMER
More informationThe WAF build system
Sebastian Jeltsch Electronic Vision(s) Kirchhoff Institute for Physics Ruprecht-Karls-Universität Heidelberg 31. August 2010 Sebastian Jeltsch 31. August 2010 1 / 19 Introduction WorkBuildflow Sebastian
More informationBuild automation. CSE260, Computer Science B: Honors Stony Brook University
Build automation CSE260, Computer Science B: Honors Stony Brook University http://www.cs.stonybrook.edu/~cse260 2 Build Automation Build automation is the act of scripting or automating a wide variety
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 informationBrief History of Automake
Brief History of Automake David MacKenzie Tom Tromey Alexandre Duret-Lutz This manual describes (part of) the history of GNU Automake, a program that creates GNU standards-compliant Makefiles from template
More informationThese steps may include:
Build Tools 1 Build Tools Building a program for a large project is usually managed by a build tool that controls the various steps involved. These steps may include: 1. Compiling source code to binaries
More informationDataTAG Advance Reservation WP2 Database Management in GARA
DataTAG Advance Reservation WP2 Installation and Configuration Manual Network reservation in Gara With database MySQL/MyODBC 1 Installation and Configuration Manual... 1 1.1 Introduction... 3 1.2 Packages
More informationThe System Services Interface (SSI) to LAM/MPI SSI Version 1.0.0
The System Services Interface (SSI) to LAM/MPI SSI Version 1.0.0 Jeffrey M. Squyres Brian Barrett Andrew Lumsdaine http://www.lam-mpi.org/ Open Systems Laboratory Pervasive Technologies Labs Indiana University
More informationBuild Tools. Stefan Vigerske COIN-OR Workshop October 15, 2018
Build Tools https://projects.coin-or.org/buildtools Stefan Vigerske COIN-OR Workshop October 15, 2018 BuildTools 0.5 0.8 COIN-OR BuildTools project a set of scripts to utilize Autotools (GNU Build System)
More informationMaemo Diablo Reference Manual for maemo 4.1. GNU Build System
Maemo Diablo Reference Manual for maemo 4.1 GNU Build System December 22, 2008 Contents 1 GNU Build System 2 1.1 Introduction.............................. 2 1.2 GNU Make and Makefiles......................
More informationNetCDF Build and Test System. Ed Hartnett, 1/25/8
NetCDF Build and Test System Ed Hartnett, 1/25/8 Outline NetCDF Repository Building NetCDF Testing NetCDF NetCDF Code Repository We use cvs for netcdf code repository. The cvs repository module is called
More informationManaging Code Variants
Steven J Zeil March 19, 2013 Contents 1 Problems 2 2 AUTOCONF 8 3 Dynamic Loading 11 1 1 Problems Code Variations Environment management, Previously identified as common SCM problems: Coping with change
More informationManaging Code Variants
Steven J Zeil March 19, 2013 Contents 1 Problems 2 2 AUTOCONF 9 3 Dynamic Loading 14 1 1 Problems Code Variations Environment management, Previously identified as common SCM problems: Coping with change
More informationIntroduction to HPC Programming 4. C and FORTRAN compilers; make, configure, cmake. Valentin Pavlov
Introduction to HPC Programming 4. C and FORTRAN compilers; make, configure, cmake Valentin Pavlov About these lectures This is the fourth of series of six introductory lectures discussing
More informationThe Design and Implementation of Gnu Compiler Collection
The Design and Implementation of Gnu Compiler Collection Uday Khedker (www.cse.iitb.ac.in/ uday) Department of Computer Science and Engineering, Indian Institute of Technology, Bombay July 2008 Part 1
More informationTcl Extension Architecture Developer s Guide DRAFT
Tcl Extension Architecture Developer s Guide DRAFT Scriptics Corporation August 25, 1999 COPYRIGHT Copyright 1999 Scriptics Corporation. All rights reserved. Information in this document is subject to
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 informationAUTOTOOLS GNU AUTOCONF, AUTOMAKE, A N D LIBTOOL JOHN CALCOTE.
AUTOTOOLS A P R A C T I T I O N E R S G U I D E T O GNU AUTOCONF, AUTOMAKE, A N D LIBTOOL JOHN CALCOTE AUTOTOOLS AUTOTOOLS A Practitioner s Guide to GNU Autoconf, Automake, and Libtool by John Calcote
More informationBuilding and Installing Software
Building and Installing Software On UD HPC Community Clusters William Totten Network & Systems Services Conventions when Installing Software Installation base directory /opt/shared /home/work/ lab/sw/name/version
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 informationBuild Tools. Software Engineering SS A tool was needed. Agenda for today. Build tools. Software complexity. Build tools
Agenda for today Build Tools Software Engineering SS 2007 Build Tools Available 4. Presentation Objectives - Use modern build systems for software Software Engineering, lecture #: Topic 2 Software complexity
More informationEmbedded Systems Programming
Embedded Systems Programming OS Linux - Toolchain Iwona Kochańska Gdansk University of Technology Embedded software Toolchain compiler and tools for hardwaredependent software developement Bootloader initializes
More informationBuild Tools. Software Engineering SS 2007
Build Tools Software Engineering SS 2007 Agenda for today Build Tools 1. Motivation 2. Key Concepts 3. Tools Available 4. Presentation 5. Discussion Objectives - Use modern build systems for software Software
More informationMRCP. Installation Manual. Developer Guide. Powered by Universal Speech Solutions LLC
Powered by Universal Speech Solutions LLC MRCP Installation Manual Developer Guide Revision: 39 Last updated: August 28, 2017 Created by: Arsen Chaloyan Universal Speech Solutions LLC Overview 1 Table
More informationC Compilation Model. Comp-206 : Introduction to Software Systems Lecture 9. Alexandre Denault Computer Science McGill University Fall 2006
C Compilation Model Comp-206 : Introduction to Software Systems Lecture 9 Alexandre Denault Computer Science McGill University Fall 2006 Midterm Date: Thursday, October 19th, 2006 Time: from 16h00 to 17h30
More informationDePloying an embedded ERLANG System
DePloying an embedded ERLANG System A case example Deploying an Erlang System Public 2015-06-01 Page 1 Content What are Autotools and why use them? What is Yocto/Bitbake and why use it? A case example
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 informationCS631 - Advanced Programming in the UNIX Environment. UNIX development tools
CS631 - Advanced Programming in the UNIX Environment Slide 1 CS631 - Advanced Programming in the UNIX Environment UNIX development tools Department of Computer Science Stevens Institute of Technology Jan
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 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 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 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 informationGNU Libtool. For version 2.2.6, 1 August Gordon Matzigkeit Alexandre Oliva Thomas Tanner Gary V. Vaughan
GNU Libtool For version 2.2.6, 1 August 2008 Gordon Matzigkeit Alexandre Oliva Thomas Tanner Gary V. Vaughan Copyright c 2008 Free Software Foundation, Inc. Permission is granted to copy, distribute and/or
More informationNew DevOps Tools for Native Code
New DevOps Tools for Native Code LINUXCON North America Wednesday, September 18 th, 2013 Hyatt Hotel New Orleans, Louisiana 11:50 CST C. Thomas Stover www.thomasstover.com Some DevOps Interest Areas Revision
More informationBuilding, installing and running software
Building, installing and running software Day one Bob Dowling University Computing Service http://www-uxsup.csx.cam.ac.uk/courses/ http://training.csx.cam.ac.uk/ 1 Why do this course? It's the standard
More informationCAAM 420 Fall 2012 Lecture 15. Roman Schutski
CAAM 420 Fall 2012 Lecture 15 Roman Schutski December 2, 2012 Table of Contents 1 Using make. Structures. 3 1.1 Makefiles...................................... 3 1.1.1 Syntax...................................
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 informationBuilding FFplay for Windows Using MinGW and MSYS
Building FFplay for Windows Using MinGW and MSYS Qin Chen Advisor: Prof. Dapeng Oliver Wu Dept. of Electrical & Computer Engineering, University of Florida, Gainesville, FL 32611, USA 1 Introduction FFplay
More informationFollow us on Twitter for important news and Compiling Programs
Follow us on Twitter for important news and updates: @ACCREVandy Compiling Programs Outline Compiling process Linking libraries Common compiling op2ons Automa2ng the process Program compilation Programmers
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 informationCOSC345 Software Engineering. Make
COSC345 Software Engineering Make The build process Make When to use make How to use make Suffix rules makedepend Outline Warning: Make is different everywhere you go! Build Process The build process can
More informationData Clustering in C++
Chapman & Hall/CRC Data Mining and Knowledge Discovery Series Data Clustering in C++ An Object-Oriented Approach Guojun Gan CRC Press Taylor & Francis Group Boca Raton London New York CRC Press Is an imprint
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 information27-Sep CSCI 2132 Software Development Lecture 10: Formatted Input and Output. Faculty of Computer Science, Dalhousie University. Lecture 10 p.
Lecture 10 p.1 Faculty of Computer Science, Dalhousie University CSCI 2132 Software Development Lecture 10: Formatted Input and Output 27-Sep-2017 Location: Goldberg CS 127 Time: 14:35 15:25 Instructor:
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 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 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 informationIntroduction to C CMSC 104 Spring 2014, Section 02, Lecture 6 Jason Tang
Introduction to C CMSC 104 Spring 2014, Section 02, Lecture 6 Jason Tang Topics History of Programming Languages Compilation Process Anatomy of C CMSC 104 Coding Standards Machine Code In the beginning,
More informationCMPT 373 Software Development Methods. Building Software. Nick Sumner Some materials from Shlomi Fish & Kitware
CMPT 373 Software Development Methods Building Software Nick Sumner wsumner@sfu.ca Some materials from Shlomi Fish & Kitware What does it mean to build software? How many of you know how to build software?
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 informationCompiler (1A) Young Won Lim 6/8/14
Compiler (1A) Copyright (c) 2010-2013 Young W. Lim. Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.2 or any later
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 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 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 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 informationCS 326 Operating Systems C Programming. Greg Benson Department of Computer Science University of San Francisco
CS 326 Operating Systems C Programming Greg Benson Department of Computer Science University of San Francisco Why C? Fast (good optimizing compilers) Not too high-level (Java, Python, Lisp) Not too low-level
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 informationIntroducing the Stratego Libraries
Introducing the Stratego Libraries Martin Bravenboer Delft University of Technology Department of Software Technology Stratego User Days 2006 November 30 why start using libraries? 1 current practice:
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 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 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 informationToday. Review. Unix as an OS case study Intro to Shell Scripting. What is an Operating System? What are its goals? How do we evaluate it?
Today Unix as an OS case study Intro to Shell Scripting Make sure the computer is in Linux If not, restart, holding down ALT key Login! Posted slides contain material not explicitly covered in class 1
More informationGNV / bash für OpenVMS
GNV / bash für OpenVMS 3D06 Helmut Ammer Technical Consultant OpenVMS CCCSC 2004 Hewlett-Packard Development Company, L.P. The information contained herein is subject to change without notice Topics UNIX
More informationAN5171 Application note
Application note Windriver support on SPC5Studio Introduction This document describes how to install Windriver compiler in SPC5Studio development tools. July 2018 AN5171 Rev 1 1/25 www.st.com 1 Contents
More informationOpen CASCADE Technology. Building OCCT with WOK CONTENTS
Open CASCADE Technology Building OCCT with WOK CONTENTS 1. INTRODUCTION 2 2. PRE-REQUISITES 2 3. INSTALL BINARY WOK PACKAGE 2 3.1. Windows 2 3.2. Linux 4 3.3. Mac OS X 5 4. INITIALIZE A WORKBENCH 6 5.
More information52. Staged Software Architectures with Staged Composition - How to Build BIG Systems
52. Staged Software Architectures with Staged Composition - How to Build BIG Systems Prof. Dr. Uwe Aßmann Technische Universität Dresden Institut für Software- und Multimediatechnologie Version 16-0.1,
More informationCSCI-243 Exam 2 Review February 22, 2015 Presented by the RIT Computer Science Community
CSCI-43 Exam Review February, 01 Presented by the RIT Computer Science Community http://csc.cs.rit.edu C Preprocessor 1. Consider the following program: 1 # include 3 # ifdef WINDOWS 4 # include
More informationOutline. Compiling process Linking libraries Common compiling op2ons Automa2ng the process
Compiling Programs Outline Compiling process Linking libraries Common compiling op2ons Automa2ng the process Program compilation Programmers usually writes code in high- level programming languages (e.g.
More informationGCC Configuration and Building
Tutorial on Essential Abstractions in GCC GCC Configuration and Building (www.cse.iitb.ac.in/grc) GCC Resource Center, Department of Computer Science and Engineering, Indian Institute of Technology, Bombay
More informationProgramming Languages: Part 1. Robert M. Dondero, Ph.D. Princeton University
Programming Languages: Part 1 Robert M. Dondero, Ph.D. Princeton University 1 Objectives You will learn/review: Subsets of C, Java, and Python... That are appropriate for COS 333... Through example programs
More informationGNU 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 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 informationHacking Gromacs: Getting Your Feet Wet With CVS Code
Hacking Gromacs: Getting Your Feet Wet With CVS Code Erik Lindahl lindahl@cbr.su.se CBR Outline: Hacking Gromacs Release vs. development codebase Building the CVS version(s) of Gromacs Configuration with
More informationEmpirical Comparison of SCons and GNU Make
Großer Beleg Empirical Comparison of SCons and GNU Make Ludwig Hähne August 21, 2008 Technical University Dresden Department of Computer Science Institute for System Architecture Chair for Operating Systems
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 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 informationConfigure Error No Acceptable C Compiler Found In Xcode Installed
Configure Error No Acceptable C Compiler Found In Xcode Installed Xcode and command line tool are installed. It was created by Sage configure 6.6.rc3, which was generated by GNU Autoconf 2.69. Why do I
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 informationCAAM 420 Daily Note. Scriber: Qijia Jiang. Date: Oct.16. Project 3 Due Wed 23.Oct. Two parts: debug code and library exercise.
CAAM 420 Daily Note Scriber: Qijia Jiang Date: Oct.16 1 Announcement Project 3 Due Wed 23.Oct. Two parts: debug code and library exercise. 2 Make Convention Make syntax for library directories and library
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 information