# Lines starting with the pound sign are comments.
#

# "all" is the default target. Simply make it point to
# myprogram.

all: myprogram

# Define the components of the program, and how to
# link them together.
# These components are defined as dependencies; that is,
# they must be made up-to-date before the .

myprogram: io.o init.o compute.o
	gcc -o myprogram io.o init.o compute.o

# Define the dependencies and compile information for the three C source
# code files.

compute.o: compute.c
	gcc -Wall -c -o compute.o compute.c

init.o: init.c myprogram.h
	gcc -Wall -c -o init.o init.c

io.o: io.c myprogram.h
	gcc -Wall -c -o io.o io.c
