-
Notifications
You must be signed in to change notification settings - Fork 35
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
223 changed files
with
4,775 additions
and
8,925 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
# -*- mode: makefile-gmake -*- | ||
|
||
# This needs GNU make. | ||
|
||
# You may want to set these if you have the Pd include files in a | ||
# non-standard location, and/or want to install the external in a | ||
# custom directory. | ||
|
||
#PDINCLUDEDIR = /usr/include/pd | ||
#PDLIBDIR = /usr/lib/pd/extra | ||
|
||
# No need to edit anything below this line, usually. | ||
|
||
lib.name = pdlua | ||
|
||
pdlua_version := $(shell git describe --tags 2>/dev/null) | ||
|
||
luasrc = $(wildcard lua/onelua.c) | ||
|
||
PKG_CONFIG ?= pkg-config | ||
|
||
ifeq ($(luasrc),) | ||
# compile with installed liblua | ||
$(info ++++ NOTE: using installed lua) | ||
luaflags = $(shell $(PKG_CONFIG) --cflags lua) | ||
lualibs = $(shell $(PKG_CONFIG) --libs lua) | ||
else | ||
# compile with Lua submodule | ||
$(info ++++ NOTE: using lua submodule) | ||
luaflags = -DMAKE_LIB -Ilua | ||
define forDarwin | ||
luaflags += -DLUA_USE_MACOSX | ||
endef | ||
define forLinux | ||
luaflags += -DLUA_USE_LINUX | ||
endef | ||
define forWindows | ||
luaflags += -DLUA_USE_WINDOWS | ||
endef | ||
endif | ||
|
||
cflags = ${luaflags} -DPDLUA_VERSION="$(pdlua_version)" | ||
|
||
pdlua.class.sources := pdlua.c $(luasrc) | ||
pdlua.class.ldlibs := $(lualibs) | ||
|
||
datafiles = pd.lua $(wildcard pdlua*-help.pd) | ||
|
||
PDLIBBUILDER_DIR=. | ||
include $(PDLIBBUILDER_DIR)/Makefile.pdlibbuilder | ||
|
||
install: installplus | ||
|
||
pdx_files = $(addprefix ./pdlua/tutorial/examples/, pdx.lua pd-remote.el pd-remote.pd) | ||
|
||
installplus: | ||
$(INSTALL_DIR) -v "$(installpath)" | ||
cp -r ./pdlua/ "${installpath}"/pdlua | ||
cp pdlua-meta.pd "${installpath}" | ||
cp $(pdx_files) "${installpath}" |
Oops, something went wrong.