WaveSwissKnife 0.0.1.20101110-x86-cygwin → 0.1.0.20110830-x86-cygwin

Sign up to get free protection for your applications and to get access to all the features.
Files changed (85) hide show
  1. data/ChangeLog +10 -0
  2. data/LICENSE +1 -1
  3. data/ReleaseInfo +3 -3
  4. data/bin/WSK.rb +1 -1
  5. data/ext/WSK/AnalyzeUtils/AnalyzeUtils.c +1 -1
  6. data/ext/WSK/AnalyzeUtils/AnalyzeUtils.o +0 -0
  7. data/ext/WSK/AnalyzeUtils/AnalyzeUtils.so +0 -0
  8. data/ext/WSK/AnalyzeUtils/Makefile +26 -18
  9. data/ext/WSK/AnalyzeUtils/build.rb +4 -2
  10. data/ext/WSK/ArithmUtils/ArithmUtils.c +1 -1
  11. data/ext/WSK/ArithmUtils/ArithmUtils.o +0 -0
  12. data/ext/WSK/ArithmUtils/ArithmUtils.so +0 -0
  13. data/ext/WSK/ArithmUtils/Makefile +26 -18
  14. data/ext/WSK/ArithmUtils/build.rb +4 -2
  15. data/ext/WSK/FFTUtils/FFTUtils.c +1 -1
  16. data/ext/WSK/FFTUtils/FFTUtils.o +0 -0
  17. data/ext/WSK/FFTUtils/FFTUtils.so +0 -0
  18. data/ext/WSK/FFTUtils/Makefile +100 -60
  19. data/ext/WSK/FFTUtils/build.rb +4 -2
  20. data/ext/WSK/FunctionUtils/FunctionUtils.c +1 -1
  21. data/ext/WSK/FunctionUtils/FunctionUtils.o +0 -0
  22. data/ext/WSK/FunctionUtils/FunctionUtils.so +0 -0
  23. data/ext/WSK/FunctionUtils/Makefile +26 -18
  24. data/ext/WSK/FunctionUtils/build.rb +4 -2
  25. data/ext/WSK/SilentUtils/Makefile +26 -18
  26. data/ext/WSK/SilentUtils/SilentUtils.c +1 -1
  27. data/ext/WSK/SilentUtils/SilentUtils.o +0 -0
  28. data/ext/WSK/SilentUtils/SilentUtils.so +0 -0
  29. data/ext/WSK/SilentUtils/build.rb +4 -2
  30. data/ext/WSK/VolumeUtils/Makefile +26 -18
  31. data/ext/WSK/VolumeUtils/VolumeUtils.c +1 -1
  32. data/ext/WSK/VolumeUtils/VolumeUtils.o +0 -0
  33. data/ext/WSK/VolumeUtils/VolumeUtils.so +0 -0
  34. data/ext/WSK/VolumeUtils/build.rb +4 -2
  35. data/lib/WSK/Actions/Analyze.rb +1 -1
  36. data/lib/WSK/Actions/ApplyMap.desc.rb +1 -1
  37. data/lib/WSK/Actions/ApplyMap.rb +1 -1
  38. data/lib/WSK/Actions/ApplyVolumeFct.desc.rb +1 -1
  39. data/lib/WSK/Actions/ApplyVolumeFct.rb +1 -1
  40. data/lib/WSK/Actions/Compare.desc.rb +1 -1
  41. data/lib/WSK/Actions/Compare.rb +1 -1
  42. data/lib/WSK/Actions/ConstantCompare.desc.rb +1 -1
  43. data/lib/WSK/Actions/ConstantCompare.rb +1 -1
  44. data/lib/WSK/Actions/Cut.desc.rb +1 -1
  45. data/lib/WSK/Actions/Cut.rb +1 -1
  46. data/lib/WSK/Actions/CutFirstSignal.desc.rb +1 -1
  47. data/lib/WSK/Actions/CutFirstSignal.rb +1 -1
  48. data/lib/WSK/Actions/DCShifter.desc.rb +1 -1
  49. data/lib/WSK/Actions/DCShifter.rb +1 -1
  50. data/lib/WSK/Actions/DrawFct.desc.rb +1 -1
  51. data/lib/WSK/Actions/DrawFct.rb +1 -1
  52. data/lib/WSK/Actions/FFT.rb +1 -1
  53. data/lib/WSK/Actions/GenAllValues.rb +1 -1
  54. data/lib/WSK/Actions/GenConstant.desc.rb +1 -1
  55. data/lib/WSK/Actions/GenConstant.rb +1 -1
  56. data/lib/WSK/Actions/GenSawtooth.rb +1 -1
  57. data/lib/WSK/Actions/GenSine.desc.rb +1 -1
  58. data/lib/WSK/Actions/GenSine.rb +1 -1
  59. data/lib/WSK/Actions/Identity.rb +1 -1
  60. data/lib/WSK/Actions/Mix.desc.rb +1 -1
  61. data/lib/WSK/Actions/Mix.rb +1 -1
  62. data/lib/WSK/Actions/Multiply.desc.rb +1 -1
  63. data/lib/WSK/Actions/Multiply.rb +1 -1
  64. data/lib/WSK/Actions/NoiseGate.desc.rb +1 -1
  65. data/lib/WSK/Actions/NoiseGate.rb +1 -1
  66. data/lib/WSK/Actions/SilenceInserter.desc.rb +1 -1
  67. data/lib/WSK/Actions/SilenceInserter.rb +1 -1
  68. data/lib/WSK/Actions/SilenceRemover.desc.rb +1 -1
  69. data/lib/WSK/Actions/SilenceRemover.rb +1 -1
  70. data/lib/WSK/Actions/VolumeProfile.desc.rb +1 -1
  71. data/lib/WSK/Actions/VolumeProfile.rb +1 -1
  72. data/lib/WSK/Common.rb +1 -1
  73. data/lib/WSK/FFT.rb +4 -4
  74. data/lib/WSK/Functions.rb +1 -1
  75. data/lib/WSK/Launcher.rb +1 -1
  76. data/lib/WSK/Maps.rb +1 -1
  77. data/lib/WSK/Model/CachedBufferReader.rb +1 -1
  78. data/lib/WSK/Model/Header.rb +1 -1
  79. data/lib/WSK/Model/InputData.rb +1 -1
  80. data/lib/WSK/Model/RawReader.rb +1 -1
  81. data/lib/WSK/Model/WaveReader.rb +1 -1
  82. data/lib/WSK/OutputInterfaces/DirectStream.rb +1 -1
  83. data/lib/WSK/RIFFReader.rb +1 -1
  84. metadata +79 -64
  85. data/TODO +0 -2
