Autotools
José Dapena Paz <jdapena></jdapena>@igalia.com>
Introduction

Using gcc without help is not very “scalable”

          Then we have Makefile.

        And this isn't very...
Makefiles
all: foo

foo: foo.o bar.o baz.o
IMPLICIT!!

.c.o:
           $(CC) $(CFLAGS) -c $ -o $@

.l.c:
           $(LEX...
Makefiles

OBJECTS = data.o main.o io.o
project1: $(OBJECTS)
        cc $(OBJECTS) -o project1
data.o: data.c
main.o: main...
Autotools
Autotools
Autotools
Autotools
Autotools
Autotools
Autotools
Autotools
Autotools
Upcoming SlideShare
Loading in …5
×

Autotools

517 views

Published on

Published in: Technology, Business
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
517
On SlideShare
0
From Embeds
0
Number of Embeds
8
Actions
Shares
0
Downloads
20
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

Autotools

  1. 1. Autotools José Dapena Paz <jdapena></jdapena>@igalia.com>
  2. 2. Introduction Using gcc without help is not very “scalable” Then we have Makefile. And this isn't very “scalable” Then we have autotools. And this is “too much” scalable.
  3. 3. Makefiles all: foo foo: foo.o bar.o baz.o IMPLICIT!! .c.o: $(CC) $(CFLAGS) -c $ -o $@ .l.c: $(LEX) $ mv lex.yy.c $@ BE CAREFUL WITH TABS
  4. 4. Makefiles OBJECTS = data.o main.o io.o project1: $(OBJECTS) cc $(OBJECTS) -o project1 data.o: data.c main.o: main.c io.o: io.c Implicit rules for .o files

×