PROJECT MANAGEMENT WITH "make" UTILITY
ATTENTION!
create a lab_make directory
with
sub-directories src/ bin/ dat/
- download the source files shown below and the
Makefile.mk
into the src dir/
|
The make utility allows the user to efficiently manage his/her source
files for a given project. Until now the user has been invoking the
compile and link commands whenever a source file is modified. In
the course of a project the compile and link step invocation can become
tedious and annoying specially when a project may contain more than 1
source file. The brute force way of compiling many files can easily
deceive the user from catching the errors of file unless the user uses
the scroll bar. The "make" utility is a ubiquitous tool for managing
projects when programs are built. Everyone in the business of code
development uses the "make" utility. A basic understanding and
implementation of this utility becomes an indispensable tool for
the programmer. The user creates a file called Makefile.mk which
contains a set of rules and files that are required to create the
executable code.x. The make utility acts on the Makefile.mk and as per
the instructions in the Makefile.mk it executes them. The Makefile.mk
is a file created using the editor vi by the user. The vi editor is
ideal for the Makefile.mk since there are some strict syntax rules that
need to be followed or else the user will get errors.
Ash's Makefile page for
aero 361
|
Download the files
into the src/ dir. The input.dat file will be placed in the bin
directory and to run the code you will be required to standard input
the fields in the input.dat into code.x
- <bash> code.x < input.dat
|
|