#
# $Header: /home/fbm/src/misc+/xcb/RCS/Makefile.std,v 1.8 1992/10/16 07:32:29 fbm Exp $

INCS	=	
HDRS	=	cb.h patchlevel.h
SRCS	=	xcb.c
OBJS	=	xcb.o
MISC	=	README CHANGES xcb.man Xcb.ad ack Imakefile Makefile.std
SHARS	=	$(MISC) $(SRCS) $(HDRS)

# Add your favourite compiler flags here.
#
CFLAGS	=	$(INCS) -O # -DXVIEW
LDFLAGS =	

# These are the libraries required for linking.
# AT&T SVR4 systems also require libnsl.a.......
#
LIBS	=	-lXaw -lXmu -lXt -lXext -lX11
#LIBS	=	-lXaw -lXmu -lXt -lXext -lX11 -lnsl	# SVR4 needs libnsl.a

all:	xcb

xcb:	$(OBJS)
	$(CC) $(CFLAGS) $(LDFLAGS) -o $@ $(OBJS) $(LIBS)

# You will need to check and possibly adjust the target
# directories for these install rules.
#
install: xcb
	install -c xcb /usr/bin/X11
	install -c -m 0644 -o bin -g bin Xcb.ad /usr/lib/X11/app-defaults/Xcb

install.man:
	install -c -m 0644 -o bin -g bin xcb.man /usr/share/man/mrd/man1/xcb.1

clean clobber:
	rm -f *.o xcb

tags ctags:	$(HDRS) $(SRCS)
	ctags -tw $(HDRS) $(SRCS)

shar:
	shar -c -f part -p -x X $(SHARS)
