#
#
#	$Id: yMakefile,v 1.20 2002-02-23 01:14:18 haley Exp $
#
#
#	Makefile for idt -- Interactive Image Display Tool
#
#

MYNAME	= idt

TRANSLATOR	= ictrans

PROG_LIBS	=	$(CGMLIB) $(NCARGCLIB)
DEPLIBS		=	$(DEPCGMLIB) $(DEPNCARGCLIB)

EXTRA_LIBS	=	$(XMUATHENACLIENTLIBS)
SYS_LIBS	=	-lm


#if defined(IRIX) && (MAJOR == 5)
MY_DEFINES = -D_BSD_TYPES
#else
MY_DEFINES =
#endif

EXTRA_CDEFINES =	-DXAPPDIR='"$(XAPPDIR)"' \
			-DTRANSLATOR='"$(TRANSLATOR)"' -DBINDIR='"$(BINDIR)"' \
			$(VDEFINE) $(OS_DEF) $(MAJOR_DEF) $(MY_DEFINES)

OBJS	= \
	w_idt.o w_file.o file.o glob.o w_display.o display.o w_dialog.o \
	commands.o talkto.o xrubber.o scroll.o w_text.o spooler.o w_icon.o \
	xt_env.o animate.o animate_cb.o

SRCS	= \
	w_idt.c w_file.c file.c glob.c w_display.c display.c w_dialog.c \
	commands.c talkto.c xrubber.c scroll.c w_text.c spooler.c w_icon.c \
	xt_env.c animate.c animate_cb.c


CProgram($(MYNAME),$(OBJS),$(DEPLIBS))
DependTarget($(SRCS))

#if defined(i386) || defined(Darwin)
talkto.o: talkto.c
        $(CC) $(ALLINCLUDES) $(CCOPTIONS) $(COPT) -c talkto.c
#endif


#
#	w_idt.c needs to know the name of the translator
#
w_idt.o:     w_idt.c Makefile

#
#	xt_env.c needs to know the default location of the idt resoure file
#
xt_env.o:     xt_env.c Makefile

lint:	$(HDR) $(SRCS)
	lint  $(CFLAGS)$(LINTLIBS) $(SRCS)  1> lint.out 2>&1
