Make Files
Make Files
.o
1110
.c
Precompiler
Assembler
.s
Compiler
.o
Linker
Prototypes
Main Function
Additional Functions
print.h
void print_menu (void); int print_to_file (char **array, int numwords, char *file);
insert.h
int insert (char **array, int *numwords, char *buf);
print.c
void print_menu (void) { ... } int print_to_file (char **array, int numwords, char *file); { ... }
insert.c
int insert (char **array, int *numwords, char *buf) { ... }
labx.o
print.c
print.o
LINKER
insert.o
insert.c
a.out
Syntax cont.
Statements:
{name}: {dependency1 dependency2 } <tab> {command1} <tab> {command2} <tab>
all: is the default statement (run when just make is typed at the command line) cleanup: cleans up when there is an error make <name> will explicitly run the statement name