# ----------------------------------------------------------------------------
#
#  Copyright (C) 2015-2017 Fons Adriaensen <fons@linuxaudio.org>
#    
#  This program is free software; you can redistribute it and/or modify
#  it under the terms of the GNU General Public License as published by
#  the Free Software Foundation; either version 3 of the License, or
#  (at your option) any later version.
#
#  This program is distributed in the hope that it will be useful,
#  but WITHOUT ANY WARRANTY; without even the implied warranty of
#  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
#  GNU General Public License for more details.
#
#  You should have received a copy of the GNU General Public License
#  along with this program.  If not, see <http://www.gnu.org/licenses/>.
#
# ----------------------------------------------------------------------------


CPPFLAGS += -I. 
CXXFLAGS += -fPIC -D_REENTRANT -Wall -O2
BINDIR = /usr/lib/ladspa

OBJS = hoa3tools.o sn3dpan3.o zrotator3.o sn3dhtop3.o convert3.o ambixfm3.o


hoa3tools.so:	$(OBJS)
	$(CXX) -shared -o $@ $(OBJS)


install:	hoa3tools.so
	install -d $(DESTDIR)$(BINDIR)
	install -m 755 hoa3tools.so $(DESTDIR)$(BINDIR)


uninstall:
	rm -f  $(DESTDIR)$(BINDIR)/hoa3tools.so


clean:
	/bin/rm -f *~ *.o *.so

