1999-08-13 01:45:20 -04:00
|
|
|
include Makefile
|
|
|
|
|
2000-07-02 11:57:18 -04:00
|
|
|
ENABLE_SHARED=@ENABLE_SHARED@
|
1999-08-13 01:45:20 -04:00
|
|
|
|
2000-07-02 11:57:18 -04:00
|
|
|
ifneq (,$(findstring no, $(ENABLE_SHARED)))
|
2000-07-25 10:46:46 -04:00
|
|
|
EXTOBJS = $(RUBY_INSTALL_NAME).exp
|
|
|
|
LIBRUBYARG = $(LIBRUBY_A)
|
2000-05-13 12:13:31 -04:00
|
|
|
endif
|
1999-08-13 01:45:20 -04:00
|
|
|
|
2000-07-05 10:12:27 -04:00
|
|
|
RUBYDEF = $(RUBY_INSTALL_NAME).def
|
|
|
|
|
2000-07-25 10:46:46 -04:00
|
|
|
$(LIBRUBY_SO): $(RUBYDEF)
|
|
|
|
$(LIBRUBY): $(LIBRUBY_SO)
|
2000-05-13 12:13:31 -04:00
|
|
|
|
2000-07-25 10:46:46 -04:00
|
|
|
$(RUBYDEF): $(LIBRUBY_A)
|
2000-07-05 10:12:27 -04:00
|
|
|
echo EXPORTS > $(RUBYDEF)
|
2000-07-25 10:46:46 -04:00
|
|
|
@NM@ --extern-only --defined-only $(LIBRUBY_A) | \
|
2000-07-25 06:09:59 -04:00
|
|
|
@MINIRUBY@ -ne 'puts $$1 if / [CDT] _(.*)$$/' >> $(RUBYDEF)
|