X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?p=pcsx_rearmed.git;a=blobdiff_plain;f=plugins%2Fspunull%2FMakefile;fp=plugins%2Fspunull%2FMakefile;h=dcd25eac5c66bb33e5b3c6bc354447380a61d2a5;hp=eb81cab3366ed5ff3f5ee2a290bffa30f4d82529;hb=dd4d5a35678c8ff7f9a7c0ac42be354671534f96;hpb=b105cf4f5e168fdce54c6011533df76d196a917b diff --git a/plugins/spunull/Makefile b/plugins/spunull/Makefile index eb81cab3..dcd25eac 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!"