Introduce variable 'PD_PATH', bump version to 0.3.0
This variable is useful when building against a 'portable' pd install. Makefile.pdlibbuilder should now be compatible with centralized build systems when PD_PATH is passed as make argument, or set in environment.
This commit is contained in:
parent
5b920b194d
commit
41e9743ed5
1 changed files with 15 additions and 3 deletions
|
|
@ -1,5 +1,5 @@
|
|||
# Makefile.pdlibbuilder dated 2016-10-09
|
||||
version = 0.2.8
|
||||
version = 0.3.0
|
||||
|
||||
# Helper makefile for Pure Data external libraries.
|
||||
# Written by Katja Vetter March-June 2015 for the public domain. No warranties.
|
||||
|
|
@ -76,6 +76,7 @@ version = 0.2.8
|
|||
#
|
||||
# Variables avaialable for (re)definition via command arguments:
|
||||
#
|
||||
# - PD_PATH
|
||||
# - pdbinpath (Windows only)
|
||||
# - pdincludepath
|
||||
# - DESTDIR
|
||||
|
|
@ -161,6 +162,10 @@ version = 0.2.8
|
|||
# Extra makefiles or directories with makefiles that should be made in sub-make
|
||||
# processes.
|
||||
#
|
||||
# PD_PATH:
|
||||
# Root directory of portable pd installation where bin/ and src/ are direct
|
||||
# subdirs.
|
||||
#
|
||||
# pdbinpath:
|
||||
# For Windows only. Directory where pd.dll can be found for linking.
|
||||
#
|
||||
|
|
@ -566,11 +571,11 @@ ifeq ($(system), Windows)
|
|||
-Wl,--enable-auto-import "$(pdbinpath)/pd.dll"
|
||||
c.ldlibs :=
|
||||
cxx.flags := -fcheck-new
|
||||
cxx.ldflags := -static-libstdc++ -shared \
|
||||
cxx.ldflags = -static-libstdc++ -shared \
|
||||
-Wl,--enable-auto-import "$(pdbinpath)/pd.dll"
|
||||
cxx.ldlibs :=
|
||||
shared.extension = dll
|
||||
shared.ldflags := -static-libgcc -shared "$(pdbinpath)/pd.dll"
|
||||
shared.ldflags = -static-libgcc -shared "$(pdbinpath)/pd.dll"
|
||||
stripflags = --strip-unneeded -R .note -R .comment
|
||||
endif
|
||||
|
||||
|
|
@ -578,6 +583,13 @@ endif
|
|||
#=== paths =====================================================================
|
||||
|
||||
|
||||
# If PD_PATH is defined as make command argument or in the environment, override
|
||||
# the earlier platform-dependent default.
|
||||
ifdef PD_PATH
|
||||
pdincludepath := $(PD_PATH)/src
|
||||
pdbinpath := $(PD_PATH)/bin
|
||||
endif
|
||||
|
||||
# Default pkglibdir is specified above per operating system. It is aliased as
|
||||
# 'objectsdir' to retain compatibility with pd-extended template. Assignment
|
||||
# operator '?=' is used to enable a project-relative path definition in the
|
||||
|
|
|
|||
Loading…
Reference in a new issue