improve ARM feature detection
[pcsx_rearmed.git] / plugins / spunull / Makefile
index eb81cab..fcfec80 100644 (file)
@@ -1,12 +1,17 @@
-all: ../../config.mak spunull.so
-
 include ../../config.mak
 
-spunull.so: spunull.c
+TARGET = spunull.so
+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!"