c@0: c@0: ## Skeleton Makefile for Vamp plugin builds using command-line tools. c@0: ## This requires GNU make, which is what you get with OS/X, Linux, or c@0: ## MinGW/Cygwin on Windows. c@0: ## c@0: ## Rename this to Makefile, and edit as appropriate. c@0: ## This Makefile WILL NOT WORK until you have edited it as described c@0: ## below -- the Makefile as supplied does nothing useful at all! c@0: ## c@0: ## Various sets of options are provided, commented out -- just uncomment c@0: ## (remove the '#' characters for) the set that most closely resembles c@0: ## your own situation, and adjust to taste. Then run "gmake". c@0: ## c@0: ## (For Windows builds using MS Visual Studio, start instead with the c@0: ## VampExamplePlugins project found in the build directory of the SDK.) c@0: c@0: c@0: # Edit this to the base name of your plugin library c@0: # c@0: PLUGIN_LIBRARY_NAME := tempogram c@0: c@0: # Edit this to list the .cpp or .c files in your plugin project c@0: # c@0: PLUGIN_SOURCES := Tempogram.cpp FIRFilter.cpp WindowFunction.cpp plugins.cpp c@0: c@0: # Edit this to list the .h files in your plugin project c@0: # c@0: PLUGIN_HEADERS := Tempogram.h FIRFilter.h WindowFunction.h c@0: c@0: # Edit this to the location of the Vamp plugin SDK, relative to your c@0: # project directory c@0: # c@0: VAMP_SDK_DIR := /usr/local/bin c@0: c@0: c@0: ## Uncomment these for an OS/X universal binary (32- and 64-bit Intel) c@0: ## supporting 10.5 or newer. Use this if you have OS/X 10.7 with the c@0: ## Xcode 4 command-line tools. c@0: c@0: CXX := g++ c@0: CXXFLAGS := -mmacosx-version-min=10.5 -arch x86_64 -I$(VAMP_SDK_DIR) -Wall -fPIC c@0: PLUGIN_EXT := .dylib c@0: LDFLAGS := $(CXXFLAGS) -dynamiclib -install_name $(PLUGIN_LIBRARY_NAME)$(PLUGIN_EXT) /usr/local/lib/libvamp-sdk.a -exported_symbols_list vamp-plugin.list c@0: c@0: c@0: ## Uncomment these for an OS/X universal binary (PPC and 32- and c@0: ## 64-bit Intel) supporting 10.5 or newer. Use this if you have OS/X c@0: ## 10.6 with the Xcode 3 command-line tools. c@0: c@0: # 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 c@0: # PLUGIN_EXT := .dylib c@0: # LDFLAGS := $(CXXFLAGS) -dynamiclib -install_name $(PLUGIN_LIBRARY_NAME)$(PLUGIN_EXT) $(VAMP_SDK_DIR)/libvamp-sdk.a -exported_symbols_list vamp-plugin.list c@0: c@0: c@0: ## Uncomment these for an OS/X universal binary (PPC and 32- and c@0: ## 64-bit Intel) supporting 10.4 or newer. Use this if you have OS/X c@0: ## 10.4, 10.5 or 10.6 and you have the 10.4 SDK installed. c@0: c@0: # CXX := g++-4.0 c@0: # 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 c@0: # PLUGIN_EXT := .dylib c@0: # LDFLAGS := $(CXXFLAGS) -dynamiclib -install_name $(PLUGIN_LIBRARY_NAME)$(PLUGIN_EXT) $(VAMP_SDK_DIR)/libvamp-sdk.a -exported_symbols_list vamp-plugin.list c@0: c@0: c@0: ## Uncomment these for Linux using the standard tools: c@0: c@0: # CXXFLAGS := -I$(VAMP_SDK_DIR) -Wall -fPIC c@0: # PLUGIN_EXT := .so c@0: # LDFLAGS := -shared -Wl,-soname=$(PLUGIN_LIBRARY_NAME)$(PLUGIN_EXT) $(VAMP_SDK_DIR)/libvamp-sdk.a -Wl,--version-script=vamp-plugin.map c@0: c@0: c@0: ## Uncomment these for a cross-compile from Linux to Windows using MinGW: c@0: c@0: # CXX := i586-mingw32msvc-g++ c@0: # CXXFLAGS := -I$(VAMP_SDK_DIR) -Wall c@0: # PLUGIN_EXT := .dll c@0: # LDFLAGS := --static-libgcc -Wl,-soname=$(PLUGIN_LIBRARY_NAME)$(PLUGIN_EXT) -shared $(VAMP_SDK_DIR)/libvamp-sdk.a c@0: c@0: c@0: ## Uncomment these for OpenSolaris using SunStudio compiler and GNU make: c@0: c@0: # CXX := CC c@0: # CXXFLAGS := -G -I$(VAMP_SDK_DIR) +w -KPIC c@0: # PLUGIN_EXT := .so c@0: # LDFLAGS := -G -h$(PLUGIN_LIBRARY_NAME)$(PLUGIN_EXT) $(VAMP_SDK_DIR)/libvamp-sdk.a -Qoption ld -Mvamp-plugin.map c@0: c@0: c@0: c@0: ## All of the above c@0: c@0: PLUGIN_OBJECTS := $(PLUGIN_SOURCES:.cpp=.o) c@0: PLUGIN_OBJECTS := $(PLUGIN_OBJECTS:.c=.o) c@0: c@0: $(PLUGIN_LIBRARY_NAME)$(PLUGIN_EXT): $(PLUGIN_OBJECTS) c@0: $(CXX) -o $@ $^ $(LDFLAGS) c@0: c@0: $(PLUGIN_OBJECTS): $(PLUGIN_HEADERS) c@0: c@0: clean: c@0: rm -f *.o *.dylib c@0: