1# Copyright (C) 2004-2010 Fons Adriaensen <fons@kokkinizita.net> 2# 3# This program is free software; you can redistribute it and/or modify 4# it under the terms of the GNU General Public License as published by 5# the Free Software Foundation; either version 2 of the License, or 6# (at your option) any later version. 7# 8# This program is distributed in the hope that it will be useful, 9# but WITHOUT ANY WARRANTY; without even the implied warranty of 10# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 11# GNU General Public License for more details. 12# 13# You should have received a copy of the GNU General Public License 14# along with this program; if not, write to the Free Software 15# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. 16 17 18CPPFLAGS += -I. -fPIC -D_REENTRANT -Wall 19 20 21all: ambisonic0.so ambisonic1.so ambisonic2.so ambisonic3.so 22 23 24ambisonic0.so: ambisonic0.o ambisonic0_if.o virtmic.o allpass.o 25 $(CXX) -shared -o $@ ambisonic0.o ambisonic0_if.o virtmic.o allpass.o 26 27ambisonic0.o: ladspaplugin.h ambisonic0.h 28ambisonic0_if.o: ladspaplugin.h ambisonic0.h 29 30 31ambisonic1.so: ambisonic1.o ambisonic1_if.o filter1.o 32 $(CXX) -shared -o $@ ambisonic1.o ambisonic1_if.o filter1.o 33 34ambisonic1.o: ladspaplugin.h ambisonic1.h filter1.h 35ambisonic1_if.o: ladspaplugin.h ambisonic1.h 36 37 38ambisonic2.so: ambisonic2.o ambisonic2_if.o 39 $(CXX) -shared -o $@ ambisonic2.o ambisonic2_if.o 40 41ambisonic2.o: ladspaplugin.h ambisonic2.h 42ambisonic2_if.o: ladspaplugin.h ambisonic2.h 43 44 45ambisonic3.so: ambisonic3.o ambisonic3_if.o 46 $(CXX) -shared -o $@ ambisonic3.o ambisonic3_if.o 47 48ambisonic3.o: ladspaplugin.h ambisonic3.h 49ambisonic3_if.o: ladspaplugin.h ambisonic3.h 50 51 52install: all 53 /usr/bin/install -m 755 *.so /usr/lib/ladspa 54# Remove incompatible old versions 55 /bin/rm -rf /usr/lib/ladspa/ambisonic.so 56 /bin/rm -rf /usr/lib/ladspa/ambis1.so 57 /bin/rm -rf /usr/lib/ladspa/ambis2.so 58 59 60DIR := $(shell basename `pwd`) 61 62archive: clean 63 cd ..; /bin/rm -f $(DIR).tar.bz2; tar cvf $(DIR).tar $(DIR); bzip2 $(DIR).tar 64 65 66clean: 67 /bin/rm -f *~ *.o *.so 68 69