1 | |
---|
2 | SHELL = /bin/sh |
---|
3 | |
---|
4 | # V=0 quiet, V=1 verbose. other values don't work. |
---|
5 | V = 0 |
---|
6 | V0 = $(V:0=) |
---|
7 | Q1 = $(V:1=) |
---|
8 | Q = $(Q1:0=@) |
---|
9 | ECHO1 = $(V:1=@ :) |
---|
10 | ECHO = $(ECHO1:0=@ echo) |
---|
11 | NULLCMD = : |
---|
12 | |
---|
13 | #### Start of system configuration section. #### |
---|
14 | top_srcdir = $(topdir)/. |
---|
15 | srcdir = $(top_srcdir)/ext/-test-/RUBY_ALIGNOF |
---|
16 | topdir = ../../.. |
---|
17 | hdrdir = $(top_srcdir)/include |
---|
18 | arch_hdrdir = $(extout)/include/$(arch) |
---|
19 | PATH_SEPARATOR = : |
---|
20 | VPATH = $(srcdir):$(arch_hdrdir)/ruby:$(hdrdir)/ruby |
---|
21 | RUBYLIB = |
---|
22 | RUBYOPT = - |
---|
23 | prefix = $(DESTDIR)/opt/local |
---|
24 | rubysitearchprefix = $(rubylibprefix)/$(sitearch) |
---|
25 | rubyarchprefix = $(rubylibprefix)/$(arch) |
---|
26 | rubylibprefix = $(exec_prefix)/lib/ruby3.1 |
---|
27 | exec_prefix = $(prefix) |
---|
28 | vendorarchhdrdir = $(vendorhdrdir)/$(sitearch) |
---|
29 | sitearchhdrdir = $(sitehdrdir)/$(sitearch) |
---|
30 | rubyarchhdrdir = $(rubyhdrdir)/$(arch) |
---|
31 | vendorhdrdir = $(rubyhdrdir)/vendor_ruby |
---|
32 | sitehdrdir = $(rubyhdrdir)/site_ruby |
---|
33 | rubyhdrdir = $(DESTDIR)/opt/local/include/ruby-3.1.3 |
---|
34 | vendorarchdir = $(vendorlibdir)/$(sitearch) |
---|
35 | vendorlibdir = $(vendordir)/$(ruby_version) |
---|
36 | vendordir = $(rubylibprefix)/vendor_ruby |
---|
37 | sitearchdir = $(sitelibdir)/$(sitearch) |
---|
38 | sitelibdir = $(sitedir)/$(ruby_version) |
---|
39 | sitedir = $(rubylibprefix)/site_ruby |
---|
40 | rubyarchdir = $(rubylibdir)/$(arch) |
---|
41 | rubylibdir = $(rubylibprefix)/$(ruby_version) |
---|
42 | sitearchincludedir = $(includedir)/$(sitearch) |
---|
43 | archincludedir = $(includedir)/$(arch) |
---|
44 | sitearchlibdir = $(libdir)/$(sitearch) |
---|
45 | archlibdir = $(libdir)/$(arch) |
---|
46 | ridir = $(datarootdir)/$(RI_BASE_NAME) |
---|
47 | mandir = $(DESTDIR)/opt/local/share/man |
---|
48 | localedir = $(datarootdir)/locale |
---|
49 | libdir = $(exec_prefix)/lib |
---|
50 | psdir = $(docdir) |
---|
51 | pdfdir = $(docdir) |
---|
52 | dvidir = $(docdir) |
---|
53 | htmldir = $(docdir) |
---|
54 | infodir = $(datarootdir)/info |
---|
55 | docdir = $(datarootdir)/doc/$(PACKAGE) |
---|
56 | oldincludedir = $(DESTDIR)/usr/include |
---|
57 | includedir = $(SDKROOT)$(prefix)/include |
---|
58 | runstatedir = $(localstatedir)/run |
---|
59 | localstatedir = $(prefix)/var |
---|
60 | sharedstatedir = $(prefix)/com |
---|
61 | sysconfdir = $(prefix)/etc |
---|
62 | datadir = $(datarootdir) |
---|
63 | datarootdir = $(prefix)/share |
---|
64 | libexecdir = $(exec_prefix)/libexec |
---|
65 | sbindir = $(exec_prefix)/sbin |
---|
66 | bindir = $(exec_prefix)/bin |
---|
67 | archdir = $(rubyarchdir) |
---|
68 | |
---|
69 | |
---|
70 | CC_WRAPPER = |
---|
71 | CC = /opt/local/bin/clang-mp-14 |
---|
72 | CXX = /opt/local/bin/clang++-mp-14 |
---|
73 | LIBRUBY = $(LIBRUBY_SO) |
---|
74 | LIBRUBY_A = lib$(RUBY_SO_NAME)-static.a |
---|
75 | LIBRUBYARG_SHARED = -l$(RUBY_SO_NAME) |
---|
76 | LIBRUBYARG_STATIC = -l$(RUBY_SO_NAME)-static -framework Security -framework CoreFoundation $(MAINLIBS) |
---|
77 | empty = |
---|
78 | OUTFLAG = -o $(empty) |
---|
79 | COUTFLAG = -o $(empty) |
---|
80 | CSRCFLAG = $(empty) |
---|
81 | |
---|
82 | RUBY_EXTCONF_H = extconf.h |
---|
83 | cflags = -fdeclspec $(optflags) $(debugflags) $(warnflags) |
---|
84 | cxxflags = |
---|
85 | optflags = -O3 -fno-fast-math |
---|
86 | debugflags = -ggdb3 |
---|
87 | warnflags = -Wall -Wextra -Wdeprecated-declarations -Wdivision-by-zero -Wimplicit-function-declaration -Wimplicit-int -Wmisleading-indentation -Wpointer-arith -Wshorten-64-to-32 -Wwrite-strings -Wold-style-definition -Wmissing-noreturn -Wno-cast-function-type -Wno-constant-logical-operand -Wno-long-long -Wno-missing-field-initializers -Wno-overlength-strings -Wno-parentheses-equality -Wno-self-assign -Wno-tautological-compare -Wno-unused-parameter -Wno-unused-value -Wunused-variable -Wextra-tokens -Wundef |
---|
88 | cppflags = |
---|
89 | CCDLFLAGS = -fno-common |
---|
90 | CFLAGS = $(CCDLFLAGS) -pipe -I/opt/local/libexec/openssl11/include -Os $(cflags) -fno-common $(ARCH_FLAG) |
---|
91 | INCFLAGS = -I. -I$(arch_hdrdir) -I$(hdrdir) -I$(srcdir) |
---|
92 | DEFS = |
---|
93 | CPPFLAGS = -DRUBY_EXTCONF_H=\"$(RUBY_EXTCONF_H)\" -isystem/opt/local/include/LegacySupport -I/opt/local/libexec/openssl11/include -isystem/opt/local/include -I/opt/local/include -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -D_DARWIN_UNLIMITED_SELECT -D_REENTRANT $(DEFS) $(cppflags) |
---|
94 | CXXFLAGS = $(CCDLFLAGS) -pipe -I/opt/local/libexec/openssl11/include -Os -stdlib=libc++ -fdeclspec $(ARCH_FLAG) |
---|
95 | ldflags = -L. -L/opt/local/libexec/openssl11/lib -Wl,-headerpad_max_install_names -L/opt/local/lib -lMacportsLegacySupport -fstack-protector-strong -L/opt/local/lib -L/usr/local/lib -L/opt/local/libexec/llvm-14/lib/clang/14.0.6/lib |
---|
96 | dldflags = -L/opt/local/libexec/openssl11/lib -Wl,-headerpad_max_install_names -L/opt/local/lib -lMacportsLegacySupport -arch x86_64 -L/opt/local/lib -Wl,-multiply_defined,suppress -Wl,-undefined,dynamic_lookup $(LIBRUBYARG_SHARED) |
---|
97 | ARCH_FLAG = -arch x86_64 |
---|
98 | DLDFLAGS = $(ldflags) $(dldflags) $(ARCH_FLAG) |
---|
99 | LDSHARED = $(CC) -dynamic -bundle |
---|
100 | LDSHAREDXX = $(CXX) -dynamic -bundle |
---|
101 | AR = /opt/local/bin/ar |
---|
102 | EXEEXT = |
---|
103 | |
---|
104 | RUBY_INSTALL_NAME = $(RUBY_BASE_NAME)3.1 |
---|
105 | RUBY_SO_NAME = ruby.3.1 |
---|
106 | RUBYW_INSTALL_NAME = |
---|
107 | RUBY_VERSION_NAME = $(RUBY_BASE_NAME)-$(ruby_version) |
---|
108 | RUBYW_BASE_NAME = rubyw |
---|
109 | RUBY_BASE_NAME = ruby |
---|
110 | |
---|
111 | arch = x86_64-darwin13 |
---|
112 | sitearch = $(arch) |
---|
113 | ruby_version = 3.1.0 |
---|
114 | ruby = $(topdir)/miniruby -I'$(topdir)' -I'$(top_srcdir)/lib' -I'$(extout)/$(arch)' -I'$(extout)/common' |
---|
115 | RUBY = $(ruby) |
---|
116 | BUILTRUBY = $(topdir)/miniruby |
---|
117 | ruby_headers = $(hdrdir)/ruby.h $(hdrdir)/ruby/backward.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) |
---|
118 | |
---|
119 | RM = rm -f |
---|
120 | RM_RF = rm -fr |
---|
121 | RMDIRS = rmdir -p |
---|
122 | MAKEDIRS = /opt/local/bin/gmkdir -p |
---|
123 | INSTALL = /usr/bin/install -c |
---|
124 | INSTALL_PROG = $(INSTALL) -m 0755 |
---|
125 | INSTALL_DATA = $(INSTALL) -m 644 |
---|
126 | COPY = cp |
---|
127 | TOUCH = exit > |
---|
128 | |
---|
129 | #### End of system configuration section. #### |
---|
130 | |
---|
131 | preload = |
---|
132 | EXTSO = |
---|
133 | libpath = . $(topdir) /opt/local/lib |
---|
134 | LIBPATH = -L. -L$(topdir) -L/opt/local/lib |
---|
135 | DEFFILE = |
---|
136 | |
---|
137 | CLEANFILES = mkmf.log |
---|
138 | DISTCLEANFILES = |
---|
139 | DISTCLEANDIRS = |
---|
140 | |
---|
141 | extout = $(topdir)/.ext |
---|
142 | extout_prefix = $(extout)$(target_prefix)/ |
---|
143 | target_prefix = /-test- |
---|
144 | LOCAL_LIBS = |
---|
145 | LIBS = $(LIBRUBYARG_SHARED) |
---|
146 | ORIG_SRCS = |
---|
147 | SRCS = $(ORIG_SRCS) |
---|
148 | OBJS = |
---|
149 | HDRS = |
---|
150 | LOCAL_HDRS = |
---|
151 | TARGET = |
---|
152 | TARGET_NAME = |
---|
153 | TARGET_ENTRY = Init_$(TARGET_NAME) |
---|
154 | DLLIB = |
---|
155 | EXTSTATIC = |
---|
156 | STATIC_LIB = |
---|
157 | |
---|
158 | TIMESTAMP_DIR = $(extout)/.timestamp |
---|
159 | BINDIR = $(extout)/bin |
---|
160 | RUBYCOMMONDIR = $(extout)/common |
---|
161 | RUBYLIBDIR = $(RUBYCOMMONDIR)$(target_prefix) |
---|
162 | RUBYARCHDIR = $(extout)/$(arch)$(target_prefix) |
---|
163 | HDRDIR = $(extout)/include/ruby$(target_prefix) |
---|
164 | ARCHHDRDIR = $(extout)/include/$(arch)/ruby$(target_prefix) |
---|
165 | TARGET_SO_DIR = $(RUBYARCHDIR)/ |
---|
166 | TARGET_SO = $(TARGET_SO_DIR)$(DLLIB) |
---|
167 | CLEANLIBS = $(TARGET_SO).dSYM |
---|
168 | CLEANOBJS = *.o *.bak |
---|
169 | |
---|
170 | all: install |
---|
171 | static: all |
---|
172 | .PHONY: all install static install-so install-rb |
---|
173 | .PHONY: clean clean-so clean-static clean-rb |
---|
174 | |
---|
175 | clean-static:: |
---|
176 | clean-rb-default:: |
---|
177 | clean-rb:: |
---|
178 | clean-so:: |
---|
179 | clean: clean-so clean-static clean-rb-default clean-rb |
---|
180 | -$(Q)$(RM_RF) $(CLEANLIBS) $(CLEANOBJS) $(CLEANFILES) .*.time |
---|
181 | |
---|
182 | distclean-rb-default:: |
---|
183 | distclean-rb:: |
---|
184 | distclean-so:: |
---|
185 | distclean-static:: |
---|
186 | distclean: clean distclean-so distclean-static distclean-rb-default distclean-rb |
---|
187 | -$(Q)$(RM) Makefile $(RUBY_EXTCONF_H) conftest.* mkmf.log exts.mk |
---|
188 | -$(Q)$(RM) core ruby$(EXEEXT) *~ $(DISTCLEANFILES) |
---|
189 | -$(Q)$(RMDIRS) $(DISTCLEANDIRS) 2> /dev/null || true |
---|
190 | |
---|
191 | realclean: distclean |
---|
192 | install: install-so install-rb |
---|
193 | |
---|
194 | install-so: Makefile |
---|
195 | install-rb: pre-install-rb do-install-rb install-rb-default |
---|
196 | install-rb-default: pre-install-rb-default do-install-rb-default |
---|
197 | pre-install-rb: Makefile |
---|
198 | pre-install-rb-default: Makefile |
---|
199 | do-install-rb: |
---|
200 | do-install-rb-default: |
---|
201 | pre-install-rb-default: |
---|
202 | @$(NULLCMD) |
---|
203 | |
---|
204 | site-install: site-install-so site-install-rb |
---|
205 | site-install-so: install-so |
---|
206 | site-install-rb: install-rb |
---|
207 | |
---|