-
Notifications
You must be signed in to change notification settings - Fork 1
/
MakefileRuby.in
72 lines (57 loc) · 2.14 KB
/
MakefileRuby.in
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
RUBY = ruby
export RUBY
SWIG = swig
export SWIG
ifeq ($(ARCH),i686-darwin10)
DYNAMIC_EXT = bundle
else
DYNAMIC_EXT = so
endif
export DYNAMIC_EXT
.PHONY: RubyExtension MeshDBRuby MeshGenRuby MeshGLRuby RevocapIORuby ShapeRuby RubyUnitTest RubyClean
MeshDBRuby: $(LIBDIR)/$(ARCH)/RevocapMesh.$(DYNAMIC_EXT)
$(LIBDIR)/$(ARCH)/RevocapMesh.$(DYNAMIC_EXT): Common Geometry Matrix MeshDB
$(MAKE) RubyInterface -C MeshDBRuby -f MakefileSwig
$(MAKE) Makefile -C MeshDBRuby -f MakefileSwig
$(MAKE) -C MeshDBRuby
$(MAKE) install -C MeshDBRuby -f MakefileSwig
MeshGenRuby: $(LIBDIR)/$(ARCH)/RevocapMeshGen.$(DYNAMIC_EXT)
$(LIBDIR)/$(ARCH)/RevocapMeshGen.$(DYNAMIC_EXT): MeshGen
$(MAKE) RubyInterface -C MeshGenRuby -f MakefileSwig
$(MAKE) Makefile -C MeshGenRuby -f MakefileSwig
$(MAKE) -C MeshGenRuby
$(MAKE) install -C MeshGenRuby -f MakefileSwig
MeshGLRuby: $(LIBDIR)/$(ARCH)/RevocapGL.$(DYNAMIC_EXT)
$(LIBDIR)/$(ARCH)/RevocapGL.$(DYNAMIC_EXT): MeshGL
$(MAKE) RubyInterface -C MeshGLRuby -f MakefileSwig
$(MAKE) Makefile -C MeshGLRuby -f MakefileSwig
$(MAKE) -C MeshGLRuby
$(MAKE) install -C MeshGLRuby -f MakefileSwig
RevocapIORuby: $(LIBDIR)/$(ARCH)/RevocapIO.$(DYNAMIC_EXT)
$(LIBDIR)/$(ARCH)/RevocapIO.$(DYNAMIC_EXT): RevocapIO
$(MAKE) RubyInterface -C RevocapIORuby -f MakefileSwig
$(MAKE) Makefile -C RevocapIORuby -f MakefileSwig
$(MAKE) -C RevocapIORuby
$(MAKE) install -C RevocapIORuby -f MakefileSwig
ShapeRuby: $(LIBDIR)/$(ARCH)/RevocapShape.$(DYNAMIC_EXT)
$(LIBDIR)/$(ARCH)/RevocapShape.$(DYNAMIC_EXT): Shape
$(MAKE) RubyInterface -C ShapeRuby -f MakefileSwig
$(MAKE) Makefile -C ShapeRuby -f MakefileSwig
$(MAKE) -C ShapeRuby
$(MAKE) install -C ShapeRuby -f MakefileSwig
RubyExtension: MeshDBRuby RevocapIORuby MeshGLRuby MeshGenRuby ShapeRuby
RubyUnitTest: RubyExtension
cp $(LIBDIR)/$(ARCH)/*.so .
$(RUBY) test/unit_test.rb
RubyClean:
$(RM) MeshDBRuby/Makefile
$(RM) MeshDBRuby/*.cxx
$(RM) MeshGenRuby/Makefile
$(RM) MeshGenRuby/*.cxx
$(RM) MeshGLRuby/Makefile
$(RM) MeshGLRuby/*.cxx
$(RM) RevocapIORuby/Makefile
$(RM) RevocapIORuby/*.cxx
$(RM) ShapeRuby/Makefile
$(RM) ShapeRuby/*.cxx
$(RM) $(LIBDIR)/$(ARCH)/Revocap*.$(DYNAMIC_EXT)