data/ChangeLog CHANGED
@@ -1,5 +1,15 @@
1
1
  = WaveSwissKnife Release History
2
2
 
3
+ == 0.1.0.20110830 (Beta)
4
+
5
+ * Migrated repository to git.
6
+ * Updated copyright information
7
+ * Made regression 100% successful.
8
+ * Migrated TODO list to Trackers.
9
+ * Made building extensions report errors correctly.
10
+ * Bug correction: Reading FFT samples could not be performed.
11
+
3
12
  == 0.0.1.20101110 (Alpha)
4
13
 
5
14
  * Initial public release.
15
+
data/LICENSE CHANGED
@@ -6,7 +6,7 @@ This list is found in the file named AUTHORS.
6
6
  The AUTHORS and LICENSE files have to be included in any release of software
7
7
  embedding source code of this package, or using it as a derivative software.
8
8
 
9
- Copyright (c) 2010 Muriel Salvan (murielsalvan@users.sourceforge.net)
9
+ Copyright (c) 2010 - 2011 Muriel Salvan (murielsalvan@users.sourceforge.net)
10
10
 
11
11
  Redistribution and use in source and binary forms, with or without
12
12
  modification, are permitted provided that the following conditions are met:
data/ReleaseInfo CHANGED
@@ -2,7 +2,7 @@
2
2
  # This file has been generated by RubyPackager during a delivery.
3
3
  # More info about RubyPackager: http://rubypackager.sourceforge.net
4
4
  {
5
- :Version => '0.0.1.20101110',
6
- :Tags => [ 'Alpha' ],
7
- :DevStatus => 'Alpha'
5
+ :Version => '0.1.0.20110830',
6
+ :Tags => [ 'Beta' ],
7
+ :DevStatus => 'Beta'
8
8
  }
data/bin/WSK.rb CHANGED
@@ -1,6 +1,6 @@
1
1
  #!env ruby
2
2
  #--
3
- # Copyright (c) 2009-2010 Muriel Salvan (murielsalvan@users.sourceforge.net)
3
+ # Copyright (c) 2009 - 2011 Muriel Salvan (murielsalvan@users.sourceforge.net)
4
4
  # Licensed under the terms specified in LICENSE file. No warranty is provided.
5
5
  #++
6
6
 
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Copyright (c) 2009-2010 Muriel Salvan (murielsalvan@users.sourceforge.net)
2
+ * Copyright (c) 2009 - 2011 Muriel Salvan (murielsalvan@users.sourceforge.net)
3
3
  * Licensed under the terms specified in LICENSE file. No warranty is provided.
4
4
  **/
5
5
 
Binary file
Binary file
@@ -7,32 +7,35 @@ srcdir = .
7
7
  topdir = /usr/lib/ruby/1.8/i386-cygwin
8
8
  hdrdir = $(topdir)
9
9
  VPATH = $(srcdir):$(topdir):$(hdrdir)
10
- prefix = $(DESTDIR)/usr
11
10
  exec_prefix = $(prefix)
12
- sitedir = $(prefix)/lib/ruby/site_ruby
13
- rubylibdir = $(libdir)/ruby/$(ruby_version)
14
- docdir = $(datarootdir)/doc/$(PACKAGE)
15
- dvidir = $(docdir)
16
- datarootdir = $(prefix)/share
17
- archdir = $(rubylibdir)/$(arch)
18
- sbindir = $(exec_prefix)/sbin
11
+ prefix = $(DESTDIR)/usr
12
+ sharedstatedir = $(prefix)/com
13
+ mandir = $(prefix)/share/man
19
14
  psdir = $(docdir)
15
+ oldincludedir = $(DESTDIR)/usr/include
20
16
  localedir = $(datarootdir)/locale
17
+ bindir = $(exec_prefix)/bin
18
+ libexecdir = $(prefix)/sbin
19
+ sitedir = $(libdir)/ruby/site_ruby
21
20
  htmldir = $(docdir)
22
- datadir = $(prefix)/share
21
+ vendorarchdir = $(vendorlibdir)/$(sitearch)
23
22
  includedir = $(prefix)/include
24
23
  infodir = $(prefix)/share/info
24
+ vendorlibdir = $(vendordir)/$(ruby_version)
25
25
  sysconfdir = $(DESTDIR)/etc
