Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
From: djm@glue.umd.edu (David J. MacKenzie)
Subject: Re: Making a shared libtcl on DEC Alpha OSF/1
Date: 24 Feb 1994 16:37:16 GMT	[thread overview]
Message-ID: <DJM.94Feb24113717@burnout.glue.umd.edu> (raw)
In-Reply-To: anthony@aaii.oz.au's message of Thu, 24 Feb 1994 03:04:01 GMT

This works for me.

--- 1.1 1994/02/11 20:05:17
+++ Makefile.in 1994/02/11 20:43:47
@@ -157,11 +157,20 @@
        ar cr libtcl.a ${OBJS}
        $(RANLIB) libtcl.a
 
+# OSF/1.
+libtcl.so: ${OBJS} tclAppInit.o
+       rm -f libtcl.so
+       ld -shared -no_archive -o libtcl.so ${OBJS} tclAppInit.o ${MATH_LIBS} -lc
+
+tclsh.shared: tclAppInit.o libtcl.so
+       ${CC} ${CC_SWITCHES} libtcl.so tclAppInit.o ${MATH_LIBS} -o $@
+# End OSF/1.
+
 tclsh: tclAppInit.c
-       ${CC} ${CC_SWITCHES} tclAppInit.c $(LD_DIR) -ltcl ${MATH_LIBS} -o tclsh
+       ${CC} ${CC_SWITCHES} ${SRC_DIR}/tclAppInit.c $(LD_DIR) -ltcl ${MATH_LIBS} -o tclsh
 
 tcltest: tclTest.o
-       ${CC} ${CC_SWITCHES} tclTest.c $(LD_DIR) -ltcl ${MATH_LIBS} -o tcltest
+       ${CC} ${CC_SWITCHES} ${SRC_DIR}/tclTest.c $(LD_DIR) -ltcl ${MATH_LIBS} -o tcltest
 
 test: tcltest
        @cwd=`pwd`; \

And for tk:

--- 1.1 1994/02/11 20:06:03
+++ Makefile.in 1994/02/11 20:31:32
@@ -175,11 +175,22 @@
        ar cr libtk.a $(OBJS)
        $(RANLIB) libtk.a
 
+# OSF/1.
+SOLIBS = ../tcl7.3/libtcl.a $(X11_LIB_SWITCHES) @LIBS@ -lm
+libtk.so: ${OBJS} tkAppInit.o
+       rm -f libtk.so
+       ld -shared -no_archive -o libtk.so ${OBJS} tkAppInit.o $(SOLIBS) -lc
+
+SHLIBS = libtk.so $(X11_LIB_SWITCHES) @LIBS@ -lm
+wish.shared: tkAppInit.o libtk.so
+       $(CC) $(CC_SWITCHES) $(SHLIBS) tkAppInit.o -o $@
+# End OSF/1.
+
 wish: tkAppInit.c
-       $(CC) $(CC_SWITCHES) tkAppInit.c $(LD_DIR) $(LIBS) -o wish
+       $(CC) $(CC_SWITCHES) ${SRC_DIR}/tkAppInit.c $(LD_DIR) $(LIBS) -o wish
 
 tktest: tkTest.c
-       ${CC} ${CC_SWITCHES} tkTest.c $(LD_DIR) $(LIBS) -o tktest
+       ${CC} ${CC_SWITCHES} ${SRC_DIR}/tkTest.c $(LD_DIR) $(LIBS) -o tktest
 
 test: tktest
        @cwd=`pwd`; \


      reply	other threads:[~1994-02-24 16:37 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1994-02-24  3:04 Making a shared libtcl on DEC Alpha OSF/1 Anthony Baxter
1994-02-24 16:37 ` David J. MacKenzie [this message]
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox