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

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

HDRSPRIVATE=    ei.h es.h ev.h ev_impl.h primal.h ps_impl.h\
		finger_tbl.h txt_impl.h
HDRSPUBLIC=     textsw.h text.h

HEADERS= ${HDRSPUBLIC} ${HDRSPRIVATE}
INCLUDES= -I$(HEADER_DEST) -I$(TOP) -I$(TOOLDIR)

OBJS =\
	es_file.o      es_mem.o       es_util.o     es_attr.o    \
	ps_impl.o						 \
	ev_display.o   ev_op_bdry.o   ev_edit.o     ev_once.o    \
	ev_attr.o      ev_field.o     ev_update.o		 \
	es_cp_file.o   ei_text.o      ei_attr.o     finger_tbl.o \
	txt_data.o     txt_once.o     txt_input.o   txt_edit.o   \
	txt_menu.o     txt_disp.o     txt_event.o   txt_find.o   \
	txt_file.o     txt_sel.o      txt_selsvc.o  txt_again.o  \
	txt_getkey.o   txt_putkey.o   txt_filter.o  text.o       \
	txt_attr.o     txt_dbx.o      txt_tool.o    txt_scroll.o \
	txt_field.o    txt_caret.o    txt_search.o  txt_e_menu.o \
	txt_move.o     txt_view.o     txt_popup.o   txt_store.o  \
	txt_match.o    txt_load.o     txt_line.o    txt_incl.o

SRCS =\
	es_file.c      es_mem.c       es_util.c     es_attr.c    \
	ps_impl.c						 \
	ev_display.c   ev_op_bdry.c   ev_edit.c     ev_once.c    \
	ev_attr.c      ev_field.c     ev_update.c		 \
	es_cp_file.c   ei_text.c      ei_attr.c     finger_tbl.c \
	txt_data.c     txt_once.c     txt_input.c   txt_edit.c   \
	txt_menu.c     txt_disp.c     txt_event.c   txt_find.c   \
	txt_file.c     txt_sel.c      txt_selsvc.c  txt_again.c  \
	txt_getkey.c   txt_putkey.c   txt_filter.c  text.c       \
	txt_attr.c     txt_dbx.c      txt_tool.c    txt_scroll.c \
	txt_field.c    txt_caret.c    txt_search.c  txt_e_menu.c \
	txt_move.c     txt_view.c     txt_popup.c   txt_store.c  \
	txt_match.c    txt_load.c     txt_line.c    txt_incl.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()
