#################################################################
#  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 to pass special loader options to ld, define
# the symbol LDFLAGS with these options.
#

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

REQUIRED =	

# Add program names on next line
ALL =		winprop

all:		${ALL}

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

