Skip to content

Instantly share code, notes, and snippets.

@pzula
Created March 11, 2014 12:23
Show Gist options
  • Save pzula/9484560 to your computer and use it in GitHub Desktop.
Save pzula/9484560 to your computer and use it in GitHub Desktop.
Makefile
pzula checkerboard (master) ✨ cat /Users/pzula/.rvm/src/ruby-2.1.1/ext/psych/Makefile
SHELL = /bin/sh
# V=0 quiet, V=1 verbose. other values don't work.
V = 0
Q1 = $(V:1=)
Q = $(Q1:0=@)
ECHO1 = $(V:1=@:)
ECHO = $(ECHO1:0=@echo)
#### Start of system configuration section. ####
top_srcdir = $(topdir)/.
srcdir = $(top_srcdir)/ext/psych
topdir = ../..
hdrdir = $(top_srcdir)/include
arch_hdrdir = $(extout)/include/$(arch)
PATH_SEPARATOR = :
VPATH = $(srcdir):$(arch_hdrdir)/ruby:$(hdrdir)/ruby
RUBYLIB =
RUBYOPT = -
prefix = $(DESTDIR)/Users/pzula/.rvm/rubies/ruby-2.1.1
rubysitearchprefix = $(rubylibprefix)/$(sitearch)
rubyarchprefix = $(rubylibprefix)/$(arch)
rubylibprefix = $(libdir)/$(RUBY_BASE_NAME)
exec_prefix = $(prefix)
vendorarchhdrdir = $(vendorhdrdir)/$(sitearch)
sitearchhdrdir = $(sitehdrdir)/$(sitearch)
rubyarchhdrdir = $(rubyhdrdir)/$(arch)
vendorhdrdir = $(rubyhdrdir)/vendor_ruby
sitehdrdir = $(rubyhdrdir)/site_ruby
rubyhdrdir = $(includedir)/$(RUBY_VERSION_NAME)
vendorarchdir = $(vendorlibdir)/$(sitearch)
vendorlibdir = $(vendordir)/$(ruby_version)
vendordir = $(rubylibprefix)/vendor_ruby
sitearchdir = $(sitelibdir)/$(sitearch)
sitelibdir = $(sitedir)/$(ruby_version)
sitedir = $(rubylibprefix)/site_ruby
rubyarchdir = $(rubylibdir)/$(arch)
rubylibdir = $(rubylibprefix)/$(ruby_version)
sitearchincludedir = $(includedir)/$(sitearch)
archincludedir = $(includedir)/$(arch)
sitearchlibdir = $(libdir)/$(sitearch)
archlibdir = $(libdir)/$(arch)
ridir = $(datarootdir)/$(RI_BASE_NAME)
mandir = $(datarootdir)/man
localedir = $(datarootdir)/locale
libdir = $(exec_prefix)/lib
psdir = $(docdir)
pdfdir = $(docdir)
dvidir = $(docdir)
htmldir = $(docdir)
infodir = $(datarootdir)/info
docdir = $(datarootdir)/doc/$(PACKAGE)
oldincludedir = $(DESTDIR)/usr/include
includedir = $(prefix)/include
localstatedir = $(prefix)/var
sharedstatedir = $(prefix)/com
sysconfdir = $(prefix)/etc
datadir = $(datarootdir)
datarootdir = $(prefix)/share
libexecdir = $(exec_prefix)/libexec
sbindir = $(exec_prefix)/sbin
bindir = $(exec_prefix)/bin
archdir = $(rubyarchdir)
CC = /usr/bin/clang
CXX = clang++
LIBRUBY = $(LIBRUBY_SO)
LIBRUBY_A = lib$(RUBY_SO_NAME)-static.a
LIBRUBYARG_SHARED = -l$(RUBY_SO_NAME)
LIBRUBYARG_STATIC = -l$(RUBY_SO_NAME)-static -framework CoreFoundation
empty =
OUTFLAG = -o $(empty)
COUTFLAG = -o $(empty)
RUBY_EXTCONF_H = extconf.h
cflags = $(optflags) $(debugflags) $(warnflags)
optflags = -O3 -fno-fast-math
debugflags = -ggdb3
warnflags = -Wall -Wextra -Wno-unused-parameter -Wno-parentheses -Wno-long-long -Wno-missing-field-initializers -Wunused-variable -Wpointer-arith -Wwrite-strings -Wdeclaration-after-statement -Wshorten-64-to-32 -Wimplicit-function-declaration -Wdivision-by-zero -Wextra-tokens
CCDLFLAGS = -fno-common
CFLAGS = $(CCDLFLAGS) $(cflags) -fno-common -pipe $(ARCH_FLAG)
INCFLAGS = -I. -I$(arch_hdrdir) -I$(hdrdir) -I$(srcdir)
DEFS =
CPPFLAGS = -DRUBY_EXTCONF_H=\"$(RUBY_EXTCONF_H)\" -I/usr/local/Cellar/libyaml/0.1.5/include -I/usr/local/Cellar/readline/6.2.4/include -I/usr/local/Cellar/libksba/1.3.0/include -I/usr/local/Cellar/openssl/1.0.1f/include -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -D_DARWIN_UNLIMITED_SELECT -D_REENTRANT $(DEFS) $(cppflags)
CXXFLAGS = $(CCDLFLAGS) $(cxxflags) $(ARCH_FLAG)
ldflags = -L. -fstack-protector -L/usr/local/Cellar/libyaml/0.1.5/lib -L/usr/local/Cellar/readline/6.2.4/lib -L/usr/local/Cellar/libksba/1.3.0/lib -L/usr/local/Cellar/openssl/1.0.1f/lib
dldflags = -Wl,-undefined,dynamic_lookup -Wl,-multiply_defined,suppress -L/usr/local/Cellar/libyaml/0.1.5/lib -L/usr/local/Cellar/readline/6.2.4/lib -L/usr/local/Cellar/libksba/1.3.0/lib -L/usr/local/Cellar/openssl/1.0.1f/lib
ARCH_FLAG =
DLDFLAGS = $(ldflags) $(dldflags) $(ARCH_FLAG)
LDSHARED = $(CC) -dynamic -bundle
LDSHAREDXX = $(CXX) -dynamic -bundle
AR = ar
EXEEXT =
RUBY_INSTALL_NAME = ruby
RUBY_SO_NAME = ruby.2.1.0
RUBYW_INSTALL_NAME =
RUBY_VERSION_NAME = $(RUBY_BASE_NAME)-$(ruby_version)
RUBYW_BASE_NAME = rubyw
RUBY_BASE_NAME = ruby
arch = x86_64-darwin13.0
sitearch = $(arch)
ruby_version = 2.1.0
ruby = $(topdir)/miniruby -I'$(topdir)' -I'$(top_srcdir)/lib' -I'$(extout)/$(arch)' -I'$(extout)/common'
RUBY = $(ruby)
ruby_headers = $(hdrdir)/ruby.h $(hdrdir)/ruby/ruby.h $(hdrdir)/ruby/defines.h $(hdrdir)/ruby/missing.h $(hdrdir)/ruby/intern.h $(hdrdir)/ruby/st.h $(hdrdir)/ruby/subst.h $(arch_hdrdir)/ruby/config.h $(RUBY_EXTCONF_H)
RM = rm -f
RM_RF = $(RUBY) -run -e rm -- -rf
RMDIRS = rmdir -p
MAKEDIRS = mkdir -p
INSTALL = /usr/bin/install -c
INSTALL_PROG = $(INSTALL) -m 0755
INSTALL_DATA = $(INSTALL) -m 644
COPY = cp
TOUCH = exit >
#### End of system configuration section. ####
preload =
libpath = . $(topdir) /usr/local/Cellar/libyaml/0.1.5/lib /usr/local/Cellar/readline/6.2.4/lib /usr/local/Cellar/libksba/1.3.0/lib /usr/local/Cellar/openssl/1.0.1f/lib
LIBPATH = -L. -L$(topdir) -L/usr/local/Cellar/libyaml/0.1.5/lib -L/usr/local/Cellar/readline/6.2.4/lib -L/usr/local/Cellar/libksba/1.3.0/lib -L/usr/local/Cellar/openssl/1.0.1f/lib
DEFFILE =
CLEANFILES = mkmf.log
DISTCLEANFILES =
DISTCLEANDIRS =
extout = $(topdir)/.ext
extout_prefix = $(extout)$(target_prefix)/
target_prefix =
LOCAL_LIBS =
LIBS = $(LIBRUBYARG_SHARED) -lyaml -lpthread -ldl -lobjc
ORIG_SRCS = psych.c psych_emitter.c psych_parser.c psych_to_ruby.c psych_yaml_tree.c
SRCS = $(ORIG_SRCS)
OBJS = psych.o psych_emitter.o psych_parser.o psych_to_ruby.o psych_yaml_tree.o
HDRS = $(srcdir)/psych.h $(srcdir)/psych_emitter.h $(srcdir)/psych_parser.h $(srcdir)/psych_to_ruby.h $(srcdir)/psych_yaml_tree.h
TARGET = psych
TARGET_NAME = psych
TARGET_ENTRY = Init_$(TARGET_NAME)
DLLIB = $(TARGET).bundle
EXTSTATIC =
STATIC_LIB =
TIMESTAMP_DIR = $(extout)/.timestamp
BINDIR = $(extout)/bin
RUBYCOMMONDIR = $(extout)/common
RUBYLIBDIR = $(RUBYCOMMONDIR)$(target_prefix)
RUBYARCHDIR = $(extout)/$(arch)$(target_prefix)
HDRDIR = $(extout)/include/ruby$(target_prefix)
ARCHHDRDIR = $(extout)/include/$(arch)/ruby$(target_prefix)
TARGET_SO = $(RUBYARCHDIR)/$(DLLIB)
CLEANLIBS = $(RUBYARCHDIR)/$(TARGET).bundle
CLEANOBJS = *.o *.bak
all: install
static: all
.PHONY: all install static install-so install-rb
.PHONY: clean clean-so clean-static clean-rb
clean-static::
clean-rb-default::
clean-rb::
clean-so::
clean: clean-so clean-static clean-rb-default clean-rb
-$(Q)$(RM) $(CLEANLIBS) $(CLEANOBJS) $(CLEANFILES) .*.time
distclean-rb-default::
distclean-rb::
distclean-so::
distclean-static::
distclean: clean distclean-so distclean-static distclean-rb-default distclean-rb
-$(Q)$(RM) Makefile $(RUBY_EXTCONF_H) conftest.* mkmf.log
-$(Q)$(RM) core ruby$(EXEEXT) *~ $(DISTCLEANFILES)
-$(Q)$(RMDIRS) $(DISTCLEANDIRS) 2> /dev/null || true
realclean: distclean
install: install-so install-rb
install-so: $(RUBYARCHDIR)/$(DLLIB)
clean-so::
-$(Q)$(RM) $(RUBYARCHDIR)/$(DLLIB)
-$(Q)$(RMDIRS) $(RUBYARCHDIR) 2> /dev/null || true
clean-static::
-$(Q)$(RM) $(STATIC_LIB)
install-rb: pre-install-rb install-rb-default
install-rb-default: pre-install-rb-default
pre-install-rb: Makefile
pre-install-rb-default: Makefile
pre-install-rb-default: $(TIMESTAMP_DIR)/.RUBYLIBDIR.-.psych.time
install-rb-default: $(RUBYLIBDIR)/psych/class_loader.rb
$(RUBYLIBDIR)/psych/class_loader.rb: $(srcdir)/lib/psych/class_loader.rb $(TIMESTAMP_DIR)/.RUBYLIBDIR.-.psych.time
$(Q) $(COPY) $(srcdir)/lib/psych/class_loader.rb $(@D)
clean-rb-default::
-$(Q)$(RM) $(RUBYLIBDIR)/psych/class_loader.rb
install-rb-default: $(RUBYLIBDIR)/psych/coder.rb
$(RUBYLIBDIR)/psych/coder.rb: $(srcdir)/lib/psych/coder.rb $(TIMESTAMP_DIR)/.RUBYLIBDIR.-.psych.time
$(Q) $(COPY) $(srcdir)/lib/psych/coder.rb $(@D)
clean-rb-default::
-$(Q)$(RM) $(RUBYLIBDIR)/psych/coder.rb
install-rb-default: $(RUBYLIBDIR)/psych/core_ext.rb
$(RUBYLIBDIR)/psych/core_ext.rb: $(srcdir)/lib/psych/core_ext.rb $(TIMESTAMP_DIR)/.RUBYLIBDIR.-.psych.time
$(Q) $(COPY) $(srcdir)/lib/psych/core_ext.rb $(@D)
clean-rb-default::
-$(Q)$(RM) $(RUBYLIBDIR)/psych/core_ext.rb
install-rb-default: $(RUBYLIBDIR)/psych/deprecated.rb
$(RUBYLIBDIR)/psych/deprecated.rb: $(srcdir)/lib/psych/deprecated.rb $(TIMESTAMP_DIR)/.RUBYLIBDIR.-.psych.time
$(Q) $(COPY) $(srcdir)/lib/psych/deprecated.rb $(@D)
clean-rb-default::
-$(Q)$(RM) $(RUBYLIBDIR)/psych/deprecated.rb
install-rb-default: $(RUBYLIBDIR)/psych/exception.rb
$(RUBYLIBDIR)/psych/exception.rb: $(srcdir)/lib/psych/exception.rb $(TIMESTAMP_DIR)/.RUBYLIBDIR.-.psych.time
$(Q) $(COPY) $(srcdir)/lib/psych/exception.rb $(@D)
clean-rb-default::
-$(Q)$(RM) $(RUBYLIBDIR)/psych/exception.rb
install-rb-default: $(RUBYLIBDIR)/psych/handler.rb
$(RUBYLIBDIR)/psych/handler.rb: $(srcdir)/lib/psych/handler.rb $(TIMESTAMP_DIR)/.RUBYLIBDIR.-.psych.time
$(Q) $(COPY) $(srcdir)/lib/psych/handler.rb $(@D)
clean-rb-default::
-$(Q)$(RM) $(RUBYLIBDIR)/psych/handler.rb
install-rb-default: $(RUBYLIBDIR)/psych/nodes.rb
$(RUBYLIBDIR)/psych/nodes.rb: $(srcdir)/lib/psych/nodes.rb $(TIMESTAMP_DIR)/.RUBYLIBDIR.-.psych.time
$(Q) $(COPY) $(srcdir)/lib/psych/nodes.rb $(@D)
clean-rb-default::
-$(Q)$(RM) $(RUBYLIBDIR)/psych/nodes.rb
install-rb-default: $(RUBYLIBDIR)/psych/omap.rb
$(RUBYLIBDIR)/psych/omap.rb: $(srcdir)/lib/psych/omap.rb $(TIMESTAMP_DIR)/.RUBYLIBDIR.-.psych.time
$(Q) $(COPY) $(srcdir)/lib/psych/omap.rb $(@D)
clean-rb-default::
-$(Q)$(RM) $(RUBYLIBDIR)/psych/omap.rb
install-rb-default: $(RUBYLIBDIR)/psych/parser.rb
$(RUBYLIBDIR)/psych/parser.rb: $(srcdir)/lib/psych/parser.rb $(TIMESTAMP_DIR)/.RUBYLIBDIR.-.psych.time
$(Q) $(COPY) $(srcdir)/lib/psych/parser.rb $(@D)
clean-rb-default::
-$(Q)$(RM) $(RUBYLIBDIR)/psych/parser.rb
install-rb-default: $(RUBYLIBDIR)/psych/scalar_scanner.rb
$(RUBYLIBDIR)/psych/scalar_scanner.rb: $(srcdir)/lib/psych/scalar_scanner.rb $(TIMESTAMP_DIR)/.RUBYLIBDIR.-.psych.time
$(Q) $(COPY) $(srcdir)/lib/psych/scalar_scanner.rb $(@D)
clean-rb-default::
-$(Q)$(RM) $(RUBYLIBDIR)/psych/scalar_scanner.rb
install-rb-default: $(RUBYLIBDIR)/psych/set.rb
$(RUBYLIBDIR)/psych/set.rb: $(srcdir)/lib/psych/set.rb $(TIMESTAMP_DIR)/.RUBYLIBDIR.-.psych.time
$(Q) $(COPY) $(srcdir)/lib/psych/set.rb $(@D)
clean-rb-default::
-$(Q)$(RM) $(RUBYLIBDIR)/psych/set.rb
install-rb-default: $(RUBYLIBDIR)/psych/stream.rb
$(RUBYLIBDIR)/psych/stream.rb: $(srcdir)/lib/psych/stream.rb $(TIMESTAMP_DIR)/.RUBYLIBDIR.-.psych.time
$(Q) $(COPY) $(srcdir)/lib/psych/stream.rb $(@D)
clean-rb-default::
-$(Q)$(RM) $(RUBYLIBDIR)/psych/stream.rb
install-rb-default: $(RUBYLIBDIR)/psych/streaming.rb
$(RUBYLIBDIR)/psych/streaming.rb: $(srcdir)/lib/psych/streaming.rb $(TIMESTAMP_DIR)/.RUBYLIBDIR.-.psych.time
$(Q) $(COPY) $(srcdir)/lib/psych/streaming.rb $(@D)
clean-rb-default::
-$(Q)$(RM) $(RUBYLIBDIR)/psych/streaming.rb
install-rb-default: $(RUBYLIBDIR)/psych/syntax_error.rb
$(RUBYLIBDIR)/psych/syntax_error.rb: $(srcdir)/lib/psych/syntax_error.rb $(TIMESTAMP_DIR)/.RUBYLIBDIR.-.psych.time
$(Q) $(COPY) $(srcdir)/lib/psych/syntax_error.rb $(@D)
clean-rb-default::
-$(Q)$(RM) $(RUBYLIBDIR)/psych/syntax_error.rb
install-rb-default: $(RUBYLIBDIR)/psych/tree_builder.rb
$(RUBYLIBDIR)/psych/tree_builder.rb: $(srcdir)/lib/psych/tree_builder.rb $(TIMESTAMP_DIR)/.RUBYLIBDIR.-.psych.time
$(Q) $(COPY) $(srcdir)/lib/psych/tree_builder.rb $(@D)
clean-rb-default::
-$(Q)$(RM) $(RUBYLIBDIR)/psych/tree_builder.rb
install-rb-default: $(RUBYLIBDIR)/psych/visitors.rb
$(RUBYLIBDIR)/psych/visitors.rb: $(srcdir)/lib/psych/visitors.rb $(TIMESTAMP_DIR)/.RUBYLIBDIR.-.psych.time
$(Q) $(COPY) $(srcdir)/lib/psych/visitors.rb $(@D)
clean-rb-default::
-$(Q)$(RM) $(RUBYLIBDIR)/psych/visitors.rb
install-rb-default: $(RUBYLIBDIR)/psych/y.rb
$(RUBYLIBDIR)/psych/y.rb: $(srcdir)/lib/psych/y.rb $(TIMESTAMP_DIR)/.RUBYLIBDIR.-.psych.time
$(Q) $(COPY) $(srcdir)/lib/psych/y.rb $(@D)
clean-rb-default::
-$(Q)$(RM) $(RUBYLIBDIR)/psych/y.rb
pre-install-rb-default: $(TIMESTAMP_DIR)/.RUBYLIBDIR.-.psych.-.handlers.time
install-rb-default: $(RUBYLIBDIR)/psych/handlers/document_stream.rb
$(RUBYLIBDIR)/psych/handlers/document_stream.rb: $(srcdir)/lib/psych/handlers/document_stream.rb $(TIMESTAMP_DIR)/.RUBYLIBDIR.-.psych.-.handlers.time
$(Q) $(COPY) $(srcdir)/lib/psych/handlers/document_stream.rb $(@D)
clean-rb-default::
-$(Q)$(RM) $(RUBYLIBDIR)/psych/handlers/document_stream.rb
install-rb-default: $(RUBYLIBDIR)/psych/handlers/recorder.rb
$(RUBYLIBDIR)/psych/handlers/recorder.rb: $(srcdir)/lib/psych/handlers/recorder.rb $(TIMESTAMP_DIR)/.RUBYLIBDIR.-.psych.-.handlers.time
$(Q) $(COPY) $(srcdir)/lib/psych/handlers/recorder.rb $(@D)
clean-rb-default::
-$(Q)$(RM) $(RUBYLIBDIR)/psych/handlers/recorder.rb
pre-install-rb-default: $(TIMESTAMP_DIR)/.RUBYLIBDIR.-.psych.-.json.time
install-rb-default: $(RUBYLIBDIR)/psych/json/ruby_events.rb
$(RUBYLIBDIR)/psych/json/ruby_events.rb: $(srcdir)/lib/psych/json/ruby_events.rb $(TIMESTAMP_DIR)/.RUBYLIBDIR.-.psych.-.json.time
$(Q) $(COPY) $(srcdir)/lib/psych/json/ruby_events.rb $(@D)
clean-rb-default::
-$(Q)$(RM) $(RUBYLIBDIR)/psych/json/ruby_events.rb
install-rb-default: $(RUBYLIBDIR)/psych/json/stream.rb
$(RUBYLIBDIR)/psych/json/stream.rb: $(srcdir)/lib/psych/json/stream.rb $(TIMESTAMP_DIR)/.RUBYLIBDIR.-.psych.-.json.time
$(Q) $(COPY) $(srcdir)/lib/psych/json/stream.rb $(@D)
clean-rb-default::
-$(Q)$(RM) $(RUBYLIBDIR)/psych/json/stream.rb
install-rb-default: $(RUBYLIBDIR)/psych/json/tree_builder.rb
$(RUBYLIBDIR)/psych/json/tree_builder.rb: $(srcdir)/lib/psych/json/tree_builder.rb $(TIMESTAMP_DIR)/.RUBYLIBDIR.-.psych.-.json.time
$(Q) $(COPY) $(srcdir)/lib/psych/json/tree_builder.rb $(@D)
clean-rb-default::
-$(Q)$(RM) $(RUBYLIBDIR)/psych/json/tree_builder.rb
install-rb-default: $(RUBYLIBDIR)/psych/json/yaml_events.rb
$(RUBYLIBDIR)/psych/json/yaml_events.rb: $(srcdir)/lib/psych/json/yaml_events.rb $(TIMESTAMP_DIR)/.RUBYLIBDIR.-.psych.-.json.time
$(Q) $(COPY) $(srcdir)/lib/psych/json/yaml_events.rb $(@D)
clean-rb-default::
-$(Q)$(RM) $(RUBYLIBDIR)/psych/json/yaml_events.rb
pre-install-rb-default: $(TIMESTAMP_DIR)/.RUBYLIBDIR.-.psych.-.nodes.time
install-rb-default: $(RUBYLIBDIR)/psych/nodes/alias.rb
$(RUBYLIBDIR)/psych/nodes/alias.rb: $(srcdir)/lib/psych/nodes/alias.rb $(TIMESTAMP_DIR)/.RUBYLIBDIR.-.psych.-.nodes.time
$(Q) $(COPY) $(srcdir)/lib/psych/nodes/alias.rb $(@D)
clean-rb-default::
-$(Q)$(RM) $(RUBYLIBDIR)/psych/nodes/alias.rb
install-rb-default: $(RUBYLIBDIR)/psych/nodes/document.rb
$(RUBYLIBDIR)/psych/nodes/document.rb: $(srcdir)/lib/psych/nodes/document.rb $(TIMESTAMP_DIR)/.RUBYLIBDIR.-.psych.-.nodes.time
$(Q) $(COPY) $(srcdir)/lib/psych/nodes/document.rb $(@D)
clean-rb-default::
-$(Q)$(RM) $(RUBYLIBDIR)/psych/nodes/document.rb
install-rb-default: $(RUBYLIBDIR)/psych/nodes/mapping.rb
$(RUBYLIBDIR)/psych/nodes/mapping.rb: $(srcdir)/lib/psych/nodes/mapping.rb $(TIMESTAMP_DIR)/.RUBYLIBDIR.-.psych.-.nodes.time
$(Q) $(COPY) $(srcdir)/lib/psych/nodes/mapping.rb $(@D)
clean-rb-default::
-$(Q)$(RM) $(RUBYLIBDIR)/psych/nodes/mapping.rb
install-rb-default: $(RUBYLIBDIR)/psych/nodes/node.rb
$(RUBYLIBDIR)/psych/nodes/node.rb: $(srcdir)/lib/psych/nodes/node.rb $(TIMESTAMP_DIR)/.RUBYLIBDIR.-.psych.-.nodes.time
$(Q) $(COPY) $(srcdir)/lib/psych/nodes/node.rb $(@D)
clean-rb-default::
-$(Q)$(RM) $(RUBYLIBDIR)/psych/nodes/node.rb
install-rb-default: $(RUBYLIBDIR)/psych/nodes/scalar.rb
$(RUBYLIBDIR)/psych/nodes/scalar.rb: $(srcdir)/lib/psych/nodes/scalar.rb $(TIMESTAMP_DIR)/.RUBYLIBDIR.-.psych.-.nodes.time
$(Q) $(COPY) $(srcdir)/lib/psych/nodes/scalar.rb $(@D)
clean-rb-default::
-$(Q)$(RM) $(RUBYLIBDIR)/psych/nodes/scalar.rb
install-rb-default: $(RUBYLIBDIR)/psych/nodes/sequence.rb
$(RUBYLIBDIR)/psych/nodes/sequence.rb: $(srcdir)/lib/psych/nodes/sequence.rb $(TIMESTAMP_DIR)/.RUBYLIBDIR.-.psych.-.nodes.time
$(Q) $(COPY) $(srcdir)/lib/psych/nodes/sequence.rb $(@D)
clean-rb-default::
-$(Q)$(RM) $(RUBYLIBDIR)/psych/nodes/sequence.rb
install-rb-default: $(RUBYLIBDIR)/psych/nodes/stream.rb
$(RUBYLIBDIR)/psych/nodes/stream.rb: $(srcdir)/lib/psych/nodes/stream.rb $(TIMESTAMP_DIR)/.RUBYLIBDIR.-.psych.-.nodes.time
$(Q) $(COPY) $(srcdir)/lib/psych/nodes/stream.rb $(@D)
clean-rb-default::
-$(Q)$(RM) $(RUBYLIBDIR)/psych/nodes/stream.rb
pre-install-rb-default: $(TIMESTAMP_DIR)/.RUBYLIBDIR.-.psych.-.visitors.time
install-rb-default: $(RUBYLIBDIR)/psych/visitors/depth_first.rb
$(RUBYLIBDIR)/psych/visitors/depth_first.rb: $(srcdir)/lib/psych/visitors/depth_first.rb $(TIMESTAMP_DIR)/.RUBYLIBDIR.-.psych.-.visitors.time
$(Q) $(COPY) $(srcdir)/lib/psych/visitors/depth_first.rb $(@D)
clean-rb-default::
-$(Q)$(RM) $(RUBYLIBDIR)/psych/visitors/depth_first.rb
install-rb-default: $(RUBYLIBDIR)/psych/visitors/emitter.rb
$(RUBYLIBDIR)/psych/visitors/emitter.rb: $(srcdir)/lib/psych/visitors/emitter.rb $(TIMESTAMP_DIR)/.RUBYLIBDIR.-.psych.-.visitors.time
$(Q) $(COPY) $(srcdir)/lib/psych/visitors/emitter.rb $(@D)
clean-rb-default::
-$(Q)$(RM) $(RUBYLIBDIR)/psych/visitors/emitter.rb
install-rb-default: $(RUBYLIBDIR)/psych/visitors/json_tree.rb
$(RUBYLIBDIR)/psych/visitors/json_tree.rb: $(srcdir)/lib/psych/visitors/json_tree.rb $(TIMESTAMP_DIR)/.RUBYLIBDIR.-.psych.-.visitors.time
$(Q) $(COPY) $(srcdir)/lib/psych/visitors/json_tree.rb $(@D)
clean-rb-default::
-$(Q)$(RM) $(RUBYLIBDIR)/psych/visitors/json_tree.rb
install-rb-default: $(RUBYLIBDIR)/psych/visitors/to_ruby.rb
$(RUBYLIBDIR)/psych/visitors/to_ruby.rb: $(srcdir)/lib/psych/visitors/to_ruby.rb $(TIMESTAMP_DIR)/.RUBYLIBDIR.-.psych.-.visitors.time
$(Q) $(COPY) $(srcdir)/lib/psych/visitors/to_ruby.rb $(@D)
clean-rb-default::
-$(Q)$(RM) $(RUBYLIBDIR)/psych/visitors/to_ruby.rb
install-rb-default: $(RUBYLIBDIR)/psych/visitors/visitor.rb
$(RUBYLIBDIR)/psych/visitors/visitor.rb: $(srcdir)/lib/psych/visitors/visitor.rb $(TIMESTAMP_DIR)/.RUBYLIBDIR.-.psych.-.visitors.time
$(Q) $(COPY) $(srcdir)/lib/psych/visitors/visitor.rb $(@D)
clean-rb-default::
-$(Q)$(RM) $(RUBYLIBDIR)/psych/visitors/visitor.rb
install-rb-default: $(RUBYLIBDIR)/psych/visitors/yaml_tree.rb
$(RUBYLIBDIR)/psych/visitors/yaml_tree.rb: $(srcdir)/lib/psych/visitors/yaml_tree.rb $(TIMESTAMP_DIR)/.RUBYLIBDIR.-.psych.-.visitors.time
$(Q) $(COPY) $(srcdir)/lib/psych/visitors/yaml_tree.rb $(@D)
clean-rb-default::
-$(Q)$(RM) $(RUBYLIBDIR)/psych/visitors/yaml_tree.rb
pre-install-rb-default: $(TIMESTAMP_DIR)/.RUBYLIBDIR.time
install-rb-default: $(RUBYLIBDIR)/psych.rb
$(RUBYLIBDIR)/psych.rb: $(srcdir)/lib/psych.rb $(TIMESTAMP_DIR)/.RUBYLIBDIR.time
$(Q) $(COPY) $(srcdir)/lib/psych.rb $(@D)
clean-rb-default::
-$(Q)$(RM) $(RUBYLIBDIR)/psych.rb
pre-install-rb-default:
$(ECHO) installing default psych libraries
clean-rb-default::
-$(Q)$(RMDIRS) $(RUBYLIBDIR)/psych/nodes 2> /dev/null || true
-$(Q)$(RMDIRS) $(RUBYLIBDIR)/psych/handlers 2> /dev/null || true
-$(Q)$(RMDIRS) $(RUBYLIBDIR)/psych/json 2> /dev/null || true
-$(Q)$(RMDIRS) $(RUBYLIBDIR)/psych/visitors 2> /dev/null || true
-$(Q)$(RMDIRS) $(RUBYLIBDIR)/psych 2> /dev/null || true
-$(Q)$(RMDIRS) $(RUBYLIBDIR) 2> /dev/null || true
$(TIMESTAMP_DIR)/.RUBYARCHDIR.time:
$(Q) $(MAKEDIRS) $(@D) $(RUBYARCHDIR)
$(Q) $(TOUCH) $@
$(TIMESTAMP_DIR)/.RUBYLIBDIR.-.psych.time:
$(Q) $(MAKEDIRS) $(@D) $(RUBYLIBDIR)/psych
$(Q) $(TOUCH) $@
$(TIMESTAMP_DIR)/.RUBYLIBDIR.-.psych.-.handlers.time:
$(Q) $(MAKEDIRS) $(@D) $(RUBYLIBDIR)/psych/handlers
$(Q) $(TOUCH) $@
$(TIMESTAMP_DIR)/.RUBYLIBDIR.-.psych.-.json.time:
$(Q) $(MAKEDIRS) $(@D) $(RUBYLIBDIR)/psych/json
$(Q) $(TOUCH) $@
$(TIMESTAMP_DIR)/.RUBYLIBDIR.-.psych.-.nodes.time:
$(Q) $(MAKEDIRS) $(@D) $(RUBYLIBDIR)/psych/nodes
$(Q) $(TOUCH) $@
$(TIMESTAMP_DIR)/.RUBYLIBDIR.-.psych.-.visitors.time:
$(Q) $(MAKEDIRS) $(@D) $(RUBYLIBDIR)/psych/visitors
$(Q) $(TOUCH) $@
$(TIMESTAMP_DIR)/.RUBYLIBDIR.time:
$(Q) $(MAKEDIRS) $(@D) $(RUBYLIBDIR)
$(Q) $(TOUCH) $@
site-install: site-install-so site-install-rb
site-install-so: install-so
site-install-rb: install-rb
.SUFFIXES: .c .m .cc .mm .cxx .cpp .C .o
.cc.o:
$(ECHO) compiling $(<)
$(Q) $(CXX) $(INCFLAGS) $(CPPFLAGS) $(CXXFLAGS) $(COUTFLAG)$@ -c $<
.mm.o:
$(ECHO) compiling $(<)
$(Q) $(CXX) $(INCFLAGS) $(CPPFLAGS) $(CXXFLAGS) $(COUTFLAG)$@ -c $<
.cxx.o:
$(ECHO) compiling $(<)
$(Q) $(CXX) $(INCFLAGS) $(CPPFLAGS) $(CXXFLAGS) $(COUTFLAG)$@ -c $<
.cpp.o:
$(ECHO) compiling $(<)
$(Q) $(CXX) $(INCFLAGS) $(CPPFLAGS) $(CXXFLAGS) $(COUTFLAG)$@ -c $<
.C.o:
$(ECHO) compiling $(<)
$(Q) $(CXX) $(INCFLAGS) $(CPPFLAGS) $(CXXFLAGS) $(COUTFLAG)$@ -c $<
.c.o:
$(ECHO) compiling $(<)
$(Q) $(CC) $(INCFLAGS) $(CPPFLAGS) $(CFLAGS) $(COUTFLAG)$@ -c $<
.m.o:
$(ECHO) compiling $(<)
$(Q) $(CC) $(INCFLAGS) $(CPPFLAGS) $(CFLAGS) $(COUTFLAG)$@ -c $<
$(RUBYARCHDIR)/$(DLLIB): $(OBJS) Makefile $(TIMESTAMP_DIR)/.RUBYARCHDIR.time
$(ECHO) linking shared-object $(DLLIB)
-$(Q)$(RM) $(@)
$(Q) $(LDSHARED) -o $@ $(OBJS) $(LIBPATH) $(DLDFLAGS) $(LOCAL_LIBS) $(LIBS)
$(Q) $(POSTLINK)
###
$(OBJS): $(RUBY_EXTCONF_H)
$(OBJS): $(HDRS) $(ruby_headers) \
$(hdrdir)/ruby/encoding.h \
$(hdrdir)/ruby/oniguruma.h
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment