# /**********************************************************************/ # /* */ # /* (c) Copyright, 1997 by Professor Gabriel Robins */ # /* */ # /* Department of Computer Science, University of Virginia */ # /* Charlottesville, VA 22903-2442 (804) 982-2207 */ # /* robins@cs.virginia.edu http://www.cs.virginia.edu/~robins/ */ # /* */ # /* This code may be freely used for all non-commercial purposes. */ # /* All copies/portions of this code must contain this header. */ # /* */ # /**********************************************************************/ # use -g flags on all gcc commands to use the dbx debugger. #OPTIMIZE = -O -finline_functions #DEBUG = -g #PROFILE = -pg CFLAGS = -I/X11.6/include $(OPTIMIZE) $(DEBUG) $(PROFILE) CC = gcc LIBS = -L/X11.6/lib -R/X11.6/lib -lsocket -lnsl -lm -lX11 #LIBS = -lm -lX11 OBJS = calculations.o steiner2.o steiner3.o steiner4.o steiner5.o \ globals.o graphics.o windows.o main.o s: geometry.h $(OBJS) $(CC) $(CFLAGS) -o s $(OBJS) $(LIBS) clean : rm -f s $(OBJS) new : clean s tags : etags *.c calculations.o: calculations.c geometry.h steiner2.o: steiner2.c geometry.h steiner3.o: steiner3.c geometry.h steiner4.o: steiner4.c geometry.h steiner5.o: steiner5.c geometry.h foo.o: foo.c geometry.h globals.o: globals.c geometry.h graphics.o: graphics.c geometry.h windows.o: windows.c geometry.h main.o: main.c geometry.h misc.o: misc.c geometry.h