The following makefile is not elegant, but it does the job.
Table 4-4 Simple Makefile for Compiling C Sources: Everything Explicit
In this example, make produces the object files main.o and data.o, and the executable file functions:
$ make cc -o functions main.o data.o cc -O -c main.c cc -O -c data.c