
SHELL = /bin/sh

#### Start of system configuration section. ####

srcdir = .
topdir = /usr/local/lib/rubinius/include
hdrdir = $(topdir)
VPATH = $(srcdir):$(topdir):$(hdrdir)
exec_prefix = $(prefix)
install_prefix = $(DESTDIR)
prefix = $(DESTDIR)/usr/local/lib/rubinius
libdir = $(exec_prefix)/lib
bindir = $(DESTDIR)/usr/local/lib/rubinius/bin
includedir = $(prefix)/include
dvidir = $(docdir)
oldincludedir = $(DESTDIR)/usr/include
archdir = $(DESTDIR)/usr/local/lib/rubinius/site/powerpc-openbsd
rubylibdir = $(DESTDIR)/usr/local/lib/rubinius/site
sharedstatedir = $(prefix)/com
sbindir = $(exec_prefix)/sbin
sitedir = $(DESTDIR)/usr/local/lib/rubinius/site
datarootdir = $(prefix)/share
localedir = $(datarootdir)/locale
localstatedir = $(prefix)/var
sitelibdir = $(DESTDIR)/usr/local/lib/rubinius/site
htmldir = $(docdir)
pdfdir = $(docdir)
mandir = $(datarootdir)/man
sysconfdir = $(prefix)/etc
rubyhdrdir = $(DESTDIR)/usr/local/lib/rubinius/include
sitearchdir = $(DESTDIR)/usr/local/lib/rubinius/site/powerpc-openbsd
libexecdir = $(exec_prefix)/libexec
infodir = $(datarootdir)/info
docdir = $(datarootdir)/doc/$(PACKAGE)
psdir = $(docdir)
datadir = $(datarootdir)

CC = cc
LIBRUBY = $(LIBRUBY_SO)
LIBRUBY_A = 
LIBRUBYARG_SHARED = 
LIBRUBYARG_STATIC = 

RUBY_EXTCONF_H = 
cflags   = 
optflags = 
debugflags = 
warnflags = 
CFLAGS   =  -fPIC -ggdb3 -O2 -fPIC -O2 -pipe 
INCFLAGS = -I. -I. -I/usr/local/lib/rubinius/include -I.
DEFS     = 
CPPFLAGS = -DHAVE_MYSQL_SSL_SET -DHAVE_MYSQL_H  -DOPENSSL_NO_STATIC_ENGINE -I/usr/local/include -I/usr/local/include/mysql  -pipe   -DUNIV_MUST_NOT_INLINE
CXXFLAGS = $(CFLAGS) 
ldflags  =  -L/usr/local/lib
dldflags = 
archflag = 
DLDFLAGS = $(ldflags) $(dldflags) $(archflag)
LDSHARED = cc -shared
AR = ar
EXEEXT = 

RUBY_INSTALL_NAME = rbx
RUBY_SO_NAME = rubinius-1.2.4
arch = powerpc-openbsd
sitearch = powerpc-openbsd
ruby_version = 1.8
ruby = /usr/local/lib/rubinius/bin/rbx
RUBY = $(ruby)
RM = rm -f
MAKEDIRS = mkdir -p
INSTALL = install -c
INSTALL_PROG = $(INSTALL) -m 0755
INSTALL_DATA = $(INSTALL) -m 644
COPY = cp

#### End of system configuration section. ####

preload = 

libpath = . $(libdir)
LIBPATH =  -L. -L$(libdir)
DEFFILE = 

CLEANFILES = mkmf.log
DISTCLEANFILES = 

extout = 
extout_prefix = 
target_prefix = 
LOCAL_LIBS = 
LIBS = $(LIBRUBYARG_STATIC) -L/usr/local/lib/mysql -lmysqlclient -lz -lm  -lssl -lcrypto   
SRCS = mysql.c
OBJS = mysql.o
TARGET = mysql_api
DLLIB = $(TARGET).so
EXTSTATIC = 
STATIC_LIB = 

BINDIR        = $(bindir)
RUBYCOMMONDIR = $(sitedir)$(target_prefix)
RUBYLIBDIR = /usr/ports/pobj/mysql-2.8.1-rbx/gem-tmp/.gem/rbx/1.8/gems/mysql-2.8.1/lib$(target_prefix)
RUBYARCHDIR = /usr/ports/pobj/mysql-2.8.1-rbx/gem-tmp/.gem/rbx/1.8/gems/mysql-2.8.1/lib$(target_prefix)

TARGET_SO     = $(DLLIB)
CLEANLIBS     = $(TARGET).so 
CLEANOBJS     = *.o  *.bak

all:    $(DLLIB)
static: $(STATIC_LIB)
.PHONY: all install static install-so install-rb
.PHONY: clean clean-so clean-rb

clean:
	@-$(RM) $(CLEANLIBS) $(CLEANOBJS) $(CLEANFILES)

distclean: clean
	@-$(RM) Makefile $(RUBY_EXTCONF_H) conftest.* mkmf.log
	@-$(RM) core ruby$(EXEEXT) *~ $(DISTCLEANFILES)

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 .C .o

.cc.o:
	$(CXX) $(INCFLAGS) $(CPPFLAGS) $(CXXFLAGS) -c $<

.cxx.o:
	$(CXX) $(INCFLAGS) $(CPPFLAGS) $(CXXFLAGS) -c $<

.cpp.o:
	$(CXX) $(INCFLAGS) $(CPPFLAGS) $(CXXFLAGS) -c $<

.C.o:
	$(CXX) $(INCFLAGS) $(CPPFLAGS) $(CXXFLAGS) -c $<

.c.o:
	$(CC) $(INCFLAGS) $(CPPFLAGS) $(CFLAGS) -c $<

$(DLLIB): $(OBJS) Makefile
	@-$(RM) $@
	$(LDSHARED) -o $@ $(OBJS) $(LIBPATH) $(DLDFLAGS) $(LOCAL_LIBS) $(LIBS)



$(OBJS): ruby.h defines.h
