Example of a Makefile - The file is named Makefile and is in the
same directory as the files indicated. To use this you would type
make tester at the system prompt. If there are no compile errors, an
executable file named tester is created. NOTE: the second line that
starts with cc -o is TABBED in. You MUST use the TAB. Spaces won't
work.
tester : main.o myio_c.o array_int.o
cc - o tester main.o myio_c.o array_int.o
main.o : main.c
myio_c.o : myio_c.c myio_c.h
array_int.o : array_int.o array_int.h