# file: Makefile # author: Ted Baker # revision: 1.1 # last modified by cop4610 on 2002/04/01 12:02:34 PROGRAMS=prog4 testrand HEADERS=simulator.h events.h random.h SOURCES=simulator.c events.c random.c prog4.c OBJECTS=simulator.o events.o random.o CFLAGS=-g -ansi -pedantic -Wall -DDEBUG CC=gcc default: prog4 testrand $(OBJECTS): $(HEADERS) prog4: prog4.o $(OBJECTS) gcc -o prog4 prog4.o $(OBJECTS) -lm # -lm is needed to tell the linker to include the math library # which contains natural logarithm function needed by random.c testrand: random.o testrand.o gcc -o testrand testrand.o random.o -lm clean: rm -f simulator *.o *~ $(PROGRAMS) *#