####  X Web Teach

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

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

####  for the ar command
RANLIB = ranlib

####  location of X libraries
X_LIBS = -lXm_s -lXt_s -lX11_s -lPW -lmalloc

####  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
