X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?p=pcsx_rearmed.git;a=blobdiff_plain;f=plugins%2Fspunull%2FMakefile;h=fcfec80ef73618b160b3f263deef1c4a2534dab7;hp=f9b76ed961e732f5b4cec5b740e306bc8f93854f;hb=92ca1ba64e939942ab05aaa3d578f0d165634275;hpb=de38f20e0863e33a2a824380da5aa46b1dc39631 diff --git a/plugins/spunull/Makefile b/plugins/spunull/Makefile index f9b76ed9..fcfec80e 100644 --- a/plugins/spunull/Makefile +++ b/plugins/spunull/Makefile @@ -1,11 +1,18 @@ -CC = $(CROSS_COMPILE)gcc +include ../../config.mak -all: spunull.so +TARGET = spunull.so +WD = $(shell pwd) +PLUGINDIR = $(shell basename $(WD)) --include Makefile.local +all: ../../config.mak $(TARGET) -spunull.so: spunull.c +$(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