/[hyperestraier_wrappers]/trunk/ruby/Makefile
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Contents of /trunk/ruby/Makefile

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2 - (show annotations)
Sat Sep 3 18:04:41 2005 UTC (16 years, 2 months ago) by dpavlin
File size: 3111 byte(s)
make working copy
1
2 SHELL = /bin/sh
3
4 #### Start of system configuration section. ####
5
6 srcdir = .
7 topdir = /usr/local/lib/ruby/1.8/i686-linux
8 hdrdir = $(topdir)
9 VPATH = $(srcdir)
10 prefix = $(DESTDIR)/usr/local
11 exec_prefix = $(prefix)
12 sitedir = $(prefix)/lib/ruby/site_ruby
13 rubylibdir = $(libdir)/ruby/$(ruby_version)
14 builddir = $(ac_builddir)
15 archdir = $(rubylibdir)/$(arch)
16 sbindir = $(exec_prefix)/sbin
17 compile_dir = $(DESTDIR)/home/mikio/ruby-1.8.2
18 datadir = $(prefix)/share
19 includedir = $(prefix)/include
20 infodir = $(prefix)/info
21 top_builddir = $(ac_top_builddir)
22 sysconfdir = $(prefix)/etc
23 mandir = $(prefix)/man
24 libdir = $(exec_prefix)/lib
25 sharedstatedir = $(prefix)/com
26 oldincludedir = $(DESTDIR)/usr/include
27 sitearchdir = $(sitelibdir)/$(sitearch)
28 bindir = $(exec_prefix)/bin
29 localstatedir = $(prefix)/var
30 sitelibdir = $(sitedir)/$(ruby_version)
31 libexecdir = $(exec_prefix)/libexec
32
33 CC = gcc
34 LIBRUBY = $(LIBRUBY_A)
35 LIBRUBY_A = lib$(RUBY_SO_NAME)-static.a
36 LIBRUBYARG_SHARED = -Wl,-R -Wl,$(libdir) -L$(libdir) -L.
37 LIBRUBYARG_STATIC = -l$(RUBY_SO_NAME)-static
38
39 CFLAGS = -fPIC -g -O2
40 CPPFLAGS = -I. -I$(topdir) -I$(hdrdir) -I$(srcdir) -DHAVE_ESTRAIER_H
41 CXXFLAGS = $(CFLAGS)
42 DLDFLAGS =
43 LDSHARED = $(CC) -shared
44 AR = ar
45 EXEEXT =
46
47 RUBY_INSTALL_NAME = ruby
48 RUBY_SO_NAME = $(RUBY_INSTALL_NAME)
49 arch = i686-linux
50 sitearch = i686-linux
51 ruby_version = 1.8
52 ruby = /usr/local/bin/ruby
53 RUBY = $(ruby)
54 RM = $(RUBY) -run -e rm -- -f
55 MAKEDIRS = $(RUBY) -run -e mkdir -- -p
56 INSTALL_PROG = $(RUBY) -run -e install -- -vpm 0755
57 INSTALL_DATA = $(RUBY) -run -e install -- -vpm 0644
58
59 #### End of system configuration section. ####
60
61
62 LIBPATH = -L'$(libdir)' -Wl,-R'$(libdir)'
63 DEFFILE =
64
65 CLEANFILES =
66 DISTCLEANFILES =
67
68 target_prefix =
69 LOCAL_LIBS =
70 LIBS = -lestraier -lestraier -lresolv -lnsl -lpthread -lqdbm -lz -liconv -lm -lc -lstdc++ -ldl -lcrypt -lm -lc
71 OBJS = HyperEstraier_wrap.o HyperEstraierWrapper.o
72 TARGET = HyperEstraier
73 DLLIB = $(TARGET).so
74 STATIC_LIB = $(TARGET).a
75
76 RUBYCOMMONDIR = $(sitedir)$(target_prefix)
77 RUBYLIBDIR = $(sitelibdir)$(target_prefix)
78 RUBYARCHDIR = $(sitearchdir)$(target_prefix)
79
80 CLEANLIBS = "$(TARGET).{lib,exp,il?,tds,map}" $(DLLIB)
81 CLEANOBJS = "*.{o,a,s[ol],pdb,bak}"
82
83 all: $(DLLIB)
84 static: $(STATIC_LIB)
85
86 clean:
87 @$(RM) $(CLEANLIBS) $(CLEANOBJS) $(CLEANFILES)
88
89 distclean: clean
90 @$(RM) Makefile extconf.h conftest.* mkmf.log
91 @$(RM) core ruby$(EXEEXT) *~ $(DISTCLEANFILES)
92
93 realclean: distclean
94 install: $(RUBYARCHDIR)
95 install: $(RUBYARCHDIR)/$(DLLIB)
96 $(RUBYARCHDIR)/$(DLLIB): $(DLLIB) $(RUBYARCHDIR)
97 @$(INSTALL_PROG) $(DLLIB) $(RUBYARCHDIR)
98 $(RUBYARCHDIR):
99 @$(MAKEDIRS) $(RUBYARCHDIR)
100
101 site-install: install
102
103 .SUFFIXES: .c .cc .m .cxx .cpp .C .o
104
105 .cc.o:
106 $(CXX) $(CXXFLAGS) $(CPPFLAGS) -c $<
107
108 .cpp.o:
109 $(CXX) $(CXXFLAGS) $(CPPFLAGS) -c $<
110
111 .cxx.o:
112 $(CXX) $(CXXFLAGS) $(CPPFLAGS) -c $<
113
114 .C.o:
115 $(CXX) $(CXXFLAGS) $(CPPFLAGS) -c $<
116
117 .c.o:
118 $(CC) $(CFLAGS) $(CPPFLAGS) -c $<
119
120 $(DLLIB): $(OBJS)
121 @-$(RM) $@
122 $(LDSHARED) $(DLDFLAGS) $(LIBPATH) -o $(DLLIB) $(OBJS) $(LOCAL_LIBS) $(LIBS)
123
124 $(STATIC_LIB): $(OBJS)
125 $(AR) cru $@ $(OBJS)
126 @-ranlib $(DLLIB) 2> /dev/null || true
127

  ViewVC Help
Powered by ViewVC 1.1.26