For Linux its actually quite easy. Using a similar setup, shown below:

BASE = /usr/local/dx
LDFLAGS = --shared -eDXEntry
CFLAGS = -I$(BASE)/include
LIBS = "$LIBS -L$(BASE)/lib_$ARCH"
CC = cc

OTI_loadable: $(OBJ)
        $(CC) $(LDFLAGS) $(OBJ) $(LIBS) -o OTI_loadable

Of course you may need to add more libraries.

David


On the broader question; no, I'm not wedded to the use
of inboard modules.  I used loadables on the DEC ALPHA
under OSF1 but the last time I visited this question
for linux, sharable modules were not an option.  Below
are the linker options that I used for the ALPHA, can
you tell me what the syntax is for linux?

BASE = /usr/lpp/dx
LDFLAGS = -shared -all -e DXEntry -expect_unresolved main
-expect_unresolved DX*
CFLAGS= -O -Dalphax -I$(BASE)/include
LIBS = -lDX -ly -ll -lm -lX11
SYSLIBS = -lm -lc
CC = cc

OTI_loadable: $(OBJ)
        $(CC) $(LDFLAGS) $(OBJ) $(SYSLIBS) -o OTI_loadable

Best,
Ned


--
.............................................................................
David L. Thompson                   Visualization and Imagery Solutions, Inc.
mailto:[EMAIL PROTECTED]    5515 Skyway Drive, Missoula, MT 59804
                                    Phone : (406)756-7472

Reply via email to