source: plugins/puredata/Makefile.am @ 398c1c5

feature/autosinkfeature/cnnfeature/cnn_orgfeature/constantqfeature/crepefeature/crepe_orgfeature/pitchshiftfeature/pydocstringsfeature/timestretchfix/ffmpeg5pitchshiftsamplertimestretchyinfft+
Last change on this file since 398c1c5 was 6a52f29, checked in by Paul Brossier <piem@altern.org>, 18 years ago

improve flags for windows and darwin puredata external
improve flags for windows and darwin puredata external

  • Property mode set to 100644
File size: 1.4 KB
RevLine 
[30cbd419]1## Process this file with automake to produce Makefile.in. -*-Makefile-*-
2# inspired from Guenter Geiger's Makefile.am for plugin
3# pure-data/externals/plugin~/Makefile.am -- rev 1.1
4
[6a52f29]5pddir = $(prefix)/lib/pd
[30cbd419]6
7## Make and install the shared library.
[77494e7]8pdinstalldir = $(pddir)/extra
[0eb4025]9pdinstallrefdir = $(pddir)/doc/5.reference
10pdinstallexpdir = $(pddir)/doc/aubio
[30cbd419]11
[be929a5]12if MINGW
13PDEXT = aubio.dll
14else
15if DARWIN
16PDEXT = aubio.pd_darwin
17else
18PDEXT = aubio.pd_linux
19endif
20endif
[cf83555]21
[be929a5]22pdinstall_PROGRAMS = $(PDEXT)
23
24ALLSOURCES = \
[cf83555]25        aubio_setup.c \
26        aubioonset~.c \
27        aubiotempo~.c \
28        aubiotss~.c \
[660c1d82]29        aubioquiet~.c \
30        aubiopitch~.c
[30cbd419]31
[be929a5]32aubio_pd_linux_SOURCES = $(ALLSOURCES)
33aubio_pd_darwin_SOURCES = $(ALLSOURCES)
34aubio_dll_SOURCES = $(ALLSOURCES)
[30cbd419]35
[be929a5]36pdincludedir = $(pddir)/src
[30cbd419]37
[6a52f29]38AM_CFLAGS  = -I$(top_srcdir)/src -I$(pdincludedir) -DPD @AUBIO_CFLAGS@
[be929a5]39if MINGW
[6a52f29]40else
41AM_CFLAGS += -fPIC -DPIC
42endif
43
44AM_LDFLAGS  = -L$(top_builddir)/src -laubio
45if MINGW
46AM_LDFLAGS += -export_dynamic -shared -lpd
[be929a5]47else
48if DARWIN
[6a52f29]49AM_LDFLAGS += -bundle -undefined suppress -flat_namespace
[be929a5]50else
[6a52f29]51AM_LDFLAGS += -export_dynamic -shared
[be929a5]52endif
53endif
54
[30cbd419]55## Install the documentation.
56
[0eb4025]57pdinstallref_DATA = \
[08d21bf]58        help/aubioonset~-help.pd \
59        help/aubioquiet~-help.pd \
60        help/aubiotempo~-help.pd \
61        help/aubiotss~-help.pd \
62        help/aubiopitch~-help.pd
[30cbd419]63
[0eb4025]64pdinstallexp_DATA = \
65        examples/onset-cam.pd
[30cbd419]66
[be929a5]67EXTRA_DIST = $(pdinstallref_DATA) $(pdinstallexp_DATA)
Note: See TracBrowser for help on using the repository browser.