04
Nov
Writing a simple make file with example
Related Blog Items
- Do inline functions improve performance?
- Swapping variables without additional space
- How to inlcude C header files in C++
- ANSI C Vs K&R C
- A Simple Timer...
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 - Do inline functions improve performance?
- Swapping variables without additional space
- How to inlcude C header files in C++
- ANSI C Vs K&R C
- A Simple Timer...
Related Blog Items
- Do inline functions improve performance?
- Swapping variables without additional space
- How to inlcude C header files in C++
- ANSI C Vs K&R C
- A Simple Timer...
No Comments
No comments yet.