#
# @(#)Imakefile 1.3 90/02/26 SMI
#

#include "../../XView.config"

HDRSPUBLIC=     ttysw.h        tty.h         termsw.h
HDRSPRIVATE=    charimage.h    charscreen.h  ttyansi.h       tty_impl.h   \
                term_impl.h
HEADERS= ${HDRSPUBLIC} ${HDRSPRIVATE}
INCLUDES= -I$(HEADER_DEST) -I$(TOP) -I$(TOOLDIR)

OBJS =\
	cim_change.o   cim_size.o    csr_change.o    csr_init.o   \
	ttyansi.o      tty_gtty.o    tty_init.o      tty_ntfy.o   \
	tty_stty.o     ttytl.o       ttyselect.o     tty_main.o   \
	tty_menu.o     tty_mapkey.o  tty.o           tty_modes.o  \
	tty_es.o       tty_data.o    term_ntfy.o     tty_compat.o \
	termsw.o       term_data.o   tty_newtxt.o

SRCS =\
	cim_change.c   cim_size.c    csr_change.c    csr_init.c   \
	ttyansi.c      tty_gtty.c    tty_init.c      tty_ntfy.c   \
	tty_stty.c     ttytl.c       ttyselect.c     tty_main.c   \
	tty_menu.c     tty_mapkey.c  tty.c           tty_modes.c  \
	tty_es.c       tty_data.c    term_ntfy.c     tty_compat.c \
	termsw.c       term_data.c   tty_newtxt.c

all::

#if DebugLibXvol && ProfileLibXvol
DebuggedAndProfiledLibraryObjectRule()
#else
# if DebugLibXvol
DebuggedLibraryObjectRule()
# else
#  if ProfileLibXvol
ProfiledLibraryObjectRule()
#  else
NormalLibraryObjectRule()
#  endif
# endif
#endif

SubdirNormalLibTarget(xvol,$(OBJS))
SubdirCompoundLibTarget(xview,$(OBJS))

#if ProfileLibXvol
SubdirProfiledLibTarget(xvol,$(OBJS))
#endif

#if DebugLibXvol
SubdirDebuggedLibTarget(xvol,$(OBJS))
#endif

InstallMultipleDest(install_headers,$(HDRSPUBLIC),$(HEADER_DEST)/xview)
InstallMultipleDest(install_headers,$(HDRSPRIVATE),$(HEADER_DEST)/xview_private)

DependTarget()
