annotate Makefile.osx @ 103:9d81703dcf6e matthiasm-plugin v0.2.1

set internal version number to 3
author Matthias Mauch <mail@matthiasmauch.net>
date Tue, 07 Dec 2010 21:27:36 +0900
parents f3afde2a8ced
children 57bf719bce30
rev   line source
matthiasm@45 1 PLUGIN_LIBRARY_NAME = nnls-chroma
matthiasm@0 2
matthiasm@0 3 # Edit this to list one .o file for each .cpp file in your plugin project
matthiasm@0 4 #
matthiasm@43 5 PLUGIN_CODE_OBJECTS = NNLSBase.o NNLSChroma.o Chordino.o Tuning.o plugins.o nnls.o chromamethods.o viterbi.o
matthiasm@0 6
matthiasm@0 7 # Edit this to the location of the Vamp plugin SDK, relative to your
matthiasm@0 8 # project directory
matthiasm@0 9 #
matthiasm@0 10 VAMP_SDK_DIR = ../vamp-plugin-sdk
Chris@26 11 BOOST_ROOT = ../boost_1_44_0
matthiasm@0 12
matthiasm@0 13
matthiasm@0 14 ## Uncomment these for an OS/X native build using command-line tools:
mail@34 15 ARCHFLAGS = -isysroot /Developer/SDKs/MacOSX10.5.sdk -mmacosx-version-min=10.5 -arch i386
Chris@26 16 CFLAGS = $(ARCHFLAGS) -Wall -fPIC -g
Chris@26 17 CXXFLAGS = $(CFLAGS) -I$(VAMP_SDK_DIR) -I$(BOOST_ROOT)
matthiasm@0 18 PLUGIN_EXT = .dylib
matthiasm@0 19 PLUGIN = $(PLUGIN_LIBRARY_NAME)$(PLUGIN_EXT)
Chris@26 20 LDFLAGS = $(ARCHFLAGS) -dynamiclib -install_name $(PLUGIN) $(VAMP_SDK_DIR)/libvamp-sdk.a -exported_symbols_list vamp-plugin.list -framework Accelerate
matthiasm@0 21
matthiasm@0 22
matthiasm@0 23 $(PLUGIN): $(PLUGIN_CODE_OBJECTS)
matthiasm@0 24 $(CXX) -o $@ $^ $(LDFLAGS)
matthiasm@0 25
Chris@26 26 nnls.o: nnls.c # not nnls.f
Chris@26 27
matthiasm@0 28 clean:
matthiasm@0 29 rm -f *.o
matthiasm@0 30
Chris@35 31 # DO NOT DELETE
Chris@35 32
Chris@35 33 nnls.o: nnls.h
Chris@35 34 Chordino.o: Chordino.h NNLSBase.h chromamethods.h nnls.h
Chris@35 35 chromamethods.o: chromamethods.h nnls.h chorddict.cpp
Chris@35 36 NNLSBase.o: NNLSBase.h chromamethods.h nnls.h
Chris@35 37 NNLSChroma.o: NNLSChroma.h NNLSBase.h chromamethods.h nnls.h
Chris@35 38 plugins.o: NNLSChroma.h NNLSBase.h Chordino.h Tuning.h
Chris@35 39 Tuning.o: Tuning.h NNLSBase.h chromamethods.h nnls.h
Chris@35 40 Chordino.o: NNLSBase.h
Chris@35 41 chromamethods.o: nnls.h
Chris@35 42 NNLSChroma.o: NNLSBase.h
Chris@35 43 Tuning.o: NNLSBase.h
matthiasm@43 44 viterbi.o: viterbi.h