26
- mandir = $(prefix)/share/man
27
26
  libdir = $(exec_prefix)/lib
28
- sharedstatedir = $(prefix)/com
29
- oldincludedir = $(DESTDIR)/usr/include
27
+ sbindir = $(exec_prefix)/sbin
28
+ rubylibdir = $(libdir)/ruby/$(ruby_version)
29
+ docdir = $(datarootdir)/doc/$(PACKAGE)
30
+ dvidir = $(docdir)
31
+ vendordir = $(libdir)/ruby/vendor_ruby
32
+ datarootdir = $(prefix)/share
30
33
  pdfdir = $(docdir)
34
+ archdir = $(rubylibdir)/$(arch)
31
35
  sitearchdir = $(sitelibdir)/$(sitearch)
32
- bindir = $(exec_prefix)/bin
36
+ datadir = $(prefix)/share
33
37
  localstatedir = $(DESTDIR)/var
34
38
  sitelibdir = $(sitedir)/$(ruby_version)
35
- libexecdir = $(prefix)/sbin
36
39
 
37
40
  CC = gcc
38
41
  LIBRUBY = lib$(RUBY_SO_NAME).dll.a
@@ -41,11 +44,15 @@ LIBRUBYARG_SHARED = -l$(RUBY_SO_NAME)
41
44
  LIBRUBYARG_STATIC = -l$(RUBY_SO_NAME)-static
42
45
 
43
46
  RUBY_EXTCONF_H =
44
- CFLAGS = -g -O2 -Wall -I/cygdrive/f/RR/Source/waveswissknife/svn/waveswissknife/external/CommonUtils/include
47
+ CFLAGS = -g -O2 $(cflags) -Wall -I/cygdrive/c/Env/Source/waveswissknife/git/waveswissknife/external/CommonUtils/include
45
48
  INCFLAGS = -I. -I$(topdir) -I$(hdrdir) -I$(srcdir)
46
- CPPFLAGS =
49
+ DEFS =
50
+ CPPFLAGS = $(DEFS) $(cppflags)
47
51
  CXXFLAGS = $(CFLAGS)
48
- DLDFLAGS = -L. -L/cygdrive/f/RR/Source/waveswissknife/svn/waveswissknife/external/CommonUtils/lib -lCommonUtils -Wl,--enable-auto-image-base,--enable-auto-import,--export-all
52
+ ldflags = -L. -L/cygdrive/c/Env/Source/waveswissknife/git/waveswissknife/external/CommonUtils/lib -lCommonUtils
53
+ dldflags = -Wl,--enable-auto-image-base,--enable-auto-import,--export-all
54
+ archflag =
55
+ DLDFLAGS = $(ldflags) $(dldflags) $(archflag)
49
56
  LDSHARED = gcc -shared -s
50
57
  AR = ar
51
58
  EXEEXT = .exe
@@ -69,7 +76,7 @@ COPY = cp
69
76
  preload =
70
77
 
71
78
  libpath = . $(libdir)
72
- LIBPATH = -L"." -L"$(libdir)"
79
+ LIBPATH = -L. -L$(libdir)
73
80
  DEFFILE =
74
81
 
75
82
  CLEANFILES = mkmf.log
@@ -87,6 +94,7 @@ DLLIB = $(TARGET).so
87
94
  EXTSTATIC =
88
95
  STATIC_LIB =
89
96
 
97
+ BINDIR = $(bindir)
90
98
  RUBYCOMMONDIR = $(sitedir)$(target_prefix)
91
99
  RUBYLIBDIR = $(sitelibdir)$(target_prefix)
92
100
  RUBYARCHDIR = $(sitearchdir)$(target_prefix)
@@ -1,5 +1,5 @@
1
1
  #--
2
- # Copyright (c) 2009-2010 Muriel Salvan (murielsalvan@users.sourceforge.net)
2
+ # Copyright (c) 2009 - 2011 Muriel Salvan (murielsalvan@users.sourceforge.net)
3
3
  # Licensed under the terms specified in LICENSE file. No warranty is provided.
4
4
  #++
5
5
 
@@ -15,4 +15,6 @@ lAdditionalLocalLibs.each do |iLibName|
15
15
  $LDFLAGS += " -L#{lLibDir}/lib -l#{iLibName} "
16
16
  end
17
17
  create_makefile('AnalyzeUtils')
18
- system('make')
18
+ if (!system('make'))
19
+ raise RuntimeError.new("Error while running 'make': #{$?}")
20
+ end
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Copyright (c) 2009-2010 Muriel Salvan (murielsalvan@users.sourceforge.net)
2
+ * Copyright (c) 2009 - 2011 Muriel Salvan (murielsalvan@users.sourceforge.net)
3
3
  * Licensed under the terms specified in LICENSE file. No warranty is provided.
4
4
  **/
5
5
 
Binary file
Binary file
@@ -7,32 +7,35 @@ srcdir = .
7
7
  topdir = /usr/lib/ruby/1.8/i386-cygwin
8
8
  hdrdir = $(topdir)
9
9
  VPATH = $(srcdir):$(topdir):$(hdrdir)
10
- prefix = $(DESTDIR)/usr
11
10
  exec_prefix = $(prefix)
12
- sitedir = $(prefix)/lib/ruby/site_ruby
13
- rubylibdir = $(libdir)/ruby/$(ruby_version)
14
- docdir = $(datarootdir)/doc/$(PACKAGE)
15
- dvidir = $(docdir)
16
- datarootdir = $(prefix)/share
17
- archdir = $(rubylibdir)/$(arch)
18
- sbindir = $(exec_prefix)/sbin
11
+ prefix = $(DESTDIR)/usr
12
+ sharedstatedir = $(prefix)/com
13
+ mandir = $(prefix)/share/man
19
14
  psdir = $(docdir)
15
+ oldincludedir = $(DESTDIR)/usr/include
20
16
  localedir = $(datarootdir)/locale
17
+ bindir = $(exec_prefix)/bin
18
+ libexecdir = $(prefix)/sbin
19
+ sitedir = $(libdir)/ruby/site_ruby
21
20
  htmldir = $(docdir)
22
- datadir = $(prefix)/share
21
+ vendorarchdir = $(vendorlibdir)/$(sitearch)
23
22
  includedir = $(prefix)/include
24
23
  infodir = $(prefix)/share/info
24
+ vendorlibdir = $(vendordir)/$(ruby_version)
25
25
  sysconfdir = $(DESTDIR)/etc
26
- mandir = $(prefix)/share/man
27
26
  libdir = $(exec_prefix)/lib
28
- sharedstatedir = $(prefix)/com
29
- oldincludedir = $(DESTDIR)/usr/include
27
+ sbindir = $(exec_prefix)/sbin
28
+ rubylibdir = $(libdir)/ruby/$(ruby_version)
29
+ docdir = $(datarootdir)/doc/$(PACKAGE)
30
+ dvidir = $(docdir)
31
+ vendordir = $(libdir)/ruby/vendor_ruby
32
+ datarootdir = $(prefix)/share
30
33
  pdfdir = $(docdir)
34
+ archdir = $(rubylibdir)/$(arch)
31
35
  sitearchdir = $(sitelibdir)/$(sitearch)
32
- bindir = $(exec_prefix)/bin
36
+ datadir = $(prefix)/share
33
37
  localstatedir = $(DESTDIR)/var
34
38
  sitelibdir = $(sitedir)/$(ruby_version)
35
- libexecdir = $(prefix)/sbin
36
39
 
37
40
  CC = gcc
38
41
  LIBRUBY = lib$(RUBY_SO_NAME).dll.a
@@ -41,11 +44,15 @@ LIBRUBYARG_SHARED = -l$(RUBY_SO_NAME)
41
44
  LIBRUBYARG_STATIC = -l$(RUBY_SO_NAME)-static
42
45
 
43
46
  RUBY_EXTCONF_H =
44
- CFLAGS = -g -O2 -Wall -I/cygdrive/f/RR/Source/waveswissknife/svn/waveswissknife/external/CommonUtils/include
47
+ CFLAGS = -g -O2 $(cflags) -Wall -I/cygdrive/c/Env/Source/waveswissknife/git/waveswissknife/external/CommonUtils/include
45
48
  INCFLAGS = -I. -I$(topdir) -I$(hdrdir) -I$(srcdir)
46
- CPPFLAGS =
49
+ DEFS =
50
+ CPPFLAGS = $(DEFS) $(cppflags)
47
51
  CXXFLAGS = $(CFLAGS)
48
- DLDFLAGS = -L. -L/usr/local/lib -lgmp -L/cygdrive/f/RR/Source/waveswissknife/svn/waveswissknife/external/CommonUtils/lib -lCommonUtils -Wl,--enable-auto-image-base,--enable-auto-import,--export-all
52
+ ldflags = -L. -L/usr/local/lib -lgmp -L/cygdrive/c/Env/Source/waveswissknife/git/waveswissknife/external/CommonUtils/lib -lCommonUtils
53
+ dldflags = -Wl,--enable-auto-image-base,--enable-auto-import,--export-all
54
+ archflag =
55
+ DLDFLAGS = $(ldflags) $(dldflags) $(archflag)
49
56
  LDSHARED = gcc -shared -s
50
57
  AR = ar
51
58
  EXEEXT = .exe
@@ -69,7 +76,7 @@ COPY = cp
69
76
  preload =
70
77
 
71
78
  libpath = . $(libdir)
72
- LIBPATH = -L"." -L"$(libdir)"
79
+ LIBPATH = -L. -L$(libdir)
73
80
  DEFFILE =
74
81
 
75
82
  CLEANFILES = mkmf.log
@@ -87,6 +94,7 @@ DLLIB = $(TARGET).so
87
94
  EXTSTATIC =
88
95
  STATIC_LIB =
89
96
 
97
+ BINDIR = $(bindir)
90
98
  RUBYCOMMONDIR = $(sitedir)$(target_prefix)
91
99
  RUBYLIBDIR = $(sitelibdir)$(target_prefix)
92
100
  RUBYARCHDIR = $(sitearchdir)$(target_prefix)
@@ -1,5 +1,5 @@
1
1
  #--
2
- # Copyright (c) 2009-2010 Muriel Salvan (murielsalvan@users.sourceforge.net)
2
+ # Copyright (c) 2009 - 2011 Muriel Salvan (murielsalvan@users.sourceforge.net)
3
3
  # Licensed under the terms specified in LICENSE file. No warranty is provided.
4
4
  #++
5
5
 
@@ -17,4 +17,6 @@ lAdditionalLocalLibs.each do |iLibName|
17
17
  $LDFLAGS += " -L#{lLibDir}/lib -l#{iLibName} "
18
18
  end
19
19
  create_makefile('ArithmUtils')
