X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?p=pcsx_rearmed.git;a=blobdiff_plain;f=plugins%2Fspunull%2FMakefile;h=dcd25eac5c66bb33e5b3c6bc354447380a61d2a5;hp=7371522597a54041c78e06d81afe03221f89c50f;hb=1b908f9e6e455d3eecf3b9a9236405c29764c0f8;hpb=ee78346e30720ddb3f4c97b6598bdc6dc7257f98 diff --git a/plugins/spunull/Makefile b/plugins/spunull/Makefile index 73715225..dcd25eac 100644 --- a/plugins/spunull/Makefile +++ b/plugins/spunull/Makefile @@ -1,9 +1,21 @@ -CC = $(CROSS_COMPILE)gcc +include ../../config.mak -all: spunull.so +ifneq "$(ARCH)" "arm" + EXT = .$(ARCH) +endif +TARGET = spunull.so$(EXT) +WD = $(shell pwd) +PLUGINDIR = $(shell basename $(WD)) -spunull.so: spunull.c +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!" + @exit 1