Ticket #323: Makefile

File Makefile, 3.9 KB (added by cheba, 16 years ago)

Makefile for extension generated bu Ruby 1.9.1 RC1 itself (using mkmf facilities)

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