--- linuxsampler/trunk/src/common/Makefile.am 2006/02/26 13:00:08 840 +++ linuxsampler/trunk/src/common/Makefile.am 2010/09/18 09:24:41 2124 @@ -3,21 +3,42 @@ AM_CXXFLAGS = -Wreturn-type -ffast-math $(CXX_CPU_SWITCH) +liblinuxsamplercommonincludedir = $(includedir)/linuxsampler/common +liblinuxsamplercommoninclude_HEADERS = \ + Exception.h \ + Thread.h \ + global.h \ + optional.h \ + Mutex.h \ + SynchronizedConfig.h \ + Condition.h \ + lsatomic.h + noinst_LTLIBRARIES = liblinuxsamplercommon.la liblinuxsamplercommon_la_SOURCES = \ - ArrayList.h \ + global_private.cpp global_private.h \ atomic.h \ + ArrayList.h \ + DynamicLibraries.cpp DynamicLibraries.h \ Condition.cpp Condition.h \ ConditionServer.cpp ConditionServer.h \ Features.cpp Features.h \ - global.h \ - LinuxSamplerException.h \ - Mutex.cpp Mutex.h \ - optional.cpp optional.h \ + Mutex.cpp \ + optional.cpp \ Pool.h \ ResourceManager.h \ RingBuffer.h \ RTMath.cpp RTMath.h \ stacktrace.c stacktrace.h \ - SynchronizedConfig.h \ - Thread.cpp Thread.h + Thread.cpp Thread.h \ + WorkerThread.cpp WorkerThread.h \ + Path.cpp Path.h \ + File.cpp File.h + +# create the plugins directory (i.e. /usr/lib/linuxsampler/plugins) +install-exec-hook: + mkdir -p $(DESTDIR)$(config_plugin_dir) + +# remove the plugins directory (if empty) +uninstall-hook: + rmdir --ignore-fail-on-non-empty $(DESTDIR)$(config_plugin_dir)