Lab 5: Using Make
This assignment is intended to familiarize you with make.
This assignment will not be performed on bassi. We will use the lab computers instead. Distance students can run the code on any Linux machine.
Lab assignment
- Download the sequential version of the Sieve of Eratosthenes and the Makefile.
- Compile the code by typing
make
at the command line.
- Try modifying the code to add some of the optimizations discussed in class.
- Recompile the code as in (2).
- Try writing your own Makefile.
Make tutorials
- Simple make tutorial.
- Another simple tutorial.
- GNU Make Page.
- Make man page.