Ticket #66639: Makefile_macports

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