summaryrefslogtreecommitdiff
path: root/Makefile.in
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile.in')
-rw-r--r--Makefile.in15
1 files changed, 11 insertions, 4 deletions
diff --git a/Makefile.in b/Makefile.in
index 562948f3828..43c9ec78311 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -15,13 +15,17 @@ CFLAGS = @CFLAGS@ -I@srcdir@ -I@includedir@
LDFLAGS = @STATIC@ $(CFLAGS) @LDFLAGS@
LIBS = @LIBS@ $(EXTLIBS)
MISSING = @LIBOBJS@ @ALLOCA@
+LDSHARED = @LDSHARED@
+DLDFLAGS = @DLDFLAGS@
+SOLIBS = @SOLIBS@
binsuffix = @binsuffix@
#### End of system configuration section. ####
-LIBRUBY = libruby.a
+LIBRUBY = @LIBRUBY@
+LIBRUBYARG = @LIBRUBYARG@
EXTOBJS =
@@ -75,12 +79,15 @@ miniruby$(binsuffix): $(OBJS) $(MAINOBJ) dmyext.o
ruby$(binsuffix): $(LIBRUBY) $(MAINOBJ) $(EXTOBJS)
@rm -f $@
- $(PURIFY) $(CC) $(LDFLAGS) $(MAINOBJ) $(EXTOBJS) $(LIBRUBY) $(LIBS) -o $@
+ $(PURIFY) $(CC) $(LDFLAGS) $(MAINOBJ) $(EXTOBJS) $(LIBRUBYARG) $(LIBS) -o $@
-$(LIBRUBY): $(OBJS) dmyext.o
- @AR@ rcu $(LIBRUBY) $(OBJS) dmyext.o
+libruby.a: $(OBJS) dmyext.o
+ @AR@ rcu $@ $(OBJS) dmyext.o
@-@RANLIB@ $(LIBRUBY) 2> /dev/null || true
+libruby.so: $(OBJS) dmyext.o
+ $(LDSHARED) $(DLDFLAGS) $(SOLIBS) $(OBJS) dmyext.o -o $@
+
install: rbconfig.rb
./miniruby$(binsuffix) $(srcdir)/instruby.rb