1 |
|
---|
2 | SHELL = /bin/sh
|
---|
3 |
|
---|
4 | #### Start of system configuration section. ####
|
---|
5 |
|
---|
6 | srcdir = .
|
---|
7 | topdir = /usr/include/ruby19-1.9.1
|
---|
8 | hdrdir = /usr/include/ruby19-1.9.1
|
---|
9 | arch_hdrdir = /usr/include/ruby19-1.9.1/$(arch)
|
---|
10 | VPATH = $(srcdir):$(arch_hdrdir)/ruby:$(hdrdir)/ruby
|
---|
11 | prefix = $(DESTDIR)/usr
|
---|
12 | exec_prefix = $(prefix)
|
---|
13 | vendorhdrdir = $(rubyhdrdir)/vendor_ruby
|
---|
14 | sitehdrdir = $(rubyhdrdir)/site_ruby
|
---|
15 | rubyhdrdir = $(includedir)/$(RUBY_INSTALL_NAME)-$(ruby_version)
|
---|
16 | vendordir = $(libdir)/$(RUBY_INSTALL_NAME)/vendor_ruby
|
---|
17 | sitedir = $(DESTDIR)/usr/lib/ruby/site_ruby
|
---|
18 | mandir = $(DESTDIR)/usr/share/man
|
---|
19 | localedir = $(datarootdir)/locale
|
---|
20 | libdir = $(exec_prefix)/lib
|
---|
21 | psdir = $(docdir)
|
---|
22 | pdfdir = $(docdir)
|
---|
23 | dvidir = $(docdir)
|
---|
24 | htmldir = $(docdir)
|
---|
25 | infodir = $(DESTDIR)/usr/share/info
|
---|
26 | docdir = $(datarootdir)/doc/$(PACKAGE)
|
---|
27 | oldincludedir = $(DESTDIR)/usr/include
|
---|
28 | includedir = $(prefix)/include
|
---|
29 | localstatedir = $(DESTDIR)/var/lib
|
---|
30 | sharedstatedir = $(prefix)/com
|
---|
31 | sysconfdir = $(DESTDIR)/etc
|
---|
32 | datadir = $(DESTDIR)/usr/share
|
---|
33 | datarootdir = $(prefix)/share
|
---|
34 | libexecdir = $(exec_prefix)/libexec
|
---|
35 | sbindir = $(exec_prefix)/sbin
|
---|
36 | bindir = $(exec_prefix)/bin
|
---|
37 | rubylibdir = $(libdir)/$(ruby_install_name)/$(ruby_version)
|
---|
38 | archdir = $(rubylibdir)/$(arch)
|
---|
39 | sitelibdir = $(sitedir)/$(ruby_version)
|
---|
40 | sitearchdir = $(sitelibdir)/$(sitearch)
|
---|
41 | vendorlibdir = $(vendordir)/$(ruby_version)
|
---|
42 | vendorarchdir = $(vendorlibdir)/$(sitearch)
|
---|
43 |
|
---|
44 | CC = i686-pc-linux-gnu-gcc
|
---|
45 | CXX = i686-pc-linux-gnu-g++
|
---|
46 | LIBRUBY = $(LIBRUBY_SO)
|
---|
47 | LIBRUBY_A = lib$(RUBY_SO_NAME)-static.a
|
---|
48 | LIBRUBYARG_SHARED = -Wl,-R -Wl,$(libdir) -L$(libdir) -l$(RUBY_SO_NAME)
|
---|
49 | LIBRUBYARG_STATIC = -Wl,-R -Wl,$(libdir) -L$(libdir) -l$(RUBY_SO_NAME)-static
|
---|
50 | OUTFLAG = -o
|
---|
51 | COUTFLAG = -o
|
---|
52 |
|
---|
53 | RUBY_EXTCONF_H =
|
---|
54 | cflags = $(optflags) $(debugflags) $(warnflags)
|
---|
55 | optflags = -O2
|
---|
56 | debugflags = -g
|
---|
57 | warnflags = -Wall -Wno-parentheses
|
---|
58 | CFLAGS = -fPIC -march=native -msse3 -mfpmath=sse -O2 -pipe -fno-strict-aliasing $(cflags) -fPIC
|
---|
59 | INCFLAGS = -I. -I$(arch_hdrdir) -I$(hdrdir)/ruby/backward -I$(hdrdir) -I$(srcdir)
|
---|
60 | DEFS = -D_FILE_OFFSET_BITS=64
|
---|
61 | CPPFLAGS = $(DEFS) $(cppflags)
|
---|
62 | CXXFLAGS = $(CFLAGS) -march=native -msse3 -mfpmath=sse -O2 -pipe -fno-strict-aliasing $(cxxflags)
|
---|
63 | ldflags = -L. -Wl,-O1 -rdynamic -Wl,-export-dynamic
|
---|
64 | dldflags =
|
---|
65 | archflag =
|
---|
66 | DLDFLAGS = $(ldflags) $(dldflags) $(archflag)
|
---|
67 | LDSHARED = $(CC) -shared
|
---|
68 | LDSHAREDXX = $(CXX) -shared
|
---|
69 | AR = i686-pc-linux-gnu-ar
|
---|
70 | EXEEXT =
|
---|
71 |
|
---|
72 | RUBY_INSTALL_NAME = ruby19
|
---|
73 | RUBY_SO_NAME = ruby19
|
---|
74 | arch = i686-linux
|
---|
75 | sitearch = i686-linux
|
---|
76 | ruby_version = 1.9.1
|
---|
77 | ruby = /usr/bin/ruby19
|
---|
78 | RUBY = $(ruby)
|
---|
79 | RM = rm -f
|
---|
80 | RM_RF = $(RUBY) -run -e rm -- -rf
|
---|
81 | MAKEDIRS = mkdir -p
|
---|
82 | INSTALL = /usr/bin/install -c
|
---|
83 | INSTALL_PROG = $(INSTALL) -m 0755
|
---|
84 | INSTALL_DATA = $(INSTALL) -m 644
|
---|
85 | COPY = cp
|
---|
86 |
|
---|
87 | #### End of system configuration section. ####
|
---|
88 |
|
---|
89 | preload =
|
---|
90 |
|
---|
91 | libpath = . $(libdir)
|
---|
92 | LIBPATH = -L. -L$(libdir) -Wl,-R$(libdir)
|
---|
93 | DEFFILE =
|
---|
94 |
|
---|
95 | CLEANFILES = mkmf.log
|
---|
96 | DISTCLEANFILES =
|
---|
97 |
|
---|
98 | extout =
|
---|
99 | extout_prefix =
|
---|
100 | target_prefix =
|
---|
101 | LOCAL_LIBS =
|
---|
102 | LIBS = $(LIBRUBYARG_SHARED) -lpthread -lrt -ldl -lcrypt -lm -lc
|
---|
103 | SRCS =
|
---|
104 | OBJS =
|
---|
105 | TARGET =
|
---|
106 | DLLIB =
|
---|
107 | EXTSTATIC =
|
---|
108 | STATIC_LIB =
|
---|
109 |
|
---|
110 | BINDIR = $(bindir)
|
---|
111 | RUBYCOMMONDIR = $(sitedir)$(target_prefix)
|
---|
112 | RUBYLIBDIR = $(sitelibdir)$(target_prefix)
|
---|
113 | RUBYARCHDIR = $(sitearchdir)$(target_prefix)
|
---|
114 | HDRDIR = $(rubyhdrdir)/ruby$(target_prefix)
|
---|
115 | ARCHHDRDIR = $(rubyhdrdir)/$(arch)/ruby$(target_prefix)
|
---|
116 |
|
---|
117 | TARGET_SO = $(DLLIB)
|
---|
118 | CLEANLIBS = $(TARGET).so
|
---|
119 | CLEANOBJS = *.o *.bak
|
---|
120 |
|
---|
121 | all: Makefile
|
---|
122 | static: $(STATIC_LIB)
|
---|
123 |
|
---|
124 | clean:
|
---|
125 | @-$(RM) $(CLEANLIBS) $(CLEANOBJS) $(CLEANFILES)
|
---|
126 |
|
---|
127 | distclean: clean
|
---|
128 | @-$(RM) Makefile $(RUBY_EXTCONF_H) conftest.* mkmf.log
|
---|
129 | @-$(RM) core ruby$(EXEEXT) *~ $(DISTCLEANFILES)
|
---|
130 |
|
---|
131 | realclean: distclean
|
---|
132 | install: install-so install-rb
|
---|
133 |
|
---|
134 | install-so: Makefile
|
---|
135 | install-rb: pre-install-rb install-rb-default
|
---|
136 | install-rb-default: pre-install-rb-default
|
---|
137 | pre-install-rb: Makefile
|
---|
138 | pre-install-rb-default: Makefile
|
---|
139 |
|
---|
140 | site-install: site-install-so site-install-rb
|
---|
141 | site-install-so: install-so
|
---|
142 | site-install-rb: install-rb
|
---|
143 |
|
---|