# Linux

# Linux does not have bundled bundled Motif libraries. Unix IDL requires
# these libraries to build. Fortunately, The Open Group (holders of the
# Motif copyright) allow free use of Motif on Open Source operating systems
# (including Linux). For their announcement of this, see
# http://www.opengroup.org/press/15may00.htm). Quoting their press release:
#
#     Menlo Park, CA - May 15th, 2000 - The Open Group[tm], a vendor and
#     technology-neutral consortium dedicated to enterprise integration,
#     announced today that it is releasing the source code of Motif(tm),
#     using a public license, to the Open Source community.  The effect
#     of this is to allow Open Motif to be distributed, royalty free,
#     when the platform upon which it is shipped is Open Source.
#
# In order to build IDL, you must obtain and install the same version
# of OpenMotif that we used to build IDL from http://www.openmotif.org.
# This version of IDL uses Motif 2.1. For your convenience, we have included
# the RedHat RPM files for this version of Motif in the same directory
# where you found this Makefile:
#
#	openmotif-2.1.30-4_MLI.i386.rpm
#	openmotif-devel-2.1.30-4_MLI.i386.rpm

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

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/include -o calltest $(CALLTEST).c $(LDFLAGS)
