$NetBSD: patch-aa,v 1.2 2005/03/31 17:17:07 minskim Exp $ --- makefile.orig 2004-02-28 17:30:22.000000000 +0100 +++ makefile 2004-02-28 17:35:17.000000000 +0100 @@ -5,9 +5,9 @@ # Change these if you want to install somewhere else. In particularly # you may wish to remove the middle "local/" part of each entry. -INSTALL_PLUGINS_DIR = /usr/local/lib/ladspa/ -INSTALL_INCLUDE_DIR = /usr/include/ -INSTALL_BINARY_DIR = /usr/local/bin/ +INSTALL_PLUGINS_DIR = ${PREFIX}/lib/ladspa +INSTALL_INCLUDE_DIR = ${PREFIX}/include +INSTALL_BINARY_DIR = ${PREFIX}/bin ############################################################################### # @@ -15,8 +15,8 @@ # INCLUDES = -I. -LIBRARIES = -ldl -lm -CFLAGS = $(INCLUDES) -Wall -Werror -O3 -fPIC +LIBRARIES = $(DL_LIBS) -lm +CFLAGS = $(INCLUDES) -Wall -Werror -fPIC CXXFLAGS = $(CFLAGS) PLUGINS = ../plugins/amp.so \ ../plugins/delay.so \ @@ -26,8 +26,8 @@ PROGRAMS = ../bin/analyseplugin \ ../bin/applyplugin \ ../bin/listplugins -CC = cc -CPP = c++ +#CC = cc +#CPP = c++ ############################################################################### # @@ -39,32 +39,19 @@ $(LD) -o ../plugins/$*.so plugins/$*.o -shared ../plugins/%.so: plugins/%.cpp ladspa.h - $(CPP) $(CXXFLAGS) -o plugins/$*.o -c plugins/$*.cpp - $(CPP) -o ../plugins/$*.so plugins/$*.o -shared + $(CXX) $(CXXFLAGS) -o plugins/$*.o -c plugins/$*.cpp + $(CXX) -o ../plugins/$*.so plugins/$*.o -shared ############################################################################### # # TARGETS # -test: /tmp/test.wav ../snd/noise.wav always - @echo --------------------------------------------- - @echo First listen to the white noise input signal: - @echo --------------------------------------------- - play ../snd/noise.wav - @echo ------------------------- - @echo Compare to plugin output. - @echo ------------------------- - @echo Should be a noise band around 6000Hz, repeated quietly after 1s. - play /tmp/test.wav - -install: targets - -mkdirhier $(INSTALL_PLUGINS_DIR) \ - $(INSTALL_INCLUDE_DIR) \ - $(INSTALL_BINARY_DIR) - cp ../plugins/* $(INSTALL_PLUGINS_DIR) - cp ladspa.h $(INSTALL_INCLUDE_DIR) - cp ../bin/* $(INSTALL_BINARY_DIR) +install: + $(BSD_INSTALL_DATA_DIR) $(INSTALL_PLUGINS_DIR) + $(BSD_INSTALL_DATA) ../plugins/* $(INSTALL_PLUGINS_DIR) + $(BSD_INSTALL_DATA) ladspa.h $(INSTALL_INCLUDE_DIR) + $(BSD_INSTALL_PROGRAM) ../bin/* $(INSTALL_BINARY_DIR) /tmp/test.wav: targets ../snd/noise.wav ../bin/listplugins @@ -82,7 +69,7 @@ ../plugins/delay.so delay_5s 1 0.1 \ ../plugins/amp.so amp_mono 4 \ -targets: $(PLUGINS) $(PROGRAMS) +all: $(PLUGINS) $(PROGRAMS) ############################################################################### #