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

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

HDRSPUBLIC=	frame.h
HDRSPRIVATE=    fm_impl.h frame_base.h frame_cmd.h frame_help.h \
		fm_xutil.h

HEADERS= ${HDRSPUBLIC} ${HDRSPRIVATE}
TOOLDIR= ../../../usr.bin/tools
INCLUDES= -I$(HEADER_DEST) -I$(TOP) -I$(TOOLDIR)

OBJS =\
	frame.o frame_init.o fm_get.o fm_set.o fm_destroy.o \
	fm_layout.o fm_menu.o fm_cmdline.o \
	fm_display.o fm_win.o \
	fm_geom.o fm_input.o fm_bdry.o frame_sw.o \
	fm_rescale.o \
	frame_base.o fmbs_set.o fmbs_get.o fmbs_dsty.o \
	frame_cmd.o fmcmd_set.o fmcmd_get.o fmcmd_dsty.o \
	frame_help.o fmhlp_set.o fmhlp_get.o \
	fmhlp_dsty.o fm_data.o fm_xutil.o

SRCS =\
	frame.c frame_init.c fm_get.c fm_set.c fm_destroy.c \
	fm_layout.c fm_menu.c fm_cmdline.c \
	fm_display.c fm_win.c \
	fm_geom.c fm_input.c fm_bdry.c frame_sw.c \
	fm_rescale.c \
	frame_base.c fmbs_set.c fmbs_get.c fmbs_dsty.c \
	frame_cmd.c fmcmd_set.c fmcmd_get.c fmcmd_dsty.c \
	frame_help.c fmhlp_set.c fmhlp_get.c \
	fmhlp_dsty.c fm_data.c fm_xutil.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()
