####  X Web Teach

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

####  for the ar command
RANLIB = ranlib

####  location of X libraries
X_LIBS =  -L/usr/lib/Motif1.2 -lXm -L/usr/lib/X11R5 -L/usr/lib/X11R4 -lXmu -lXt -lX11

X_INCS =  -I/usr/include/Motif1.2 -I/usr/local/include

####  command-line flags for C compiler
CFLAGS = " -g -I/usr/include/Motif1.2 -I/usr/local/include"

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

all: libcci xwebteach

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

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

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