1999-08-13 01:45:20 -04:00
|
|
|
include Makefile
|
|
|
|
|
2000-05-13 12:13:31 -04:00
|
|
|
ARCH=@arch@
|
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)))
|
|
|
|
DLL = dummy.exe
|
2000-07-05 10:12:27 -04:00
|
|
|
DLLNAME = $(RUBY_INSTALL_NAME)$(EXEEXT)
|
|
|
|
RUBYEXP = --output-exp=$(RUBY_INSTALL_NAME).exp
|
|
|
|
MAINOBJ := $(RUBY_INSTALL_NAME).exp $(MAINOBJ)
|
2000-07-03 03:52:19 -04:00
|
|
|
LIBRUBYARG := lib$(RUBY_INSTALL_NAME)s.a
|
2000-05-13 12:13:31 -04:00
|
|
|
else
|
2000-07-02 11:57:18 -04:00
|
|
|
ifneq (,$(findstring mingw, $(ARCH)))
|
2000-07-05 10:12:27 -04:00
|
|
|
DLL = $(RUBY_INSTALL_NAME)mg.dll
|
|
|
|
DLLNAME = $(RUBY_INSTALL_NAME)mg.dll
|
2000-07-02 11:57:18 -04:00
|
|
|
else
|
2000-07-05 10:12:27 -04:00
|
|
|
DLL = $(RUBY_INSTALL_NAME)cw.dll
|
|
|
|
DLLNAME = $(RUBY_INSTALL_NAME)cw.dll
|
2000-07-02 11:57:18 -04:00
|
|
|
endif
|
|
|
|
RUBYEXP =
|
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-14 04:21:30 -04:00
|
|
|
rbconfig.rb: $(DLL)
|
2000-05-13 12:13:31 -04:00
|
|
|
|
2000-07-14 04:21:30 -04:00
|
|
|
$(DLL): $(OBJS) dmyext.@OBJEXT@ $(RUBYDEF)
|
2000-07-05 10:12:27 -04:00
|
|
|
$(LDSHARED) $(DLDFLAGS) -o $(DLL) --output-lib=$(LIBRUBY_SO) \
|
|
|
|
--dllname=$(DLLNAME) --add-stdcall-alias --def=$(RUBYDEF) \
|
2000-07-14 04:21:30 -04:00
|
|
|
$(RUBYEXP) $(OBJS) dmyext.@OBJEXT@ $(LIBS)
|
2000-07-05 10:12:27 -04:00
|
|
|
|
2000-07-14 04:21:30 -04:00
|
|
|
$(RUBYDEF): $(OBJS) dmyext.@OBJEXT@
|
2000-07-05 10:12:27 -04:00
|
|
|
echo EXPORTS > $(RUBYDEF)
|
2000-07-14 04:21:30 -04:00
|
|
|
@NM@ --extern-only --defined-only $(OBJS) dmyext.@OBJEXT@ | \
|
2000-07-25 06:09:59 -04:00
|
|
|
@MINIRUBY@ -ne 'puts $$1 if / [CDT] _(.*)$$/' >> $(RUBYDEF)
|