Changeset be929a5


Ignore:
Timestamp:
Sep 29, 2006, 4:18:53 PM (18 years ago)
Author:
Paul Brossier <piem@altern.org>
Branches:
feature/autosink, feature/cnn, feature/cnn_org, feature/constantq, feature/crepe, feature/crepe_org, feature/pitchshift, feature/pydocstrings, feature/timestretch, fix/ffmpeg5, master, pitchshift, sampler, timestretch, yinfft+
Children:
237f632
Parents:
5a405dd
Message:

use os conditionals, update python swig and puredata external Makefiles
use os conditionals, update python swig and puredata external Makefiles

Files:
3 edited

Legend:

Unmodified
Added
Removed
  • configure.ac

    r5a405dd rbe929a5  
    7979AC_CONFIG_FILES(aubio.pc)
    8080
     81AM_CONDITIONAL(MINGW, false)
     82AM_CONDITIONAL(DARWIN, false)
    8183case "${host_os}" in
    8284*mingw*)
    8385  mingw32_support="yes"
    8486  AC_CHECK_HEADER(windows.h)
     87  AM_CONDITIONAL(MINGW, true)
    8588  ;;
    8689*darwin*)
     
    9093  AUBIO_CFLAGS="$AUBIO_CFLAGS -Wno-long-double"
    9194  AC_ISC_POSIX
     95  AM_CONDITIONAL(DARWIN, true)
    9296  ;;
    9397*)
     
    212216AM_PATH_PYTHON
    213217AM_CONDITIONAL(PYTHONFOUND, test "${PYTHON}" != "no")
    214 #
    215 #if PYTHONFOUND
    216 case "${host_os}" in
    217 *darwin*)
    218   SWCFLAGS="-Wno-long-double"
    219   SWLDFLAGS="-bundle -framework python -L${prefix}/lib/python${PYTHON_VERSION}/config -lpython${PYTHON_VERSION}"
    220   ;;
    221 *)
    222   SWLDFLAGS="-shared"
    223   ;;
    224 esac
    225 #
    226 AC_SUBST(SWCFLAGS)
    227 AC_SUBST(SWLDFLAGS)
    228218
    229219dnl Check for docbook-to-man
  • plugins/puredata/Makefile.am

    r5a405dd rbe929a5  
    66PDDIR = $(prefix)/lib/pd
    77pddir = $(PDDIR)
    8 #SUBDIRS = ladspa vst win
    98
    109## Make and install the shared library.
     
    1312pdinstallexpdir = $(pddir)/doc/aubio
    1413
    15 # Automake won't accept something ending in ".pd_linux" as a library
    16 pdinstall_PROGRAMS = aubio.pd_linux
     14if MINGW
     15PDEXT = aubio.dll
     16else
     17if DARWIN
     18PDEXT = aubio.pd_darwin
     19else
     20PDEXT = aubio.pd_linux
     21endif
     22endif
    1723
    18 aubio_pd_linux_SOURCES = \
     24pdinstall_PROGRAMS = $(PDEXT)
     25
     26ALLSOURCES = \
    1927        aubio_setup.c \
    2028        aubioonset~.c \
     
    2432        aubiopitch~.c
    2533
     34aubio_pd_linux_SOURCES = $(ALLSOURCES)
     35aubio_pd_darwin_SOURCES = $(ALLSOURCES)
     36aubio_dll_SOURCES = $(ALLSOURCES)
     37
    2638pdincludedir = $(pddir)/src
    2739
    28 LIBTOOL=$(SHELL) $(srcdir)/libtoolkludge
     40AM_CFLAGS  = -I$(top_srcdir)/src -I$(pdincludedir) -DPD -fPIC -DPIC @AUBIO_CFLAGS@
     41if MINGW
     42AM_LDFLAGS = -L$(top_builddir)/src/.libs -laubio -export_dynamic -shared
     43else
     44if DARWIN
     45AM_LDFLAGS = -L$(top_builddir)/src/.libs -laubio -export_dynamic -shared
     46else
     47AM_LDFLAGS = -L$(top_builddir)/src/.libs -laubio -export_dynamic -shared
     48endif
     49endif
    2950
    30 INCLUDES = -I$(top_srcdir)/src -I$(pdincludedir)
    31 
    32 AM_CFLAGS  = -DPD -fPIC -DPIC
    33 AM_LDFLAGS = -L$(top_builddir)/src/.libs -laubio -export_dynamic -shared
    3451
    3552## Install the documentation.
     
    4562        examples/onset-cam.pd
    4663
    47 ## My kludge
    48 noinst_SCRIPTS = libtoolkludge
    49 
    50 EXTRA_DIST = $(pdinstallref_DATA) $(pdinstallexp_DATA) $(noinst_SCRIPTS)
    51 
     64EXTRA_DIST = $(pdinstallref_DATA) $(pdinstallexp_DATA)
  • python/aubio/Makefile.am

    r5a405dd rbe929a5  
    4141nodist_pkgpython_PYTHON = aubiowrapper.py _aubiowrapper.so
    4242
     43_aubiowrapper.so: _aubiowrapper.la
     44
     45if MINGW
     46SWLDFLAGS = ""
     47else
     48if DARWIN
     49SWLDFLAGS = "-bundle -framework Python"
     50else
     51SWLDFLAGS = "-shared"
     52endif
     53endif
     54
    4355CLEANFILES = *.pyc *.so *.o aubio_wrap.c aubiowrapper.py
    44 
    45 all: _aubiowrapper.so
    4656
    4757NOWARN_CFLAGS = -Wno-missing-prototypes -Wno-missing-declarations \
    4858        -Wno-strict-aliasing
    4959
    50 AM_CFLAGS = $(SWCFLAGS) -fPIC -DPIC \
     60AM_CFLAGS = @AUBIO_CFLAGS@ $(NOWARN_CFLAGS) $(SWCFLAGS) \
    5161        -I$(top_builddir)/src -I$(top_srcdir)/src -I$(top_srcdir)/ext \
    5262        -I/usr/include/python${PYTHON_VERSION} \
     
    5565        -I${prefix}/include
    5666
    57 AM_LDFLAGS = $(SWLDFLAGS) \
     67AUBIO_LDFLAGS = $(SWLDFLAGS) \
    5868        -L$(top_builddir)/ext/.libs -laubioext \
    5969        -L$(top_builddir)/src/.libs -laubio
    6070
    61 aubio_wrap.c:
     71python_DATA = aubiowrapper.py
     72python_LTLIBRARIES = _aubiowrapper.la
     73
     74_aubiowrapper_la_LDFLAGS = -no-undefined -module -avoid-version $(AUBIO_LDFLAGS)
     75_aubiowrapper_la_SOURCES = aubio_wrap.c
     76
     77aubio_wrap.c aubiowrapper.py:
    6278        $(SWIG) -outdir . -o aubio_wrap.c -python $(top_srcdir)/swig/aubio.i
    63 
    64 _aubiowrapper.so: aubio_wrap.c
    65         $(CC) $(AM_CFLAGS) $(CFLAGS) $(NOWARN_CFLAGS) -c aubio_wrap.c
    66         $(CC) $(AM_LDFLAGS) $(LDFLAGS) aubio_wrap.o -o _aubiowrapper.so
Note: See TracChangeset for help on using the changeset viewer.