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
|
|
|
|
DLLNAME = ruby.exe
|
|
|
|
RUBYEXP = --output-exp=ruby.exp
|
|
|
|
MAINOBJ := ruby.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)))
|
|
|
|
DLL = rubymg.dll
|
|
|
|
DLLNAME = rubymg.dll
|
|
|
|
else
|
|
|
|
DLL = rubycw.dll
|
|
|
|
DLLNAME = rubycw.dll
|
|
|
|
endif
|
|
|
|
RUBYEXP =
|
2000-05-13 12:13:31 -04:00
|
|
|
endif
|
1999-08-13 01:45:20 -04:00
|
|
|
|
2000-05-13 12:13:31 -04:00
|
|
|
miniruby$(EXEEXT): $(DLL)
|
|
|
|
|
|
|
|
$(DLL): $(OBJS) dmyext.o
|
2000-07-02 11:57:18 -04:00
|
|
|
$(LDSHARED) $(DLDFLAGS) -o $(DLL) --output-lib=$(LIBRUBY_SO) --dllname=$(DLLNAME) --add-stdcall-alias $(RUBYEXP) $(OBJS) dmyext.o $(LIBS)
|