To check out this repository please hg clone the following URL, or open the URL using EasyMercurial or your preferred Mercurial client.
root / skeleton / Makefile.inc
History | View | Annotate | Download (1.95 KB)
| 1 |
|
|---|---|
| 2 |
## Makefile for Vamp plugin builds using command-line tools. |
| 3 |
## |
| 4 |
## This file defines all of the system-independent information about |
| 5 |
## your project: the list of source files, plugin library name, etc. |
| 6 |
## Edit this file to make sure it has all the right information. |
| 7 |
## |
| 8 |
## This file does not define the system-specific stuff such as which |
| 9 |
## compiler to use -- that goes into Makefile.osx, Makefile.mingw32, |
| 10 |
## Makefile.linux etc. Those files all include this file, so that |
| 11 |
## they all have a consistent set of project data. |
| 12 |
## |
| 13 |
## To build the plugin project, type |
| 14 |
## |
| 15 |
## $ gmake -f Makefile.osx |
| 16 |
## |
| 17 |
## or whatever the equivalent filename suffix is for your platform. |
| 18 |
## |
| 19 |
## This requires GNU make, which is what you get with OS/X, Linux, or |
| 20 |
## MinGW/Cygwin on Windows. |
| 21 |
## |
| 22 |
## (For Windows builds using MS Visual Studio, start instead with the |
| 23 |
## VampExamplePlugins project found in the build directory of the SDK.) |
| 24 |
|
| 25 |
|
| 26 |
# Edit this to the base name of your plugin library |
| 27 |
# |
| 28 |
PLUGIN_LIBRARY_NAME := myplugins |
| 29 |
|
| 30 |
# Edit this to list the .cpp or .c files in your plugin project |
| 31 |
# |
| 32 |
PLUGIN_SOURCES := MyPlugin.cpp plugins.cpp |
| 33 |
|
| 34 |
# Edit this to list the .h files in your plugin project |
| 35 |
# |
| 36 |
PLUGIN_HEADERS := MyPlugin.h |
| 37 |
|
| 38 |
|
| 39 |
## Normally you should not edit anything below this line |
| 40 |
|
| 41 |
SRC_DIR := . |
| 42 |
|
| 43 |
# Defaults, usually overridden in the platform-specific Makefile |
| 44 |
VAMPSDK_DIR ?= ../vamp-plugin-sdk |
| 45 |
PLUGIN_EXT ?= .so |
| 46 |
CXX ?= g++ |
| 47 |
CC ?= gcc |
| 48 |
|
| 49 |
CFLAGS := $(ARCHFLAGS) $(CFLAGS) |
| 50 |
CXXFLAGS := $(CFLAGS) -I. -I$(VAMPSDK_DIR) $(CXXFLAGS) |
| 51 |
|
| 52 |
LDFLAGS := $(ARCHFLAGS) $(LDFLAGS) |
| 53 |
PLUGIN_LDFLAGS := $(LDFLAGS) $(PLUGIN_LDFLAGS) |
| 54 |
|
| 55 |
PLUGIN := $(PLUGIN_LIBRARY_NAME)$(PLUGIN_EXT) |
| 56 |
|
| 57 |
PLUGIN_OBJECTS := $(PLUGIN_SOURCES:.cpp=.o) |
| 58 |
PLUGIN_OBJECTS := $(PLUGIN_OBJECTS:.c=.o) |
| 59 |
|
| 60 |
$(PLUGIN): $(PLUGIN_OBJECTS) |
| 61 |
$(CXX) -o $@ $^ $(PLUGIN_LDFLAGS) |
| 62 |
|
| 63 |
$(PLUGIN_OBJECTS): $(PLUGIN_HEADERS) |
| 64 |
|
| 65 |
clean: |
| 66 |
rm -f $(PLUGIN_OBJECTS) |
| 67 |
|
| 68 |
distclean: clean |
| 69 |
rm -f $(PLUGIN) |
| 70 |
|
| 71 |
depend: |
| 72 |
makedepend -Y -fMakefile.inc $(PLUGIN_SOURCES) $(PLUGIN_HEADERS) |
| 73 |
|