1# This program is free software; you can redistribute it and/or modify 2# it under the terms of the GNU General Public License as published by 3# the Free Software Foundation; either version 2 of the License, or 4# (at your option) any later version. 5# 6# This program is distributed in the hope that it will be useful, 7# but WITHOUT ANY WARRANTY; without even the implied warranty of 8# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 9# GNU General Public License for more details. 10# 11# You should have received a copy of the GNU General Public License 12# along with this program; if not, write to the Free Software 13# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. 14# 15# Note: this Makefile was modified from the version distributed with 16# TAP-plugins, an excellent collection by Tom Szilagyi. 17# http://tap-plugins.sf.net 18 19 20##################################################################### 21# PLEASE CHANGE THIS to your preferred installation location! 22# 23# Change this if you want to install somewhere else. In particular 24 25INSTALL_PLUGINS_DIR = /usr/lib64/ladspa/ 26 27# NO EDITING below this line is required 28# if all you want to do is install and use the plugins. 29##################################################################### 30 31 32 33# GENERAL 34 35CC = gcc 36CFLAGS = -I. -pipe -O2 -fno-strict-aliasing -c -fPIC -DPIC 37LDFLAGS = -nostartfiles -shared -Wl,-Bsymbolic -lc -lm -lrt 38 39PLUGINS = autotalent.so 40 41all: $(PLUGINS) 42 43# RULES TO BUILD PLUGINS FROM C CODE 44 45autotalent.so: autotalent.c ladspa.h 46 $(CC) $(CFLAGS) autotalent.c mayer_fft.c 47 $(CC) $(LDFLAGS) -o autotalent.so autotalent.o mayer_fft.o 48 49# OTHER TARGETS 50 51install: targets 52 -mkdir -p $(INSTALL_PLUGINS_DIR) 53 cp *.so $(INSTALL_PLUGINS_DIR) 54 55targets: $(PLUGINS) 56 57always: 58 59clean: 60 -rm -f `find . -name "*.so"` 61 -rm -f `find . -name "*.o"` 62 -rm -f `find . -name "*~"` 63