
CC=gcc
CFLAGS= -I. -DNeedFunctionPrototypes -DNeedWidePrototypes

all: build

build install: xlib_test

xlib_test: xlib_test.occ xlib_h_if.oif xlib_h_if.o ../../../lib/cconv.o
	kroc xlib_test.occ xlib_h_if.o ../../../lib/cconv.o -lX11 -o xlib_test

#
# Create the occam and C interfaces from xlib.h:
#
#xlib_h_if.oif xlib_h_if.c:
# ocinf  -c gcc -I. -DNeedFunctionPrototypes -DNeedWidePrototypes xlib.h
#  ... plus further some processing ...

clean:		
	-rm -f *~  xlib_test xlib_test.o xlib_test.tco xlib_h_if.o

