# Linux

# Linux does not have bundled bundled Motif libraries. To build IDL
# you will need to install Motif on your system first. Although
# it is possible that Motif versions other than the one used by
# RSI for IDL might link and work work with IDL, it is equally likely
# that they won't. RSI cannot make any assurances other than the
# Motif version we used should work.
#
# Linux IDL is built using Red Hat Software's Motif 2.0.
#	info@redhat.com
#	203-454-5500 tel
#	203-454-2582 fax
#	http://www.redhat.com
#
# Please note that Research Systems has no connection with Red Hat
# other than as a customer, and that future versions of IDL may or
# may not use this version of Motif, based on the state of the Linux
# marketplace that exists when a future IDL is released.

IDLDIR=/usr/local/rsi/idl_5.2
BINDIR=$(IDLDIR)/bin/bin.linux
CALLTEST=$(IDLDIR)/external/callable/calltest
LDFLAGS= -L$(BINDIR) -lidl -Wl,-rpath,. \
	-lMesaGLU -lMesaGL /usr/X11R6/lib/libXm.a -lXp -L/usr/X11R6/lib \
	-lXpm -lXext -lXt -lSM -lICE -lX11 -ldl -ltermcap -lm

idl.new :
	gcc -o idl.new $(BINDIR)/main.o $(LDFLAGS)
	rm -f idlde.new; ln idl.new idlde.new


# Build the C language calltest program.
calltest :
	gcc -I$(IDLDIR)/external -o calltest $(CALLTEST).c $(LDFLAGS)
