#
# @(#)Makefile.customer 1.3 91/09/14 SMI
#
#	Makefile for the example programs for XinputDeviceEvents extension
#

INCLUDE 	= -I${OPENWINHOME}/include \
		-I${OPENWINHOME}/include/X11/extensions

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

CFLAGS		= ${INCLUDE} -g

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

XVIEW_LIBS 	=  -L${OPENWINHOME}/lib \
	      	   -lxview -lolgx 
XLIBS 		=  -L${OPENWINHOME}/lib \
	      	   -lX11 -lXinput

CFILES		= \
			exttest.c \
			xfocusvar.c \
			xvtest.c 
	   
OBJS		= \
			exttest \
			xvtest 

all:  ${OBJS}

exttest: $$@.c $$@.o
	${CC} ${CFLAGS} ${LDFLAGS} -o $@ $@.o ${XLIBS}

xvtest: $$@.c $$@.o xfocusvar.c xfocusvar.o
	${CC} ${CFLAGS} ${LDFLAGS} -o $@ $@.o xfocusvar.o ${XVIEW_LIBS} ${XLIBS}
clean:
	rm -f core ${OBJS} *.o

