#	This is the template Makefile for using the StaffTools libraries
#
#	Created: 	
#	By:		
#
#       $Source: /u2/projects/template/RCS/README,v $
#       $Author: kit $
#       $Header: README,v 1.2 87/08/08 20:06:43 kit Exp $
#
#	Copyright 1988 Massachussets Institute of Technology
#

#
# This is a very simple makefile showing how the StaffTools include files
# and libraries can be linked into your programs.  For all you VAX users
# just change rtlib to vaxlib.
#
# The -I and -L flags add the StaffTools include and lib directories
# to the search path.
#

CDBGFLAGS= -g
CFLAGS= ${CDBGFLAGS}  ${INCFLAGS}
INCFLAGS= -I/mit/StaffTools/include
LDFLAGS= -L/mit/StaffTools/rtlib

LIBS= -lXaw -lXt -lX11

OBJS= test.o foo.o bar.o
INCLUDES= test.h config.h fdefs.h
CFILES= test.c foo.c bar.c

all:		test

test:		${OBJS}
		cc ${CFLAGS} ${LDFLAGS} ${OBJS} -o test ${LIBS}

test.o:		test.c ${INCLUDES}
foo.o:		foo.c ${INCLUDES}
bar.o:		bar.c ${INCLUDES}

#
# Typing 'make saber' at the command line will allow load and link against the
# correct libraries when using saber C.
#

saber: ;
	saber ${INCFLAGS} ${LDFLAGS} ${CFILES} ${LIBS}