20
- system('make')
20
+ if (!system('make'))
21
+ raise RuntimeError.new("Error while running 'make': #{$?}")
22
+ end
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Copyright (c) 2009-2010 Muriel Salvan (murielsalvan@users.sourceforge.net)
2
+ * Copyright (c) 2009 - 2011 Muriel Salvan (murielsalvan@users.sourceforge.net)
3
3
  * Licensed under the terms specified in LICENSE file. No warranty is provided.
4
4
  **/
5
5
 
Binary file
Binary file
@@ -3,62 +3,88 @@ SHELL = /bin/sh
3
3
 
4
4
  #### Start of system configuration section. ####
5
5
 
6
- srcdir = .
7
- topdir = /usr/lib/ruby/1.8/i386-cygwin
8
- hdrdir = $(topdir)
9
- VPATH = $(srcdir):$(topdir):$(hdrdir)
10
- prefix = $(DESTDIR)/usr
6
+ srcdir = /C/Env/Source/waveswissknife/git/waveswissknife/ext/WSK/FFTUtils
7
+ topdir = /C/Ruby192/include/ruby-1.9.1
8
+ hdrdir = /C/Ruby192/include/ruby-1.9.1
9
+ arch_hdrdir = C:/Ruby192/include/ruby-1.9.1/$(arch)
10
+ VPATH = $(srcdir):$(arch_hdrdir)/ruby:$(hdrdir)/ruby
11
+
12
+ DESTDIR = C:
13
+ prefix = $(DESTDIR)/Ruby192
14
+ rubylibprefix = $(libdir)/$(RUBY_BASE_NAME)
11
15
  exec_prefix = $(prefix)
12
- sitedir = $(prefix)/lib/ruby/site_ruby
13
- rubylibdir = $(libdir)/ruby/$(ruby_version)
14
- docdir = $(datarootdir)/doc/$(PACKAGE)
15
- dvidir = $(docdir)
16
- datarootdir = $(prefix)/share
17
- archdir = $(rubylibdir)/$(arch)
18
- sbindir = $(exec_prefix)/sbin
19
- psdir = $(docdir)
16
+ vendorhdrdir = $(rubyhdrdir)/vendor_ruby
17
+ sitehdrdir = $(rubyhdrdir)/site_ruby
18
+ rubyhdrdir = $(includedir)/$(RUBY_BASE_NAME)-$(ruby_version)
19
+ vendordir = $(rubylibprefix)/vendor_ruby
20
+ sitedir = $(rubylibprefix)/site_ruby
21
+ ridir = $(datarootdir)/$(RI_BASE_NAME)
22
+ mandir = $(datarootdir)/man
20
23
  localedir = $(datarootdir)/locale
24
+ libdir = $(exec_prefix)/lib
25
+ psdir = $(docdir)
26
+ pdfdir = $(docdir)
27
+ dvidir = $(docdir)
21
28
  htmldir = $(docdir)
22
- datadir = $(prefix)/share
29
+ infodir = $(datarootdir)/info
30
+ docdir = $(datarootdir)/doc/$(PACKAGE)
31
+ oldincludedir = $(DESTDIR)/usr/include
23
32
  includedir = $(prefix)/include
24
- infodir = $(prefix)/share/info
25
- sysconfdir = $(DESTDIR)/etc
26
- mandir = $(prefix)/share/man
27
- libdir = $(exec_prefix)/lib
33
+ localstatedir = $(prefix)/var
28
34
  sharedstatedir = $(prefix)/com
29
- oldincludedir = $(DESTDIR)/usr/include
30
- pdfdir = $(docdir)
31
- sitearchdir = $(sitelibdir)/$(sitearch)
35
+ sysconfdir = $(prefix)/etc
36
+ datadir = $(datarootdir)
37
+ datarootdir = $(prefix)/share
38
+ libexecdir = $(exec_prefix)/libexec
39
+ sbindir = $(exec_prefix)/sbin
32
40
  bindir = $(exec_prefix)/bin
33
- localstatedir = $(DESTDIR)/var
41
+ rubylibdir = $(rubylibprefix)/$(ruby_version)
42
+ archdir = $(rubylibdir)/$(arch)
34
43
  sitelibdir = $(sitedir)/$(ruby_version)
35
- libexecdir = $(prefix)/sbin
44
+ sitearchdir = $(sitelibdir)/$(sitearch)
45
+ vendorlibdir = $(vendordir)/$(ruby_version)
46
+ vendorarchdir = $(vendorlibdir)/$(sitearch)
36
47
 
37
48
  CC = gcc
49
+ CXX = g++
38
50
  LIBRUBY = lib$(RUBY_SO_NAME).dll.a
39
51
  LIBRUBY_A = lib$(RUBY_SO_NAME)-static.a
40
52
  LIBRUBYARG_SHARED = -l$(RUBY_SO_NAME)
41
53
  LIBRUBYARG_STATIC = -l$(RUBY_SO_NAME)-static
54
+ OUTFLAG = -o
55
+ COUTFLAG = -o
42
56
 
43
57
  RUBY_EXTCONF_H =
