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.
- data/ChangeLog +10 -0
- data/LICENSE +1 -1
- data/ReleaseInfo +3 -3
- data/bin/WSK.rb +1 -1
- data/ext/WSK/AnalyzeUtils/AnalyzeUtils.c +1 -1
- data/ext/WSK/AnalyzeUtils/AnalyzeUtils.o +0 -0
- data/ext/WSK/AnalyzeUtils/AnalyzeUtils.so +0 -0
- data/ext/WSK/AnalyzeUtils/Makefile +26 -18
- data/ext/WSK/AnalyzeUtils/build.rb +4 -2
- data/ext/WSK/ArithmUtils/ArithmUtils.c +1 -1
- data/ext/WSK/ArithmUtils/ArithmUtils.o +0 -0
- data/ext/WSK/ArithmUtils/ArithmUtils.so +0 -0
- data/ext/WSK/ArithmUtils/Makefile +26 -18
- data/ext/WSK/ArithmUtils/build.rb +4 -2
- data/ext/WSK/FFTUtils/FFTUtils.c +1 -1
- data/ext/WSK/FFTUtils/FFTUtils.o +0 -0
- data/ext/WSK/FFTUtils/FFTUtils.so +0 -0
- data/ext/WSK/FFTUtils/Makefile +100 -60
- data/ext/WSK/FFTUtils/build.rb +4 -2
- data/ext/WSK/FunctionUtils/FunctionUtils.c +1 -1
- data/ext/WSK/FunctionUtils/FunctionUtils.o +0 -0
- data/ext/WSK/FunctionUtils/FunctionUtils.so +0 -0
- data/ext/WSK/FunctionUtils/Makefile +26 -18
- data/ext/WSK/FunctionUtils/build.rb +4 -2
- data/ext/WSK/SilentUtils/Makefile +26 -18
- data/ext/WSK/SilentUtils/SilentUtils.c +1 -1
- data/ext/WSK/SilentUtils/SilentUtils.o +0 -0
- data/ext/WSK/SilentUtils/SilentUtils.so +0 -0
- data/ext/WSK/SilentUtils/build.rb +4 -2
- data/ext/WSK/VolumeUtils/Makefile +26 -18
- data/ext/WSK/VolumeUtils/VolumeUtils.c +1 -1
- data/ext/WSK/VolumeUtils/VolumeUtils.o +0 -0
- data/ext/WSK/VolumeUtils/VolumeUtils.so +0 -0
- data/ext/WSK/VolumeUtils/build.rb +4 -2
- data/lib/WSK/Actions/Analyze.rb +1 -1
- data/lib/WSK/Actions/ApplyMap.desc.rb +1 -1
- data/lib/WSK/Actions/ApplyMap.rb +1 -1
- data/lib/WSK/Actions/ApplyVolumeFct.desc.rb +1 -1
- data/lib/WSK/Actions/ApplyVolumeFct.rb +1 -1
- data/lib/WSK/Actions/Compare.desc.rb +1 -1
- data/lib/WSK/Actions/Compare.rb +1 -1
- data/lib/WSK/Actions/ConstantCompare.desc.rb +1 -1
- data/lib/WSK/Actions/ConstantCompare.rb +1 -1
- data/lib/WSK/Actions/Cut.desc.rb +1 -1
- data/lib/WSK/Actions/Cut.rb +1 -1
- data/lib/WSK/Actions/CutFirstSignal.desc.rb +1 -1
- data/lib/WSK/Actions/CutFirstSignal.rb +1 -1
- data/lib/WSK/Actions/DCShifter.desc.rb +1 -1
- data/lib/WSK/Actions/DCShifter.rb +1 -1
- data/lib/WSK/Actions/DrawFct.desc.rb +1 -1
- data/lib/WSK/Actions/DrawFct.rb +1 -1
- data/lib/WSK/Actions/FFT.rb +1 -1
- data/lib/WSK/Actions/GenAllValues.rb +1 -1
- data/lib/WSK/Actions/GenConstant.desc.rb +1 -1
- data/lib/WSK/Actions/GenConstant.rb +1 -1
- data/lib/WSK/Actions/GenSawtooth.rb +1 -1
- data/lib/WSK/Actions/GenSine.desc.rb +1 -1
- data/lib/WSK/Actions/GenSine.rb +1 -1
- data/lib/WSK/Actions/Identity.rb +1 -1
- data/lib/WSK/Actions/Mix.desc.rb +1 -1
- data/lib/WSK/Actions/Mix.rb +1 -1
- data/lib/WSK/Actions/Multiply.desc.rb +1 -1
- data/lib/WSK/Actions/Multiply.rb +1 -1
- data/lib/WSK/Actions/NoiseGate.desc.rb +1 -1
- data/lib/WSK/Actions/NoiseGate.rb +1 -1
- data/lib/WSK/Actions/SilenceInserter.desc.rb +1 -1
- data/lib/WSK/Actions/SilenceInserter.rb +1 -1
- data/lib/WSK/Actions/SilenceRemover.desc.rb +1 -1
- data/lib/WSK/Actions/SilenceRemover.rb +1 -1
- data/lib/WSK/Actions/VolumeProfile.desc.rb +1 -1
- data/lib/WSK/Actions/VolumeProfile.rb +1 -1
- data/lib/WSK/Common.rb +1 -1
- data/lib/WSK/FFT.rb +4 -4
- data/lib/WSK/Functions.rb +1 -1
- data/lib/WSK/Launcher.rb +1 -1
- data/lib/WSK/Maps.rb +1 -1
- data/lib/WSK/Model/CachedBufferReader.rb +1 -1
- data/lib/WSK/Model/Header.rb +1 -1
- data/lib/WSK/Model/InputData.rb +1 -1
- data/lib/WSK/Model/RawReader.rb +1 -1
- data/lib/WSK/Model/WaveReader.rb +1 -1
- data/lib/WSK/OutputInterfaces/DirectStream.rb +1 -1
- data/lib/WSK/RIFFReader.rb +1 -1
- metadata +79 -64
- 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.
|
6
|
-
:Tags => [ '
|
7
|
-
:DevStatus => '
|
5
|
+
:Version => '0.1.0.20110830',
|
6
|
+
:Tags => [ 'Beta' ],
|
7
|
+
:DevStatus => 'Beta'
|
8
8
|
}
|
data/bin/WSK.rb
CHANGED
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
|
-
|
13
|
-
|
14
|
-
|
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
|
-
|
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
|
-
|
29
|
-
|
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
|
-
|
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/
|
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
|
-
|
49
|
+
DEFS =
|
50
|
+
CPPFLAGS = $(DEFS) $(cppflags)
|
47
51
|
CXXFLAGS = $(CFLAGS)
|
48
|
-
|
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
|
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-
|
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
|
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
|
-
|
13
|
-
|
14
|
-
|
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
|
-
|
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
|
-
|
29
|
-
|
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
|
-
|
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/
|
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
|
-
|
49
|
+
DEFS =
|
50
|
+
CPPFLAGS = $(DEFS) $(cppflags)
|
47
51
|
CXXFLAGS = $(CFLAGS)
|
48
|
-
|
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
|
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-
|
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
|
data/ext/WSK/FFTUtils/FFTUtils.c
CHANGED
data/ext/WSK/FFTUtils/FFTUtils.o
CHANGED
Binary file
|
Binary file
|
data/ext/WSK/FFTUtils/Makefile
CHANGED
@@ -3,62 +3,88 @@ SHELL = /bin/sh
|
|
3
3
|
|
4
4
|
#### Start of system configuration section. ####
|
5
5
|
|
6
|
-
srcdir =
|
7
|
-
topdir = /
|
8
|
-
hdrdir =
|
9
|
-
|
10
|
-
|
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
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
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
|
-
|
29
|
+
infodir = $(datarootdir)/info
|
30
|
+
docdir = $(datarootdir)/doc/$(PACKAGE)
|
31
|
+
oldincludedir = $(DESTDIR)/usr/include
|
23
32
|
includedir = $(prefix)/include
|
24
|
-
|
25
|
-
sysconfdir = $(DESTDIR)/etc
|
26
|
-
mandir = $(prefix)/share/man
|
27
|
-
libdir = $(exec_prefix)/lib
|
33
|
+
localstatedir = $(prefix)/var
|
28
34
|
sharedstatedir = $(prefix)/com
|
29
|
-
|
30
|
-
|
31
|
-
|
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
|
-
|
41
|
+
rubylibdir = $(rubylibprefix)/$(ruby_version)
|
42
|
+
archdir = $(rubylibdir)/$(arch)
|
34
43
|
sitelibdir = $(sitedir)/$(ruby_version)
|
35
|
-
|
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
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
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 =
|
55
|
-
arch = i386-
|
56
|
-
sitearch = i386-
|
57
|
-
ruby_version = 1.
|
58
|
-
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
|
-
|
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
|
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) -
|
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
|
96
|
-
CLEANOBJS = *.o
|
97
|
-
|
98
|
-
all:
|
99
|
-
static:
|
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
|
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:
|
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
|
-
|
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 .
|
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
|
-
$(
|
186
|
+
$(DEFFILE):
|
187
|
+
$(RUBY) -e "puts 'EXPORTS', 'Init_$(TARGET)'" > $@
|
188
|
+
|
189
|
+
$(OBJS): $(hdrdir)/ruby.h $(hdrdir)/ruby/defines.h $(arch_hdrdir)/ruby/config.h
|
data/ext/WSK/FFTUtils/build.rb
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
#--
|
2
|
-
# Copyright (c) 2009-
|
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
|
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
|
-
|
13
|
-
|
14
|
-
|
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
|
-
|
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
|
-
|
29
|
-
|
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
|
-
|
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/
|
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
|
-
|
49
|
+
DEFS =
|
50
|
+
CPPFLAGS = $(DEFS) $(cppflags)
|
47
51
|
CXXFLAGS = $(CFLAGS)
|
48
|
-
|
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
|
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-
|
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
|