# This is the Imakefile for the CREF motif-based finder.
#
#       Lucien Van Elsen
#       MIT Project Athena
#
# Copyright (C) 1991 by the Massachusetts Institute of Technology.
# For copying and distribution information, see the file "mit-copyright.h".
#
#       $Source: /mit/olcdev/highlander/src/browser/motif/RCS/Imakefile,v $
#       $Author: bert $
#       $Header: /mit/olcdev/highlander/src/browser/motif/RCS/Imakefile,v 1.10 1997/02/12 00:05:27 bert Exp bert $
#

SRCS		=	main.c callbacks.c MriRegAll.c
OBJS		=	main.o callbacks.o MriRegAll.o

SYS_LIBS   	=	$(MotifWCLLib) $(MotifUtilLib) \
			$(MotifLib) $(MotifToolLib) $(XLib)
#ifdef sgi
INCLUDES	=	$(RandomIncludes)
#else
INCLUDES	=	-I/mit/motif/include $(RandomIncludes)
#endif

#if DoUsageLog
LOCAL_LIBS = $(LOGGERLIB)
SYS_LIBS   	=	$(HesiodLib) $(MotifWCLLib) $(MotifUtilLib) \
			$(MotifLib) $(MotifToolLib) $(XLib) 
#else
LOCAL_LIBS =
SYS_LIBS   	=	$(MotifWCLLib) $(MotifUtilLib) \
			$(MotifLib) $(MotifToolLib) $(XLib)
#endif

NormalProgramTarget(xbrowser,$(OBJS),,$(LOCAL_LIBS),$(SYS_LIBS))
SaberProgramTarget(xbrowser,$(SRCS),$(OBJS),$(LOCAL_LIBS),$(SYS_LIBS))

#ifdef InstallAltLoc
InstallProgram(xbrowser,$(DESTDIR)/usr/athena/bin)
InstallNonExec(Xbrowser,$(DESTDIR)/usr/athena/lib/X11/app-defaults)
#else
InstallProgram(xbrowser,$(DESTDIR)/usr/athena)
InstallNonExec(Xbrowser,$(DESTDIR)/usr/lib/X11/app-defaults)
#endif

DependTarget()
LintTarget()

AllTarget(xbrowser)
