SHELL = /bin/sh #### Start of system configuration section. #### srcdir = . topdir = $(TOP)/opendbad/win/ruby_win_exes/ruby191/include/ruby-1.9.1 hdrdir = $(TOP)/opendbad/win/ruby_win_exes/ruby191/include/ruby-1.9.1 arch_hdrdir = $(TOP)/opendbad/win/ruby_win_exes/ruby191/include/ruby-1.9.1/$(arch) VPATH = $(srcdir);$(arch_hdrdir)/ruby;$(hdrdir)/ruby DESTDIR = $(TOP)/opendbad/win/ruby_win_exes prefix = $(DESTDIR)/ruby191 exec_prefix = $(prefix) bindir = $(exec_prefix)/bin sbindir = $(exec_prefix)/sbin libexecdir = $(exec_prefix)/libexec datadir = $(prefix)/share sysconfdir = $(prefix)/etc sharedstatedir = $(DESTDIR)/etc localstatedir = $(DESTDIR)/var libdir = $(exec_prefix)/lib includedir = $(prefix)/include oldincludedir = $(DESTDIR)/usr/include infodir = $(prefix)/info mandir = $(prefix)/man sitedir = $(prefix)/lib/$(RUBY_INSTALL_NAME)/site_ruby vendordir = $(prefix)/lib/$(RUBY_INSTALL_NAME)/vendor_ruby rubyhdrdir = $(includedir)/$(RUBY_INSTALL_NAME)-$(ruby_version) sitehdrdir = $(rubyhdrdir)/site_ruby vendorhdrdir = $(rubyhdrdir)/vendor_ruby rubylibdir = $(libdir)/$(ruby_install_name)/$(ruby_version) archdir = $(rubylibdir)/$(arch) sitelibdir = $(sitedir)/$(ruby_version) sitearchdir = $(sitelibdir)/$(sitearch) vendorlibdir = $(vendordir)/$(ruby_version) vendorarchdir = $(vendorlibdir)/$(sitearch) CC = cl -nologo CXX = $(CC) LIBRUBY = $(RUBY_SO_NAME).lib LIBRUBY_A = $(RUBY_SO_NAME)-static.lib LIBRUBYARG_SHARED = $(LIBRUBY) LIBRUBYARG_STATIC = $(LIBRUBY_A) OUTFLAG = -Fe COUTFLAG = -Fo RUBY_EXTCONF_H = unicode_support_version cflags = optflags = debugflags = warnflags = CFLAGS = -MT -Zi -O2b2xg- -G6 -Zm600 INCFLAGS = -I. -I$(arch_hdrdir) -I$(hdrdir)/ruby/backward -I$(hdrdir) -I$(srcdir) DEFS = CPPFLAGS = -DRUBY_EXTCONF_H=\"$(RUBY_EXTCONF_H)\" CXXFLAGS = $(CFLAGS) -MT -Zi -O2b2xg- -G6 -Zm600 ldflags = dldflags = -link -incremental:no -debug -opt:ref -opt:icf -dll $(LIBPATH) archflag = DLDFLAGS = $(ldflags) $(dldflags) $(archflag) LDSHARED = cl -nologo -LD LDSHAREDXX = $(LDSHARED) AR = lib -nologo EXEEXT = .exe RUBY_INSTALL_NAME = ruby RUBY_SO_NAME = msvcrt-ruby191 arch = i386-mswin32 sitearch = i386-msvcrt ruby_version = 1.9.1 ruby = $(TOP)/opendbad/win/ruby_win_exes/ruby191/bin/ruby RUBY = $(ruby:/=\) RM = $(RUBY) -run -e rm -- -f RM_RF = $(RUBY) -run -e rm -- -rf RMDIRS = $(RUBY) -run -e rmdir -- -p MAKEDIRS = @$(RUBY) -run -e mkdir -- -p INSTALL = @$(RUBY) -run -e install -- -vp INSTALL_PROG = $(INSTALL) -m 0755 INSTALL_DATA = $(INSTALL) -m 0644 COPY = copy > nul #### End of system configuration section. #### preload = libpath = . $(libdir) C:/Progra~1/IBM/SQLLIB/lib LIBPATH = -libpath:"." -libpath:"$(libdir)" DEFFILE = $(TARGET)-$(arch).def CLEANFILES = mkmf.log DISTCLEANFILES = vc*.pdb $(DEFFILE) DISTCLEANDIRS = extout = extout_prefix = target_prefix = LOCAL_LIBS = LIBS = $(LIBRUBYARG_SHARED) db2cli.lib oldnames.lib user32.lib advapi32.lib shell32.lib ws2_32.lib libcmt.lib SRCS = ibm_db.c ruby_ibm_db_cli.c OBJS = ibm_db.obj ruby_ibm_db_cli.obj TARGET = ibm_db DLLIB = $(TARGET).so EXTSTATIC = STATIC_LIB = BINDIR = $(bindir) RUBYCOMMONDIR = $(sitedir)$(target_prefix) RUBYLIBDIR = $(sitelibdir)$(target_prefix) RUBYARCHDIR = $(sitearchdir)$(target_prefix) HDRDIR = $(rubyhdrdir)/ruby$(target_prefix) ARCHHDRDIR = $(rubyhdrdir)/$(arch)/ruby$(target_prefix) TARGET_SO = $(DLLIB) CLEANLIBS = $(TARGET).so CLEANOBJS = *.obj $(TARGET).exp $(TARGET).lib $(TARGET).pdb *.bak all: $(DLLIB) static: $(STATIC_LIB) clean-rb-default:: clean-rb:: clean-so:: clean: clean-so clean-rb-default clean-rb @-$(RM) $(CLEANLIBS:/=\) $(CLEANOBJS:/=\) $(CLEANFILES:/=\) distclean-rb-default:: distclean-rb:: distclean-so:: distclean: clean distclean-so distclean-rb-default distclean-rb @-$(RM) Makefile $(RUBY_EXTCONF_H) conftest.* mkmf.log @-$(RM) core ruby$(EXEEXT) *~ $(DISTCLEANFILES:/=\) @-$(RMDIRS) $(DISTCLEANDIRS:/=\) realclean: distclean install: install-so install-rb install-so: $(RUBYARCHDIR) install-so: $(RUBYARCHDIR)/$(DLLIB) $(RUBYARCHDIR)/$(DLLIB): $(DLLIB) $(INSTALL_PROG) $(DLLIB:/=\) $(RUBYARCHDIR:/=\) install-rb: pre-install-rb install-rb-default install-rb-default: pre-install-rb-default pre-install-rb: Makefile pre-install-rb-default: Makefile $(RUBYARCHDIR): $(MAKEDIRS) $@ site-install: site-install-so site-install-rb site-install-so: install-so site-install-rb: install-rb .SUFFIXES: .c .m .cc .cxx .cpp .obj {$(hdrdir)}.cc.obj: $(CXX) $(INCFLAGS) $(CXXFLAGS) $(CPPFLAGS) $(COUTFLAG)$(@) -c -Tp$(<:\=/) {$(topdir)}.cc.obj: $(CXX) $(INCFLAGS) $(CXXFLAGS) $(CPPFLAGS) $(COUTFLAG)$(@) -c -Tp$(<:\=/) {$(srcdir)}.cc.obj: $(CXX) $(INCFLAGS) $(CXXFLAGS) $(CPPFLAGS) $(COUTFLAG)$(@) -c -Tp$(<:\=/) .cc.obj: $(CXX) $(INCFLAGS) $(CXXFLAGS) $(CPPFLAGS) $(COUTFLAG)$(@) -c -Tp$(<:\=/) {$(hdrdir)}.cxx.obj: $(CXX) $(INCFLAGS) $(CXXFLAGS) $(CPPFLAGS) $(COUTFLAG)$(@) -c -Tp$(<:\=/) {$(topdir)}.cxx.obj: $(CXX) $(INCFLAGS) $(CXXFLAGS) $(CPPFLAGS) $(COUTFLAG)$(@) -c -Tp$(<:\=/) {$(srcdir)}.cxx.obj: $(CXX) $(INCFLAGS) $(CXXFLAGS) $(CPPFLAGS) $(COUTFLAG)$(@) -c -Tp$(<:\=/) .cxx.obj: $(CXX) $(INCFLAGS) $(CXXFLAGS) $(CPPFLAGS) $(COUTFLAG)$(@) -c -Tp$(<:\=/) {$(hdrdir)}.cpp.obj: $(CXX) $(INCFLAGS) $(CXXFLAGS) $(CPPFLAGS) $(COUTFLAG)$(@) -c -Tp$(<:\=/) {$(topdir)}.cpp.obj: $(CXX) $(INCFLAGS) $(CXXFLAGS) $(CPPFLAGS) $(COUTFLAG)$(@) -c -Tp$(<:\=/) {$(srcdir)}.cpp.obj: $(CXX) $(INCFLAGS) $(CXXFLAGS) $(CPPFLAGS) $(COUTFLAG)$(@) -c -Tp$(<:\=/) .cpp.obj: $(CXX) $(INCFLAGS) $(CXXFLAGS) $(CPPFLAGS) $(COUTFLAG)$(@) -c -Tp$(<:\=/) {$(hdrdir)}.c.obj: $(CC) $(INCFLAGS) $(CFLAGS) $(CPPFLAGS) $(COUTFLAG)$(@) -c -Tc$(<:\=/) {$(topdir)}.c.obj: $(CC) $(INCFLAGS) $(CFLAGS) $(CPPFLAGS) $(COUTFLAG)$(@) -c -Tc$(<:\=/) {$(srcdir)}.c.obj: $(CC) $(INCFLAGS) $(CFLAGS) $(CPPFLAGS) $(COUTFLAG)$(@) -c -Tc$(<:\=/) .c.obj: $(CC) $(INCFLAGS) $(CFLAGS) $(CPPFLAGS) $(COUTFLAG)$(@) -c -Tc$(<:\=/) $(DLLIB): $(DEFFILE) $(OBJS) Makefile @-$(RM) $(@:/=\) $(LDSHARED) -Fe$(@) $(OBJS) $(LIBS) $(LOCAL_LIBS) $(DLDFLAGS) -implib:$(*F:.so=)-$(arch).lib -pdb:$(*F:.so=)-$(arch).pdb -def:$(DEFFILE) $(DEFFILE): $(RUBY) -e "puts 'EXPORTS', 'Init_$(TARGET)'" > $@ $(OBJS): {.;$(VPATH)}$(hdrdir)/ruby.h {.;$(VPATH)}$(hdrdir)/ruby/defines.h $(arch_hdrdir)/ruby/config.h $(RUBY_EXTCONF_H)