mirror of
https://github.com/thestk/stk
synced 2026-04-23 15:48:37 +00:00
Merge pull request #4 from radarsat1/master
Fix several potential compilation issues on various platforms, fix ElectricGuitar script, fix version number, add McGill logo.
This commit is contained in:
11
Makefile.in
11
Makefile.in
@@ -2,29 +2,40 @@
|
|||||||
|
|
||||||
RM = /bin/rm
|
RM = /bin/rm
|
||||||
|
|
||||||
|
REALTIME = @realtime@
|
||||||
|
|
||||||
all :
|
all :
|
||||||
cd src && $(MAKE)
|
cd src && $(MAKE)
|
||||||
cd projects/demo && $(MAKE) libdemo
|
cd projects/demo && $(MAKE) libdemo
|
||||||
|
ifeq ($(REALTIME),yes)
|
||||||
cd projects/effects && $(MAKE) libeffects
|
cd projects/effects && $(MAKE) libeffects
|
||||||
cd projects/ragamatic && $(MAKE) libragamat
|
cd projects/ragamatic && $(MAKE) libragamat
|
||||||
cd projects/eguitar && $(MAKE) libeguitar
|
cd projects/eguitar && $(MAKE) libeguitar
|
||||||
|
endif
|
||||||
cd projects/examples && $(MAKE) -f libMakefile
|
cd projects/examples && $(MAKE) -f libMakefile
|
||||||
|
|
||||||
clean :
|
clean :
|
||||||
$(RM) -f *~
|
$(RM) -f *~
|
||||||
cd src && $(MAKE) clean
|
cd src && $(MAKE) clean
|
||||||
cd projects/demo && $(MAKE) clean
|
cd projects/demo && $(MAKE) clean
|
||||||
|
ifeq ($(REALTIME),yes)
|
||||||
cd projects/effects && $(MAKE) clean
|
cd projects/effects && $(MAKE) clean
|
||||||
cd projects/ragamatic && $(MAKE) clean
|
cd projects/ragamatic && $(MAKE) clean
|
||||||
cd projects/eguitar && $(MAKE) clean
|
cd projects/eguitar && $(MAKE) clean
|
||||||
|
endif
|
||||||
cd projects/examples && $(MAKE) clean
|
cd projects/examples && $(MAKE) clean
|
||||||
|
|
||||||
distclean: clean
|
distclean: clean
|
||||||
$(RM) -rf config.log config.status autom4te.cache Makefile
|
$(RM) -rf config.log config.status autom4te.cache Makefile
|
||||||
cd src && $(MAKE) distclean
|
cd src && $(MAKE) distclean
|
||||||
cd projects/demo && $(MAKE) distclean
|
cd projects/demo && $(MAKE) distclean
|
||||||
|
ifeq ($(REALTIME),yes)
|
||||||
cd projects/effects && $(MAKE) distclean
|
cd projects/effects && $(MAKE) distclean
|
||||||
cd projects/ragamatic && $(MAKE) distclean
|
cd projects/ragamatic && $(MAKE) distclean
|
||||||
cd projects/eguitar && $(MAKE) distclean
|
cd projects/eguitar && $(MAKE) distclean
|
||||||
|
endif
|
||||||
cd projects/examples && $(MAKE) distclean
|
cd projects/examples && $(MAKE) distclean
|
||||||
|
|
||||||
|
install:
|
||||||
|
$(MAKE) -C src install
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
# Process this file with autoconf to produce a configure script.
|
# Process this file with autoconf to produce a configure script.
|
||||||
AC_INIT(STK, 4.4, gary@music.mcgill.ca, stk)
|
AC_INIT(STK, 4.4.4, gary@music.mcgill.ca, stk)
|
||||||
AC_CONFIG_AUX_DIR(config)
|
AC_CONFIG_AUX_DIR(config)
|
||||||
AC_CONFIG_SRCDIR(src/Stk.cpp)
|
AC_CONFIG_SRCDIR(src/Stk.cpp)
|
||||||
AC_CONFIG_FILES(Makefile src/Makefile projects/demo/Makefile projects/effects/Makefile projects/ragamatic/Makefile projects/examples/Makefile projects/examples/libMakefile projects/eguitar/Makefile)
|
AC_CONFIG_FILES(Makefile src/Makefile projects/demo/Makefile projects/effects/Makefile projects/ragamatic/Makefile projects/examples/Makefile projects/examples/libMakefile projects/eguitar/Makefile)
|
||||||
@@ -80,7 +80,6 @@ fi
|
|||||||
CPPFLAGS="$CPPFLAGS $cppflag"
|
CPPFLAGS="$CPPFLAGS $cppflag"
|
||||||
|
|
||||||
# For debugging and optimization ... overwrite default because it has both -g and -O2
|
# For debugging and optimization ... overwrite default because it has both -g and -O2
|
||||||
echo "$CXXFLAGS"
|
|
||||||
CXXFLAGS="$cxxflag"
|
CXXFLAGS="$cxxflag"
|
||||||
|
|
||||||
# Check compiler and use -Wall if gnu.
|
# Check compiler and use -Wall if gnu.
|
||||||
@@ -181,7 +180,7 @@ if test $realtime = yes; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
api="$api -D__WINDOWS_MM__"
|
api="$api -D__WINDOWS_MM__"
|
||||||
LIBS="-lole32 -lwinmm -lWsock32 $LIBS"
|
LIBS="-lole32 -lwinmm -lwsock32 $LIBS"
|
||||||
;;
|
;;
|
||||||
|
|
||||||
*)
|
*)
|
||||||
|
|||||||
BIN
doc/doxygen/images/mcgill.gif
Normal file
BIN
doc/doxygen/images/mcgill.gif
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 3.7 KiB |
@@ -236,7 +236,7 @@ protected:
|
|||||||
void removeSampleRateAlert( Stk *ptr );
|
void removeSampleRateAlert( Stk *ptr );
|
||||||
|
|
||||||
//! Internal function for error reporting that assumes message in \c oStream_ variable.
|
//! Internal function for error reporting that assumes message in \c oStream_ variable.
|
||||||
void handleError( StkError::Type type );
|
void handleError( StkError::Type type ) const;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -115,7 +115,7 @@ class TapDelay : public Filter
|
|||||||
inline StkFloat TapDelay :: lastOut( unsigned int tap ) const
|
inline StkFloat TapDelay :: lastOut( unsigned int tap ) const
|
||||||
{
|
{
|
||||||
#if defined(_STK_DEBUG_)
|
#if defined(_STK_DEBUG_)
|
||||||
if ( tap >= lastFrame_.size() ) ) {
|
if ( tap >= lastFrame_.size() ) {
|
||||||
oStream_ << "TapDelay::lastOut(): tap argument and number of taps are incompatible!";
|
oStream_ << "TapDelay::lastOut(): tap argument and number of taps are incompatible!";
|
||||||
handleError( StkError::FUNCTION_ARGUMENT );
|
handleError( StkError::FUNCTION_ARGUMENT );
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -14,6 +14,7 @@
|
|||||||
#include "SKINI.msg"
|
#include "SKINI.msg"
|
||||||
#include <iostream>
|
#include <iostream>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
|
#include <stdio.h>
|
||||||
|
|
||||||
void usage(void) {
|
void usage(void) {
|
||||||
std::cout << "\nuseage: Md2Skini <flag(s)>\n\n";
|
std::cout << "\nuseage: Md2Skini <flag(s)>\n\n";
|
||||||
|
|||||||
@@ -10,6 +10,9 @@ AR = ar -rsc
|
|||||||
RM = /bin/rm
|
RM = /bin/rm
|
||||||
LN = /bin/ln
|
LN = /bin/ln
|
||||||
OBJECT_PATH = @object_path@
|
OBJECT_PATH = @object_path@
|
||||||
|
LIBDIR = @libdir@
|
||||||
|
PREFIX = @prefix@
|
||||||
|
INCLUDEDIR = @includedir@
|
||||||
vpath %.o $(OBJECT_PATH)
|
vpath %.o $(OBJECT_PATH)
|
||||||
|
|
||||||
OBJECTS = Stk.o Generator.o Noise.o Blit.o BlitSaw.o BlitSquare.o Granulate.o \
|
OBJECTS = Stk.o Generator.o Noise.o Blit.o BlitSaw.o BlitSquare.o Granulate.o \
|
||||||
@@ -80,6 +83,17 @@ $(SHAREDLIB) : $(OBJECTS)
|
|||||||
$(LN) -s @sharedname@ $(SHAREDLIB)
|
$(LN) -s @sharedname@ $(SHAREDLIB)
|
||||||
# $(LN) -s @sharedname@ $(SHAREDLIB).$(MAJOR)
|
# $(LN) -s @sharedname@ $(SHAREDLIB).$(MAJOR)
|
||||||
|
|
||||||
|
install-headers:
|
||||||
|
install -d $(DESTDIR)$(PREFIX)$(INCLUDEDIR)/stk
|
||||||
|
cp -r ../include/*.h $(DESTDIR)$(PREFIX)$(INCLUDEDIR)/stk
|
||||||
|
|
||||||
|
install: $(SHAREDLIB) install-headers
|
||||||
|
install -d $(DESTDIR)$(PREFIX)$(LIBDIR)
|
||||||
|
install -m 644 $(SHAREDLIB).$(RELEASE) $(DESTDIR)$(PREFIX)$(LIBDIR)
|
||||||
|
ln -sf $(SHAREDLIB).$(RELEASE) $(DESTDIR)$(PREFIX)$(LIBDIR)/$(SHAREDLIB)
|
||||||
|
ln -sf $(SHAREDLIB).$(RELEASE) $(DESTDIR)$(PREFIX)$(LIBDIR)/$(SHAREDLIB).$(MAJOR)
|
||||||
|
|
||||||
|
|
||||||
$(OBJECTS) : Stk.h
|
$(OBJECTS) : Stk.h
|
||||||
|
|
||||||
clean :
|
clean :
|
||||||
|
|||||||
@@ -192,7 +192,7 @@ void Stk :: sleep(unsigned long milliseconds)
|
|||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
void Stk :: handleError( StkError::Type type )
|
void Stk :: handleError( StkError::Type type ) const
|
||||||
{
|
{
|
||||||
handleError( oStream_.str(), type );
|
handleError( oStream_.str(), type );
|
||||||
oStream_.str( std::string() ); // reset the ostringstream buffer
|
oStream_.str( std::string() ); // reset the ostringstream buffer
|
||||||
|
|||||||
Reference in New Issue
Block a user