Makefile

Code No
Skill Category No: 
9
Skill No: 
2
Topic No: 
1
Level: 
II
Objective: 

To have ability to build own projects by fluently writing Makefiles that can build and install static and/or dynamic libraries.

  • Prerequisite:
    • 6-2-1-I : Development flow and tools
    • 6-2-2-I : Outlone of software development environment

 

  • Able to write Makefiles
    • Primitives of Makefile (target, dependency, rule)
    • MACRO and .SUFFIXES
    • Pre-defined macro
    • $<, $@, $?
    • Functions
    • Make depend
  • Able to write Recursive Makefiles
    • Multiple and hierarchical directories
  • Able to write Makefiles for building and installing libraries
    • Static libraries
    • Shared libraries - -fPIC & -shared options in GCC
    • PATH and Environment variables
    • Linux commands – ar, ldconfig