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