texplay 0.2.4-x86-mswin32-60 → 0.2.5-x86-mswin32-60
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG +94 -88
- data/README.markdown +35 -35
- data/Rakefile +66 -87
- data/examples/example_bezier.rb +1 -1
- data/examples/example_dup.rb +24 -1
- data/examples/example_lsystem.rb +59 -51
- data/examples/example_scale.rb +29 -0
- data/{src → ext/texplay}/actions.c +2 -2
- data/{src → ext/texplay}/actions.h +0 -0
- data/{src → ext/texplay}/bindings.c +0 -0
- data/{src → ext/texplay}/bindings.h +0 -0
- data/{src → ext/texplay}/cache.c +5 -2
- data/{src → ext/texplay}/cache.h +0 -0
- data/{src → ext/texplay}/compat.h +0 -0
- data/{src → ext/texplay}/extconf.rb +2 -2
- data/{src → ext/texplay}/gen_eval.c +0 -0
- data/{src → ext/texplay}/gen_eval.h +0 -0
- data/{src → ext/texplay}/object2module.c +0 -0
- data/{src → ext/texplay}/object2module.h +0 -0
- data/{src → ext/texplay}/texplay.c +1 -1
- data/{src → ext/texplay}/texplay.h +0 -0
- data/{src → ext/texplay}/utils.c +10 -7
- data/{src → ext/texplay}/utils.h +0 -0
- data/lib/{ctexplay.18.so → 1.8/texplay.so} +0 -0
- data/lib/{ctexplay.19.so → 1.9/texplay.so} +0 -0
- data/lib/texplay-contrib.rb +171 -149
- data/lib/texplay.rb +134 -134
- metadata +21 -36
- data/src/Makefile +0 -212
- data/src/TAGS +0 -286
- data/src/actions.obj +0 -0
- data/src/bindings.obj +0 -0
- data/src/cache.obj +0 -0
- data/src/ctexplay-i386-mswin32.def +0 -2
- data/src/ctexplay-i386-mswin32.exp +0 -0
- data/src/ctexplay-i386-mswin32.lib +0 -0
- data/src/ctexplay-i386-mswin32.pdb +0 -0
- data/src/ctexplay.so +0 -0
- data/src/gen_eval.obj +0 -0
- data/src/mkmf.log +0 -33
- data/src/object2module.obj +0 -0
- data/src/texplay.obj +0 -0
- data/src/utils.obj +0 -0
- data/src/vc60.pdb +0 -0
data/lib/texplay.rb
CHANGED
@@ -1,134 +1,134 @@
|
|
1
|
-
# (C) John Mair 2009, under the MIT licence
|
2
|
-
|
3
|
-
begin
|
4
|
-
require 'rubygems'
|
5
|
-
rescue LoadError
|
6
|
-
end
|
7
|
-
|
8
|
-
# include gosu first
|
9
|
-
require 'rbconfig'
|
10
|
-
require 'gosu'
|
11
|
-
|
12
|
-
module TexPlay
|
13
|
-
TEXPLAY_VERSION = "0.2.
|
14
|
-
|
15
|
-
def self::on_setup(&block)
|
16
|
-
raise "need a block" if !block
|
17
|
-
|
18
|
-
@__init_procs__ ||= []
|
19
|
-
@__init_procs__.push(block)
|
20
|
-
end
|
21
|
-
|
22
|
-
def self::setup(receiver)
|
23
|
-
if @__init_procs__ then
|
24
|
-
@__init_procs__.each do |init_proc|
|
25
|
-
receiver.instance_eval(&init_proc)
|
26
|
-
end
|
27
|
-
end
|
28
|
-
end
|
29
|
-
|
30
|
-
def self::create_blank_image(window, width, height)
|
31
|
-
Gosu::Image.new(window, EmptyImageStub.new(width, height))
|
32
|
-
end
|
33
|
-
|
34
|
-
module Colors
|
35
|
-
Red = [1, 0, 0, 1]
|
36
|
-
Green = [0, 1, 0, 1]
|
37
|
-
Blue = [0, 0, 1, 1]
|
38
|
-
Black = [0, 0, 0, 1]
|
39
|
-
White = [1, 1, 1, 1]
|
40
|
-
Grey = [0.5, 0.5, 0.5, 1]
|
41
|
-
Alpha = [0, 0, 0, 0]
|
42
|
-
Purple = [1, 0, 1, 1]
|
43
|
-
Yellow = [1, 1, 0, 1]
|
44
|
-
Cyan = [0, 1, 1, 1]
|
45
|
-
Orange = [1, 0.5, 0, 1]
|
46
|
-
Brown = [0.39, 0.26, 0.13, 1]
|
47
|
-
Turquoise = [1, 0.6, 0.8, 1]
|
48
|
-
Tyrian = [0.4, 0.007, 0.235, 1]
|
49
|
-
end
|
50
|
-
include Colors
|
51
|
-
end
|
52
|
-
|
53
|
-
# credit to philomory for this class
|
54
|
-
class EmptyImageStub
|
55
|
-
def initialize(w, h)
|
56
|
-
@w, @h = w, h
|
57
|
-
end
|
58
|
-
|
59
|
-
def to_blob
|
60
|
-
"\0" * @w * @h * 4
|
61
|
-
end
|
62
|
-
|
63
|
-
def rows
|
64
|
-
@h
|
65
|
-
end
|
66
|
-
|
67
|
-
def columns
|
68
|
-
@w
|
69
|
-
end
|
70
|
-
end
|
71
|
-
|
72
|
-
# bring in user-defined extensions to TexPlay
|
73
|
-
direc = File.dirname(__FILE__)
|
74
|
-
dlext = Config::CONFIG['DLEXT']
|
75
|
-
begin
|
76
|
-
if RUBY_VERSION && RUBY_VERSION =~ /1.9/
|
77
|
-
require "#{direc}/
|
78
|
-
else
|
79
|
-
require "#{direc}/
|
80
|
-
end
|
81
|
-
rescue LoadError => e
|
82
|
-
require "#{direc}/
|
83
|
-
end
|
84
|
-
|
85
|
-
require "#{direc}/texplay-contrib"
|
86
|
-
|
87
|
-
# monkey patching the Gosu::Image class to add image manipulation functionality
|
88
|
-
module Gosu
|
89
|
-
class Image
|
90
|
-
|
91
|
-
# bring in the TexPlay image manipulation methods
|
92
|
-
include TexPlay
|
93
|
-
|
94
|
-
class << self
|
95
|
-
alias_method :original_new, :new
|
96
|
-
|
97
|
-
def new(*args, &block)
|
98
|
-
|
99
|
-
# invoke old behaviour
|
100
|
-
obj = original_new(*args, &block)
|
101
|
-
|
102
|
-
# refresh the TexPlay image cache
|
103
|
-
if obj.width <= (TexPlay::TP_MAX_QUAD_SIZE - 2) &&
|
104
|
-
obj.height <= (TexPlay::TP_MAX_QUAD_SIZE - 2) && obj.quad_cached? then
|
105
|
-
|
106
|
-
obj.refresh_cache
|
107
|
-
end
|
108
|
-
|
109
|
-
# run custom setup
|
110
|
-
TexPlay::setup(obj)
|
111
|
-
|
112
|
-
obj.instance_variable_set(:@__window__, args.first)
|
113
|
-
|
114
|
-
# return the new image
|
115
|
-
obj
|
116
|
-
end
|
117
|
-
end
|
118
|
-
|
119
|
-
def __window__
|
120
|
-
@__window__
|
121
|
-
end
|
122
|
-
end
|
123
|
-
end
|
124
|
-
|
125
|
-
# a bug in ruby 1.8.6 rb_eval_string() means i must define this here (rather than in texplay.c)
|
126
|
-
class Proc
|
127
|
-
def __context__
|
128
|
-
eval('self', self.binding)
|
129
|
-
end
|
130
|
-
end
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
|
1
|
+
# (C) John Mair 2009, under the MIT licence
|
2
|
+
|
3
|
+
begin
|
4
|
+
require 'rubygems'
|
5
|
+
rescue LoadError
|
6
|
+
end
|
7
|
+
|
8
|
+
# include gosu first
|
9
|
+
require 'rbconfig'
|
10
|
+
require 'gosu'
|
11
|
+
|
12
|
+
module TexPlay
|
13
|
+
TEXPLAY_VERSION = "0.2.5"
|
14
|
+
|
15
|
+
def self::on_setup(&block)
|
16
|
+
raise "need a block" if !block
|
17
|
+
|
18
|
+
@__init_procs__ ||= []
|
19
|
+
@__init_procs__.push(block)
|
20
|
+
end
|
21
|
+
|
22
|
+
def self::setup(receiver)
|
23
|
+
if @__init_procs__ then
|
24
|
+
@__init_procs__.each do |init_proc|
|
25
|
+
receiver.instance_eval(&init_proc)
|
26
|
+
end
|
27
|
+
end
|
28
|
+
end
|
29
|
+
|
30
|
+
def self::create_blank_image(window, width, height)
|
31
|
+
Gosu::Image.new(window, EmptyImageStub.new(width, height))
|
32
|
+
end
|
33
|
+
|
34
|
+
module Colors
|
35
|
+
Red = [1, 0, 0, 1]
|
36
|
+
Green = [0, 1, 0, 1]
|
37
|
+
Blue = [0, 0, 1, 1]
|
38
|
+
Black = [0, 0, 0, 1]
|
39
|
+
White = [1, 1, 1, 1]
|
40
|
+
Grey = [0.5, 0.5, 0.5, 1]
|
41
|
+
Alpha = [0, 0, 0, 0]
|
42
|
+
Purple = [1, 0, 1, 1]
|
43
|
+
Yellow = [1, 1, 0, 1]
|
44
|
+
Cyan = [0, 1, 1, 1]
|
45
|
+
Orange = [1, 0.5, 0, 1]
|
46
|
+
Brown = [0.39, 0.26, 0.13, 1]
|
47
|
+
Turquoise = [1, 0.6, 0.8, 1]
|
48
|
+
Tyrian = [0.4, 0.007, 0.235, 1]
|
49
|
+
end
|
50
|
+
include Colors
|
51
|
+
end
|
52
|
+
|
53
|
+
# credit to philomory for this class
|
54
|
+
class EmptyImageStub
|
55
|
+
def initialize(w, h)
|
56
|
+
@w, @h = w, h
|
57
|
+
end
|
58
|
+
|
59
|
+
def to_blob
|
60
|
+
"\0" * @w * @h * 4
|
61
|
+
end
|
62
|
+
|
63
|
+
def rows
|
64
|
+
@h
|
65
|
+
end
|
66
|
+
|
67
|
+
def columns
|
68
|
+
@w
|
69
|
+
end
|
70
|
+
end
|
71
|
+
|
72
|
+
# bring in user-defined extensions to TexPlay
|
73
|
+
direc = File.dirname(__FILE__)
|
74
|
+
dlext = Config::CONFIG['DLEXT']
|
75
|
+
begin
|
76
|
+
if RUBY_VERSION && RUBY_VERSION =~ /1.9/
|
77
|
+
require "#{direc}/1.9/texplay.#{dlext}"
|
78
|
+
else
|
79
|
+
require "#{direc}/1.8/texplay.#{dlext}"
|
80
|
+
end
|
81
|
+
rescue LoadError => e
|
82
|
+
require "#{direc}/texplay.#{dlext}"
|
83
|
+
end
|
84
|
+
|
85
|
+
require "#{direc}/texplay-contrib"
|
86
|
+
|
87
|
+
# monkey patching the Gosu::Image class to add image manipulation functionality
|
88
|
+
module Gosu
|
89
|
+
class Image
|
90
|
+
|
91
|
+
# bring in the TexPlay image manipulation methods
|
92
|
+
include TexPlay
|
93
|
+
|
94
|
+
class << self
|
95
|
+
alias_method :original_new, :new
|
96
|
+
|
97
|
+
def new(*args, &block)
|
98
|
+
|
99
|
+
# invoke old behaviour
|
100
|
+
obj = original_new(*args, &block)
|
101
|
+
|
102
|
+
# refresh the TexPlay image cache
|
103
|
+
if obj.width <= (TexPlay::TP_MAX_QUAD_SIZE - 2) &&
|
104
|
+
obj.height <= (TexPlay::TP_MAX_QUAD_SIZE - 2) && obj.quad_cached? then
|
105
|
+
|
106
|
+
obj.refresh_cache
|
107
|
+
end
|
108
|
+
|
109
|
+
# run custom setup
|
110
|
+
TexPlay::setup(obj)
|
111
|
+
|
112
|
+
obj.instance_variable_set(:@__window__, args.first)
|
113
|
+
|
114
|
+
# return the new image
|
115
|
+
obj
|
116
|
+
end
|
117
|
+
end
|
118
|
+
|
119
|
+
def __window__
|
120
|
+
@__window__
|
121
|
+
end
|
122
|
+
end
|
123
|
+
end
|
124
|
+
|
125
|
+
# a bug in ruby 1.8.6 rb_eval_string() means i must define this here (rather than in texplay.c)
|
126
|
+
class Proc
|
127
|
+
def __context__
|
128
|
+
eval('self', self.binding)
|
129
|
+
end
|
130
|
+
end
|
131
|
+
|
132
|
+
|
133
|
+
|
134
|
+
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: texplay
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.5
|
5
5
|
platform: x86-mswin32-60
|
6
6
|
authors:
|
7
7
|
- John Mair (banisterfiend)
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2009-
|
12
|
+
date: 2009-10-06 00:00:00 +13:00
|
13
13
|
default_executable:
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
@@ -36,38 +36,22 @@ files:
|
|
36
36
|
- CHANGELOG
|
37
37
|
- lib/texplay.rb
|
38
38
|
- lib/texplay-contrib.rb
|
39
|
-
-
|
40
|
-
-
|
41
|
-
-
|
42
|
-
-
|
43
|
-
-
|
44
|
-
-
|
45
|
-
-
|
46
|
-
-
|
47
|
-
-
|
48
|
-
-
|
49
|
-
-
|
50
|
-
-
|
51
|
-
-
|
52
|
-
-
|
53
|
-
-
|
54
|
-
-
|
55
|
-
- src/gen_eval.c
|
56
|
-
- src/gen_eval.h
|
57
|
-
- src/gen_eval.obj
|
58
|
-
- src/Makefile
|
59
|
-
- src/mkmf.log
|
60
|
-
- src/object2module.c
|
61
|
-
- src/object2module.h
|
62
|
-
- src/object2module.obj
|
63
|
-
- src/TAGS
|
64
|
-
- src/texplay.c
|
65
|
-
- src/texplay.h
|
66
|
-
- src/texplay.obj
|
67
|
-
- src/utils.c
|
68
|
-
- src/utils.h
|
69
|
-
- src/utils.obj
|
70
|
-
- src/vc60.pdb
|
39
|
+
- ext/texplay/extconf.rb
|
40
|
+
- ext/texplay/actions.h
|
41
|
+
- ext/texplay/bindings.h
|
42
|
+
- ext/texplay/cache.h
|
43
|
+
- ext/texplay/compat.h
|
44
|
+
- ext/texplay/gen_eval.h
|
45
|
+
- ext/texplay/object2module.h
|
46
|
+
- ext/texplay/texplay.h
|
47
|
+
- ext/texplay/utils.h
|
48
|
+
- ext/texplay/actions.c
|
49
|
+
- ext/texplay/bindings.c
|
50
|
+
- ext/texplay/cache.c
|
51
|
+
- ext/texplay/gen_eval.c
|
52
|
+
- ext/texplay/object2module.c
|
53
|
+
- ext/texplay/texplay.c
|
54
|
+
- ext/texplay/utils.c
|
71
55
|
- examples/common.rb
|
72
56
|
- examples/example_alpha_blend.rb
|
73
57
|
- examples/example_bezier.rb
|
@@ -84,6 +68,7 @@ files:
|
|
84
68
|
- examples/example_lsystem.rb
|
85
69
|
- examples/example_melt.rb
|
86
70
|
- examples/example_polyline.rb
|
71
|
+
- examples/example_scale.rb
|
87
72
|
- examples/example_simple.rb
|
88
73
|
- examples/example_splice.rb
|
89
74
|
- examples/example_sync.rb
|
@@ -95,8 +80,8 @@ files:
|
|
95
80
|
- examples/media/sand1.png
|
96
81
|
- examples/media/sunset.png
|
97
82
|
- examples/media/texplay.png
|
98
|
-
- lib/
|
99
|
-
- lib/
|
83
|
+
- lib/1.8/texplay.so
|
84
|
+
- lib/1.9/texplay.so
|
100
85
|
has_rdoc: false
|
101
86
|
homepage: http://banisterfiend.wordpress.com/2008/08/23/texplay-an-image-manipulation-tool-for-ruby-and-gosu/
|
102
87
|
post_install_message:
|
data/src/Makefile
DELETED
@@ -1,212 +0,0 @@
|
|
1
|
-
|
2
|
-
SHELL = /bin/sh
|
3
|
-
|
4
|
-
#### Start of system configuration section. ####
|
5
|
-
|
6
|
-
srcdir = .
|
7
|
-
topdir = c:/ruby191/include/ruby-1.9.1
|
8
|
-
hdrdir = c:/ruby191/include/ruby-1.9.1
|
9
|
-
arch_hdrdir = c:/ruby191/include/ruby-1.9.1/$(arch)
|
10
|
-
VPATH = $(srcdir);$(arch_hdrdir)/ruby;$(hdrdir)/ruby
|
11
|
-
|
12
|
-
DESTDIR = c:
|
13
|
-
prefix = $(DESTDIR)/ruby191
|
14
|
-
exec_prefix = $(prefix)
|
15
|
-
bindir = $(exec_prefix)/bin
|
16
|
-
sbindir = $(exec_prefix)/sbin
|
17
|
-
libexecdir = $(exec_prefix)/libexec
|
18
|
-
datadir = $(prefix)/share
|
19
|
-
sysconfdir = $(prefix)/etc
|
20
|
-
sharedstatedir = $(DESTDIR)/etc
|
21
|
-
localstatedir = $(DESTDIR)/var
|
22
|
-
libdir = $(exec_prefix)/lib
|
23
|
-
includedir = $(prefix)/include
|
24
|
-
oldincludedir = $(DESTDIR)/usr/include
|
25
|
-
infodir = $(prefix)/info
|
26
|
-
mandir = $(prefix)/man
|
27
|
-
sitedir = $(prefix)/lib/$(RUBY_INSTALL_NAME)/site_ruby
|
28
|
-
vendordir = $(prefix)/lib/$(RUBY_INSTALL_NAME)/vendor_ruby
|
29
|
-
rubyhdrdir = $(includedir)/$(RUBY_INSTALL_NAME)-$(ruby_version)
|
30
|
-
sitehdrdir = $(rubyhdrdir)/site_ruby
|
31
|
-
vendorhdrdir = $(rubyhdrdir)/vendor_ruby
|
32
|
-
rubylibdir = $(libdir)/$(ruby_install_name)/$(ruby_version)
|
33
|
-
archdir = $(rubylibdir)/$(arch)
|
34
|
-
sitelibdir = $(sitedir)/$(ruby_version)
|
35
|
-
sitearchdir = $(sitelibdir)/$(sitearch)
|
36
|
-
vendorlibdir = $(vendordir)/$(ruby_version)
|
37
|
-
vendorarchdir = $(vendorlibdir)/$(sitearch)
|
38
|
-
|
39
|
-
CC = cl -nologo
|
40
|
-
CXX = $(CC)
|
41
|
-
LIBRUBY = $(RUBY_SO_NAME).lib
|
42
|
-
LIBRUBY_A = $(RUBY_SO_NAME)-static.lib
|
43
|
-
LIBRUBYARG_SHARED = $(LIBRUBY)
|
44
|
-
LIBRUBYARG_STATIC = $(LIBRUBY_A)
|
45
|
-
OUTFLAG = -Fe
|
46
|
-
COUTFLAG = -Fo
|
47
|
-
|
48
|
-
RUBY_EXTCONF_H =
|
49
|
-
cflags =
|
50
|
-
optflags =
|
51
|
-
debugflags =
|
52
|
-
warnflags =
|
53
|
-
CFLAGS = -MD -Zi -O2b2xg- -G6 -Zm600
|
54
|
-
INCFLAGS = -I. -I$(arch_hdrdir) -I$(hdrdir)/ruby/backward -I$(hdrdir) -I$(srcdir)
|
55
|
-
DEFS =
|
56
|
-
CPPFLAGS = -DRUBY_19
|
57
|
-
CXXFLAGS = $(CFLAGS) -MD -Zi -O2b2xg- -G6 -Zm600
|
58
|
-
ldflags = -incremental:no -debug -opt:ref -opt:icf
|
59
|
-
dldflags = -incremental:no -debug -opt:ref -opt:icf -dll $(LIBPATH)
|
60
|
-
archflag =
|
61
|
-
DLDFLAGS = $(ldflags) $(dldflags) $(archflag)
|
62
|
-
LDSHARED = cl -nologo -LD
|
63
|
-
LDSHAREDXX = $(LDSHARED)
|
64
|
-
AR = lib -nologo
|
65
|
-
EXEEXT = .exe
|
66
|
-
|
67
|
-
RUBY_INSTALL_NAME = ruby
|
68
|
-
RUBY_SO_NAME = msvcrt-ruby191
|
69
|
-
arch = i386-mswin32
|
70
|
-
sitearch = i386-msvcrt
|
71
|
-
ruby_version = 1.9.1
|
72
|
-
ruby = c:/ruby191/bin/ruby
|
73
|
-
RUBY = $(ruby:/=\)
|
74
|
-
RM = $(RUBY) -run -e rm -- -f
|
75
|
-
RM_RF = $(RUBY) -run -e rm -- -rf
|
76
|
-
RMDIRS = $(RUBY) -run -e rmdir -- -p
|
77
|
-
MAKEDIRS = @$(RUBY) -run -e mkdir -- -p
|
78
|
-
INSTALL = @$(RUBY) -run -e install -- -vp
|
79
|
-
INSTALL_PROG = $(INSTALL) -m 0755
|
80
|
-
INSTALL_DATA = $(INSTALL) -m 0644
|
81
|
-
COPY = copy > nul
|
82
|
-
|
83
|
-
#### End of system configuration section. ####
|
84
|
-
|
85
|
-
preload =
|
86
|
-
|
87
|
-
libpath = . $(libdir)
|
88
|
-
LIBPATH = -libpath:"." -libpath:"$(libdir)"
|
89
|
-
DEFFILE = $(TARGET)-$(arch).def
|
90
|
-
|
91
|
-
CLEANFILES = mkmf.log
|
92
|
-
DISTCLEANFILES = vc*.pdb $(DEFFILE)
|
93
|
-
DISTCLEANDIRS =
|
94
|
-
|
95
|
-
extout =
|
96
|
-
extout_prefix =
|
97
|
-
target_prefix =
|
98
|
-
LOCAL_LIBS =
|
99
|
-
LIBS = $(LIBRUBYARG_SHARED) glut32.lib oldnames.lib user32.lib advapi32.lib shell32.lib ws2_32.lib
|
100
|
-
SRCS = actions.c bindings.c cache.c gen_eval.c object2module.c texplay.c utils.c
|
101
|
-
OBJS = actions.obj bindings.obj cache.obj gen_eval.obj object2module.obj texplay.obj utils.obj
|
102
|
-
TARGET = ctexplay
|
103
|
-
DLLIB = $(TARGET).so
|
104
|
-
EXTSTATIC =
|
105
|
-
STATIC_LIB =
|
106
|
-
|
107
|
-
BINDIR = $(bindir)
|
108
|
-
RUBYCOMMONDIR = $(sitedir)$(target_prefix)
|
109
|
-
RUBYLIBDIR = $(sitelibdir)$(target_prefix)
|
110
|
-
RUBYARCHDIR = $(sitearchdir)$(target_prefix)
|
111
|
-
HDRDIR = $(rubyhdrdir)/ruby$(target_prefix)
|
112
|
-
ARCHHDRDIR = $(rubyhdrdir)/$(arch)/ruby$(target_prefix)
|
113
|
-
|
114
|
-
TARGET_SO = $(DLLIB)
|
115
|
-
CLEANLIBS = $(TARGET).so
|
116
|
-
CLEANOBJS = *.obj $(TARGET).exp $(TARGET).lib $(TARGET).pdb *.bak
|
117
|
-
|
118
|
-
all: $(DLLIB)
|
119
|
-
static: $(STATIC_LIB)
|
120
|
-
|
121
|
-
clean-rb-default::
|
122
|
-
clean-rb::
|
123
|
-
clean-so::
|
124
|
-
clean: clean-so clean-rb-default clean-rb
|
125
|
-
@-$(RM) $(CLEANLIBS:/=\) $(CLEANOBJS:/=\) $(CLEANFILES:/=\)
|
126
|
-
|
127
|
-
distclean-rb-default::
|
128
|
-
distclean-rb::
|
129
|
-
distclean-so::
|
130
|
-
distclean: clean distclean-so distclean-rb-default distclean-rb
|
131
|
-
@-$(RM) Makefile $(RUBY_EXTCONF_H) conftest.* mkmf.log
|
132
|
-
@-$(RM) core ruby$(EXEEXT) *~ $(DISTCLEANFILES:/=\)
|
133
|
-
@-$(RMDIRS) $(DISTCLEANDIRS:/=\)
|
134
|
-
|
135
|
-
realclean: distclean
|
136
|
-
install: install-so install-rb
|
137
|
-
|
138
|
-
install-so: $(RUBYARCHDIR)
|
139
|
-
install-so: $(RUBYARCHDIR)/$(DLLIB)
|
140
|
-
$(RUBYARCHDIR)/$(DLLIB): $(DLLIB)
|
141
|
-
$(INSTALL_PROG) $(DLLIB:/=\) $(RUBYARCHDIR:/=\)
|
142
|
-
install-rb: pre-install-rb install-rb-default
|
143
|
-
install-rb-default: pre-install-rb-default
|
144
|
-
pre-install-rb: Makefile
|
145
|
-
pre-install-rb-default: Makefile
|
146
|
-
$(RUBYARCHDIR):
|
147
|
-
$(MAKEDIRS) $@
|
148
|
-
|
149
|
-
site-install: site-install-so site-install-rb
|
150
|
-
site-install-so: install-so
|
151
|
-
site-install-rb: install-rb
|
152
|
-
|
153
|
-
.SUFFIXES: .c .m .cc .cxx .cpp .obj
|
154
|
-
|
155
|
-
{$(hdrdir)}.cc.obj:
|
156
|
-
$(CXX) $(INCFLAGS) $(CXXFLAGS) $(CPPFLAGS) $(COUTFLAG)$(@) -c -Tp$(<:\=/)
|
157
|
-
|
158
|
-
{$(topdir)}.cc.obj:
|
159
|
-
$(CXX) $(INCFLAGS) $(CXXFLAGS) $(CPPFLAGS) $(COUTFLAG)$(@) -c -Tp$(<:\=/)
|
160
|
-
|
161
|
-
{$(srcdir)}.cc.obj:
|
162
|
-
$(CXX) $(INCFLAGS) $(CXXFLAGS) $(CPPFLAGS) $(COUTFLAG)$(@) -c -Tp$(<:\=/)
|
163
|
-
|
164
|
-
.cc.obj:
|
165
|
-
$(CXX) $(INCFLAGS) $(CXXFLAGS) $(CPPFLAGS) $(COUTFLAG)$(@) -c -Tp$(<:\=/)
|
166
|
-
|
167
|
-
{$(hdrdir)}.cxx.obj:
|
168
|
-
$(CXX) $(INCFLAGS) $(CXXFLAGS) $(CPPFLAGS) $(COUTFLAG)$(@) -c -Tp$(<:\=/)
|
169
|
-
|
170
|
-
{$(topdir)}.cxx.obj:
|
171
|
-
$(CXX) $(INCFLAGS) $(CXXFLAGS) $(CPPFLAGS) $(COUTFLAG)$(@) -c -Tp$(<:\=/)
|
172
|
-
|
173
|
-
{$(srcdir)}.cxx.obj:
|
174
|
-
$(CXX) $(INCFLAGS) $(CXXFLAGS) $(CPPFLAGS) $(COUTFLAG)$(@) -c -Tp$(<:\=/)
|
175
|
-
|
176
|
-
.cxx.obj:
|
177
|
-
$(CXX) $(INCFLAGS) $(CXXFLAGS) $(CPPFLAGS) $(COUTFLAG)$(@) -c -Tp$(<:\=/)
|
178
|
-
|
179
|
-
{$(hdrdir)}.cpp.obj:
|
180
|
-
$(CXX) $(INCFLAGS) $(CXXFLAGS) $(CPPFLAGS) $(COUTFLAG)$(@) -c -Tp$(<:\=/)
|
181
|
-
|
182
|
-
{$(topdir)}.cpp.obj:
|
183
|
-
$(CXX) $(INCFLAGS) $(CXXFLAGS) $(CPPFLAGS) $(COUTFLAG)$(@) -c -Tp$(<:\=/)
|
184
|
-
|
185
|
-
{$(srcdir)}.cpp.obj:
|
186
|
-
$(CXX) $(INCFLAGS) $(CXXFLAGS) $(CPPFLAGS) $(COUTFLAG)$(@) -c -Tp$(<:\=/)
|
187
|
-
|
188
|
-
.cpp.obj:
|
189
|
-
$(CXX) $(INCFLAGS) $(CXXFLAGS) $(CPPFLAGS) $(COUTFLAG)$(@) -c -Tp$(<:\=/)
|
190
|
-
|
191
|
-
{$(hdrdir)}.c.obj:
|
192
|
-
$(CC) $(INCFLAGS) $(CFLAGS) $(CPPFLAGS) $(COUTFLAG)$(@) -c -Tc$(<:\=/)
|
193
|
-
|
194
|
-
{$(topdir)}.c.obj:
|
195
|
-
$(CC) $(INCFLAGS) $(CFLAGS) $(CPPFLAGS) $(COUTFLAG)$(@) -c -Tc$(<:\=/)
|
196
|
-
|
197
|
-
{$(srcdir)}.c.obj:
|
198
|
-
$(CC) $(INCFLAGS) $(CFLAGS) $(CPPFLAGS) $(COUTFLAG)$(@) -c -Tc$(<:\=/)
|
199
|
-
|
200
|
-
.c.obj:
|
201
|
-
$(CC) $(INCFLAGS) $(CFLAGS) $(CPPFLAGS) $(COUTFLAG)$(@) -c -Tc$(<:\=/)
|
202
|
-
|
203
|
-
$(DLLIB): $(DEFFILE) $(OBJS) Makefile
|
204
|
-
@-$(RM) $(@:/=\)
|
205
|
-
$(LDSHARED) -Fe$(@) $(OBJS) $(LIBS) $(LOCAL_LIBS) -link $(DLDFLAGS) -implib:$(*F:.so=)-$(arch).lib -pdb:$(*F:.so=)-$(arch).pdb -def:$(DEFFILE)
|
206
|
-
|
207
|
-
|
208
|
-
|
209
|
-
$(DEFFILE):
|
210
|
-
$(RUBY) -e "puts 'EXPORTS', 'Init_$(TARGET)'" > $@
|
211
|
-
|
212
|
-
$(OBJS): {.;$(VPATH)}$(hdrdir)/ruby.h {.;$(VPATH)}$(hdrdir)/ruby/defines.h $(arch_hdrdir)/ruby/config.h
|