#################################################################
#  Makefile for building OLIT-based programs under Sun's
#  OpenWindows environment.
#
#  To use this makefile, enter the command:
#
#     make OLITDIR=$OPENWINHOME
#
#  where the environment variable OPENWINHOME is defined to
#  be the directory where OpenWindows is installed. Usually,
#  OPENWINHOME is defined to be "/usr/openwin"
#
#################################################################

OLITDIR =
INCLUDE =	-I${OLITDIR}/include

#
# If you want to compile for debugging, change "-O" to "-g"
#

CFLAGS =	${INCLUDE} -O

# if you want special to pass special loader options to ld, set
# LDFLAGS= ...
#

LIBS =		-L${OLITDIR}/lib -lXol -lXt -lX11

ALL =		oldemo  oldemo_ev  ol_hello

all:		${ALL}

$(ALL):		$$@.o
		$(RM) $@
		$(CC) -o $@ $@.o $(CFLAGS) $(LDFLAGS) $(LIBS)

