Question: A) Modify Project 9 program so that the program is split into three source files and two header files. B) Write a makefile to build
A) Modify Project 9 program so that the program is split into three source files and two header files.

B) Write a makefile to build the roster program on student cluster. The makefile should contain the following rules:

Code from project 9:



1) Put all functions related to operations on the list of equipments into equipment.c 2) Create a header file named equipment.h that contains struct equipment declaration and prototypes for the functions in equipment.c. The header file should enclose the contents of the header file in an #ifndef- #endif pair to protect the file. 3) Put the read line function is in a separate file named readline.c 4) Create a header file named readline.h that contains a prototype for the read line function. The header file should enclose the contents of the header file in an #1 fndef-#endif pair to protect the file. 5) group_equip.c contains the main function. 6) Include appropriate header files in the source files
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
