annotate Makefile @ 20:de7213b35755

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