annotate src/vamp-plugin-sdk-2.4/skeleton/Makefile.skeleton @ 23:619f715526df sv_v2.1

Update Vamp plugin SDK to 2.5
author Chris Cannam
date Thu, 09 May 2013 10:52:46 +0100
parents b7bda433d832
children
rev   line source
Chris@12 1
Chris@12 2 ## Skeleton Makefile for Vamp plugin builds using command-line tools.
Chris@12 3 ## This requires GNU make, which is what you get with OS/X, Linux, or
Chris@12 4 ## MinGW/Cygwin on Windows.
Chris@12 5 ##
Chris@12 6 ## Rename this to Makefile, and edit as appropriate.
Chris@12 7 ## This Makefile WILL NOT WORK until you have edited it as described
Chris@12 8 ## below -- the Makefile as supplied does nothing useful at all!
Chris@12 9 ##
Chris@12 10 ## Various sets of options are provided, commented out -- just uncomment
Chris@12 11 ## (remove the '#' characters for) the set that most closely resembles
Chris@12 12 ## your own situation, and adjust to taste. Then run "gmake".
Chris@12 13 ##
Chris@12 14 ## (For Windows builds using MS Visual Studio, start instead with the
Chris@12 15 ## VampExamplePlugins project found in the build directory of the SDK.)
Chris@12 16
Chris@12 17
Chris@12 18 # Edit this to the base name of your plugin library
Chris@12 19 #
Chris@12 20 PLUGIN_LIBRARY_NAME := myplugins
Chris@12 21
Chris@12 22 # Edit this to list the .cpp or .c files in your plugin project
Chris@12 23 #
Chris@12 24 PLUGIN_SOURCES := MyPlugin.cpp plugins.cpp
Chris@12 25
Chris@12 26 # Edit this to list the .h files in your plugin project
Chris@12 27 #
Chris@12 28 PLUGIN_HEADERS := MyPlugin.h
Chris@12 29
Chris@12 30 # Edit this to the location of the Vamp plugin SDK, relative to your
Chris@12 31 # project directory
Chris@12 32 #
Chris@12 33 VAMP_SDK_DIR := ../vamp-plugin-sdk
Chris@12 34
Chris@12 35
Chris@12 36 ## Uncomment these for an OS/X universal binary (32- and 64-bit Intel)
Chris@12 37 ## supporting 10.5 or newer. Use this if you have OS/X 10.7 with the
Chris@12 38 ## Xcode 4 command-line tools.
Chris@12 39
Chris@12 40 # CXX := g++
Chris@12 41 # CXXFLAGS := -mmacosx-version-min=10.5 -arch i386 -arch x86_64 -I$(VAMP_SDK_DIR) -Wall -fPIC
Chris@12 42 # PLUGIN_EXT := .dylib
Chris@12 43 # LDFLAGS := $(CXXFLAGS) -dynamiclib -install_name $(PLUGIN_LIBRARY_NAME)$(PLUGIN_EXT) $(VAMP_SDK_DIR)/libvamp-sdk.a -exported_symbols_list vamp-plugin.list
Chris@12 44
Chris@12 45
Chris@12 46 ## Uncomment these for an OS/X universal binary (PPC and 32- and
Chris@12 47 ## 64-bit Intel) supporting 10.5 or newer. Use this if you have OS/X
Chris@12 48 ## 10.6 with the Xcode 3 command-line tools.
Chris@12 49
Chris@12 50 # CXXFLAGS := -isysroot /Developer/SDKs/MacOSX10.5.sdk -mmacosx-version-min=10.5 -arch i386 -arch x86_64 -arch ppc -I$(VAMP_SDK_DIR) -Wall -fPIC
Chris@12 51 # PLUGIN_EXT := .dylib
Chris@12 52 # LDFLAGS := $(CXXFLAGS) -dynamiclib -install_name $(PLUGIN_LIBRARY_NAME)$(PLUGIN_EXT) $(VAMP_SDK_DIR)/libvamp-sdk.a -exported_symbols_list vamp-plugin.list
Chris@12 53
Chris@12 54
Chris@12 55 ## Uncomment these for an OS/X universal binary (PPC and 32- and
Chris@12 56 ## 64-bit Intel) supporting 10.4 or newer. Use this if you have OS/X
Chris@12 57 ## 10.4, 10.5 or 10.6 and you have the 10.4 SDK installed.
Chris@12 58
Chris@12 59 # CXX := g++-4.0
Chris@12 60 # CXXFLAGS := -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4 -arch i386 -arch x86_64 -arch ppc -I$(VAMP_SDK_DIR) -Wall -fPIC
Chris@12 61 # PLUGIN_EXT := .dylib
Chris@12 62 # LDFLAGS := $(CXXFLAGS) -dynamiclib -install_name $(PLUGIN_LIBRARY_NAME)$(PLUGIN_EXT) $(VAMP_SDK_DIR)/libvamp-sdk.a -exported_symbols_list vamp-plugin.list
Chris@12 63
Chris@12 64
Chris@12 65 ## Uncomment these for Linux using the standard tools:
Chris@12 66
Chris@12 67 # CXXFLAGS := -I$(VAMP_SDK_DIR) -Wall -fPIC
Chris@12 68 # PLUGIN_EXT := .so
Chris@12 69 # LDFLAGS := -shared -Wl,-soname=$(PLUGIN_LIBRARY_NAME)$(PLUGIN_EXT) $(VAMP_SDK_DIR)/libvamp-sdk.a -Wl,--version-script=vamp-plugin.map
Chris@12 70
Chris@12 71
Chris@12 72 ## Uncomment these for a cross-compile from Linux to Windows using MinGW:
Chris@12 73
Chris@12 74 # CXX := i586-mingw32msvc-g++
Chris@12 75 # CXXFLAGS := -I$(VAMP_SDK_DIR) -Wall
Chris@12 76 # PLUGIN_EXT := .dll
Chris@12 77 # LDFLAGS := --static-libgcc -Wl,-soname=$(PLUGIN_LIBRARY_NAME)$(PLUGIN_EXT) -shared $(VAMP_SDK_DIR)/libvamp-sdk.a
Chris@12 78
Chris@12 79
Chris@12 80 ## Uncomment these for OpenSolaris using SunStudio compiler and GNU make:
Chris@12 81
Chris@12 82 # CXX := CC
Chris@12 83 # CXXFLAGS := -G -I$(VAMP_SDK_DIR) +w -KPIC
Chris@12 84 # PLUGIN_EXT := .so
Chris@12 85 # LDFLAGS := -G -h$(PLUGIN_LIBRARY_NAME)$(PLUGIN_EXT) $(VAMP_SDK_DIR)/libvamp-sdk.a -Qoption ld -Mvamp-plugin.map
Chris@12 86
Chris@12 87
Chris@12 88
Chris@12 89 ## All of the above
Chris@12 90
Chris@12 91 PLUGIN_OBJECTS := $(PLUGIN_SOURCES:.cpp=.o)
Chris@12 92 PLUGIN_OBJECTS := $(PLUGIN_OBJECTS:.c=.o)
Chris@12 93
Chris@12 94 $(PLUGIN_LIBRARY_NAME)$(PLUGIN_EXT): $(PLUGIN_OBJECTS)
Chris@12 95 $(CXX) -o $@ $^ $(LDFLAGS)
Chris@12 96
Chris@12 97 $(PLUGIN_OBJECTS): $(PLUGIN_HEADERS)
Chris@12 98
Chris@12 99 clean:
Chris@12 100 rm -f *.o
Chris@12 101