aboutsummaryrefslogtreecommitdiff
path: root/externals/Makefile
diff options
context:
space:
mode:
authorHans-Christoph Steiner <eighthave@users.sourceforge.net>2008-02-01 19:42:51 +0000
committerHans-Christoph Steiner <eighthave@users.sourceforge.net>2008-02-01 19:42:51 +0000
commitbde380b8a24edc207fcbafc6780ab88c449862d8 (patch)
tree77ef73684bc7426a98aa34b3269204d32e574109 /externals/Makefile
parent99a63a7a0c96b302c25079105b4ac3f77bd4b141 (diff)
added pdlua to Pd-extended and made it build automatically on Mac OS X and GNU/Linux
svn path=/trunk/; revision=9162
Diffstat (limited to 'externals/Makefile')
-rw-r--r--externals/Makefile30
1 files 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
@@ -1907,6 +1907,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
PDOGG_OBJECTS := $(wildcard $(externals_src)/pdogg/*/*.c)