Mercurial > hg > vamp-test-plugin
annotate Makefile.osx @ 15:bc66d4d9c8f2
Looks like --retain-symbols-file=<file>.list is the PE equivalent of the ELF version script for our purposes
author | Chris Cannam |
---|---|
date | Wed, 06 Aug 2014 16:02:25 +0100 |
parents | 6dbe7751bc40 |
children | a7bd1daac7f3 |
rev | line source |
---|---|
Chris@12 | 1 |
Chris@12 | 2 PLUGIN_LIBRARY_NAME := vamp-test-plugin |
Chris@12 | 3 |
Chris@12 | 4 PLUGIN_SOURCES := VampTestPlugin.cpp plugins.cpp |
Chris@12 | 5 |
Chris@12 | 6 PLUGIN_HEADERS := VampTestPlugin.h |
Chris@12 | 7 |
Chris@12 | 8 VAMP_SDK_DIR := ../vamp-plugin-sdk |
Chris@12 | 9 |
Chris@12 | 10 CXXFLAGS := -I$(VAMP_SDK_DIR) -Wall -fPIC |
Chris@12 | 11 PLUGIN_EXT := .dylib |
Chris@12 | 12 LDFLAGS := -dynamiclib $(VAMP_SDK_DIR)/libvamp-sdk.a -exported_symbols_list vamp-plugin.list -install_name $(PLUGIN_LIBRARY_NAME)$(PLUGIN_EXT) |
Chris@12 | 13 |
Chris@12 | 14 |
Chris@12 | 15 PLUGIN_OBJECTS := $(PLUGIN_SOURCES:.cpp=.o) |
Chris@12 | 16 PLUGIN_OBJECTS := $(PLUGIN_OBJECTS:.c=.o) |
Chris@12 | 17 |
Chris@12 | 18 $(PLUGIN_LIBRARY_NAME)$(PLUGIN_EXT): $(PLUGIN_OBJECTS) |
Chris@12 | 19 $(CXX) -o $@ $^ $(LDFLAGS) |
Chris@12 | 20 |
Chris@12 | 21 $(PLUGIN_OBJECTS): $(PLUGIN_HEADERS) |
Chris@12 | 22 |
Chris@12 | 23 clean: |
Chris@12 | 24 rm -f *.o |
Chris@12 | 25 |