#########################################
##### Defaults & Paths #####

NAME=sigmund~

external_LTLIBRARIES = sigmund~.la
SOURCES = sigmund~.c
PATCHES = sigmund~-help.pd
OTHERDATA = 

EXTRA_DIST = makefile

#########################################
##### Files, Binaries, & Libs #####

# you shouldn't need to add anything below here
dist_external_DATA = $(PATCHES) $(OTHERDATA)

AUTOMAKE_OPTIONS = foreign
AM_CFLAGS = @EXTERNAL_CFLAGS@
AM_CPPFLAGS	+= -I$(top_srcdir)/src -DPD
sigmund__la_LIBADD = $(LIBM)
AM_LDFLAGS = -module -avoid-version -shared @EXTERNAL_LDFLAGS@ \
    -shrext .@EXTERNAL_EXTENSION@ -L$(top_builddir)/src

externaldir = $(pkglibdir)/extra/$(NAME)

#########################################
##### Targets #####

libtool: $(LIBTOOL_DEPS)
	$(SHELL) ./config.status --recheck

# create convenience link for running locally
all-local:
	rm -f *.@EXTERNAL_EXTENSION@
	-$(LN_S) $(wildcard .libs/*.@EXTERNAL_EXTENSION@) ./

clean-local:
	rm -f *.@EXTERNAL_EXTENSION@
