annotate src/vamp-plugin-sdk-2.5/skeleton/Makefile.skeleton @ 169:223a55898ab9 tip default

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