summaryrefslogtreecommitdiff
path: root/cygwin/GNUmakefile.in
diff options
context:
space:
mode:
authoreban <eban@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2000-07-25 14:46:46 +0000
committereban <eban@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2000-07-25 14:46:46 +0000
commit94089e82a1276df9d222fba111d4d4763aac144a (patch)
tree44d23afcdc3a16754e3896bcfced816a3f096cd2 /cygwin/GNUmakefile.in
parentf8971ef1b1765c804477b518ae80e3b79599dc3f (diff)
eban
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@853 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'cygwin/GNUmakefile.in')
-rw-r--r--cygwin/GNUmakefile.in29
1 files changed, 6 insertions, 23 deletions
diff --git a/cygwin/GNUmakefile.in b/cygwin/GNUmakefile.in
index d29cefd..cb2b470 100644
--- a/cygwin/GNUmakefile.in
+++ b/cygwin/GNUmakefile.in
@@ -1,35 +1,18 @@
include Makefile
-ARCH=@arch@
ENABLE_SHARED=@ENABLE_SHARED@
ifneq (,$(findstring no, $(ENABLE_SHARED)))
- DLL = dummy.exe
- DLLNAME = $(RUBY_INSTALL_NAME)$(EXEEXT)
- RUBYEXP = --output-exp=$(RUBY_INSTALL_NAME).exp
- MAINOBJ := $(RUBY_INSTALL_NAME).exp $(MAINOBJ)
- LIBRUBYARG := lib$(RUBY_INSTALL_NAME)s.a
-else
- ifneq (,$(findstring mingw, $(ARCH)))
- DLL = $(RUBY_INSTALL_NAME)mg.dll
- DLLNAME = $(RUBY_INSTALL_NAME)mg.dll
- else
- DLL = $(RUBY_INSTALL_NAME)cw.dll
- DLLNAME = $(RUBY_INSTALL_NAME)cw.dll
- endif
- RUBYEXP =
+ EXTOBJS = $(RUBY_INSTALL_NAME).exp
+ LIBRUBYARG = $(LIBRUBY_A)
endif
RUBYDEF = $(RUBY_INSTALL_NAME).def
-rbconfig.rb: $(DLL)
+$(LIBRUBY_SO): $(RUBYDEF)
+$(LIBRUBY): $(LIBRUBY_SO)
-$(DLL): $(OBJS) dmyext.@OBJEXT@ $(RUBYDEF)
- $(LDSHARED) $(DLDFLAGS) -o $(DLL) --output-lib=$(LIBRUBY_SO) \
- --dllname=$(DLLNAME) --add-stdcall-alias --def=$(RUBYDEF) \
- $(RUBYEXP) $(OBJS) dmyext.@OBJEXT@ $(LIBS)
-
-$(RUBYDEF): $(OBJS) dmyext.@OBJEXT@
+$(RUBYDEF): $(LIBRUBY_A)
echo EXPORTS > $(RUBYDEF)
- @NM@ --extern-only --defined-only $(OBJS) dmyext.@OBJEXT@ | \
+ @NM@ --extern-only --defined-only $(LIBRUBY_A) | \
@MINIRUBY@ -ne 'puts $$1 if / [CDT] _(.*)$$/' >> $(RUBYDEF)