![writing makefile for c program writing makefile for c program](https://image.slidesharecdn.com/part02-linuxkernelmoduleprogramming-150301091318-conversion-gate01/95/part-02-linux-kernel-module-programming-11-638.jpg)
Part 1: Makefiles Simple CompilationĪ Makefile is a small program that describes a compilation process. Just run make from the top-level directory. To help with this, there is a Makefile at the top level of the lab06 tarball that you downloaded above which will copy the appropriate files and do the submission for you. So you need to rename them, and you must submit files Makefile_Simple, Makefile_Multi, gdb_worksheet.txt, and (optionally) mycp.c. Submitting the files for this lab is a little awkward because you need to create two Makefiles in the first part, but you can’t submit two files with the same name. To extract it into a folder called lab06, run tar -xzvf Submission The files for this lab are available at. If you finish that, the optional third part of the lab asks you to use these skills to write a program mycp which mimics the behavior of cp using system calls to copy files. In the second part, we practice finding information about C programs while they’re running using the debugger, GDB. In the first part of this lab, we practice simplifying the management of multi-file dependencies through the creation of Makefiles. Managing multi-file programming projects with dependencies Two of the most important skills of the systems programmer are: Part 3: Reading and writing files and file stats (optional).