# 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: /afs/sipb.mit.edu/project/sipb-athena/olc/browser/motif/RCS/Imakefile,v $
#       $Author: svalente $
#       $Header: /afs/sipb.mit.edu/project/sipb-athena/olc/browser/motif/RCS/Imakefile,v 1.2 95/10/22 13:33:41 svalente Exp $
#

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

SYS_LIBS   	=	$(MotifWCLLib) $(MotifUtilLib) \
			$(MotifLib) $(MotifToolLib) $(XLib)
INCLUDES	=	$(MotifIncludes)

#if DoUsageLog
LOCAL_LIBS = $(LOGGERLIB)
SYS_LIBS   	=	$(HesiodLib) $(MotifLdPath) $(MotifWCLLib) \
			$(MotifUtilLib) $(MotifLib) $(MotifToolLib) $(XLib) 
#else
LOCAL_LIBS =
SYS_LIBS   	=	$(MotifLdPath) $(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)
