# this Makefile work on Solaris Sparc and Linux Dld and probably
# other Linux systems

ddd=3d
XAWDEF=-DXAW3D=1

CLAGS = -s -O -I/usr/X11R6/include -I/usr/openwin/include

XAWLIB =  -lXaw$(ddd)

LIBPATH = -L/usr/X11R6/lib -L/usr/openwin/lib

CC=gcc
RM=/bin/rm

all: xwChoice


xwChoice: xwChoice.o
	$(CC) -s -o xwChoice xwChoice.o $(LIBPATH) $(XAWLIB) -lXt -lX11

.c.o:
	$(CC) $(CLAGS) $(XAWDEF) -c -o $@ $<

clean:
	-$(RM) -f  *.o xwChoice 2>/dev/null >/dev/null

cleanO:
	-$(RM) -f  *.o 2>/dev/null >/dev/null

distrib:
	make clean
	cd ..; tar cf xwChoice.tar xwChoice; gzip -9 xwChoice.tar
