aboutsummaryrefslogtreecommitdiff
path: root/plugins/spunull
diff options
context:
space:
mode:
authornotaz2012-05-01 00:39:05 +0300
committernotaz2012-05-27 20:11:00 +0300
commitdd4d5a35678c8ff7f9a7c0ac42be354671534f96 (patch)
treefa3b4edac9a112bd15fb78c16f5992b080871211 /plugins/spunull
parentb105cf4f5e168fdce54c6011533df76d196a917b (diff)
downloadpcsx_rearmed-dd4d5a35678c8ff7f9a7c0ac42be354671534f96.tar.gz
pcsx_rearmed-dd4d5a35678c8ff7f9a7c0ac42be354671534f96.tar.bz2
pcsx_rearmed-dd4d5a35678c8ff7f9a7c0ac42be354671534f96.zip
automatically build plugins
Diffstat (limited to 'plugins/spunull')
-rw-r--r--plugins/spunull/Makefile16
1 files changed, 12 insertions, 4 deletions
diff --git a/plugins/spunull/Makefile b/plugins/spunull/Makefile
index eb81cab..dcd25ea 100644
--- a/plugins/spunull/Makefile
+++ b/plugins/spunull/Makefile
@@ -1,12 +1,20 @@
-all: ../../config.mak spunull.so
-
include ../../config.mak
-spunull.so: spunull.c
+ifneq "$(ARCH)" "arm"
+ EXT = .$(ARCH)
+endif
+TARGET = spunull.so$(EXT)
+WD = $(shell pwd)
+PLUGINDIR = $(shell basename $(WD))
+
+all: ../../config.mak $(TARGET)
+
+$(TARGET): spunull.c
$(CC) $(CFLAGS) -shared -fPIC -ggdb -O2 -o $@ $^
+ ln -fs $(PLUGINDIR)/$(TARGET) ../
clean:
- $(RM) spunull.so
+ $(RM) $(TARGET)
../../config.mak:
@echo "Please run ./configure before running make!"