44
- CFLAGS = -g -O2 -Wall -I/cygdrive/f/RR/Source/waveswissknife/svn/waveswissknife/external/CommonUtils/include
45
- INCFLAGS = -I. -I$(topdir) -I$(hdrdir) -I$(srcdir)
46
- CPPFLAGS =
47
- CXXFLAGS = $(CFLAGS)
48
- DLDFLAGS = -L. -L/usr/local/lib -lgmp -L/cygdrive/f/RR/Source/waveswissknife/svn/waveswissknife/external/CommonUtils/lib -lCommonUtils -Wl,--enable-auto-image-base,--enable-auto-import,--export-all
49
- LDSHARED = gcc -shared -s
58
+ cflags = $(optflags) $(debugflags) $(warnflags)
59
+ optflags = -O3
60
+ debugflags = -g
61
+ warnflags = -Wextra -Wno-unused-parameter -Wno-parentheses -Wpointer-arith -Wwrite-strings -Wno-missing-field-initializers -Wno-long-long
62
+ CFLAGS = $(cflags) -Wall -IC:/Env/Source/waveswissknife/git/waveswissknife/external/CommonUtils/include
63
+ INCFLAGS = -I. -I$(arch_hdrdir) -I$(hdrdir)/ruby/backward -I$(hdrdir) -I$(srcdir)
64
+ DEFS =
65
+ CPPFLAGS = $(DEFS) $(cppflags)
66
+ CXXFLAGS = $(CFLAGS) $(cxxflags)
67
+ ldflags = -L. -L/usr/local/lib -lgmp -LC:/Env/Source/waveswissknife/git/waveswissknife/external/CommonUtils/lib -lCommonUtils
68
+ dldflags = -Wl,--enable-auto-image-base,--enable-auto-import $(DEFFILE)
69
+ ARCH_FLAG =
70
+ DLDFLAGS = $(ldflags) $(dldflags)
71
+ LDSHARED = $(CC) -shared $(if $(filter-out -g -g0,$(debugflags)),,-s)
72
+ LDSHAREDXX = $(CXX) -shared $(if $(filter-out -g -g0,$(debugflags)),,-s)
50
73
  AR = ar
51
74
  EXEEXT = .exe
52
75
 
76
+ RUBY_BASE_NAME = ruby
53
77
  RUBY_INSTALL_NAME = ruby
54
- RUBY_SO_NAME = ruby
55
- arch = i386-cygwin
56
- sitearch = i386-cygwin
57
- ruby_version = 1.8
58
- ruby = /usr/bin/ruby
78
+ RUBY_SO_NAME = msvcrt-ruby191
79
+ arch = i386-mingw32
80
+ sitearch = i386-msvcrt
81
+ ruby_version = 1.9.1
82
+ ruby = C:/Ruby192/bin/ruby
59
83
  RUBY = $(ruby)
60
84
  RM = rm -f
61
- MAKEDIRS = mkdir -p
85
+ RM_RF = $(RUBY) -run -e rm -- -rf
86
+ RMDIRS = $(RUBY) -run -e rmdir -- -p
87
+ MAKEDIRS = /usr/bin/mkdir -p
62
88
  INSTALL = /usr/bin/install -c
63
89
  INSTALL_PROG = $(INSTALL) -m 0755
64
90
  INSTALL_DATA = $(INSTALL) -m 644
@@ -69,17 +95,18 @@ COPY = cp
69
95
  preload =
70
96
 
71
97
  libpath = . $(libdir)
72
- LIBPATH = -L"." -L"$(libdir)"
73
- DEFFILE =
98
+ LIBPATH = -L. -L$(libdir)
99
+ DEFFILE = $(TARGET)-$(arch).def
74
100
 
75
- CLEANFILES = mkmf.log
101
+ CLEANFILES = mkmf.log $(DEFFILE)
76
102
  DISTCLEANFILES =
103
+ DISTCLEANDIRS =
77
104
 
78
105
  extout =
79
106
  extout_prefix =
80
107
  target_prefix =
81
108
  LOCAL_LIBS =
82
- LIBS = $(LIBRUBYARG_SHARED) -ldl -lcrypt
109
+ LIBS = $(LIBRUBYARG_SHARED) -lshell32 -lws2_32
83
110
  SRCS = FFTUtils.c
84
111
  OBJS = FFTUtils.o
85
112
  TARGET = FFTUtils
@@ -87,31 +114,44 @@ DLLIB = $(TARGET).so
87
114
  EXTSTATIC =
88
115
  STATIC_LIB =
89
116
 
117
+ BINDIR = $(bindir)
90
118
  RUBYCOMMONDIR = $(sitedir)$(target_prefix)
91
119
  RUBYLIBDIR = $(sitelibdir)$(target_prefix)
92
120
  RUBYARCHDIR = $(sitearchdir)$(target_prefix)
121
+ HDRDIR = $(rubyhdrdir)/ruby$(target_prefix)
122
+ ARCHHDRDIR = $(rubyhdrdir)/$(arch)/ruby$(target_prefix)
93
123
 
94
124
  TARGET_SO = $(DLLIB)
95
- CLEANLIBS = $(TARGET).so $(TARGET).il? $(TARGET).tds $(TARGET).map
96
- CLEANOBJS = *.o *.a *.s[ol] *.pdb *.exp *.bak
97
-
98
- all: $(DLLIB)
99
- static: $(STATIC_LIB)
100
-
101
- clean:
125
+ CLEANLIBS = $(TARGET).so
126
+ CLEANOBJS = *.o *.bak
127
+
128
+ all: $(DLLIB)
129
+ static: $(STATIC_LIB)
130
+ .PHONY: all install static install-so install-rb
131
+ .PHONY: clean clean-so clean-rb
132
+
133
+ clean-rb-default::
134
+ clean-rb::
135
+ clean-so::
136
+ clean: clean-so clean-rb-default clean-rb
102
137
  @-$(RM) $(CLEANLIBS) $(CLEANOBJS) $(CLEANFILES)
103
138
 
