	   TAGS = ctags
             RM = -rm -f
    CDEBUGFLAGS = -g
         CFLAGS = $(CDEBUGFLAGS) $(INCLUDES) $(DEFINES)

#xpnet.h assumes that all the X include files are in the directory bar/X11,
#for some directory bar. If bar is not the system-standard include 
#directory (usually /usr/include), then set INCLUDES below to be -Ibar
#(and remove the # from the front of the line).
#If the last name in the path of the directory containing the X
#include files is not X11, and the include files are in the directory
#foo, then you'll have to set INCLUDES below to be -Ifoo, and change
#everything in xpnet.h that reads <X11/whatever> to read just <whatever>.
#There may be an additional probelem with the Athena Widget include
#files, which may or may not be in a separate directory (Xaw) under
#the X11 include directory. If they are in the separate directory,
#note the commented out section (comments here are #if 0 and #endif)
#in xpnet.h containing lines such as "#include <X11/Xaw/Command.h>":
#you'll want to uncomment these lines and put the comments around the 
#group of lines saying stuff like "#include <X11/Command.h>"
#That should be all the X11 include problems you might have.

#INCLUDES = -I/usr/include
LIBS = -lXaw -lXmu -lXt -lX11

SRCS=	xpnet.c panel.c canvas.c globals.c graph.c psout.c inverse.c pax.c
OBJS=	xpnet.o panel.o canvas.o globals.o graph.o psout.o inverse.o pax.o \
        /usr/lib/debug/malloc.o
PROGRAM = xpnet

all:: xpnet

xpnet: $(OBJS)
	$(CC) -o $@ $(OBJS) $(LIBS) $(CDEBUGFLAGS)

static: $(OBJS) 
	ld -dc -dp -e start -X -o xpnet.stat /usr/lib/crt0.o $(OBJS) \
        -Bstatic $(LIBS) -lg -lc

relink::
	$(RM) $(PROGRAM)
	$(MAKE) $(MFLAGS) $(PROGRAM)

tags::
	$(TAGS) *.[ch]

clean::
	$(RM) $(PROGRAM) *.o

lint::
	lint -x $(INCLUDES) $(SRCS)

