OSBASE=`uname -s` if test $OSBASE = IRIX64 ; then export OSBASE=IRIX fi export MJPLATFORM=$OSBASE-`uname -r` # YOU NEED TO ADJUST THE FOLLOWING LINE: export MUSTAJUURI_PATH=/usr/local/projects/tilmonen/mustajuuri-current export MUSTAJUURI_PLUGIN_PATH=$MUSTAJUURI_PATH/plugins/$MJPLATFORM/ export PATH=$MUSTAJUURI_PATH/bin/$MJPLATFORM/:$PATH if test $OSBASE = IRIX ; then export LD_LIBRARYN32_PATH=$MUSTAJUURI_PATH/lib/$OSTYPE/:$LD_LIBRARYN32_PATH else export LD_LIBRARY_PATH=$MUSTAJUURI_PATH/lib/$MJPLATFORM/:$LD_LIBRARY_PATH fi |
This example is optimized for the installation in my laboratory. You should change the value of MUSTAJUURI_PATH to match the Mustajuuri installation directory.
# Add include directories: INCLUDES += -I$(MUSTAJUURI_PATH)/include \ -I$(MUSTAJUURI_PATH)/include/$(MJPLATFORM) # The following flags should go to the compiler as the application is # linked: # Add library directory: LIBDIRS += -L$(MUSTAJUURI_PATH)/lib/$(MJPLATFORM) # Then a few examples on how to include the relevant libraries to the # link-process of your application: # Link DIVA base and I/O libary LIBRARIES += -ldiio -ldibase # Link Mustajuuri DSP library LIBRARIES += -lmjdsp # Link Mustajuuri Widget library (you also need -lqt for Qt) LIBRARIES += -lmjwidgets # Link auralization control library LIBRARIES += -laucontrol |
Note that the names of the Makefiel variables depend on your piece of software; LIBDIRS might be called LD_FLAGS or LINK_FLAGS, LIBRARIES might be called LIBS or (once again) LD_FLAGS.
Tommi Ilmonen@hut.fi