# (Comments in makefiles start with a '#'). # A simple makefile. Rename the programs as needed and add as many # new rules as necessary. # # Written September 1998 by Mauricio A. Hernandez # # # Main Rule. Builds the executable 'myprog' from the .o files. myprog: main.o stack.o routines.o gcc main.o stack.o routines.o -o myprog # # Rules for each object file. # main.o: main.c gcc -c main.c stack.o: stack.c gcc -c stack.c routines.o: routines.c gcc -c routines.c