#!/usr/bin/make -f

FLAGS=-O3 -pipe -ffast-math -mtune=generic -msse -msse2 -mfpmath=sse -fPIC -DPIC

export CFLAGS=$(FLAGS)
export CXXFLAGS=$(FLAGS)
export CPPFLAGS=
export LDFLAGS=-Wl,-O1 -Wl,--as-needed

%:
	dh $@

override_dh_auto_clean:
	dh_auto_clean
	$(MAKE) clean -C $(CURDIR)/plugins/AudibleInstruments
	$(MAKE) clean -C $(CURDIR)/plugins/Befaco
	$(MAKE) clean -C $(CURDIR)/plugins/ESeries
	$(MAKE) clean -C $(CURDIR)/plugins/Fundamental

override_dh_auto_build:
	$(MAKE)
	$(MAKE) -C $(CURDIR)/plugins/AudibleInstruments
	$(MAKE) -C $(CURDIR)/plugins/Befaco
	$(MAKE) -C $(CURDIR)/plugins/ESeries
	$(MAKE) -C $(CURDIR)/plugins/Fundamental
