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=eb81cab3366ed5ff3f5ee2a290bffa30f4d82529;hb=c2502333b2e56e520bb9ecc2f931a639eee415d7;hpb=4132e8ca13b6395f8a9ef7ec7d01cbdcc19c037d diff --git a/plugins/spunull/Makefile b/plugins/spunull/Makefile index eb81cab3..fcfec80e 100644 --- a/plugins/spunull/Makefile +++ b/plugins/spunull/Makefile @@ -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!"