Mercurial > hg > vamp-plugin-sdk
comparison build/Makefile.mingw32 @ 368:0ca8e104e8b1
Starting to update win32/mingw cross-compile
author | Chris Cannam |
---|---|
date | Mon, 04 Aug 2014 17:07:39 +0100 |
parents | d5c5a52e6c9f |
children | ff78d47310af |
comparison
equal
deleted
inserted
replaced
367:57cc0f0c20ff | 368:0ca8e104e8b1 |
---|---|
59 # | 59 # |
60 default: all | 60 default: all |
61 | 61 |
62 # Tools selection | 62 # Tools selection |
63 # | 63 # |
64 CXX = i586-mingw32msvc-g++ | 64 TOOLPREFIX ?= i586-mingw32msvc- |
65 LD = i586-mingw32msvc-g++ | 65 CXX = $(TOOLPREFIX)g++ |
66 AR = i586-mingw32msvc-ar | 66 CC = $(TOOLPREFIX)gcc |
67 RANLIB = i586-mingw32msvc-ranlib | 67 LD = $(TOOLPREFIX)g++ |
68 AR = $(TOOLPREFIX)ar | |
69 RANLIB = $(TOOLPREFIX)ranlib | |
68 | 70 |
69 # Compile flags | 71 # Compile flags |
70 # | 72 # |
71 CXXFLAGS = -O2 -Wall -I. -I../include | 73 CXXFLAGS = -O2 -Wall -I. -I../include |
72 | 74 |
86 # | 88 # |
87 RDFGEN_LIBS = ./libvamp-hostsdk.a | 89 RDFGEN_LIBS = ./libvamp-hostsdk.a |
88 | 90 |
89 # Flags required to tell the compiler to create a dynamically loadable object | 91 # Flags required to tell the compiler to create a dynamically loadable object |
90 # | 92 # |
91 DYNAMIC_LDFLAGS = --static-libgcc -shared -Wl,-Bsymbolic | 93 DYNAMIC_LDFLAGS = -shared -Wl,-Bsymbolic |
92 | 94 |
93 # Flags for building specific plugin and library targets. We need to | 95 # Flags for building specific plugin and library targets. We need to |
94 # tell the linker the formal name for the library, and for plugins we | 96 # tell the linker the formal name for the library, and for plugins we |
95 # also want to tell the linker to make all symbols in the library | 97 # also want to tell the linker to make all symbols in the library |
96 # hidden except for the public entry point (making for a tidier library). | 98 # hidden except for the public entry point (making for a tidier library). |
97 # | 99 # |
98 PLUGIN_LDFLAGS = $(DYNAMIC_LDFLAGS) -Wl,--version-script=build/vamp-plugin.map | 100 PLUGIN_LDFLAGS = $(DYNAMIC_LDFLAGS) -Wl,--version-script=build/vamp-plugin.map |
99 SDK_DYNAMIC_LDFLAGS = $(DYNAMIC_LDFLAGS) -Wl,-soname=$(INSTALL_SDK_LIBNAME) | 101 SDK_DYNAMIC_LDFLAGS = $(DYNAMIC_LDFLAGS) |
100 HOSTSDK_DYNAMIC_LDFLAGS = $(DYNAMIC_LDFLAGS) -Wl,-soname=$(INSTALL_HOSTSDK_LIBNAME) | 102 HOSTSDK_DYNAMIC_LDFLAGS = $(DYNAMIC_LDFLAGS) |
101 | 103 |
102 | 104 |
103 ### End of user-serviceable parts | 105 ### End of user-serviceable parts |
104 | 106 |
105 | 107 |