104
- distclean: clean
139
+ distclean-rb-default::
140
+ distclean-rb::
141
+ distclean-so::
142
+ distclean: clean distclean-so distclean-rb-default distclean-rb
105
143
  @-$(RM) Makefile $(RUBY_EXTCONF_H) conftest.* mkmf.log
106
144
  @-$(RM) core ruby$(EXEEXT) *~ $(DISTCLEANFILES)
145
+ @-$(RMDIRS) $(DISTCLEANDIRS)
107
146
 
108
- realclean: distclean
147
+ realclean: distclean
109
148
  install: install-so install-rb
110
149
 
111
150
  install-so: $(RUBYARCHDIR)
112
151
  install-so: $(RUBYARCHDIR)/$(DLLIB)
113
152
  $(RUBYARCHDIR)/$(DLLIB): $(DLLIB)
114
- $(INSTALL_PROG) $(DLLIB) $(RUBYARCHDIR)
153
+ @-$(MAKEDIRS) $(@D)
154
+ $(INSTALL_PROG) $(DLLIB) $(@D)
115
155
  install-rb: pre-install-rb install-rb-default
116
156
  install-rb-default: pre-install-rb-default
117
157
  pre-install-rb: Makefile
@@ -123,27 +163,27 @@ site-install: site-install-so site-install-rb
123
163
  site-install-so: install-so
124
164
  site-install-rb: install-rb
125
165
 
126
- .SUFFIXES: .c .m .cc .cxx .cpp .C .o
166
+ .SUFFIXES: .c .m .cc .cxx .cpp .o
127
167
 
128
168
  .cc.o:
129
- $(CXX) $(INCFLAGS) $(CPPFLAGS) $(CXXFLAGS) -c $<
169
+ $(CXX) $(INCFLAGS) $(CPPFLAGS) $(CXXFLAGS) $(COUTFLAG)$@ -c $<
130
170
 
131
171
  .cxx.o:
132
- $(CXX) $(INCFLAGS) $(CPPFLAGS) $(CXXFLAGS) -c $<
172
+ $(CXX) $(INCFLAGS) $(CPPFLAGS) $(CXXFLAGS) $(COUTFLAG)$@ -c $<
133
173
 
134
174
  .cpp.o:
135
- $(CXX) $(INCFLAGS) $(CPPFLAGS) $(CXXFLAGS) -c $<
136
-
137
- .C.o:
138
- $(CXX) $(INCFLAGS) $(CPPFLAGS) $(CXXFLAGS) -c $<
175
+ $(CXX) $(INCFLAGS) $(CPPFLAGS) $(CXXFLAGS) $(COUTFLAG)$@ -c $<
139
176
 
140
177
  .c.o:
141
- $(CC) $(INCFLAGS) $(CPPFLAGS) $(CFLAGS) -c $<
178
+ $(CC) $(INCFLAGS) $(CPPFLAGS) $(CFLAGS) $(COUTFLAG)$@ -c $<
142
179
 
143
- $(DLLIB): $(OBJS)
144
- @-$(RM) $@
180
+ $(DLLIB): $(DEFFILE) $(OBJS) Makefile
181
+ @-$(RM) $(@)
145
182
  $(LDSHARED) -o $@ $(OBJS) $(LIBPATH) $(DLDFLAGS) $(LOCAL_LIBS) $(LIBS)
146
183
 
147
184
 
148
185
 
149
- $(OBJS): ruby.h defines.h
186
+ $(DEFFILE):
187
+ $(RUBY) -e "puts 'EXPORTS', 'Init_$(TARGET)'" > $@
188
+
189
+ $(OBJS): $(hdrdir)/ruby.h $(hdrdir)/ruby/defines.h $(arch_hdrdir)/ruby/config.h
@@ -1,5 +1,5 @@
1
1
  #--
2
- # Copyright (c) 2009-2010 Muriel Salvan (murielsalvan@users.sourceforge.net)
2
+ # Copyright (c) 2009 - 2011 Muriel Salvan (murielsalvan@users.sourceforge.net)
3
3
  # Licensed under the terms specified in LICENSE file. No warranty is provided.
4
4
  #++
5
5
 
@@ -17,4 +17,6 @@ lAdditionalLocalLibs.each do |iLibName|
17
17
  $LDFLAGS += " -L#{lLibDir}/lib -l#{iLibName} "
18
18
  end
19
19
  create_makefile('FFTUtils')
20
- system('make')
20
+ if (!system('make'))
21
+ raise RuntimeError.new("Error while running 'make': #{$?}")
22
+ end
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Copyright (c) 2009-2010 Muriel Salvan (murielsalvan@users.sourceforge.net)
2
+ * Copyright (c) 2009 - 2011 Muriel Salvan (murielsalvan@users.sourceforge.net)
3
3
  * Licensed under the terms specified in LICENSE file. No warranty is provided.
4
4
  **/
5
5
 
Binary file
Binary file
@@ -7,32 +7,35 @@ srcdir = .
7
7
  topdir = /usr/lib/ruby/1.8/i386-cygwin
8
8
  hdrdir = $(topdir)
9
9
  VPATH = $(srcdir):$(topdir):$(hdrdir)
10
- prefix = $(DESTDIR)/usr
11
10
  exec_prefix = $(prefix)
12
- sitedir = $(prefix)/lib/ruby/site_ruby
13
- rubylibdir = $(libdir)/ruby/$(ruby_version)
14
- docdir = $(datarootdir)/doc/$(PACKAGE)
15
- dvidir = $(docdir)
16
- datarootdir = $(prefix)/share
17
- archdir = $(rubylibdir)/$(arch)
18
- sbindir = $(exec_prefix)/sbin
11
+ prefix = $(DESTDIR)/usr
12
+ sharedstatedir = $(prefix)/com
13
+ mandir = $(prefix)/share/man
19
14
  psdir = $(docdir)
