#
# tom palka
#
# Imakefile for xopink and opink.  Both programs serve to ease
# logging the number of walkin and phone questions in our office.
#
# oct 91
#
# modified some sekullbe 2/94 for sipb use
# stupid dipshit x clients are evil so I'm not going to compile xopink.
#


SRCS1 = xopink.c ariregall.c output.c
OBJS1 = xopink.o ariregall.o output.o

#ifdef IBMR2Architecture
# to get shared libraries on the rios uncomment
# the following lines.  unfortunately, shared libs
# do not seem to work too well with wcl
#
# USRLIBDIR = /usr/athena/lib/shared
# MYSHAREDLIBS = /usr/athena/lib

MYSPECIALLIBS = -lbsd

#endif

LIBS1 = $(MYSHAREDLIBS) -lWc -lXaw -lXmu -lXt -lXext -lX11 $(MYSPECIALLIBS)
LIBS2 = $(MYSPECIALLIBS)

SRCS2 = opink.c output.c
OBJS2 = opink.o output.o

EXTRA_LOAD_FLAGS = -s

MYBINDIR = /mit/sekullbe/sipb/opink/@sys
MYSRCDIR = /mit/sekullbe/sipb/opink

PROGRAMS = walkin


AllTarget($(PROGRAMS))
SingleProgramTarget(xopink, $(OBJS1), $(LIBS1),)
SingleProgramTarget(walkin, $(OBJS2), $(LIBS2),)

install::
	mv -f xopink 		$(MYBINDIR)/Xopink
	cp $(MYSRCDIR)/xopink 	$(MYBINDIR)
	mv -f walkin		$(MYBINDIR)
	( cd $(MYBINDIR) ; rm -f phone ; ln -s walkin phone )
	( cd $(MYBINDIR) ; rm -f vmail ; ln -s walkin vmail )




