Changeset be929a5 for python


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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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.