# Makefile for CS113 - F97 Assignment 7 # *************************************************************** PROGRAMS = \ hw7-inv # *************************************************************** # Parameters to control Makefile operation # Note that the gccx command script must be defined TESTDIR = /home/course/cs113/rpruim/F97/tests OBJECTDIR = /home/course/cs113/rpruim/F97/include INCLUDEDIR = /home/course/cs113/rpruim/F97/include CC = /home/course/cs113/rpruim/cslib/gccx-stan CFLAGS = -Wall -I/home/course/cs113/rpruim/F97/include -I. CSLIB = cslib.a # *************************************************************** # entry to bring everything up to date all: $(PROGRAMS) # *************************************************************** # Standard entries to remove files from the directories # tidy -- eliminate unwanted files # clean -- delete derived files in preparation for rebuild # scratch -- synonym for clean tidy: rm -f ,* .,* *~ core a.out *.err clean scratch: tidy rm -f *.o *.a # #**************************************************************** # *************************************************************** # C compilations hw7-symtab.o: $(INCLUDEDIR)/hw7-symtab.c hw7-delete.c cp $(INCLUDEDIR)/hw7-symtab.c hw7-symtab.c cp $(INCLUDEDIR)/hw7-symtab.h hw7-symtab.h $(CC) $(CFLAGS) -c hw7-symtab.c hw7-inv.o: hw7-inv.c hw7-symtab.o $(CC) $(CFLAGS) -c hw7-inv.c hw7-inv: hw7-symtab.o hw7-inv.o $(CC) $(CFLAGS) -o hw7-inv hw7-inv.o hw7-symtab.o test: $(TESTDIR)/hw7-test