Search

Sponsored Links

Meta

Categories

Archives

Recent Posts

RSS Feeds

04
Nov

Writing a simple make file with example

Related Blog Items

Make :

Automatically detects a piece of code need to be recompiled in a large project.

Ex :

If u have a.c, b.c, c.c in a project and you have modified only b.c then if you build using make

Project then only b.c get compiled.

Pattern of make files:

Target : Prerequisite

command

Ex makefile :

CC=gcc

Exe : a.o b.o

     $(CC) -o exe a.o b.o

a.o : a.c a.h

     $(CC) -c a.c

b.o : b.c b.h

    $(CC) -c b.c

 

Popularity: 3%

You need to log on to convert this article into PDF


Related Blog Items

No Comments

No comments yet.

Leave a comment

*
To prove you're a person (not a spam script), type the security word shown in the picture.
Anti-spam image