#
# @(#)Makefile.customer	1.3 91/09/14  SMI
#
# Makefile for the Olit Programmer's Guide's Examples
#

INCLUDE =	-I../lib -I${OPENWINHOME}/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 =		../lib/libXs.a \
		-L${OPENWINHOME}/lib \
		-lXol \
		-lXt \
		-lX11

TARGETS =	getpixel \
		coloredit

all:		${TARGETS}

${TARGETS}:	$$@.c $$@.o 
		${CC} ${CFLAGS} ${LDFLAGS} -o $@ $@.o ${LIBS}

clean:
		rm -f core ${TARGETS} *.o