15
+ oldincludedir = $(DESTDIR)/usr/include
20
16
  localedir = $(datarootdir)/locale
17
+ bindir = $(exec_prefix)/bin
18
+ libexecdir = $(prefix)/sbin
19
+ sitedir = $(libdir)/ruby/site_ruby
21
20
  htmldir = $(docdir)
22
- datadir = $(prefix)/share
21
+ vendorarchdir = $(vendorlibdir)/$(sitearch)
23
22
  includedir = $(prefix)/include
24
23
  infodir = $(prefix)/share/info
24
+ vendorlibdir = $(vendordir)/$(ruby_version)
25
25
  sysconfdir = $(DESTDIR)/etc
26
- mandir = $(prefix)/share/man
27
26
  libdir = $(exec_prefix)/lib
28
- sharedstatedir = $(prefix)/com
29
- oldincludedir = $(DESTDIR)/usr/include
27
+ sbindir = $(exec_prefix)/sbin
28
+ rubylibdir = $(libdir)/ruby/$(ruby_version)
29
+ docdir = $(datarootdir)/doc/$(PACKAGE)
30
+ dvidir = $(docdir)
31
+ vendordir = $(libdir)/ruby/vendor_ruby
32
+ datarootdir = $(prefix)/share
30
33
  pdfdir = $(docdir)
34
+ archdir = $(rubylibdir)/$(arch)
31
35
  sitearchdir = $(sitelibdir)/$(sitearch)
32
- bindir = $(exec_prefix)/bin
36
+ datadir = $(prefix)/share
33
37
  localstatedir = $(DESTDIR)/var
34
38
  sitelibdir = $(sitedir)/$(ruby_version)
35
- libexecdir = $(prefix)/sbin
36
39
 
37
40
  CC = gcc
38
41
  LIBRUBY = lib$(RUBY_SO_NAME).dll.a
@@ -41,11 +44,15 @@ LIBRUBYARG_SHARED = -l$(RUBY_SO_NAME)
41
44
  LIBRUBYARG_STATIC = -l$(RUBY_SO_NAME)-static
42
45
 
43
46
  RUBY_EXTCONF_H =
44
- CFLAGS = -g -O2 -Wall -I/cygdrive/f/RR/Source/waveswissknife/svn/waveswissknife/external/CommonUtils/include
47
+ CFLAGS = -g -O2 $(cflags) -Wall -I/cygdrive/c/Env/Source/waveswissknife/git/waveswissknife/external/CommonUtils/include
45
48
  INCFLAGS = -I. -I$(topdir) -I$(hdrdir) -I$(srcdir)
46
- CPPFLAGS =
49
+ DEFS =
50
+ CPPFLAGS = $(DEFS) $(cppflags)
47
51
  CXXFLAGS = $(CFLAGS)
48
- DLDFLAGS = -L. -L/usr/local/lib -lgmp -L/cygdrive/f/RR/Source/waveswissknife/svn/waveswissknife/external/CommonUtils/lib -lCommonUtils -Wl,--enable-auto-image-base,--enable-auto-import,--export-all
52
+ ldflags = -L. -L/usr/local/lib -lgmp -L/cygdrive/c/Env/Source/waveswissknife/git/waveswissknife/external/CommonUtils/lib -lCommonUtils
53
+ dldflags = -Wl,--enable-auto-image-base,--enable-auto-import,--export-all
54
+ archflag =
55
+ DLDFLAGS = $(ldflags) $(dldflags) $(archflag)
49
56
  LDSHARED = gcc -shared -s
50
57
  AR = ar
51
58
  EXEEXT = .exe
@@ -69,7 +76,7 @@ COPY = cp
69
76
  preload =
70
77
 
71
78
  libpath = . $(libdir)
72
- LIBPATH = -L"." -L"$(libdir)"
79
+ LIBPATH = -L. -L$(libdir)
73
80
  DEFFILE =
74
81
 
75
82
  CLEANFILES = mkmf.log
@@ -87,6 +94,7 @@ DLLIB = $(TARGET).so
87
94
  EXTSTATIC =
88
95
  STATIC_LIB =
89
96
 
97
+ BINDIR = $(bindir)
90
98
  RUBYCOMMONDIR = $(sitedir)$(target_prefix)
91
99
  RUBYLIBDIR = $(sitelibdir)$(target_prefix)
92
100
  RUBYARCHDIR = $(sitearchdir)$(target_prefix)
@@ -1,5 +1,5 @@
1
1
  #--
2
- # Copyright (c) 2009-2010 Muriel Salvan (murielsalvan@users.sourceforge.net)
2
+ # Copyright (c) 2009 - 2011 Muriel Salvan (murielsalvan@users.sourceforge.net)
3
3
  # Licensed under the terms specified in LICENSE file. No warranty is provided.
4
4
  #++
5
5
 
@@ -17,4 +17,6 @@ lAdditionalLocalLibs.each do |iLibName|
17
17
  $LDFLAGS += " -L#{lLibDir}/lib -l#{iLibName} "
18
18
  end
19
19
  create_makefile('FunctionUtils')
20
- system('make')
20
+ if (!system('make'))
21
+ raise RuntimeError.new("Error while running 'make': #{$?}")
22
+ end