From bde380b8a24edc207fcbafc6780ab88c449862d8 Mon Sep 17 00:00:00 2001 From: Hans-Christoph Steiner Date: Fri, 1 Feb 2008 19:42:51 +0000 Subject: added pdlua to Pd-extended and made it build automatically on Mac OS X and GNU/Linux svn path=/trunk/; revision=9162 --- externals/Makefile | 30 ++++++++++++++++++++++++++++-- 1 file changed, 28 insertions(+), 2 deletions(-) diff --git a/externals/Makefile b/externals/Makefile index 9099ced5..395db276 100644 --- a/externals/Makefile +++ b/externals/Makefile @@ -131,10 +131,10 @@ ifeq ($(OS_NAME),windows) LIB_TARGETS += else ifeq ($(OS_NAME),darwin) - LIB_TARGETS += hid hidio pdp pidip gem2pdp wiiremote iem16 usbhid + LIB_TARGETS += hid hidio pdp pidip gem2pdp wiiremote iem16 usbhid pdlua else # GNU/Linux, BSD, IRIX, etc. - LIB_TARGETS += hid hidio pdp pidip gem2pdp hdspm_mixer iem16 postlude + LIB_TARGETS += hid hidio pdp pidip gem2pdp hdspm_mixer iem16 postlude pdlua endif endif @@ -1906,6 +1906,32 @@ pddp_clean: +#------------------------------------------------------------------------------# +# PDLUA +PDLUA_NAME=pdlua +PDLUA_OBJECTS := $(wildcard $(externals_src)/loaders/pdlua/src/lua.c) +pdlua: $(PDLUA_OBJECTS:.c=.$(EXTENSION)) + +pdlua_install: pdlua + install -d $(objectsdir) + install -p $(PDLUA_OBJECTS:.c=.$(EXTENSION)) $(objectsdir) + install -d $(manualsdir)/$(PDLUA_NAME) + install -p $(externals_src)/loaders/pdlua/doc/*.txt \ + $(manualsdir)/$(PDLUA_NAME) + install -d $(readmesdir) + install -p $(externals_src)/loaders/pdlua/README \ + $(readmesdir)/$(PDLUA_NAME).txt + install -d $(examplesdir)/$(PDLUA_NAME) + install -p $(externals_src)/loaders/pdlua/examples/*.* \ + $(examplesdir)/$(PDLUA_NAME) + +pdlua_clean: + -rm -f -- $(PDLUA_OBJECTS:.c=.$(EXTENSION)) + -rm -f -- $(PDLUA_OBJECTS:.c=.o) + -rm -f -- $(externals_src)/loaders/pdlua/*.bak + -rm -f -- $(externals_src)/loaders/pdlua/*.*~ + + #------------------------------------------------------------------------------# # PDOGG PDOGG_NAME=pdogg -- cgit v1.2.1