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

NAME=bob~

external_LTLIBRARIES = bob~.la
SOURCES = bob~.c
PATCHES = bob~-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@ @PD_CFLAGS@
AM_CPPFLAGS	+= -I$(top_srcdir)/src -DPD @PD_CPPFLAGS@
bob__la_LIBADD = $(LIBM)
AM_LDFLAGS = -module -avoid-version -shared @EXTERNAL_LDFLAGS@ \
    -shrext .@EXTERNAL_EXTENSION@ -L$(top_builddir)/src @PD_LDFLAGS@

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@
