System and Network Administration lecture in color

Up the long ladder

Compiling problems:

Why software portability is difficult:

The big picture

Meta-tools: up the long ladder

From the bottom up:

  1. make
  2. configure
  3. autoconf and automake

Make:

General form of a make rule:

Sample makefile: from the old comp15

 a1: a1.cc
       g++ -g  a1.cc -o a1
 a2: a2.o /g/15/class/a2/t2.o
       g++ -g  a2.o /g/15/class/a2/t2.o -lcurses -ltermcap -o a2
 a2.o: a2.cc
       g++ -g -c a2.cc

Make automagically:

Partial results

Problem of the day #1

Default rules

Problem of the day #2

Changing the default rule:

Stupid make trick: uncompressing and unpacking files.

Make target conventions:

Automatic dependency generation

Things to watch out for:

Next level: managing make

Simple example: calling ps in a portable way.

The next level: writing the Makefile differently

Rewriting the Makefile

But is this a realistic technique?

Imake

Imake example:

Up another rung: autoconf and automake

Configure

Configure details

Highlights of SSH Configure

The next level: autoconf

"Simple" Autoconf Example

What's happening?

The point


lecture in color

/comp/150NET/notes/meta.php
downloaded on Nov-23-2009 03:06:09 PM,
was last modified on Feb-17-2004 10:48:44 PM.

All lecture note content is copyright 2004 by
Alva L. Couch, Computer Science, Tufts University