aboutsummaryrefslogtreecommitdiff
path: root/externals
diff options
context:
space:
mode:
Diffstat (limited to 'externals')
-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)