#
#  Make file: Makefile
#
#  Library:   mathbase.a (project Riemann math routines)
#
#  Contents:  This is the make file for the project Riemann math routines 
#	      library.  There are routines that work on expressions, 
#	      polynomials, equations, and vectors.  There are also routines
#	      that parse expressions and polynomials.  This make file also
#	      compiles three test programs: polytest, exprtest, and exprtest2.
#	      These test programs can be used to test the polynomial and 
#	      expression routines, especially the parsers.
#


# Defining S_DEBUG via "-DS_DEBUG" would enable debugging output from the 
#   expression simplifier

INCLDIR= ../include

CC=gcc
INCLUDE= -I$(INCLDIR)
DEBUG= -O
CFLAGS= $(DEBUG) $(INCLUDE)
YFLAGS= -d
LIB= -lm

# Object files which should appear in mathbase.a

CSRC= AllocNamedColor.c          InitializePictureWindow.c	\
      ComputeTransformMatrix.c   MakeSurfacePixmap.c	\
      CreateControlWindow.c      MultiplyMatrices.c	\
      DrawButton.c               MyGeometry.c	\
      DrawCheckBox.c             PrintMatrix.c	\
      DrawControlWindow.c        ProcessOptions.c	\
      DrawSliderBar.c            ReadSurface.c	\
      DrawSurface.c              RedrawSurface.c	\
      DumpSurface.c              SliderBarInput.c	\
      FatalExit.c                draw_controls.c	\
      HandleButtonPress.c        main.c	\
      InitializeControlWindow.c


MOBJ= $(CSRC:.c=.o)

SRC= $(CSRC) 
HDR= 

standard: xdisp

xdisp : $(MOBJ)
	$(CC) $(CFLAGS) -o xdisp $(MOBJ) -lX11 -lm

