8. Compilation

Privileged user processes that access HW resources directly, must be compiled with special MINIX 3 libraries. The make utility can simplify this task. All you have to do, every time you need to compile your program, is to execute the following command as user lcom (assuming you are in /home/lcom/lab2/):

$ make

It will automatically invoke the compiler and other binary tools required to generate your program, according to a set of rules defined in a special file called Makefile. For this to work, you need first to copy the Makefile to /home/lcom/lab2/.