####  X Web Teach

####  name of C compiler to use
CC = cc

####  command-line flags for C compiler
CFLAGS =  -g

####  for the ar command
RANLIB = ranlib

####  location of X libraries
X_LIBS = -lXm -lXmu -lXt -lX11

####  location of libcci.a library
CCI_LIB = -L./libcci/ -lcci

all: libcci xwebteach

xwebteach: xwebteach.o
	$(CC) -o $@ $(CFLAGS) xwebteach.o $(CCI_LIB) $(X_LIBS)

libcci::
	cd libcci; make CC=$(CC) RANLIB=$(RANLIB) CFLAGS=$(CFLAGS)

clean::
	rm xwebteach.o; cd libcci; make clean
